Zeldaboy111

ATM (2) ]|[ Skript #308

May 3rd, 2020
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. #©
  2. #- Reselling/Reuploading while claiming that it is yours or made by you is disallowed
  3. #- Do not edit it and upload it as your own
  4. #- While using it in a video, please feature everything under "Video"
  5. #©
  6. #
  7. #Video:
  8. #Skript made by Zeldaboy111
  9. #More content of the creator: https://forums.skunity.com/search/26443679/
  10. options:
  11. starterBalance: 2000
  12.  
  13. on enable:
  14. set {atm.guiItems::*} to diamond block, gold block, iron block, gold ingot, iron ingot, gold nugget, iron nugget
  15. set {atm.guiWorth::*} to 1000, 500, 100, 50, 10, 2 and 1
  16.  
  17. function drawOutline(p: Player, mat: Material, rows: Number):
  18. loop 9 times:
  19. set slot loop-value - 1 of {_p}'s current inventory to {_mat} named "&8"
  20. set slot ({_rows}*9) - loop-value of {_p}'s current inventory to {_mat} named "&8"
  21.  
  22. loop {_rows} times:
  23. set slot loop-value * 9 of {_p}'s current inventory to {_mat} named "&8"
  24. set slot loop-value * 9 - 1 of {_p}'s current inventory to {_mat} named "&8"
  25.  
  26. function drawBalance(p: Player):
  27. set {_balance} to {balance.atm.%{_p}%}
  28.  
  29. set {_slot} to 10
  30. loop {atm.guiWorth::*}:
  31. set {_amount} to 0
  32. set {_worth} to 0
  33. while {_balance} >= loop-value:
  34. add 1 to {_amount}
  35. add loop-value to {_worth}
  36. remove
Add Comment
Please, Sign In to add comment