Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado
  • 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  

  • Respostas 19
  • Visualizações 306
  • Created
  • Última resposta

Top Posters In This Topic

Posted Images

Postado

@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
  • 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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo