function onPrepareDeath(cid, deathList)
local from = {x=500,y=600,z=7}
local to = {x=600,y=500,z=7}
if isPlayer(cid) and isInArea(getCreaturePosition(cid), from, to) then
doCreatureAddHealth(cid, getCreatureMaxHealth(cid), 65535, 256, true)
doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid))
doTeleportThing(cid, getCreaturePosition(cid))
doSendMagicEffect(getCreaturePosition(cid), 10)
return false
end
return true
end