Advertisement
Cool_Colton

skript

Jul 21st, 2020
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.97 KB | None | 0 0
  1. command /vote:
  2. trigger:
  3. create new gui with id "vote" with virtual chest named " &7>=&aVOTING&7=<" with 3 rows:
  4. open gui with id "vote" to player
  5. loop integers between 0 and 26:
  6. format gui slot loop-integer of player with gray glass pane named "&aVote Menu"
  7. format gui slot 4 of player with end crystal named "&3Time before next event: &a%{event::timer}%"
  8. format gui slot 9 of player with coal named "&2Loot chest" to run:
  9. if {%player's uuid%::hasvoted} is not set:
  10. add 1 to {vote::loot}
  11. set {%player's uuid%::hasvoted} to true
  12. else:
  13. send "&aYou have already voted for the next event"
  14.  
  15. format gui slot 11 of player with redstone named "&6Everyone gets 5 coin+" to run:
  16. if {%player's uuid%::hasvoted} is not set:
  17. add 1 to {vote::coin+}
  18. set {%player's uuid%::hasvoted} to true
  19. else:
  20. send "&aYou have already voted for the next event"
  21.  
  22. format gui slot 13 of player with iron ingot named "&bEveryone gets $1200" to run:
  23. if {%player's uuid%::hasvoted} is not set:
  24. add 1 to {vote::1200}
  25. set {%player's uuid%::hasvoted} to true
  26. else:
  27. send "&aYou have already voted for the next event"
  28.  
  29. format gui slot 15 of player with emerald named "&230m 3x speed xp booster" to run:
  30. if {%player's uuid%::hasvoted} is not set:
  31. add 1 to {vote::speed}
  32. set {%player's uuid%::hasvoted} to true
  33. else:
  34. send "&aYou have already voted for the next event"
  35.  
  36. format gui slot 17 of player with diamond named "&960m 5x strength xp booster" to run:
  37. if {%player's uuid%::hasvoted} is not set:
  38. add 1 to {vote::strength}
  39. set {%player's uuid%::hasvoted} to true
  40. else:
  41. send "&aYou have already voted for the next event"
  42.  
  43. format gui slot 22 of player with barrier named "Close" to close
  44.  
  45.  
  46. every 3 hours in world "world":
  47. set {_1} to -1
  48. set {_2} to -1
  49. set {_3} to -1
  50. set {_4} to -1
  51. set {_5} to -1
  52.  
  53. set {_1} to {vote::strength}
  54. set {_1th} to "60m Strength Booster"
  55.  
  56. if {vote::speed} is more than {_1}:
  57. set {_2} to {_1}
  58. set {_2th} to {_1th}
  59. set {_1} to {vote::speed}
  60. set {_1th} to "30m Speed Booster"
  61. else if {vote::speed} is more than {_2}:
  62. set {_2} to {vote::speed}
  63. set {_2th} to "30m Speed Booster"
  64.  
  65. if {vote::1200} is more than {_1}:
  66. set {_3} to {_2}
  67. set {_3th} to {_2th}
  68. set {_2} to {_1}
  69. set {_2th} to {_1th}
  70. set {_1} to {vote::1200}
  71. set {_1th} to "$1200"
  72. else if {vote::1200} is more than {_2}:
  73. set {_3} to {_2}
  74. set {_3th} to {_2th}
  75. set {_2} to {vote::1200}
  76. set {_2th} to "$1200"
  77. else if {vote::1200} is more than {_3}:
  78. set {_3} to {vote::1200}
  79. set {_3th} to "$1200"
  80.  
  81. if {vote::coin+} is more than {_1}:
  82. set {_4} to {_3}
  83. set {_4th} to {_3th}
  84. set {_3} to {_2}
  85. set {_3th} to {_2th}
  86. set {_2} to {_1}
  87. set {_2th} to {_1th}
  88. set {_1} to {vote::coin+}
  89. set {_1th} to "5 coin+"
  90. else if {vote::coin+} is more than {_2}:
  91. set {_4} to {_3}
  92. set {_4th} to {_3th}
  93. set {_3} to {_2}
  94. set {_3th} to {_2th}
  95. set {_2} to {vote::coin+}
  96. set {_2th} to "5 coin+"
  97. else if {vote::coin+} is more than {_3}:
  98. set {_4} to {_3}
  99. set {_4th} to {_3th}
  100. set {_3} to {vote::coin+}
  101. set {_3th} to "5 coin+"
  102. else if {vote::coin+} is more than {_4}:
  103. set {_4} to {vote::coin+}
  104. set {_4th} to "5 coin+"
  105.  
  106. if {vote::loot} is more than {_1}:
  107. set {_5} to {_4}
  108. set {_5th} to {_4th}
  109. set {_4} to {_3}
  110. set {_4th} to {_3th}
  111. set {_3} to {_2}
  112. set {_3th} to {_2th}
  113. set {_2} to {_1}
  114. set {_2th} to {_1th}
  115. set {_1} to {vote::loot}
  116. set {_1th} to "Loot Chest"
  117. else if {vote::loot} is more than {_2}:
  118. set {_5} to {_4}
  119. set {_5th} to {_4th}
  120. set {_4} to {_3}
  121. set {_4th} to {_3th}
  122. set {_3} to {_2}
  123. set {_3th} to {_2th}
  124. set {_2} to {vote::loot}
  125. set {_2th} to "Loot Chest"
  126. else if {vote::loot} is more than {_3}:
  127. set {_5} to {_4}
  128. set {_5th} to {_4th}
  129. set {_4} to {_3}
  130. set {_4th} to {_3th}
  131. set {_3} to {vote::loot}
  132. set {_3th} to "Loot Chest"
  133. else if {vote::loot} is more than {_4}:
  134. set {_5} to {_4}
  135. set {_5th} to {_4th}
  136. set {_4} to {vote::loot}
  137. set {_4th} to "Loot Chest"
  138. else if {vote::loot} is more than {_5}:
  139. set {_5} to {vote::loot}
  140. set {_5th} to "Loot Chest"
  141.  
  142. broadcast ""
  143. broadcast "&2The votes for the past 3 hours are:"
  144. broadcast "&51st: &a%{_1th}% &bwith %{_1}% votes"
  145. broadcast "&52nd: &6%{_2th}% &bwith %{_2}% votes"
  146. broadcast "&53rd: &6%{_3th}% &bwith %{_3}% votes"
  147. broadcast "&54th: &3%{_4th}% &bwith %{_4}% votes"
  148. broadcast "&55th: &3%{_5th}% &bwith %{_5}% votes"
  149. broadcast ""
  150.  
  151. set {vote::loot} to 0
  152. set {vote::coin+} to 0
  153. set {vote::1200} to 0
  154. set {vote::speed} to 0
  155. set {vote::strength} to 0
  156.  
  157. if {_1th} is "Loot Chest":
  158. set {_thing} to a random integer between 1 and 5
  159. if {_thing} is 1:
  160. set block at location at -608, 63, 1380 in world "world" to chest
  161. broadcast "-608, 63, 1380"
  162. if {_thing} is 2:
  163. set block at location at -711, 63, 1395 in world "world" to chest
  164. broadcast "-711, 63, 1395"
  165. if {_thing} is 3:
  166. set block at location at -695, 63, 1333 in world "world" to chest
  167. broadcast "-695, 63, 1333"
  168. if {_thing} is 4:
  169. set block at location at -766, 59, 1380 in world "world" to chest
  170. broadcast "-766, 59, 1380"
  171. if {_thing} is 5:
  172. set block at location at -766, 59, 1380 in world "world" to chest
  173. broadcast "-766, 59, 1380"
  174.  
  175. if {_1th} is "5 coin+":
  176. loop all players:
  177. give loop-player 5 sunflower named "&6&lCoin +"
  178.  
  179. if {_1th} is "$1200":
  180. loop all players:
  181. add 1200 to loop-player's balance
  182. if {_1th} is "30m Speed Booster":
  183.  
  184.  
  185. if {_1th} is "60m Strength Booster":
  186. wait 1 seconds
  187. set {strengthbooster} to 5
  188. broadcast "&25x Strength Booster enabled for 60 minutes"
  189. wait 60 minutes
  190. delete {strengthbooster}
  191.  
  192.  
  193. loop {players::*}:
  194. delete {%loop-value%::hasvoted}
  195.  
  196. on join:
  197. loop {players::*}:
  198. if loop-value is player's uuid:
  199. set {hasjoined::%player's uuid%} to true
  200. if {hasjoined::%player's uuid%} is not set:
  201. add player's uuid to {players::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement