Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options:
- #Prefixo do server
- Tag: &3[Loteria]&9
- #Quantidade De Numeros. Ex: 1 à 100
- NM:100
- #Quantidade De Anuncios
- Anuncios: 10
- #Tempo Entre Os Anuncios em Segundos
- TempoEntre: 10
- #ATIVAR a LOTERIA AUTOMATICA?
- LOTERIA.AUTOMATICA: true
- #TEMPO ENTRE CADA Bolao EM MINUTOS
- TEMPO.LOTERIA: 90
- command /loteriainiciar [<text>]:
- permission: loteria.iniciar
- permission message: &4Voce nao tem permissao para usar esse comando
- trigger:
- set {Loteria.numero_vencedor1} to random integer between 0 and 100
- make player execute command "/forcestartloteria %{Loteria.numero_vencedor1}%"
- command /loteria [<text>]:
- trigger:
- if {Loteria.iniciada} is true:
- if arg 1 is set:
- if arg 1 = {Loteria.numero_vencedor}:
- set {Loteria.iniciada} to false
- broadcast " "
- broadcast "{@Tag} &7Tivemos Um Ganhador: &3%player%!"
- broadcast "{@Tag} &7Numero Correto: &3%{Loteria.numero_vencedor}%"
- broadcast "{@Tag} &7O Vencedor &3%player% &7ganhou &380k"
- make console execute command "money give %player% 80000"
- clear {Loteria.numero_vencedor}
- clear {Loteria.vencedor}
- stop
- else:
- send "&1Voce errou!"
- command /loteriacanelar:
- trigger:
- if player has permission "TLoteria.iniciar":
- if {Loteria.iniciada} is true:
- set {Loteria.iniciada} to false
- broadcast " "
- broadcast "{@Tag} &7A Loteria Cancelada, Ninguem acertou no numero correto!"
- broadcast "{@Tag} &7Numero Correto: &3%{Loteria.numero_vencedor}%"
- broadcast " "
- clear {Loteria.numero_vencedor}
- clear {Loteria.vencedor}
- stop
- command /loteriaresposta:
- trigger:
- if player has permission "TLoteria.iniciar":
- if {Loteria.iniciada} is true:
- send "&cResposta Correta é: %{Loteria.numero_vencedor}%"
- stop
- command /forcestartloteria [<text>]:
- trigger:
- if player has permission "TLoteria.iniciar":
- if arg 1 is set:
- set {Loteria.iniciada} to true
- set {Loteria.numero_vencedor} to arg 1
- loop {@Anuncios} times:
- if {Loteria.iniciada} is true:
- broadcast " "
- broadcast "{@Tag} &7Evento Loteria Esta Aberto"
- broadcast "{@Tag} &7Para Participar digita: /loteria [numero]"
- broadcast "{@Tag} &7Numero pode ser de 0 a &3{@NM}&7!"
- broadcast " "
- wait {@TempoEntre} seconds
- if {Loteria.iniciada} is true:
- if {Loteria.vencedor} is false:
- set {Loteria.iniciada} to false
- broadcast " "
- broadcast "{@Tag} &&A Loteria acabou, Ninguem acertou no numero correto!"
- broadcast "{@Tag} &7Numero Correto: &3%{Loteria.numero_vencedor}%"
- broadcast " "
- wait 1 tick
- clear {Loteria.numero_vencedor}
- clear {Loteria.vencedor}
- every {@TEMPO.LOTERIA} minute:
- if {@LOTERIA.AUTOMATICA} is true:
- make console execute command "loteriainiciar"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement