TekaZudo
seuserver.com.br
DESCRIÇÃO
Anuncie aqui neste countdown e dê maior visibilidade ao seu lançamento |
Full Global • Custom Quests • Custom Outfits • Lottery System • Version 15x
Inicia em:
--
Participar
Solutions
-
ForsakenLeader's post in (Resolvido)Npc que blokeia certos nicks was marked as the answerPronto! Boa sorte!
-
ForsakenLeader's post in (Resolvido)[URGENTE] Teleport Automatico was marked as the answerlocal config = { day = { {"Sunday", "12:00"}, {"Thursday", "00:11"}, -- só copiar uma linha e add mais dias. se quiser só um dia deixe só a primeia linha }, pos = {x=151, y=56, z=7}, -- Posição aonde sera criado o teleport topos = {x=284, y=516, z=5}, -- Posição pra onde o teleport ira levar o player time = 5, -- tempo que o teleport ira sumir em minutos msg_open = "Baiakuda Elemental Event iniciou corram para o templo pois o tp some daqui 5 min.", -- mensagem ao abrir o teleport msg_close = "Baiakuda Elemental Event acabou." -- mensagem ao fechar o teleport } local function DelTp() local t = getTileItemById(config.pos, 1387) if t then doRemoveItem(t.uid, 1) doSendMagicEffect(config.pos, CONST_ME_POFF) end end function onTimer() local d, h = os.date("%A"), os.date("%H:%M") for a, b in pairs(config.day) do if d == b[1] then if h == b[2] then doCreateTeleport(1387, config.topos, config.pos) doBroadcastMessage(config.msg_open) addEvent(DelTp, config.time * 60 * 1000) addEvent(doBroadcastMessage, config.time * 60 * 1000, config.msg_close) break end end end return true end Pronto! Boa sorte.