Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- NumeroMax: 2
- Preco: 150
- Tickets: 1
- PremioMin: 5000
- PremioMax: 10000
- P: &6[&eCassino&6]
- Ganhou: &eVocê ganhou &aPrêmio: &6%{premio}%!
- Perdeu1: &eLinha 1 e 2 não são iguais,voce perdeu!
- Perdeu2: &eLinha 1 e 3 não são iguais,voce perdeu!
- variables:
- {espera.%player%} = false
- on rightclick on a sign:
- line 1 of the clicked block is "&4&l[Cassino]"
- line 2 of the clicked block is ""
- line 3 of the clicked block is ""
- line 4 of the clicked block is ""
- if {ticket.%player%} is more than or equal to {@Tickets}:
- if {espera.%player%} is false:
- set {_numero.%player%} to random integer from 1 to {@NumeroMax}
- set {_numero2.%player%} to random integer from 1 to {@NumeroMax}
- set {_numero3.%player%} to random integer from 1 to {@NumeroMax}
- set {premio} to random integer from {@PremioMin} to {@PremioMax}
- subtract {@Tickets} from {ticket.%player%}
- set {espera.%player%} to true
- send "&aCalculando..."
- wait 4 seconds
- set line 2 of event-block to "%{_numero.%player%}%"
- set line 3 of event-block to "%{_numero2.%player%}%"
- set line 4 of event-block to "%{_numero3.%player%}%"
- wait 5 seconds
- set line 2 of event-block to ""
- set line 3 of event-block to ""
- set line 4 of event-block to ""
- if {_numero.%player%} is equal to {_numero2.%player%}:
- if {_numero.%player%} is equal to {_numero3.%player%}:
- add {premio} to player's account
- send "{@P} {@Ganhou}"
- else:
- send "{@P} {@Perdeu2}"
- else:
- send "{@P} {@Perdeu1}"
- wait 10 seconds
- set {espera.%player%} to false
- else:
- send "&eCalculando, aguarde!"
- else:
- send "&eCompre um ticket antes, Use /ticket"
- on rightclick on a sign:
- line 1 of the clicked block is "&4&l[Ticket]"
- line 2 of the clicked block is ""
- line 3 of the clicked block is ""
- line 4 of the clicked block is ""
- if player's account is more than or equal to {@Preco}:
- add 1 to {ticket.%player%}
- send "&eVocê comprou um ticket por {@Preco}. &aVocê tem %{ticket.%player%}% tickets"
- subtract {@Preco} from player's account
- else:
- send "&eVocê não tem {@Preco} coins!"
- command /ticket:
- trigger:
- if player's account is more than or equal to {@Preco}:
- add 1 to {ticket.%player%}
- send "&eVocê comprou um ticket por {@Preco}. &aVocê tem %{ticket.%player%}% tickets"
- subtract {@Preco} from player's account
Advertisement
Add Comment
Please, Sign In to add comment