Postado Julho 16, 2015 9 anos este script funciona em TFS 1.0 ? Sim. ➥ Regras | Seções OTServ | Seções BOT
Postado Julho 17, 2015 9 anos Sim. Pode parecer meio estranho , mais não consegui adicionar no meu servidor ,está dando o seguinte erro: Lua Script Error: [GlobalEvent Interface] data/globalevents/scripts/mensagem.lua:onThink data/globalevents/scripts/mensagem.lua:10: attempt to call global 'doBroadcastMessage' (a nil value) stack traceback: [C]: in function 'doBroadcastMessage' data/globalevents/scripts/mensagem.lua:10: in function [Error - GlobalEvents::think] Failed to execute event: mensagem Editado Julho 17, 2015 9 anos por vtshow (veja o histórico de edições)
Postado Julho 18, 2015 9 anos Tente assim: -- [( Script created by Matheus for TibiaKing.com )] -- function onThink(interval, lastExecution) MENSAGEM = { "FRASE 1", "FRASE 2", "FRASE 3", "FRASE 4", "FRASE 5", } broadcastMessage(MENSAGEM[math.random(1,#MENSAGEM)]) return TRUE end ➥ Regras | Seções OTServ | Seções BOT
Postado Julho 22, 2015 9 anos Tente assim: -- [( Script created by Matheus for TibiaKing.com )] -- function onThink(interval, lastExecution) MENSAGEM = { "FRASE 1", "FRASE 2", "FRASE 3", "FRASE 4", "FRASE 5", } broadcastMessage(MENSAGEM[math.random(1,#MENSAGEM)]) return TRUE end funcionou ,muito obrigado +rep ao criador do topico é pra você xD
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.