Advertisement
Guest User

UHC Start

a guest
Apr 22nd, 2017
446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.17 KB | None | 0 0
  1. options:
  2. P:&8[&3Abyssal&8]&r
  3. perms: skript.startuhc
  4.  
  5. command /scatterplayers <world> <int> <text>:
  6. permission: {@perms}
  7. usage: /scatterplayers <world> <radius> <teams/solos>
  8. trigger:
  9. if arg-3 is "teams" or "team" or "t":
  10. loop 5 times:
  11. command "/team color"
  12. wait 3 ticks
  13. loop all players:
  14. set the loop-player's food level to 10
  15. loop all players:
  16. {spec::%loop-player%} is not set
  17. set the loop-player's gamemode to survival
  18. clear inventory of loop-player
  19. command "/freeze"
  20. command sender command "/sca %arg-1% %arg-2% teams"
  21. wait 3 seconds
  22. command "/time set day %arg-1%"
  23. else if arg-3 is "solos" or "solo" or "s":
  24. loop all players:
  25. set the loop-player's food level to 10
  26. loop all players:
  27. {spec::%loop-player%} is not set
  28. set the loop-player's gamemode to survival
  29. clear inventory of loop-player
  30. command "/freeze"
  31. command sender command "/sca %arg-1% %arg-2% *"
  32. wait 2 ticks
  33. command "/time set day %arg-1%"
  34.  
  35. command /latescatter <world> <int> <player>:
  36. usage: /latescatter <world> <radius> <player>
  37. permission: {@perms}
  38. trigger:
  39. command "/feed %arg-3%"
  40. loop 5 times:
  41. wait 1 tick
  42. clear inventory of arg-3
  43. wait 2 seconds
  44. give 10 cooked beef to arg-3
  45. set the arg-3's gamemode to survival
  46. command sender command "/sca %arg-1% %arg-2% %arg-3%"
  47. wait 5 seconds
  48. send "&fFinal Heal: &c3" to arg-3
  49. command "/playsound note.bass %arg-3% ~ ~ ~ 1 0.5 1"
  50. wait 1 second
  51. send "&fFinal Heal: &c2" to arg-3
  52. command "/playsound note.bass %arg-3% ~ ~ ~ 1 0.5 1"
  53. wait 1 second
  54. send "&fFinal Heal: &c1" to arg-3
  55. command "/playsound note.bass %arg-3% ~ ~ ~ 1 0.5 1"
  56. wait 1 second
  57. send "&fFinal Heal Given!" to arg-3
  58. command "/playsound note.bass %arg-3% ~ ~ ~ 1 0.5 1"
  59. heal arg-3
  60.  
  61. command /uhcstart <int> <int> <text>:
  62. aliases: /st
  63. permission: {@perms}
  64. usage: /uhcstart <pvp time in minutes> <meetup time in minutes &l**AFTER PvP went off**&r> <Host Name (You can shorten this)
  65. trigger:
  66. set {_w} to world of command sender
  67. broadcast "{@P} &bThe UHC will start in 30 seconds! You may ask questions via helpop!"
  68. make player execute command "/config"
  69. wait 120 ticks
  70. make player execute command "/uhc"
  71. command "/enablefix"
  72. wait 30 real seconds
  73. command "/cc"
  74. loop all players:
  75. command "/playsound note.pling %loop-player% ~ ~ ~ 1 0.5 1"
  76. wait 1 real second
  77. command "/tm bc &a5"
  78. loop all players:
  79. command "/playsound note.pling %loop-player% ~ ~ ~ 1 0.5 1"
  80. wait 1 real second
  81. command "/tm bc &e4"
  82. loop all players:
  83. command "/playsound note.pling %loop-player% ~ ~ ~ 1 0.5 1"
  84. wait 1 second
  85. command "/tm bc &63"
  86. loop all players:
  87. command "/playsound note.pling %loop-player% ~ ~ ~ 1 0.5 1"
  88. wait 1 real second
  89. command "/tm bc &c2"
  90. loop all players:
  91. command "/playsound note.pling %loop-player% ~ ~ ~ 1 0.5 1"
  92. wait 1 real second
  93. command "/tm bc &41"
  94. loop all players:
  95. command "/playsound note.pling %loop-player% ~ ~ ~ 1 0.5 1"
  96. wait 1 real second
  97. command "/tm bc &4GO!"
  98. loop all players:
  99. command "/playsound note.pop %loop-player% ~ ~ ~ 1 0.5 1"
  100. wait 1 second
  101. command "/ffg"
  102. command "/clearxp"
  103. command "/ci -all"
  104. command "/cleareffects"
  105. command "/dfix"
  106. loop all players:
  107. {spec::%loop-player%} is not set
  108. give 10 cooked beef to the loop-player
  109. broadcast "{@P} &cThe UHC has now started!"
  110. loop all players:
  111. command "/playsound random.pop %loop-player% ~ ~ ~ 1 2 1"
  112. wait 1 second
  113. command "/pvp global off"
  114. command "/time set day %{_w}%"
  115. loop all players:
  116. command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
  117. loop 3 times:
  118. wait 1 second
  119. command sender command "/butcher"
  120. broadcast "&fButcher Finished!"
  121. wait 5 seconds
  122. broadcast "&fFinal Heal: &a3"
  123. loop all players:
  124. command "/playsound note.bass %loop-player% ~ ~ ~ 1 0.5 1"
  125. wait 1 second
  126. broadcast "&fFinal Heal: &e2"
  127. loop all players:
  128. command "/playsound note.bass %loop-player% ~ ~ ~ 1 0.5 1"
  129. wait 1 second
  130. broadcast "&fFinal Heal: &c1"
  131. loop all players:
  132. command "/playsound note.bass %loop-player% ~ ~ ~ 1 0.5 1"
  133. wait 1 second
  134. broadcast "&aFinal Heal Given! &4Do not ask for more!"
  135. loop all players:
  136. command "/playsound note.pling %loop-player% ~ ~ ~ 1 0.5 1"
  137. heal the loop-player
  138. broadcast "{@P} &7This game is hosted by &c%arg-3%, &7thanks for playing their game!"
  139. make command sender execute command "/gamerule domobspawning false"
  140. make command sender execute command "/butcher"
  141. execute player command "/uhctimer %arg-1% %arg-2%"
  142. wait 2 real minutes
  143. make command sender execute command "/gamerule domobspawning true"
  144. broadcast "{@P} &cMobs will now spawn!"
  145.  
  146. on death of player:
  147. {timer::running} is true
  148. command "/scoreboard players reset %tablist name of victim%"
  149. if attacker is not a player:
  150. command "/scoreboard players add &c&lPvE uhc 1"
  151. else if attacker is not set:
  152. command "/scoreboard players add &c&lPvE uhc 1"
  153. else:
  154. attacker is not victim
  155. command "/scoreboard players add %tablist name of attacker% uhc 1"
  156. set {_TeamNumber} to {Teams.InTeam::%victim%}
  157. delete {Teams.InTeam::%victim%}
  158. remove victim from {Team.%{_TeamNumber}%::*}
  159. command "/scoreboard teams leave %victim%"
  160. command "/wl remove %victim%"
  161. command "/clearxp %victim%"
  162. set {ratetime::%victim%} to true
  163. send "{@P} &fYou have 30 seconds to say goodbye!" to victim
  164. wait 30 seconds
  165. kick victim due to "&7Thanks for playing! &7Follow our Twitter &b@AbyssalUHC &7to see when we host next!"
  166. delete {rated::%victim%}
  167. delete {ratetime::%victim%}
  168.  
  169. command /uhctimer <int> <int>:
  170. usage: /uhctimer <time till pvp> <time till mu after pvp>
  171. permission: {@perms}
  172. trigger:
  173. set {_w} to world of command sender
  174. command "/scoreboard objectives add uhc dummy %{scoreboardname}%"
  175. command "/scoreboard players add &c&lPvP uhc"
  176. command "/scoreboard players add &a&lMeetup uhc"
  177. command "/scoreboard objectives setdisplay sidebar uhc"
  178. command "/scoreboard players add &c&lPlayers"
  179. send "&fStarting timer!"
  180. set {timer::running} to true
  181. set {_pvptime} to arg-1
  182. set {_mutime} to arg-1+arg-2
  183. loop arg-1 times:
  184. {timer::running} is true
  185. command "/scoreboard players set &c&lPvP uhc -%{_pvptime}%"
  186. command "/scoreboard players set &a&lMeetup uhc -%{_mutime}%"
  187. remove 1 from {_pvptime}
  188. remove 1 from {_mutime}
  189. wait 1 real minute
  190. {timer::running} is true
  191. command "/scoreboard players reset &c&lPvP"
  192. loop 1 times:
  193. broadcast "{@P} &8&m-----------------------&r"
  194. broadcast "{@P} &6PvP is now &aEnabled!&r"
  195. broadcast "{@P} &8&m-----------------------&r"
  196. loop all players:
  197. loop 3 times:
  198. command "/playsound note.pling %loop-player% ~ ~ ~ 1 0.5 1"
  199. wait 2 ticks
  200. command "/pvp"
  201. loop ({_mutime}) times:
  202. {timer::running} is true
  203. command "/scoreboard players set &a&lMeetup uhc -%{_mutime}%"
  204. remove 1 from {_mutime}
  205. wait 1 real minute
  206. if {_mutime} is 5:
  207. command "/startvote 30 Permaday"
  208. {timer::running} is true
  209. command "/scoreboard players reset &a&lMeetup"
  210. loop 1 times:
  211. broadcast "{@P} &8&m-----------------------&r"
  212. broadcast "{@P} &7It is now &cMeetup."
  213. broadcast "{@P} &8&m-----------------------&r"
  214. command "/blockdecay on"
  215. loop all players:
  216. loop 2 times:
  217. command "/playsound random.explode %loop-player% ~ ~ ~ 1 0.5 0.5"
  218. wait 2 ticks
  219.  
  220. command /timerclear:
  221. permission: {@perms}
  222. trigger:
  223. delete {timer::running}
  224. send "&aTimer cleared!"
  225. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  226. command "/scoreboard objectives remove uhc"
  227.  
  228. command /killboardremove <text>:
  229. permission: {@perms}
  230. trigger:
  231. execute console command "/scoreboard players reset %arg-1%"
  232. send "{@P} &7Kills removed!"
  233.  
  234. command /killboardadd <text>:
  235. permission: {@perms}
  236. trigger:
  237. execute console command "/scoreboard players add %arg-1% uhc 1"
  238. send "{@P} &6Kill added!"
  239.  
  240. command /killboardname <text>:
  241. permission: {@perms}
  242. trigger:
  243. set {scoreboardname} to "&bAbyssal&8 ยป &7&o%arg-1%"
  244. send "{@P} &7Name added!"
  245.  
  246. command /uhcstop:
  247. permission: {@perms}
  248. trigger:
  249. make player execute command "/timerclear"
  250. make console execute command "/mvdelete UHC"
  251. make console execute command "/mvconfirm"
  252. make player execute command "/scendisableall"
  253. make player execute command "/cc"
  254. make player execute command "/mvdelete UHC_Nether"
  255. make player execute command "/mvconfirm"
  256. make player execute command "/warp newspawn"
  257. make player execute command "/tpall"
  258. make player execute command "/heal -a"
  259. make player execute command "/clearxp"
  260. make player execute command "/cleareffects -a"
  261. make player execute command "/feed -a"
  262. make player execute command "/blockdecay off"
  263. make player execute command "/scoreboard objectives setdisplay list UHCHealthList"
  264. make player execute command "/scoreboard objectives setdisplay belowname UHCHealthName"
  265. make player execute command "/spec reset Eboibie"
  266. make player execute command "/spec reset ClarkGamingYT"
  267. make player execute command "/spec reset SleepTime"
  268. make player execute command "/spec reset SandyVerse"
  269. make player execute command "/spec reset Michael_Gaymer18"
  270. make player execute command "/spec reset FloridaNoah"
  271. make player execute command "/spec reset showboow"
  272. make player execute command "/spec reset shoesharpegaming"
  273. make player execute command "/spec reset rainbow_skelly"
  274. make player execute command "/ci -a"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement