Ola Bom Dia !
Estou tentando arrrumar ja faz uma semana mas nada de conseguir.
Tenho um script de arena PVP em meu OT mas ele esta dando um erro, pois quando o player morre na arena ele é teleportado para o templo com zero de vida(HP) meu OT é TFS 0.3.6 eu testei em 0.3.5 e funcionou, mas eu queria que desce certo em 0.306 pois estou querendo colocar em protocolo 8.54.
Logo abaixo o script q estou usando.
local arena = {frompos = {x=12, y=17, z=7}, -- Top Left Corner
topos = {x=22, y=27, z=7}, -- Bottom Right Corner
exit = {x=12, y=27, z=7} -- Exit
}
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if isPlayer(cid) == TRUE then
if isInArea(getPlayerPosition(cid), arena.frompos, arena.topos) then
if doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid), TRUE) == TRUE then
if doTeleportThing(cid, arena.exit) == TRUE then
doSendMagicEffect(arena.exit, 10)
return FALSE
end
end
end
end
return TRUE
end
se alguem souber responder ficarei muito grato
Desde ja obrigado.