Advertisement
Creatism

Untitled

Aug 13th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.96 KB | None | 0 0
  1. options:
  2. # The variable containing the player's currency, or player's money for external plugin economies with Vaul
  3. # This variable should always contain an numerical value.
  4. #currency: {skeconomy.%player%.money.total}
  5.  
  6. # --- Slots ---
  7. # The inital amount of money to pay to play slots
  8. slots-pay: 50
  9. # The money recieved for minor wins
  10. slots-win-minor: 100
  11. # The money recieved for a jackpot
  12. slots-jackpot: 500
  13. on sign change:
  14. player has permission "casino.slots"
  15. if line 1 of block is "Slots":
  16. set line 1 of block to "&2&lCasino"
  17. set line 3 of block to "&8Click to spin"
  18. set line 4 of block to "&8Cost: &a$50"
  19. on right click on sign:
  20. if line 1 of block is "&2&lCasino":
  21. line 3 of block is "&8Click to spin"
  22. line 4 of block is "&8Cost: &a$50"
  23. if player's balance is less than {@slots-pay}:
  24. message "&cYou don't have enough money"
  25. stop
  26. remove {@slots-pay} from player's balance
  27. set line 3 of block to "&8Spinning..."
  28. loop 60 times:
  29. set {_reel1} to a random integer between 1 and 10
  30. set {_reel2} to a random integer between 1 and 10
  31. set {_reel3} to a random integer between 1 and 10
  32. if {_reel1} is 1:
  33. set {_reel1} to "■"
  34. if {_reel1} is 2:
  35. set {_reel1} to "&c♥&r"
  36. if {_reel1} is 3:
  37. set {_reel1} to "&c♦&r"
  38. if {_reel1} is 4:
  39. set {_reel1} to "♣"
  40. if {_reel1} is 5:
  41. set {_reel1} to "♠"
  42. if {_reel1} is 6:
  43. set {_reel1} to "○"
  44. if {_reel1} is 7:
  45. set {_reel1} to "•"
  46. if {_reel1} is 8:
  47. set {_reel1} to "&4☼&r"
  48. if {_reel1} is 9:
  49. set {_reel1} to "&6▲&r"
  50. if {_reel1} is 10:
  51. set {_reel1} to "&9▼&r"
  52. if {_reel2} is 1:
  53. set {_reel2} to "■"
  54. if {_reel2} is 2:
  55. set {_reel2} to "&c♥&r"
  56. if {_reel2} is 3:
  57. set {_reel2} to "&c♦&r"
  58. if {_reel2} is 4:
  59. set {_reel2} to "♣"
  60. if {_reel2} is 5:
  61. set {_reel2} to "♠"
  62. if {_reel2} is 6:
  63. set {_reel2} to "○"
  64. if {_reel2} is 7:
  65. set {_reel2} to "•"
  66. if {_reel2} is 8:
  67. set {_reel2} to "&4☼&r"
  68. if {_reel2} is 9:
  69. set {_reel2} to "&6▲&r"
  70. if {_reel2} is 10:
  71. set {_reel2} to "&9▼&r"
  72. if {_reel3} is 1:
  73. set {_reel3} to "■"
  74. if {_reel3} is 2:
  75. set {_reel3} to "&c♥&r"
  76. if {_reel3} is 3:
  77. set {_reel3} to "&c♦&r"
  78. if {_reel3} is 4:
  79. set {_reel3} to "♣"
  80. if {_reel3} is 5:
  81. set {_reel3} to "♠"
  82. if {_reel3} is 6:
  83. set {_reel3} to "○"
  84. if {_reel3} is 7:
  85. set {_reel3} to "•"
  86. if {_reel3} is 8:
  87. set {_reel3} to "&4☼&r"
  88. if {_reel3} is 9:
  89. set {_reel3} to "&6▲&r"
  90. if {_reel3} is 10:
  91. set {_reel3} to "&9▼&r"
  92. set line 2 of block to "%{_reel1}% %{_reel2}% %{_reel3}%"
  93. wait 1 tick
  94. set line 3 of block to "&8Click to spin"
  95. if {_reel1} is {_reel2}:
  96. if {_reel1} is {_reel3}:
  97. add {@slots-jackpot} to player's balance
  98. broadcast "&2%player% &7won the casino jackpot"
  99. if {_reel1} is {_reel2}:
  100. if {_reel2} is {_reel3}:
  101. if {_reel3} is {_reel1}:
  102. add {@slots-win-minor} to player's balance
  103. broadcast "&2%player% &7received &a$100 &7from the casino"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement