knugi

Untitled

Jun 30th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. options:
  2. #tu wpisujesz jaką chcesz mieć komendę na GUI (domyslnie /waluta)
  3. komenda: waluta
  4. on join:
  5. if {DUDI::waluta::%player%} is not set:
  6. set {DUDI::waluta::%player%} to 0
  7. every 10 minutes:
  8. loop all players:
  9. if {DUDI::waluta::%loop-player%} is not set:
  10. set {DUDI::waluta::%loop-player%} to 0
  11. add 3 to {DUDI::waluta::%loop-player%}
  12. command /{@komenda} [<text>]:
  13. trigger:
  14. set {_x} to chest with 1 rows named "Waluta"
  15. set slot 0 of {_x} to iron block named "OBIERZ VIP'a" with lore "Koszt: 65 walut.||Posiadasz: %{DUDI::waluta::%player%}% walut."
  16. set slot 8 of {_x} to gold block named "OBIERZ HELPERA'a" with lore "Koszt: 180 walut.||Posiadasz: %{DUDI::waluta::%player%}% walut."
  17. open {_x} to player
  18. on inventory click:
  19. if inventory name of player's current inventory is "Waluta":
  20. cancel event
  21. if clicked slot is 0:
  22. if {DUDI::waluta::%player%} is larger than or equal to 65:
  23. remove 65 from {DUDI::waluta::%player%}
  24. execute console command "pex user %player% group set VIP"
  25. close player's inventory
  26. send "Zakupiles vipa."
  27. stop
  28. send "Nie masz tylu walut."
  29. stop
  30. if clicked slot is 8:
  31. if {DUDI::waluta::%player%} is larger than or equal to 180:
  32. remove 180 from {DUDI::waluta::%player%}
  33. execute console command "pex user %player% group set HELPER"
  34. close player's inventory
  35. send "Zakupiles HELPERA"
  36. stop
  37. send "Nie masz tylu walut."
  38. stop
Advertisement
Add Comment
Please, Sign In to add comment