
Code:
if AutoLootList.players[playerId] ~= nil then
local lootList = AutoLootList.players[playerId].lootList
if lootList ~= nil then
if corpse:getType():isCorpse() then
for a = corpse:getSize() - 1, 0, -1 do
local containerItem = corpse:getItem(a)
if containerItem then
local containerItemId = containerItem:getId()...