hey any one can make a script for amulet that has id 115 and If you die you dont lose any even when you have rs/bs i got a script but it's bugged!
The script is called preparedeath im using creaturescripts
script:
The script is called preparedeath im using creaturescripts
script:
Code:
function onPrepareDeath(cid, deathList)
if isPlayer(cid) then
if getPlayerSlotItem(cid, 2).itemid == 115 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, getPlayerExperience(cid))
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), true)
doCreatureAddHealth(cid, getCreatureMaxHealth(cid), true)
doCreatureAddMana(cid, (getCreatureMaxMana(cid) - getCreatureMana(cid)))
doRemoveConditions(cid, FALSE)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
doPlayerPopupFYI(cid, "You are dead.")
doRemoveCreature(cid)
return false
end
end
return true
end