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

Creaturescript type Kill Error

Lancer

New Member
Joined
Jan 7, 2008
Messages
30
Reaction score
0
Code:
<event type="kill" name="arena" event="script" value="arena.lua"/>
Arena.lua is:
Code:
function onKill (cid, target)
    if isPlayer(cid) == TRUE then
        local monster = getCreatureName(target)
        local room = getArenaMonsterIdByName(monster)

        if room > 0 then
            setPlayerStorageValue(cid, room, 1)
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, 'Now you can go to the next room!')
            doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_BLUE)
        end
    end
end

The script don't print error on TFS Console, have error on script? =c

In monster show this error
Code:
[26/05/2009 18:05:53] Warning: [Monster::Monster]. Unknown event name - arena

This script of arena by Gesior!

Because when the monster is killed, the script is not active!
 
Last edited:
Back
Top