Bom eu fui tentar adicionar o sistema de Capture The Flag do MaxWendell. Link
Adicionei tudo corretamente e fiz o mapa com suas posições.
Nada que de erro nisso, o meu erro foi no Globalevents. Acredito que seja do script dele, por que não mexi nesse script.
O erro é esse:
[8/2/2014 13:27:12] >> Loading config (config.lua) [8/2/2014 13:27:12] >> Opening logs [8/2/2014 13:27:12] >> Loading Password encryption: [8/2/2014 13:27:12] >>> Using (SHA1) encryption ... (done). [8/2/2014 13:27:12] >> Loading RSA key [8/2/2014 13:27:13] >> Starting SQL connection [8/2/2014 13:27:13] >> Running Database Manager [8/2/2014 13:27:14] >>> Optimized database ... (done). [8/2/2014 13:27:14] >> Loading groups [8/2/2014 13:27:14] >> Loading items (OTB) [8/2/2014 13:27:14] >> Loading items (XML) [8/2/2014 13:27:14] >> Loading outfits [8/2/2014 13:27:14] >> Loading quests [8/2/2014 13:27:14] >> Loading raids [8/2/2014 13:27:14] >> Loading vocations [8/2/2014 13:27:14] >> Loading chat channels [8/2/2014 13:27:14] >> Loading experience stages [8/2/2014 13:27:14] >> Loading mods: [8/2/2014 13:27:15] >>> Loading custom_commands.xml ... (done). [8/2/2014 13:27:15] >>> Loading events_mods.xml ... (done). [8/2/2014 13:27:15] >>> Loading firstitems_voc.xml ... (done). [8/2/2014 13:27:15] >>> Loading zao_shard.xml ... (done). [8/2/2014 13:27:15] >>> (0) mods were disabled. [8/2/2014 13:27:15] >> Loading script systems: [8/2/2014 13:27:15] >>> Loading weapons... (done). [8/2/2014 13:27:15] >>> Preparing weapons... (done). [8/2/2014 13:27:15] >>> Loading spells... (done). [8/2/2014 13:27:18] >>> Loading actions... (done). [8/2/2014 13:27:22] >>> Loading talkactions... (done). [8/2/2014 13:27:23] >>> Loading movements... (done). [8/2/2014 13:27:28] >>> Loading creaturescripts... (done). [8/2/2014 13:27:28] >>> Loading globalscripts... [Error - Event::checkScript] Event onTime not found (data/globalevents/scripts/CTFMax1.lua) [8/2/2014 13:27:28] (done).
Como podem vê, não da erro em nada, e seguindo isso também não, apenas esse erro no meu distro.
A tag no globalevents é essa:
<globalevent name="CTFCheck" time="19:00:00" event="script" value="CTFMax1.lua"/>
O script é esse:
local CTF = CTF_LIB local function sendEffect() if (getGlobalStorageValue(16505) > 0) then doSendAnimatedText(CTF.tppos, "CTF ON", math.random(180)) addEvent(sendEffect, 750) end end function onTimer(interval) local time = os.date("*t") if (isInArray(CTF.days, time.wday)) then doBroadcastMessage("[CTF] Está aberto em Konoha para novos participantes, em ".. CTF.timeclose .." minuto(s) não será mais possível entrar!") setGlobalStorageValue(16705, 1) addEvent(CTF.start, CTF.timeclose * 60 * 1000) local teelz = doCreateItem(1387, 1, CTF.tppos) doItemSetAttribute(teelz, "aid", 47521) sendEffect() end return true end
Minha dúvida é apenas isso, se alguém puder me ajudar fico muito grato !