wtftopfragsCode:<?xml version="1.0" encoding="UTF-8"?> <creaturescripts>
You posted creaturescripts.xml instead of topfrags.lua? :Swahts now the problem?
function onKill(cid, target, lastHit)
if isPlayer(target) then
db.executeQuery("UPDATE `players` SET `frags` = `frags` + 1 WHERE `id` = " .. getPlayerGUID(cid) .. ";")
end
return true
end
function onKill(cid, target)
local room = getArenaMonsterIdByName(getCreatureName(target))
if room > 0 then
setPlayerStorageValue(cid, room, 1)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_DEFAULT,'You can enter next room!')
end
return TRUE
end
[19:2:31.000] [Error - CreatureScript Interface]
[19:2:31.000] data/creaturescripts/scripts/arenakill.luanKill
[19:2:31.000] Description:
[19:2:31.000] data/creaturescripts/scripts/arenakill.lua:2: attempt to call glob
al 'getArenaMonsterIdByName' (a nil value)
[19:2:31.000] stack traceback:
[19:2:31.000] data/creaturescripts/scripts/arenakill.lua:2: in function <data/
creaturescripts/scripts/arenakill.lua:1>