HellO! I have this creaturescript:
local stor = 7590
function autoloot(cid, target, pos)
if not isPlayer(cid) then
return
end
local function scanContainer(cid, uid, list)
for k = (getContainerSize(uid) - 1), 0, -1 do
local tmp = getContainerItem(uid, k)...