Well i took this script from mock's post and modified it a bit. It's a script so the players gets teleported to the temple if its health goes to 0. (yes, like in pvp arena script)
Everything goes fine but i just cant modify the players health after it "dies".
It stands on the temple with 0 health and nither the spells or the functions (doAddCreatureHealth) works.
Seems like you cant modify the health variable anymore once your health goes under 0.
what's wrong?
It's 0.3.6pl1
Thanx in advance
Kird~
Everything goes fine but i just cant modify the players health after it "dies".
It stands on the temple with 0 health and nither the spells or the functions (doAddCreatureHealth) works.
Seems like you cant modify the health variable anymore once your health goes under 0.
what's wrong?
Code:
local templePos = {x = 1011, y = 1008, z = 6}
function onPrepareDeath(cid,aa) -- Script by mock the bear
doPlayerAddHealth(cid,getCreatureMaxHealth(cid))
doCreatureAddMana(cid,getCreatureMaxMana(cid))
doTeleportThing(cid,getTownTemplePosition(getPlayerTown(cid)))
return false
end
Thanx in advance
Kird~
Last edited: