-- Hello friends, i have a script of PVP-ARENA, and when a player death on arena, this is teleported to outside of arena, and a message apear with winner or looser, but this work fine on a TFS 8.4x and now i have TFS 8.5 and when i use this apear a error on console:
-- This is my script of arena: Remember this is donwloaded on a foru, but i dont remember the name of owner... credits is totality of owner post...
-- Plx help me to solve this problem... i need this... Many thx for all to help me...
PHP:
Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/Pvp_Arena.lua:onPrepareDeath
luaDoPlayerSendTextMessage(). Player not found
Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/Pvp_Arena.lua:onPrepareDeath
luaGetCreatureName(). Creature not found
Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/Pvp_Arena.lua:onPrepareDeath
data/creaturescripts/scripts/Pvp_Arena.lua:14: attempt to concatenate a boolean
value
stack traceback:
data/creaturescripts/scripts/Pvp_Arena.lua:14: in function <data/creatur
escripts/scripts/Pvp_Arena.lua:7>
-- This is my script of arena: Remember this is donwloaded on a foru, but i dont remember the name of owner... credits is totality of owner post...
PHP:
local arena = {
frompos = {x=499, y=489, z=9},
topos = {x=515, y=498, z=9},
exit = {x=517, y=493, z=8}
}
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)
doPlayerSendTextMessage(mostDamageKiller,MESSAGE_STATUS_CONSOLE_BLUE,'[ARENA] Você matou '..getPlayerName(cid)..'!')
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,'[ARENA] Você foi morto por '..getPlayerName(mostDamageKiller)..'!')
return FALSE
end
end
end
end
return TRUE
end
-- Plx help me to solve this problem... i need this... Many thx for all to help me...