trollebror
Developer
Hello folks!
Is there a way to make the following on the 2.0.14 in any other way then the onPrepareDeath - since the onPrepareDeath does not work properly for this distro?
The purpose of the above code is to teleport a player to a position and heal him if he faces an attack that would otherwise kill him. I will be using it for arena/event. (where you do not want to lose EQ nor skills if you "die")
Is there a way to make the following on the 2.0.14 in any other way then the onPrepareDeath - since the onPrepareDeath does not work properly for this distro?
Code:
local EXIT_POS = {x = 1280, y = 686, z = 9}
function onPrepareDeath(cid, deathList)
doTeleportThing(cid, EXIT_POS)
return doCreatureAddHealth(cid, getCreatureMaxHealth(cid), 65535, 256, true)
end
The purpose of the above code is to teleport a player to a position and heal him if he faces an attack that would otherwise kill him. I will be using it for arena/event. (where you do not want to lose EQ nor skills if you "die")