Advertisement
fleft17

Untitled

Jul 30th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.46 KB | None | 0 0
  1.  
  2. command /uhc [<text>] [<integer>] [<integer>]:
  3. permission: skript.uhcbasic
  4. usage: /uhcstart
  5. trigger:
  6.  
  7. if arg-1 is "yes":
  8. if {uhc.se} is true:
  9. set {uhc.%{uhc.v}%} to true
  10. message "{@P} &aConfirmed&r UHC %{uhc.v}%."
  11. else:
  12. message "{@P} &aConfirm&r/&cend&r UHC!"
  13.  
  14. if arg-1 is "no":
  15. if {uhc.se} is true:
  16. delete {uhc.%{uhc.v}%}
  17. broadcast "{@P} &cDenied&r UHC %{uhc.v}%!"
  18. command sender command "/sall random.break"
  19. stop trigger
  20. else:
  21. message "{@P} &aConfirm&r/&cend&r UHC!"
  22.  
  23. if arg-1 is "start":
  24. set {uhc.se} to true
  25. set {uhc.%arg-1%} to false
  26. set {uhc.v} to "start"
  27. message "{@P} Confirm UHC start:"
  28. message "{@P} /uhc &ayes"
  29. message "{@P} /uhc &cno"
  30.  
  31.  
  32.  
  33. set {_c} to 5
  34. loop {_c} times:
  35. if {uhc.%{uhc.v}%} is false:
  36. message "{@P} %{_c}%"
  37. subtract 1 from {_c}
  38. wait 1 second
  39.  
  40. if {uhc.%arg-1%} is true:
  41. set {uhc.%arg-1%} to true
  42. delete {uhc.se}
  43. delete {uhc.%{uhc.v}%}
  44. command sender command "/muteall"
  45. command sender command "/cMotd Game in progress!"
  46. set {uhcGame} to true
  47. set {dolphins} to false
  48. if arg-2 is not set:
  49. set {timeTilMeetup} to 90
  50. if arg-3 is not set:
  51. set {timeTilPvP} to 20
  52. if arg-2 is set:
  53. set {timeTilMeetup} to arg-2
  54. if arg-3 is set:
  55. set {timeTilPvP} to arg-3
  56. loop all players:
  57. execute console command "/vanflag %loop-player% -see"
  58. set the player's gamemode to survival
  59. execute console command "/pvptoggle world off"
  60. execute console command "/pvptoggle world_nether on"
  61. command sender command "/heal *"
  62. command sender command "/feed *"
  63. command sender command "/ci *"
  64. command sender command "/killboard on"
  65. execute console command "/chatclear"
  66. set {_time} to 5
  67. set {_sound} to 1.9
  68. set {_colors::*} to "&1" and "&2" and "&3" and "&4" and "&5" and "&6" and "&9" and "&a" and "&b" and "&c" and "&d" and "&e"
  69. wait 2 seconds
  70. command sender command "/freeze"
  71. broadcast "{@P} UHC is starting in:"
  72. loop 5 times:
  73. set {_color} to a random element out of {_colors::*}
  74. remove {_color} from {_colors::*}
  75. broadcast "{@P} %{_color}%&l%{_time}%…"
  76. if {_time} is greater than or equal to 1:
  77. subtract 1 from {_time}
  78. if {_sound} is greater than or equal to 1.0:
  79. subtract 0.1 from {_sound}
  80. command sender command "/sall random.successful_hit %{_sound}%"
  81. wait 1 second
  82.  
  83. delete {_time}
  84. delete {_sound}
  85. delete {_colors::*}
  86.  
  87. loop 100 times:
  88. execute console command "/sall note.bass 2"
  89. wait 0.01 seconds
  90.  
  91. loop 3 times:
  92. broadcast "{@P}&l GO!"
  93. wait 0.25 seconds
  94. loop all players:
  95. apply saturation 1 to the loop-player for 5 minutes
  96.  
  97.  
  98. set time to 6:00
  99. command sender command "/effc"
  100. command sender command "/timer-start %{timeTilMeetup}% %{timeTilPvP}%"
  101. command sender command "/firstdamage reset"
  102. loop 100 times:
  103. command sender command "/butcher"
  104. wait 0.1 seconds
  105. broadcast "{@P} Finished butchering!"
  106. wait 5 seconds
  107. command sender command "/heal *"
  108. command sender command "/feed *"
  109. broadcast "{@P} You have been given your final heal&7!"
  110. wait 3 seconds
  111. command sender command "/boxremove world"
  112. command sender command "/muteall"
  113.  
  114. if {uhc.%{uhc.v}%} is false:
  115. broadcast "{@P} &9UHC not started in time!"
  116. command sender command "/sall random.break"
  117. broadcast "{@P} &9%command sender%, re-do command!"
  118. delete {uhc.se}
  119. stop trigger
  120.  
  121.  
  122. if arg-1 is "end":
  123. set {uhc.se} to true
  124. set {uhc.%arg-1%} to false
  125. set {uhc.v} to "end"
  126. message "{@P} Confirm UHC end:"
  127. message "{@P} /uhc &ayes"
  128. message "{@P} /uhc &cno"
  129.  
  130. set {_c} to 5
  131. loop {_c} times:
  132. if {uhc.%{uhc.v}%} is false:
  133. message "{@P} %{_c}%"
  134. subtract 1 from {_c}
  135. wait 1 second
  136.  
  137. if {uhc.%{uhc.v}%} is true:
  138. delete {uhc.se}
  139. set {uhc.%arg-1%} to true
  140. loop all players:
  141. teleport loop-player to spawn point of "FleftSpawn"
  142. execute console command "/xp -1000L %loop-player%"
  143. clear the loop-player's inventory
  144. make loop-player execute command "/endspec"
  145. wait 1 second
  146. set {uhcGame} to false
  147. command sender command "/hd setline spawn 2 &aWelcome!"
  148. command sender command "/timer-stop"
  149. command sender command "/pvptoggle on"
  150. command sender command "/wl off"
  151. execute console command "/wl clear"
  152. command sender command "/matchpost none"
  153. command sender command "/nextgame"
  154. command sender command "/feature off DeathLightning"
  155. command sender command "/feature on PotionNerfs"
  156. command sender command "/feature off PlayerHeads"
  157. command sender command "/pvparena on"
  158. command sender command "/1v1arena on"
  159. command sender command "/parkour on"
  160. command sender command "/wl death off"
  161. command sender command "/questions off"
  162. command sender command "/effc"
  163. command sender command "/heal *"
  164. command sender command "/feed *"
  165. command sender command "/killboard off"
  166. command sender command "/cmotd Open PvP!"
  167. command sender command "/chatclear"
  168. broadcast "{@P} UHC is over!"
  169.  
  170. if {uhc.%{uhc.v}%} is false:
  171. broadcast "{@P} &9UHC not %{uhc.v}%ed in time!"
  172. command sender command "/sall random.break"
  173. broadcast "{@P} &9%command sender%, re-do command!"
  174. delete {uhc.se}
  175. stop trigger
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement