local effect = 169 --by brun123 --alterado v1.9 \/
local arrow = {effect, duration} --Respectivamente, efeito e duração (segundos).
function sendEffect(pos, time)
if time < 0 then
return true
end
doSendMagicEffect(pos, arrow[1])
addEvent(sendEffect, 1000, pos, time - 1)
end
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) and sendEffect(position, arrow[2])
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
Não respondo PMs solicitando suporte. Já existem seções no fórum para isto.