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

TFS 0.2.2 [Kill error]

cirtaboy

Member
Joined
Jul 31, 2008
Messages
1,946
Reaction score
19
Location
Swe
Hello everyone.
Everytime i try to kill something (Monster) I get an error in my console. But the monster still gets killed.

hiihoe.png


And this is my kill.lua
PHP:
function onKill(cid, target)
    local monster = getCreatureName(target)
    local room = getArenaMonsterIdByName(monster)
    if room > 0 then
        setPlayerStorageValue(cid, room, 1)
        doPlayerSendTextMessage(cid,MESSAGE_EVENT_DEFAULT,'You can enter next arena room!')
    end
    return TRUE
end
 
LUA:
function onKill(cid, target)
	local monster = getCreatureName(target)
	local room = getArenaMonsterIdByName(monster)
	if room > 0 then
		setPlayerStorageValue(cid, room, 1)
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_DEFAULT,'You can enter next arena room!')
	end
end

try, this is gesiors script for 0.2.
 
Back
Top