Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- # The variable containing the player's currency, or player's money for external plugin economies with Vaul
- # This variable should always contain an numerical value.
- #currency: {skeconomy.%player%.money.total}
- # --- Slots ---
- # The inital amount of money to pay to play slots
- slots-pay: 50
- # The money recieved for minor wins
- slots-win-minor: 100
- # The money recieved for a jackpot
- slots-jackpot: 500
- on sign change:
- player has permission "casino.slots"
- if line 1 of block is "Slots":
- set line 1 of block to "&2&lCasino"
- set line 3 of block to "&8Click to spin"
- set line 4 of block to "&8Cost: &a$50"
- on right click on sign:
- if line 1 of block is "&2&lCasino":
- line 3 of block is "&8Click to spin"
- line 4 of block is "&8Cost: &a$50"
- if player's balance is less than {@slots-pay}:
- message "&cYou don't have enough money"
- stop
- remove {@slots-pay} from player's balance
- set line 3 of block to "&8Spinning..."
- loop 60 times:
- set {_reel1} to a random integer between 1 and 10
- set {_reel2} to a random integer between 1 and 10
- set {_reel3} to a random integer between 1 and 10
- if {_reel1} is 1:
- set {_reel1} to "■"
- if {_reel1} is 2:
- set {_reel1} to "&c♥&r"
- if {_reel1} is 3:
- set {_reel1} to "&c♦&r"
- if {_reel1} is 4:
- set {_reel1} to "♣"
- if {_reel1} is 5:
- set {_reel1} to "♠"
- if {_reel1} is 6:
- set {_reel1} to "○"
- if {_reel1} is 7:
- set {_reel1} to "•"
- if {_reel1} is 8:
- set {_reel1} to "&4☼&r"
- if {_reel1} is 9:
- set {_reel1} to "&6▲&r"
- if {_reel1} is 10:
- set {_reel1} to "&9▼&r"
- if {_reel2} is 1:
- set {_reel2} to "■"
- if {_reel2} is 2:
- set {_reel2} to "&c♥&r"
- if {_reel2} is 3:
- set {_reel2} to "&c♦&r"
- if {_reel2} is 4:
- set {_reel2} to "♣"
- if {_reel2} is 5:
- set {_reel2} to "♠"
- if {_reel2} is 6:
- set {_reel2} to "○"
- if {_reel2} is 7:
- set {_reel2} to "•"
- if {_reel2} is 8:
- set {_reel2} to "&4☼&r"
- if {_reel2} is 9:
- set {_reel2} to "&6▲&r"
- if {_reel2} is 10:
- set {_reel2} to "&9▼&r"
- if {_reel3} is 1:
- set {_reel3} to "■"
- if {_reel3} is 2:
- set {_reel3} to "&c♥&r"
- if {_reel3} is 3:
- set {_reel3} to "&c♦&r"
- if {_reel3} is 4:
- set {_reel3} to "♣"
- if {_reel3} is 5:
- set {_reel3} to "♠"
- if {_reel3} is 6:
- set {_reel3} to "○"
- if {_reel3} is 7:
- set {_reel3} to "•"
- if {_reel3} is 8:
- set {_reel3} to "&4☼&r"
- if {_reel3} is 9:
- set {_reel3} to "&6▲&r"
- if {_reel3} is 10:
- set {_reel3} to "&9▼&r"
- set line 2 of block to "%{_reel1}% %{_reel2}% %{_reel3}%"
- wait 1 tick
- set line 3 of block to "&8Click to spin"
- if {_reel1} is {_reel2}:
- if {_reel1} is {_reel3}:
- add {@slots-jackpot} to player's balance
- broadcast "&2%player% &7won the casino jackpot"
- if {_reel1} is {_reel2}:
- if {_reel2} is {_reel3}:
- if {_reel3} is {_reel1}:
- add {@slots-win-minor} to player's balance
- broadcast "&2%player% &7received &a$100 &7from the casino"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement