Postado Maio 12, 2015 10 anos Eu uso no meu server assim globalevents: function onThink(interval, lastExecution) local tabela = { [48]= 12, [56]= 12, [55]= 12, [62]= 13, [82]= 27, [84]= 27, [92]= 27, [94]= 27, [95]= 12, } local players = getPlayersOnline() for _, pid in ipairs(getPlayersOnline()) do if tabela[getPlayerVocation(pid)] then playerpos = getPlayerPosition(pid) doSendMagicEffect(playerpos, tabela[getPlayerVocation(pid)]) end end return true end tag: entao, ai eu coloco o efeito na vocation. TIPO: Colo na Vocation 2, ai a vocaçao que começa é a 1 ai quando uso transform mudar pra vocation 2, roupa e fica o efeito subindo. Editado Maio 12, 2015 10 anos por ZwhiteDog (veja o histórico de edições) Administração é a arte de criar os caminhos que levam a humanidade à excelência de suas realizações.
Postado Maio 12, 2015 10 anos Autor Ei Amigo Meu Nao Funcionou eu coloquei pra usar vocation 8 e 9 e nao foi :/ olha geito coloquei ve si tem algo errado :/ function onThink(interval, lastExecution) local tabela = { [8]= 68, [9]= 123, } local players = getPlayersOnline() for _, pid in ipairs(getPlayersOnline()) do if tabela[getPlayerVocation(pid)] then playerpos = getPlayerPosition(pid) doSendMagicEffect(playerpos, tabela[getPlayerVocation(pid)]) end end return true end Ve si Tenha algo errado si tiver me explica ai porfavor
Postado Maio 13, 2015 10 anos Solução fas assim vá em globalevents/scripts e cria o arquivo chamado effect. cola isso dentro function onThink(interval, lastExecution) local tabela = { [8]= 68, [9]= 123, } local players = getPlayersOnline() for _, pid in ipairs(getPlayersOnline()) do if tabela[getPlayerVocation(pid)] then playerpos = getPlayerPosition(pid) doSendMagicEffect(playerpos, tabela[getPlayerVocation(pid)]) end end return true end vai em globalevents.xml e cola isso: <globalevent name="Effect" interval="0" event="script" value="effect.lua"/> fas como eu digo e testa. Administração é a arte de criar os caminhos que levam a humanidade à excelência de suas realizações.
Postado Maio 13, 2015 10 anos Autor Vlw ZwhiteDog, Me Ajudou Mt Obrigadao ai <3 Quiser Add Skype : vitinhopvp.mt a i entre } e localplayers denque colcoar uns spaço function onThink(interval, lastExecution) local tabela = { [8]= 68, [9]= 123, } local players = getPlayersOnline() for _, pid in ipairs(getPlayersOnline()) do if tabela[getPlayerVocation(pid)] then playerpos = getPlayerPosition(pid) doSendMagicEffect(playerpos, tabela[getPlayerVocation(pid)]) end end return true end Tem quer Haver Um spaço pra poder ler a script
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.