Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #©
- #- Reselling/Reuploading while claiming that it is yours or made by you is disallowed
- #- Do not edit it and upload it as your own
- #- While using it in a video, please feature everything under "Video"
- #©
- #
- #Video:
- #Skript made by Zeldaboy111
- #More content of the creator: https://forums.skunity.com/search/26443679/
- options:
- starterBalance: 2000
- function drawOutline(p: Player, mat: Material, rows: Number):
- loop 9 times:
- set slot loop-value - 1 of {_p}'s current inventory to {_mat} named "&8"
- set slot ({_rows}*9) - loop-value of {_p}'s current inventory to {_mat} named "&8"
- loop {_rows} times:
- set slot loop-value * 9 of {_p}'s current inventory to {_mat} named "&8"
- set slot loop-value * 9 - 1 of {_p}'s current inventory to {_mat} named "&8"
- function drawBalance(p: Player):
- command /atm:
- trigger:
- open chest with 5 rows named "&cATM %player%" to player
- wait 2 ticks
- drawOutline(player, gray stained glass pane, 5)
- drawBalance(player)
- on join:
- if {balance.atm.%player%} is not set:
- set {balance.atm.%player%} to 2000
- on inventory click:
- if type of clicked inventory is chest inventory:
- if inventory name of clicked inventory is "&cATM %player%":
- cancel event
Add Comment
Please, Sign In to add comment