NoHacksJustACow

Ree Random

Feb 11th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.79 KB | None | 0 0
  1. command /buy:
  2. trigger:
  3. open virtual chest inventory with 3 rows named "&cServer Store!" to player
  4. format gui slot 10 of player with paper named "&cRankup GUI" to run:
  5. make player execute command "rgui"
  6. send "&cOpening&7 Rankup GUI!"
  7. command /rgui:
  8. trigger:
  9. set {b} to "&cB>"
  10. set {c} to "&CC>"
  11. set {d} to "&cD>"
  12. set {e} to "&CE>"
  13. open virtual chest inventory with 3 rows named "&cRankup GUI" to player
  14. format gui slot 0 of player with paper named "&cB Rank" to run:
  15. if {coins.%player%} >= 500:
  16. send "&cSuccesfully ranked up to&7 B&c Rank!"
  17. subtract 500 from {coins.%player%}
  18. send "&cYou now have&7 (%{coins.%player%}%)&c Coins"
  19. broadcast "&7%player%&c Has ranked up to&7 B&C rank!"
  20. make console execute command "pex user %player% add b.rank"
  21. make player execute command "warp b"
  22. set {b} to true
  23. else if {coins.%player%} < 500:
  24. send "&cYou do not have enough coins to rankup&7 (%{coins.%player%}%/500)!"
  25. format gui slot 1 of player with paper named "&cC Rank" to run:
  26. if {coins.%player%} >= 1500:
  27. send "&cSuccesfully ranked up to C&C Rank!"
  28. subtract 1500 from {coins.%player%}
  29. send "&cYou now have&7 (%{coins.%Player%}%)&c Coins"
  30. broadcast "&7%player%&c Has ranked up to&7 B&C rank!"
  31. make console execute command "pex user %player% add c.rank"
  32. make player execute command "warp c"
  33. set {c} to true
  34. else if {coins.%player%} < 1500:
  35. send "&cYou do not have enough coins to rankup&7 (%{coins.%player%}%)/1500!"
  36. format gui slot 2 of player with paper named "&cD Rank" to run:
  37. if {coins.%player%} >= 3000:
  38. send "&cSuccesfully ranked up to D&C Rank!"
  39. subtract 3000 from {coins.%player%}
  40. send "&cYou now have&7 (%{coins.%Player%}%)&c Coins"
  41. broadcast "&7%player%&c Has ranked up to&7 D&C rank!"
  42. make console execute command "pex user %player% add d.rank"
  43. make player execute command "warp d"
  44. set {d} to true
  45. else if {coins.%player%} < 3000:
  46. send "&cYou do not have enough coins to rankup&7 (%{coins.%player%}%)/3000!"
  47. format gui slot 3 of player with paper named "&cE Rank" to run:
  48. if {coins.%player%} >= 5000:
  49. send "&cSuccesfully ranked up to E&C Rank!"
  50. subtract 5000 from {coins.%player%}
  51. send "&cYou now have&7 (%{coins.%Player%}%)&c Coins"
  52. broadcast "&7%player%&c Has ranked up to&7 E&C rank!"
  53. make console execute command "pex user %player% add e.rank"
  54. make player execute command "warp E"
  55. set {e} to true
  56. else if {coins.%player%} < 5000:
  57. send "&cYou do not have enough coins to rankup&7 (%{coins.%player%}%)/5000!"
  58.  
  59. command /creset:
  60. trigger:
  61. send "&cSetting your&7 Coins to 0!"
  62. set {coins.%player%} to 0
  63. command /cset:
  64. trigger:
  65. send "&cOk"
  66. add 1000 to {coins.%player%}
  67.  
  68. on first join:
  69. broadcast "&chey"
  70. set {a} to true
  71.  
  72. chat:
  73. cancel event
  74. if {a} is true:
  75. broadcast "&cA>&7 %player% &b %message%"
  76. else if {b} is true:
  77. broadcast "&CB>&7 %player% &b %message%"
  78. else if {c} is true:
  79. broadcast "&cC>&7 %player% &b %message%"
  80. else if {d} is true:
  81. broadcast "&cD>&7 %player% &b %message%"
  82. else if {e} is true:
  83. broadcast "&cE>&7 %player% &b %message%"
Advertisement
Add Comment
Please, Sign In to add comment