• 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!

My monster don't die.

zufux

Member
Joined
Sep 1, 2008
Messages
221
Reaction score
5
Hello, I done the Arena, but after that my monster don't die more. How i can change it? if you can help me msg me please! Thanks
 
Here you go, replace the contents of your data/creaturescripts/scripts/kill.lua with this version:
PHP:
function onKill(cid, target)
	local monster = getCreatureName(target)
	local room = getArenaMonsterIdByName(monster)
	if room > 0 then
		setPlayerStorageValue(cid, room, 1)
			doCreatureSay(cid, "You have defeated "..monster.."! Head through the teleporter to the left into the next room.",TALKTYPE_ORANGE_1)
	end
	return true
end

Note that I've just added return true and made the message show the name of the arena monster you've just defeated.
 
Back
Top Bottom