Advertisement
MackysPastebinACC

Rankup Skript & Prestige Skript :) HELP

Aug 30th, 2021
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.70 KB | None | 0 0
  1. options:
  2. A: 200000
  3. B: 400000
  4. C: 800000
  5. D: 1200000
  6. E: 2000000
  7. F: 3500000
  8. G: 5000000
  9. H: 10000000
  10. I: 15000000
  11. J: 20000000
  12. K: 30000000
  13. L: 40000000
  14. M: 50000000
  15. N: 60000000
  16. O: 80000000
  17. P: 100000000
  18. Q: 150000000
  19. R: 200000000
  20. S: 400000000
  21. T: 600000000
  22. U: 800000000
  23. V: 1000000000
  24. W: 2000000000
  25. X: 4000000000
  26. Y: 6000000000
  27. Z: 1000000000000
  28. command /rankup:
  29. trigger:
  30. rankup(player)
  31. command /rank:
  32. trigger:
  33. send "&aYour rank: %{rank::%player's uuid%}%%nl%&aYour prestige: &c%{prestige::%player's uuid%}%"
  34. function rankup(P: player):
  35. set {_U} to {_P}'s uuid
  36. if {prestige::%{_U}%} isn't set:
  37. set {prestige::%{_U}%} to 0
  38. set {prestige::cost::%{_U}%} to 1000000
  39. if {rank::%{_U}%} isn't set:
  40. set {rank::%{_U}%} to "&cNot set"
  41. open chest inventory with 3 rows named "&a&lRankup" to {_P}
  42. set {_var} to -1
  43. set {_var2} to 17
  44. loop 9 times:
  45. add 1 to {_var}
  46. add 1 to {_var2}
  47. set slot {_var} and {_var2} of {_P}'s current inventory to black stained glass pane named ""
  48. set slot 12 of {_P}'s current inventory to green concrete named "&a&lConfirm Rankup!"
  49. set slot 14 of {_P}'s current inventory to red concrete named "&c&lClose"
  50. command /prestige:
  51. trigger:
  52. if {rank::%player's uuid%} is "&8[&a&lZ&8]":
  53. if player's balance >= {prestige::cost::%player's uuid%}:
  54. take {prestige::cost::%player's uuid%} from player's balance
  55. add 1000000 to {prestige::cost::%player's uuid%}
  56. add 1 to {prestige::%player's uuid%}
  57. set {rank::%player's uuid%} to "&8[&a&lA&8]"
  58. broadcast "&a&l%player%&c&l has entered prestige: %{prestige::%player's uuid%}%"
  59. else:
  60. send "&cYou dont have enough money to prestige!"
  61.  
  62. on inventory click:
  63. if name of player's current inventory contains "&a&lRankup":
  64. cancel event
  65. if click inventory isn't player's inventory:
  66. if index of event-slot is 14:
  67. close player's inventory
  68. if index of event-slot is 12:
  69. if {rank::%player's uuid%} is "&cNot set":
  70. if player's balance >= {@A}:
  71. remove {@A} from player's balance
  72. set {rank::%player's uuid%} to "&8[&a&lA&8]"
  73. send "&cYou have rankup to &a&lA"
  74. else:
  75. send "&cYou dont have enough money to rankup!"
  76. else if {rank::%player's uuid%} is "&8[&a&lA&8]":
  77. if player's balance >= {@B}:
  78. remove {@B} from player's balance
  79. set {rank::%player's uuid%} to "&8[&a&lB&8]"
  80. send "&cYou have rankup to &a&lB"
  81. else:
  82. send "&cYou dont have enough money to rankup!"
  83. else if {rank::%player's uuid%} is "&8[&a&lB&8]":
  84. if player's balance >= {@C}:
  85. remove {@C} from player's balance
  86. set {rank::%player's uuid%} to "&8[&a&lC&8]"
  87. send "&cYou have rankup to &a&lC"
  88. else:
  89. send "&cYou dont have enough money to rankup!"
  90. else if {rank::%player's uuid%} is "&8[&a&lC&8]":
  91. if player's balance >= {@D}:
  92. remove {@D} from player's balance
  93. set {rank::%player's uuid%} to "&8[&a&lD&8]"
  94. send "&cYou have rankup to &a&lD"
  95. else:
  96. send "&cYou dont have enough money to rankup!"
  97. else if {rank::%player's uuid%} is "&8[&a&lD&8]":
  98. if player's balance >= {@E}:
  99. remove {@E} from player's balance
  100. set {rank::%player's uuid%} to "&8[&a&lE&8]"
  101. send "&cYou have rankup to &a&lE"
  102. else:
  103. send "&cYou dont have enough money to rankup!"
  104. else if {rank::%player's uuid%} is "&8[&a&lE&8]":
  105. if player's balance >= {@F}:
  106. remove {@F} from player's balance
  107. set {rank::%player's uuid%} to "&8[&a&lF&8]"
  108. send "&cYou have rankup to &a&lF"
  109. else:
  110. send "&cYou dont have enough money to rankup!"
  111. else if {rank::%player's uuid%} is "&8[&a&lF&8]":
  112. if player's balance >= {@G}:
  113. remove {@G} from player's balance
  114. set {rank::%player's uuid%} to "&8[&a&lG&8]"
  115. send "&cYou have rankup to &a&lG"
  116. else:
  117. send "&cYou dont have enough money to rankup!"
  118. else if {rank::%player's uuid%} is "&8[&a&lG&8]":
  119. if player's balance >= {@H}:
  120. remove {@H} from player's balance
  121. set {rank::%player's uuid%} to "&8[&a&lH&8]"
  122. send "&cYou have rankup to &a&lH"
  123. else:
  124. send "&cYou dont have enough money to rankup!"
  125. else if {rank::%player's uuid%} is "&8[&a&lH&8]":
  126. if player's balance >= {@I}:
  127. remove {@I} from player's balance
  128. set {rank::%player's uuid%} to "&8[&a&lI&8]"
  129. send "&cYou have rankup to &a&lI"
  130. else:
  131. send "&cYou dont have enough money to rankup!"
  132. else if {rank::%player's uuid%} is "&8[&a&lI&8]":
  133. if player's balance >= {@J}:
  134. remove {@J} from player's balance
  135. set {rank::%player's uuid%} to "&8[&a&lJ&8]"
  136. send "&cYou have rankup to &a&lJ"
  137. else:
  138. send "&cYou dont have enough money to rankup!"
  139. else if {rank::%player's uuid%} is "&8[&a&lJ&8]":
  140. if player's balance >= {@K}:
  141. remove {@K} from player's balance
  142. set {rank::%player's uuid%} to "&8[&a&lK&8]"
  143. send "&cYou have rankup to &a&lK"
  144. else:
  145. send "&cYou dont have enough money to rankup!"
  146. else if {rank::%player's uuid%} is "&8[&a&lK&8]":
  147. if player's balance >= {@L}:
  148. remove {@L} from player's balance
  149. set {rank::%player's uuid%} to "&8[&a&lL&8]"
  150. send "&cYou have rankup to &a&lL"
  151. else:
  152. send "&cYou dont have enough money to rankup!"
  153. else if {rank::%player's uuid%} is "&8[&a&lL&8]":
  154. if player's balance >= {@M}:
  155. remove {@M} from player's balance
  156. set {rank::%player's uuid%} to "&8[&a&lM&8]"
  157. send "&cYou have rankup to &a&lM"
  158. else:
  159. send "&cYou dont have enough money to rankup!"
  160. else if {rank::%player's uuid%} is "&8[&a&lM&8]":
  161. if player's balance >= {@N}:
  162. remove {@N} from player's balance
  163. set {rank::%player's uuid%} to "&8[&a&lN&8]"
  164. send "&cYou have rankup to &a&lN"
  165. else:
  166. send "&cYou dont have enough money to rankup!"
  167. else if {rank::%player's uuid%} is "&8[&a&lN&8]":
  168. if player's balance >= {@O}:
  169. remove {@O} from player's balance
  170. set {rank::%player's uuid%} to "&8[&a&lO&8]"
  171. send "&cYou have rankup to &a&lO"
  172. else:
  173. send "&cYou dont have enough money to rankup!"
  174. else if {rank::%player's uuid%} is "&8[&a&lO&8]":
  175. if player's balance >= {@P}:
  176. remove {@P} from player's balance
  177. set {rank::%player's uuid%} to "&8[&a&lP&8]"
  178. send "&cYou have rankup to &a&lP"
  179. else:
  180. send "&cYou dont have enough money to rankup!"
  181. else if {rank::%player's uuid%} is "&8[&a&lP&8]":
  182. if player's balance >= {@Q}:
  183. remove {@Q} from player's balance
  184. set {rank::%player's uuid%} to "&8[&a&lQ&8]"
  185. send "&cYou have rankup to &a&lQ"
  186. else:
  187. send "&cYou dont have enough money to rankup!"
  188. else if {rank::%player's uuid%} is "&8[&a&lQ&8]":
  189. if player's balance >= {@R}:
  190. remove {@R} from player's balance
  191. set {rank::%player's uuid%} to "&8[&a&lR&8]"
  192. send "&cYou have rankup to &a&lR"
  193. else:
  194. send "&cYou dont have enough money to rankup!"
  195. else if {rank::%player's uuid%} is "&8[&a&lR&8]":
  196. if player's balance >= {@S}:
  197. remove {@S} from player's balance
  198. set {rank::%player's uuid%} to "&8[&a&lS&8]"
  199. send "&cYou have rankup to &a&lS"
  200. else:
  201. send "&cYou dont have enough money to rankup!"
  202. else if {rank::%player's uuid%} is "&8[&a&lS&8]":
  203. if player's balance >= {@T}:
  204. remove {@T} from player's balance
  205. set {rank::%player's uuid%} to "&8[&a&lT&8]"
  206. send "&cYou have rankup to &a&lT"
  207. else:
  208. send "&cYou dont have enough money to rankup!"
  209. else if {rank::%player's uuid%} is "&8[&a&lT&8]":
  210. if player's balance >= {@U}:
  211. remove {@U} from player's balance
  212. set {rank::%player's uuid%} to "&8[&a&lU&8]"
  213. send "&cYou have rankup to &a&lU"
  214. else:
  215. send "&cYou dont have enough money to rankup!"
  216. else if {rank::%player's uuid%} is "&8[&a&lU&8]":
  217. if player's balance >= {@V}:
  218. remove {@V} from player's balance
  219. set {rank::%player's uuid%} to "&8[&a&lV&8]"
  220. send "&cYou have rankup to &a&lV"
  221. else:
  222. send "&cYou dont have enough money to rankup!"
  223. else if {rank::%player's uuid%} is "&8[&a&lV&8]":
  224. if player's balance >= {@W}:
  225. remove {@W} from player's balance
  226. set {rank::%player's uuid%} to "&8[&a&lW&8]"
  227. send "&cYou have rankup to &a&lW"
  228. else:
  229. send "&cYou dont have enough money to rankup!"
  230. else if {rank::%player's uuid%} is "&8[&a&lW&8]":
  231. if player's balance >= {@X}:
  232. remove {@X} from player's balance
  233. set {rank::%player's uuid%} to "&8[&a&lX&8]"
  234. send "&cYou have rankup to &a&lX"
  235. else:
  236. send "&cYou dont have enough money to rankup!"
  237. else if {rank::%player's uuid%} is "&8[&a&lX&8]":
  238. if player's balance >= {@Y}:
  239. remove {@Y} from player's balance
  240. set {rank::%player's uuid%} to "&8[&a&lY&8]"
  241. send "&cYou have rankup to &a&lY"
  242. else:
  243. send "&cYou dont have enough money to rankup!"
  244. else if {rank::%player's uuid%} is "&8[&a&lY&8]":
  245. if player's balance >= {@Z}:
  246. remove {@Z} from player's balance
  247. set {rank::%player's uuid%} to "&8[&a&lZ&8]"
  248. send "&cYou have rankup to &a&lZ"
  249. else:
  250. send "&cYou dont have enough money to rankup!"
  251.  
  252. on chat:
  253. if {p.%player%} is not set:
  254. set {p.%player%} to 0
  255. set {_f} to formatNumber({p.%player%})
  256. set the chat format to "&4%{rank::%player's uuid%}% &8[&c&l%{prestige::%player's uuid%}%&8] %player's prefix%%player% &8»&r %message%"
  257. else:
  258. set {_f} to formatNumber({p.%player%})
  259. set the chat format to "&4%{rank::%player's uuid%}% &8[&c&l%{prestige::%player's uuid%}%&8] %player's prefix%%player% &8»&r %message%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement