• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Error Killing Monster 8.62

MxSoft

Leave Tibia, Live Life.
Joined
Dec 22, 2009
Messages
1,804
Solutions
1
Reaction score
44
Location
Mexico
Hi when i kill a monster, ge doesnt die, and i get error in conole:
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>
Here is my arena.lua:
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
 
Back
Top