Ir para conteúdo

Featured Replies

Postado

Descrição


Automaticamente aparece a mensagem no Broadcast.
 

Instalando


data/globalevents/scripts/others/autobroadcast
function onThink(interval, lastExecution)
	local MESSAGE = {
		"[COMMAND] Use !buypromotion.",
		"[FORUM] Report bugs on the forum! We have admins checking there every day!",
		"[Fixing] We are working on to fix POI, INQ and Svargrond Arena. Updates, check our website",
		"[INFO] You can buy your blessings in Thais temple.",
	}
	
	Game.broadcastMessage(MESSAGE[math.random(1, #MESSAGE)], MESSAGE_STATUS_WARNING)
	
	return true
end
  • Não esqueça de acrescentar a tag em globalevents.xml
  • Créditos à luanluciano93 por indentar!  ^^

Editado por Larissa Azhaurn (veja o histórico de edições)

Postado

Indentação! 

function onThink(interval, lastExecution)
	local MESSAGE = {
		"[COMMAND] Use !buypromotion.",
		"[FORUM] Report bugs on the forum! We have admins checking there every day!",
		"[Fixing] We are working on to fix POI, INQ and Svargrond Arena. Updates, check our website",
		"[INFO] You can buy your blessings in Thais temple.",
	}
	
	Game.broadcastMessage(MESSAGE[math.random(1, #MESSAGE)], MESSAGE_STATUS_WARNING)
	
	return true
end
  • 3 months later...

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.6k

Informação Importante

Confirmação de Termo