Hey when im loading my script i get this error:
[18:34:13.880] [Warning - Event::loadScript] Event onDeath not found (data/creat
urescripts/scripts/noaol.lua)
script:
xml:
login.lua:
[18:34:13.880] [Warning - Event::loadScript] Event onDeath not found (data/creat
urescripts/scripts/noaol.lua)
script:
Code:
function onPrepareDeath(cid, deathList)
if(isPlayer(cid) and getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 115) then
for i = 1, 5 do
doPlayerAddBlessing(cid, i)
end
doCreatureSetDropLoot(cid, false)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
doCreatureSay(cid, "Forever Aol!!", TALKTYPE_ORANGE_1)
end
return true
end
xml:
Code:
<event type="death" name="noaol" event="script" value="noaol.lua"/>
login.lua:
Code:
registerCreatureEvent(cid, "noaol")