item, count = 2525, 1 -- id do item e quaantidade
function onDeath(cid, corpse, deathList)
return doPlayerAddItem(cid, item, count)
end
coloca em creaturescripts
tag:
<event type="death" name="ganhaitem" script="ganhaitem.lua"/>
em login.lua coloca:
registerCreatureEvent(cid, "ganhaitem")
_____________________
Coloca em actions
function onUse(cid, item)
doSendMagicEffect(getThingPos(cid), 10)
doCreatureAddMana(cid, getCreatureMaxMana(cid))
return true
end
tag:
<action itemid="2146" event="script" value="itemhealamana.lua"/>
2146 id do item