MxSoft
Leave Tibia, Live Life.
Hi when i kill a monster, ge doesnt die, and i get error in conole:
Here is my arena.lua:
Greetings
Code:
[Error - Creaturescript Interface]
data/creaturescripts/scripts/arena.lua:onkill
data/creaturescripts/scripts/arena.lua:2: attempt to call global 'getarenamonsteridbyname' (a nil value)
stack traceback:
data/creaturescripts/scripts/arena.lua:2: in function <data/creatuscripts/scripts/arena.lua:1>
Code:
function onKill(cid, target)
local room = getArenaMonsterIdByName(getCreatureName(target))
if room > 0 then
setPlayerStorageValue(cid, room, 1)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_DEFAULT,'You can enter next room!')
end
return TRUE
end
Greetings