Guest User

Untitled

a guest
Feb 18th, 2015
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. options:
  2. NumeroMax: 2
  3. Preco: 150
  4. Tickets: 1
  5. PremioMin: 5000
  6. PremioMax: 10000
  7. P: &6[&eCassino&6]
  8. Ganhou: &eVocê ganhou &aPrêmio: &6%{premio}%!
  9. Perdeu1: &eLinha 1 e 2 não são iguais,voce perdeu!
  10. Perdeu2: &eLinha 1 e 3 não são iguais,voce perdeu!
  11.  
  12. variables:
  13. {espera.%player%} = false
  14.  
  15.  
  16.  
  17. on rightclick on a sign:
  18. line 1 of the clicked block is "&4&l[Cassino]"
  19. line 2 of the clicked block is ""
  20. line 3 of the clicked block is ""
  21. line 4 of the clicked block is ""
  22. if {ticket.%player%} is more than or equal to {@Tickets}:
  23. if {espera.%player%} is false:
  24. set {_numero.%player%} to random integer from 1 to {@NumeroMax}
  25. set {_numero2.%player%} to random integer from 1 to {@NumeroMax}
  26. set {_numero3.%player%} to random integer from 1 to {@NumeroMax}
  27. set {premio} to random integer from {@PremioMin} to {@PremioMax}
  28. subtract {@Tickets} from {ticket.%player%}
  29. set {espera.%player%} to true
  30. send "&aCalculando..."
  31. wait 4 seconds
  32. set line 2 of event-block to "%{_numero.%player%}%"
  33. set line 3 of event-block to "%{_numero2.%player%}%"
  34. set line 4 of event-block to "%{_numero3.%player%}%"
  35. wait 5 seconds
  36. set line 2 of event-block to ""
  37. set line 3 of event-block to ""
  38. set line 4 of event-block to ""
  39. if {_numero.%player%} is equal to {_numero2.%player%}:
  40. if {_numero.%player%} is equal to {_numero3.%player%}:
  41. add {premio} to player's account
  42. send "{@P} {@Ganhou}"
  43. else:
  44. send "{@P} {@Perdeu2}"
  45. else:
  46. send "{@P} {@Perdeu1}"
  47. wait 10 seconds
  48. set {espera.%player%} to false
  49. else:
  50. send "&eCalculando, aguarde!"
  51. else:
  52. send "&eCompre um ticket antes, Use /ticket"
  53.  
  54.  
  55. on rightclick on a sign:
  56. line 1 of the clicked block is "&4&l[Ticket]"
  57. line 2 of the clicked block is ""
  58. line 3 of the clicked block is ""
  59. line 4 of the clicked block is ""
  60. if player's account is more than or equal to {@Preco}:
  61. add 1 to {ticket.%player%}
  62. send "&eVocê comprou um ticket por {@Preco}. &aVocê tem %{ticket.%player%}% tickets"
  63. subtract {@Preco} from player's account
  64. else:
  65. send "&eVocê não tem {@Preco} coins!"
  66.  
  67. command /ticket:
  68. trigger:
  69. if player's account is more than or equal to {@Preco}:
  70. add 1 to {ticket.%player%}
  71. send "&eVocê comprou um ticket por {@Preco}. &aVocê tem %{ticket.%player%}% tickets"
  72. subtract {@Preco} from player's account
Advertisement
Add Comment
Please, Sign In to add comment