eu queria colocar este iscript para quando o player morer nao perder lvl ,nem o loot e ser teletransportado quando morrer para o tenplo com a vida e mana cheia
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if isPlayer(cid) == true then
if (getPlayerSlotItem(cid, 2).itemid == 2196) then
doCreatureSetDropLoot(cid, false)
doPlayerSetLossPercent(cid, experience, 0)
doCreatureAddHealth(cid, health,40000)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
return TRUE
end
end
return TRUE
end