Troque por esse aqui:
local effect = 173 --by brun123 --alterado v1.9 \/
local function func(cid, position, corpseid, effect)
if not isCreature(cid) then return true end
local corpse = getTileItemById(position, corpseid).uid
if corpse <= 1 then return end
if not isContainer(corpse) then return true end
for slot = 0, (getContainerSize(corpse)-1) do
local item = getContainerItem(corpse, slot)
if item.uid <= 1 then return end
if isStone(item.itemid) then
return doSendMagicEffect(getThingPos(cid), effect)
end
end
end
function onKill(cid, target, lastHit)
if not ehMonstro(target) then return true end
local corpse = getMonsterInfo(getCreatureName(target)).lookCorpse
addEvent(func, 5, getCreatureSummons(cid)[1], getThingPos(target), corpse, effect)
return true
end








info
Grupo: Infante
Registrado: 06/03/13
Posts: 1.6k
Reputação: +319
Gênero: Masculino
Char no Tibia: Lord Sorte
Gente Estou Com Esse Seguinte Erro Aki Toda Vez Que Abro o Loot De Um Pokemon Intão Imagina Né
DropStone.lua
local function sendEffStone(cid, pos) if not isCreature(cid) then return true end for i = 1, 255 do pos.stackpos = i local item = getTileThingByPos(pos) if item.uid ~= 0 then if isContainer(item.uid) and getContainerSize(item.uid) > 0 then for slot=0, (getContainerSize(item.uid)-1) do local stone = getContainerItem(item.uid, slot) if isStone(stone.itemid) then --alterado v1.7 doSendMagicEffect(getThingPosWithDebug(cid), 173) end end end end end end function onKill(cid, target) if ehMonstro(target) and isPlayer(cid) then local pos = getThingPos(target) --alterado v1.7 local pid = getCreatureSummons(cid)[1] addEvent(sendEffStone, 150, pid, pos) end return TRUE end