Hi guys, i'm having a problem with a script i'm using.
[Creaturescripts] Player don't actually die in the area.
Lua:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
local from, to = {x = 1051, y = 592, z = 7},{x = 1056, y = 596, z = 7}
local pos = {x = 543, y = 525, z = 7}
if isPlayer(cid) and isInRange(getCreaturePosition(cid), from, to) then
doTeleportThing(cid, pos)
doCreatureAddHealth(cid, getCreatureMaxHealth(cid), 65535, 256, true)
doRemoveConditions(cid, false)...