Postado Agosto 16, 2018 6 anos Autor 12 minutos atrás, Dragon Ball Hiper disse: @Ricardo Tibia --[[ Capture The Flag System Author: Maxwell Denisson(MaXwEllDeN) Version: 2.0 Contact: maxwellmda@gmail.com ]] 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 onThink(interval, lastExecution) local time = CTF.days[os.date("%A")] if time and isInArray(time, os.date("%X"):sub(1,5)) then doBroadcastMessage("[CTF] Está aberto em Sapeko 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 Foi Mais O Player Volta para o templo 20:38 O CTF foi iniciado. Bom jogo! e apareceu uns erro que vi aqui abri o evento > ERRO
Postado Agosto 16, 2018 6 anos Autor 4 minutos atrás, Dragon Ball Hiper disse: @Ricardo Tibia veja o erro na distro e tira print pra saber aqui e quando entro no CTF depois disso vai templo quando começa
Postado Agosto 16, 2018 6 anos @Ricardo Tibia @Ricardo Tibia estranho apenas mudei a função dates. antes aparecia ? altera pra essa --[[ Capture The Flag System Author: Maxwell Denisson(MaXwEllDeN) Version: 2.0 Contact: [email protected] ]] 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 onThink(interval, lastExecution) local ct = CTF_LIB.days[os.date("%A")] if ct and isInArray(ct, os.date("%X"):sub(1,5)) then doBroadcastMessage("[CTF] Está aberto em Sapeko 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
Postado Agosto 17, 2018 6 anos Autor @Dragon Ball Hiper continua mesma coisa antes nao tava assim e ainda continua saindo do evento o player 6 minutos atrás, Dragon Ball Hiper disse: @Ricardo Tibia @Ricardo Tibia estranho apenas mudei a função dates. antes aparecia ? altera pra essa --[[ Capture The Flag System Author: Maxwell Denisson(MaXwEllDeN) Version: 2.0 Contact: maxwellmda@gmail.com ]] 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 onThink(interval, lastExecution) local ct = CTF_LIB.days[os.date("%A")] if ct and isInArray(ct, os.date("%X"):sub(1,5)) then doBroadcastMessage("[CTF] Está aberto em Sapeko 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
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.