Advertisement
Cool_Colton

Untitled

Jul 22nd, 2020
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.07 KB | None | 0 0
  1. command /vote:
  2. trigger:
  3. set {event::timer} to {eventtime}
  4. remove 4 hours from {event::timer}
  5. create new gui with id "vote" with virtual chest named " &7>=&aVOTING&7=<" with 3 rows:
  6. open gui with id "vote" to player
  7. loop integers between 0 and 26:
  8. format gui slot loop-integer of player with gray glass pane named "&r"
  9. format gui slot 4 of player with end crystal named "&3&lNext event at %{event::timer}% EST"
  10. format gui slot 9 of player with coal named "&2&lLoot chest" to run:
  11. if {%player's uuid%::hasvoted} is not set:
  12. add 1 to {vote::loot}
  13. set {%player's uuid%::hasvoted} to true
  14. else:
  15. send "&aYou have already voted for the next event"
  16.  
  17. format gui slot 11 of player with redstone named "&6&lEveryone gets 5 coin+" to run:
  18. if {%player's uuid%::hasvoted} is not set:
  19. add 1 to {vote::coin+}
  20. set {%player's uuid%::hasvoted} to true
  21. else:
  22. send "&aYou have already voted for the next event"
  23.  
  24. format gui slot 13 of player with iron ingot named "&b&lEveryone gets $1200" to run:
  25. if {%player's uuid%::hasvoted} is not set:
  26. add 1 to {vote::1200}
  27. set {%player's uuid%::hasvoted} to true
  28. else:
  29. send "&aYou have already voted for the next event"
  30.  
  31. format gui slot 15 of player with emerald named "&2&l30m Speedbooster" to run:
  32. if {%player's uuid%::hasvoted} is not set:
  33. add 1 to {vote::speed}
  34. set {%player's uuid%::hasvoted} to true
  35. else:
  36. send "&aYou have already voted for the next event"
  37.  
  38. format gui slot 17 of player with diamond named "&9&l60m Strengthbooster" to run:
  39. if {%player's uuid%::hasvoted} is not set:
  40. add 1 to {vote::strength}
  41. set {%player's uuid%::hasvoted} to true
  42. else:
  43. send "&aYou have already voted for the next event"
  44.  
  45. format gui slot 22 of player with barrier named "&c&lClose" to close
  46.  
  47.  
  48. every 10 seconds in world "world":
  49. set {_1} to -1
  50. set {_2} to -1
  51. set {_3} to -1
  52. set {_4} to -1
  53. set {_5} to -1
  54.  
  55. set {_1} to {vote::strength}
  56. set {_1th} to "60m Strength Booster"
  57.  
  58. if {vote::speed} is more than {_1}:
  59. set {_2} to {_1}
  60. set {_2th} to {_1th}
  61. set {_1} to {vote::speed}
  62. set {_1th} to "30m Speed Booster"
  63. else if {vote::speed} is more than {_2}:
  64. set {_2} to {vote::speed}
  65. set {_2th} to "30m Speed Booster"
  66.  
  67. if {vote::1200} is more than {_1}:
  68. set {_3} to {_2}
  69. set {_3th} to {_2th}
  70. set {_2} to {_1}
  71. set {_2th} to {_1th}
  72. set {_1} to {vote::1200}
  73. set {_1th} to "$1200"
  74. else if {vote::1200} is more than {_2}:
  75. set {_3} to {_2}
  76. set {_3th} to {_2th}
  77. set {_2} to {vote::1200}
  78. set {_2th} to "$1200"
  79. else if {vote::1200} is more than {_3}:
  80. set {_3} to {vote::1200}
  81. set {_3th} to "$1200"
  82.  
  83. if {vote::coin+} is more than {_1}:
  84. set {_4} to {_3}
  85. set {_4th} to {_3th}
  86. set {_3} to {_2}
  87. set {_3th} to {_2th}
  88. set {_2} to {_1}
  89. set {_2th} to {_1th}
  90. set {_1} to {vote::coin+}
  91. set {_1th} to "5 coin+"
  92. else if {vote::coin+} is more than {_2}:
  93. set {_4} to {_3}
  94. set {_4th} to {_3th}
  95. set {_3} to {_2}
  96. set {_3th} to {_2th}
  97. set {_2} to {vote::coin+}
  98. set {_2th} to "5 coin+"
  99. else if {vote::coin+} is more than {_3}:
  100. set {_4} to {_3}
  101. set {_4th} to {_3th}
  102. set {_3} to {vote::coin+}
  103. set {_3th} to "5 coin+"
  104. else if {vote::coin+} is more than {_4}:
  105. set {_4} to {vote::coin+}
  106. set {_4th} to "5 coin+"
  107.  
  108. if {vote::loot} is more than {_1}:
  109. set {_5} to {_4}
  110. set {_5th} to {_4th}
  111. set {_4} to {_3}
  112. set {_4th} to {_3th}
  113. set {_3} to {_2}
  114. set {_3th} to {_2th}
  115. set {_2} to {_1}
  116. set {_2th} to {_1th}
  117. set {_1} to {vote::loot}
  118. set {_1th} to "Loot Chest"
  119. else if {vote::loot} is more than {_2}:
  120. set {_5} to {_4}
  121. set {_5th} to {_4th}
  122. set {_4} to {_3}
  123. set {_4th} to {_3th}
  124. set {_3} to {_2}
  125. set {_3th} to {_2th}
  126. set {_2} to {vote::loot}
  127. set {_2th} to "Loot Chest"
  128. else if {vote::loot} is more than {_3}:
  129. set {_5} to {_4}
  130. set {_5th} to {_4th}
  131. set {_4} to {_3}
  132. set {_4th} to {_3th}
  133. set {_3} to {vote::loot}
  134. set {_3th} to "Loot Chest"
  135. else if {vote::loot} is more than {_4}:
  136. set {_5} to {_4}
  137. set {_5th} to {_4th}
  138. set {_4} to {vote::loot}
  139. set {_4th} to "Loot Chest"
  140. else if {vote::loot} is more than {_5}:
  141. set {_5} to {vote::loot}
  142. set {_5th} to "Loot Chest"
  143.  
  144. broadcast ""
  145. broadcast "&b&lSky&f&lEscape &b&lThe votes for the past 3 hours are:"
  146. broadcast "&7%{_1th}% &bwith %{_1}% votes"
  147. broadcast "&7%{_2th}% &bwith %{_2}% votes"
  148. broadcast "&7%{_3th}% &bwith %{_3}% votes"
  149. broadcast "&7%{_4th}% &bwith %{_4}% votes"
  150. broadcast "&7%{_5th}% &bwith %{_5}% votes"
  151. broadcast ""
  152.  
  153. set {vote::loot} to 0
  154. set {vote::coin+} to 0
  155. set {vote::1200} to 0
  156. set {vote::speed} to 0
  157. set {vote::strength} to 0
  158.  
  159. if {_1th} is "Loot Chest":
  160. set {_thing} to a random integer between 1 and 5
  161. if {_thing} is 1:
  162. set block at location at -608, 63, 1380 in world "world" to chest
  163. set {chest} to "-607.5, 63.5, 1380.5"
  164. broadcast "&aA loot chest has spawned! Get it fast for good loot, coords are: &4-608, 63, 1380"
  165. if {_thing} is 2:
  166. set block at location at -711, 63, 1395 in world "world" to chest
  167. set {chest} to "-710.5, 63.5, 1395.5"
  168. broadcast "&aA loot chest has spawned! Get it fast for good loot, coords are: &4-711, 63, 1395"
  169. if {_thing} is 3:
  170. set block at location at -695, 63, 1333 in world "world" to chest
  171. set {chest} to "-694.5, 63.5, 1333.5"
  172. broadcast "&aA loot chest has spawned! Get it fast for good loot, coords are: &4-695, 63, 1333"
  173. if {_thing} is 4:
  174. set block at location at -766, 59, 1380 in world "world" to chest
  175. set {chest} to "-765.5, 59.5, 1380.5"
  176. broadcast "&aA loot chest has spawned! Get it fast for good loot, coords are: &4-765, 59, 1380"
  177. if {_thing} is 5:
  178. set block at location at -766, 59, 1380 in world "world" to chest
  179. set {chest} to "-765.5, 59.5, 1380.5"
  180. broadcast "&aA loot chest has spawned! Get it fast for good loot, coords are: &4-765, 59, 1380"
  181.  
  182. if {_1th} is "5 coin+":
  183. loop all players:
  184. give loop-player 5 sunflower named "&6&lCoin +"
  185.  
  186. if {_1th} is "$1200":
  187. loop all players:
  188. add 1200 to loop-player's balance
  189. if {_1th} is "30m Speed Booster":
  190. set {speedbooster} to 3
  191.  
  192. if {_1th} is "60m Strength Booster":
  193. wait 1 seconds
  194. set {strengthbooster} to 5
  195. broadcast "&b5x Strength Booster enabled for 60 minutes"
  196. wait 60 minutes
  197. delete {strengthbooster}
  198.  
  199.  
  200. loop {players::*}:
  201. delete {%loop-value%::hasvoted}
  202.  
  203. on skript load:
  204. set {eventtime} to 3 hours from now
  205.  
  206. on right click on chest:
  207. cancel event
  208.  
  209. set {_coords} to event-block's location
  210. set {_coords} to "%{_coords}%"
  211. replace all "x: " with "" in {_coords}
  212. replace all "y: " with "" in {_coords}
  213. replace all "z: " with "" in {_coords}
  214. send "%{chest}%"
  215. send "%{_coords}%"
  216. if {_coords} is the same as {chest}:
  217. if {loot::opened} is not set:
  218. create new gui with id "loot" with virtual chest named " >=LOOT CHEST=<"
  219. open gui with id "loot" to player
  220. loop all integers from 1 to 27:
  221. format gui slot loop-integer of player with air
  222. set {_test} to stone sword named "&3Prisoner Sword"
  223. enchant {_test} with sharpness 2
  224. enchant {_test} with unbreaking 1
  225.  
  226. set {_helmet} to leather helmet named "&aPrisoner+ Helmet"
  227. enchant {_helmet} with protection 1
  228. enchant {_helmet} with unbreaking 1
  229. set {_chestplate} to leather chestplate named "&aPrisoner+ Chestplate"
  230. enchant {_chestplate} with protection 1
  231. enchant {_chestplate} with unbreaking 1
  232. set {_legs} to leather leggings named "&aPrisoner+ Leggings"
  233. enchant {_legs} with protection 1
  234. enchant {_legs} with unbreaking 1
  235. set {_boots} to leather boots named "&aPrisoner+ Boots"
  236. enchant {_boots} with protection 1
  237. enchant {_boots} with unbreaking 1
  238.  
  239. set {_number} to a random integer between 1 and 5
  240. format gui slot {_number} of player with {_test} to run:
  241. give player {_test}
  242. format gui slot {_number} of player with air
  243.  
  244. set {_number2} to a random integer between 6 and 19
  245. format gui slot {_number2} of player with {_chestplate} to run:
  246. give player {_chestplate}
  247. format gui slot {_number2} of player with air
  248.  
  249. set {_number3} to {_number2} + 2
  250. format gui slot {_number3} of player with {_boots} to run:
  251. give player {_boots}
  252. format gui slot {_number3} of player with air
  253.  
  254. set {_number4} to {_number3} + 3
  255. format gui slot {_number4} of player with {_legs} to run:
  256. give player {_legs}
  257. format gui slot {_number4} of player with air
  258.  
  259. set {_number5} to a random integer between -2 and 3
  260.  
  261. if {_number5} is 0:
  262. set {_number5} to -1
  263.  
  264. set {_number6} to {_number4} + {_number5}
  265.  
  266. format gui slot {_number6} of player with {_helmet} to run:
  267. give player {_helmet}
  268. format gui slot {_number6} of player with air
  269.  
  270. set {_number7} to random integer between 1 and 27
  271.  
  272. if {_number7} is not {_number}:
  273. if {_number7} is not {_number2}:
  274. if {_number7} is not {_number3}:
  275. if {_number7} is not {_number4}:
  276. if {_number7} is not {_number6}:
  277. format gui slot {_number7} of player with 5 sunflower named "&6&lCoin" to run:
  278. give player 5 sunflower named "&6&lCoin"
  279. format gui slot {_number7} of player with air
  280. else:
  281. add 1 to {_number7}
  282. format gui slot {_number7} of player with 5 sunflower named "&6&lCoin" to run:
  283. give player 5 sunflower named "&6&lCoin"
  284. format gui slot {_number7} of player with air
  285. else:
  286. add 1 to {_number7}
  287. if {_number7} is not {_number6}:
  288. format gui slot {_number7} of player with 5 sunflower named "&6&lCoin" to run:
  289. give player 5 sunflower named "&6&lCoin"
  290. format gui slot {_number7} of player with air
  291. else:
  292. add 1 to {_number6}
  293. format gui slot {_number7} of player with 5 sunflower named "&6&lCoin" to run:
  294. give player 5 sunflower named "&6&lCoin"
  295. format gui slot {_number7} of player with air
  296. else:
  297. add 1 to {_number7}
  298. format gui slot {_number7} of player with 5 sunflower named "&6&lCoin" to run:
  299. give player 5 sunflower named "&6&lCoin"
  300. format gui slot {_number7} of player with air
  301. else:
  302. add 1 to {_number7}
  303. format gui slot {_number7} of player with 5 sunflower named "&6&lCoin" to run:
  304. give player 5 sunflower named "&6&lCoin"
  305. format gui slot {_number7} of player with air
  306. else:
  307. add 1 to {_number7}
  308. format gui slot {_number7} of player with 5 sunflower named "&6&lCoin" to run:
  309. give player 5 sunflower named "&6&lCoin"
  310. format gui slot {_number7} of player with air
  311. set {loot::opened} to true
  312. wait 30 seconds
  313. set event-block to air
  314. delete {loot::opened}
  315. else:
  316. send "This loot chest has already been opened!"
  317.  
  318.  
  319.  
  320. on join:
  321. loop {players::*}:
  322. if loop-value is player's uuid:
  323. set {hasjoined::%player's uuid%} to true
  324. if {hasjoined::%player's uuid%} is not set:
  325. add player's uuid to {players::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement