Hello everyone.
Everytime i try to kill something (Monster) I get an error in my console. But the monster still gets killed.
And this is my kill.lua
Everytime i try to kill something (Monster) I get an error in my console. But the monster still gets killed.
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