Lancer
New Member
- Joined
- Jan 7, 2008
- Messages
- 30
- Reaction score
- 0
Code:
<event type="kill" name="arena" event="script" value="arena.lua"/>
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: