Ola estou com um erro nesse script, quando o player morre por algu tipo de field dentro da arena o script n funciona
se alguem souber como arrumar ajuda eu ai.
local arena = { frompos = {x=2343, y=2183, z=8}, -- Top Left Corner topos = {x=2434, y=2274, z=8}, -- Bottom Right Corner exit = {x=2183, y=2108, z=7} -- Exit } function onStatsChange(cid, attacker, type, combat, value) if isInArea(getPlayerPosition(cid), arena.frompos, arena.topos) then if type == 1 then if getCreatureHealth(cid) <= value then if isPlayer(cid) and isCreature(attacker) == TRUE then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), true) doCreatureAddHealth(cid, getCreatureMaxHealth(cid), true) doRemoveCondition(cid) doRemoveCreature(cid) return false end end end end return true end
Grato !