Postado Janeiro 31, 2015 10 anos Como coloco para a cada 30 minutos aparecer uma mensagem na tela por 7 segundos. ? Versão do meu ot : 9.83 - Projetando sua diversão ! - Minha Steam, adiciona lá
Postado Janeiro 31, 2015 10 anos O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de Scripts" Te ajudei?? REP + e ficamos quites... http://www.tibiaking.com/forum/uploads/emoticons/default_happyy.png' alt=';D'> Atenciosamente, Daniel. Abraços! Meus tutoriais: Programação: Resolvendo QUALQUER erro na data base. Scripts (system's, creaturescripts, mod's, NPC's, etc): (Sistema) GOD Ambient Light Full. Adicionando novas mounts ao servidor [NPC] Papai Noel que dá presente todo ano. Web-site: Resolvendo problema de caracteres especiais em PHP Formatando textos em PHP! Mudando a cor, tamanho, fonte, etc. Criando e configurando tabelas para paginas PHP
Postado Janeiro 31, 2015 10 anos Autor Eita, foi mal ;/ - Projetando sua diversão ! - Minha Steam, adiciona lá
Postado Janeiro 31, 2015 10 anos function onThink(interval, lastExecution) local players = getPlayersOnline() local strings = {""} local i, position = 1, 1 local added = false for _, pid in ipairs(players) do if(added) then if(i > (position * 7)) then strings[position] = strings[position] .. "," position = position + 1 strings[position] = "" else strings[position] = i == 1 and "" or strings[position] .. ", " end end if((config.showGamemasters or getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES) or not getPlayerCustomFlagValue(pid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) and (not isPlayerGhost(pid) or getPlayerGhostAccess(cid) >= getPlayerGhostAccess(pid))) then strings[position] = strings[position] .. getCreatureName(pid) .. " [" .. getPlayerLevel(pid) .. "]" i = i + 1 added = true else added = false end end doBroadcastMessage((i - 1) .. " player(s) online:", 22) MENSAGEM = { "MSG1", "MSG2", "MSG3", "MSG4", "MSG5", } doBroadcastMessage(MENSAGEM[math.random(1,#MENSAGEM)],22) return TRUE end <globalevent name="globalmessage" interval="3000" script="globalmessage.lua"/> nas strings ali tu coloca as mensagens que você quer
Postado Janeiro 31, 2015 10 anos Autor Poderia me explicar melhor como coloco isso no ot? passo a passo? Mesmo assim Obrigado. Editado Janeiro 31, 2015 10 anos por ArthurRibeiro (veja o histórico de edições) - Projetando sua diversão ! - Minha Steam, adiciona lá
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.