Red_Kill Postado Julho 24, 2019 Denunciar Postado Julho 24, 2019 Olá, queria um skript onde acada 8 minutos seja lançado uma palavra exemplo: "Pao" "O primeiro a digitar "Pao" no chat recebe 400 coins" o primeiro player a digitar pao em qual quer chat, recebe o primeiro e aparece: "Parabens #Player#, você digitou primeiro e recebeu o premio." Versão 1.8 p-p se alguem puder fazer ❤️
SrBlecaute Postado Julho 24, 2019 Denunciar Postado Julho 24, 2019 (editado) Spoiler on enable: load yaml "plugins/SrFastChat/config.yml" as "fastchat.config" load yaml "plugins/SrFastChat/data.yml" as "fastchat.data" if yaml "fastchat.config" is empty: set yaml list "Mensagens.EventoIniciado" from "fastchat.config" to "" and "&7O evento foi iniciado" and "digite @palavra o mais rápido possível" and "" set yaml list "Mensagens.EventoFinalizado" from "fastchat.config" to "" and "Evento finalizado" and "o ganhador foi o @player" and "" set yaml value "Random.palavra01.Digitar" from "fastchat.config" to "pao" set yaml value "Random.palavra01.Comandos.Ativado" from "fastchat.config" to true set yaml list "Random.palavra01.Comandos.Executar" from "fastchat.config" to "money add @player 400" save yaml "fastchat.config" on disable: unload yaml "fastchat.config" unload yaml "fastchat.data" function replace(msg: text, replacing: text) :: text: loop {_replacing} split at "||": set {_splitEnd::*} to loop-value split at ":" replace all "%{_splitEnd::1}%" in {_msg} with "%{_splitEnd::2}%" return {_msg} on chat: if yaml value "Evento.Ativado" from "fastchat.data" = true: if yaml value "Evento.Palavra" from "fastchat.data" = message: set yaml value "Evento.Ativado" from "fastchat.data" to false save yaml "fastchat.data" set {_node} to yaml value "Evento.Node" from "fastchat.data" loop yaml list "Mensagens.EventoFinalizado" from "fastchat.config": broadcast colored replace("%loop-value%","@player:%sender%") if yaml value "Random.%{_node}%.Comandos.Ativado" from "fastchat.config" = true: loop yaml list "Random.%{_node}%.Comandos.Executar" from "fastchat.config": make console execute command replace("%loop-value%","@player:%sender%") cancel event every 8 minutes: set {_randomNode} to random element of yaml node keys "Random" from "fastchat.config" set {_randomPalavra} to yaml value "Random.%{_randomNode}%.Digitar" from "fastchat.config" set yaml value "Evento.Ativado" from "fastchat.data" to true set yaml value "Evento.Node" from "fastchat.data" to "%{_randomNode}%" set yaml value "Evento.Palavra" from "fastchat.data" to "%{_randomPalavra}%" loop yaml list "Mensagens.EventoIniciado" from "fastchat.config": broadcast colored replace("%loop-value%","@palavra:%{_randomPalavra}%") save yaml "fastchat.data" Não testei precisa do skript-yaml para poder funcionar Editado Julho 24, 2019 por SrBlecaute 1
Red_Kill Postado Julho 25, 2019 Autor Denunciar Postado Julho 25, 2019 Certinho irmão ❤️ muito obrigado, de vdd !
SrBlecaute Postado Julho 25, 2019 Denunciar Postado Julho 25, 2019 Seu pedido foi marcado como entregue por nossa equipe. Caso ele não tenha sido entregue como gostaria, crie outro tópico. OBS: Essa mensagem é automática.
Posts Recomendados