Alyhide
Banned User
Hey, I have a problem, whenever a player has a forever amulet, the player doesn't die in the arena, it's just.. like
At 0 hp, but that player walks around, but his dead body spawns all over the place lol
Forever Amulet.lua
in creaturescripts.xml
At 0 hp, but that player walks around, but his dead body spawns all over the place lol
Forever Amulet.lua
LUA:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
doCreatureSay(cid, "Forever Amulet!", TALKTYPE_ORANGE_1)
elseif (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) and (getCreatureSkullType(cid) < 4) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
doCreatureSay(cid, "Skull Amulet!", TALKTYPE_ORANGE_1)
end
return true
end
in creaturescripts.xml
LUA:
<event type="preparedeath" name="forever amulet" event="script" value="forever amulet.lua"/>