Well I'm having some problems with this 2 things..
The forever amulet does work, the skull amulet aswell, but when you die you dont loose eq, but you do loose your bp/bag.(skull ammy only with no rs, with rs you dont loose things).
data/creaturescripts/scripts/forever amulet.lua
and my login.lua
I'd like to know whats the problem here.
Thanks in advanced!
PD: I want the skull ammy to work as a forever AOL aswell..(when you got no rs or bs)
The forever amulet does work, the skull amulet aswell, but when you die you dont loose eq, but you do loose your bp/bag.(skull ammy only with no rs, with rs you dont loose things).
data/creaturescripts/scripts/forever amulet.lua
Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2198) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
doCreatureSay(cid, "Forever Amulet!", TALKTYPE_ORANGE_1)
elseif (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2131) and (getCreatureSkullType(cid) < 4) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
doCreatureSay(cid, "Skull Amulet!", TALKTYPE_ORANGE_1)
end
return true
end
and my login.lua
Code:
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "Idle")
registerCreatureEvent(cid, "SkullCheck")
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "demonOakLogout")
registerCreatureEvent(cid, "forever amulet")
registerCreatureEvent(cid, "skull amulet")
registerCreatureEvent(cid, "charge amulet")
registerCreatureEvent(cid, "demonOakDeath")
return true
end
I'd like to know whats the problem here.
Thanks in advanced!
PD: I want the skull ammy to work as a forever AOL aswell..(when you got no rs or bs)