Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.16 KB | None | 0 0
  1. options:
  2. #- Prefix before all broadcasts -#
  3. Pre: &9UHC&c>> &9
  4. #- Permission for hosts -#
  5. HostPerm: skript.op
  6. #- Message for not having host permissions -#
  7. NotHostMess: No permission
  8.  
  9. variables:
  10. {UHCMatch} = false
  11.  
  12. #- A UHC run skript -#
  13. command /startuhc <integer> <integer>:
  14. permission: {@HostPerm}
  15. permission message: {@NotHostMess}
  16. usage: "/startuhc <time until PVP in minutes> <time until meetup in minutes>"
  17. executable by: players
  18. trigger:
  19. if arg 1 is less than 0:
  20. message "Times cannot be negative!" to the player
  21. stop trigger
  22. if arg 2 is less than 0:
  23. message " Times cannot be negative!" to the player
  24. stop trigger
  25. wait 4 second
  26. execute console command "/timer cancel"
  27. execute console command "/killboardoff"
  28. broadcast "{@Pre} Game Starting in: &43"
  29. execute console command "/sound random.anvil_land"
  30. wait 1 second
  31. broadcast "{@Pre} Game Starting in: &62"
  32. execute console command "/sound random.anvil_land"
  33. wait 1 second
  34. broadcast "{@Pre} Game Starting in: &21"
  35. execute console command "/sound random.anvil_land"
  36. execute console command "/freeze"
  37. wait 1 second
  38. broadcast "{@Pre} Game Starting Now!"
  39. loop all players:
  40. heal the loop-player
  41. set the loop-player's hunger bar to 20
  42. clear the loop-player's inventory
  43. execute console command "/sound mob.wither.death"
  44. execute console command "/killboard"
  45. execute console command "/pvp global off"
  46. execute console command "/feature on PlayerHeads"
  47. execute console command "/feature off PotionNerfs"
  48. execute console command "/feature off Footprints"
  49. execute console command "/feature on GoldenHeads"
  50. execute console command "/time 20ticks"
  51. execute console command "/megabutcher"
  52. set {_pvpseconds} to arg 1*60
  53. if arg 2 is not 0:
  54. set {_meetup} to (arg 2-arg 1)*60
  55. if arg 1 is not 0:
  56. execute console command "/timer %{_pvpseconds}% &9PVP enabled in&c>>&9"
  57. loop ({_pvpseconds}+1)*20 times:
  58. wait 1 tick
  59. execute console command "/sound mob.enderdragon.growl"
  60. broadcast "{@Pre} PvP is now on, good luck!"
  61. execute console command "/pvp global on"
  62. if arg 2 is not 0:
  63. execute console command "/timer %{_meetup}% &9Meetup in&c>>&9"
  64. loop ({_meetup}+1)*20 times:
  65. wait 1 tick
  66. execute console command "/sound mob.enderdragon.growl"
  67. broadcast "{@Pre} It is time to head to &cmeet-up&r!"
  68. execute console command "/timer cancel"
  69. set {UHCMatch} to false
  70.  
  71. #- Little bit of code that fixes bad Essentials config -#
  72. on respawn:
  73. wait 1 tick
  74. execute console command "/xp -999999L %player%"
  75.  
  76. on damage of player:
  77. attacker is a player:
  78. projectile exists
  79. wait 1 tick
  80. victim is not dead:
  81. message "{@Pre} The player you just shot is now at &c%health of victim% hearts&9." to the attacker
  82.  
  83. command /h [<player>]:
  84. executable by: players
  85. trigger:
  86. arg 1 is not set:
  87. message "{@Pre} You have &c%health of player% hearts remaining&9." to the player
  88. stop trigger
  89. message "{@Pre} &c%arg 1% &9has &c%health of arg 1% hearts remaining&9." to the player
  90.  
  91. command /sound <text>:
  92. permission: skript.scatter.playsound
  93. trigger:
  94. loop all players:
  95. command "/playsound %arg 1% %loop-player%"
  96.  
  97. command /megabutcher:
  98. permission: {@HostPerm}
  99. permission message: {@NotHostMess}
  100. usage: "/megabutcher"
  101. executable by: players, console
  102. trigger:
  103. command "/butcher"
  104. wait 0.5 second
  105. execute console command "/butcher"
  106. wait 0.5 second
  107. execute console command "/butcher"
  108. wait 0.5 second
  109. execute console command "/butcher"
  110. wait 0.5 second
  111. execute console command "/butcher"
  112. wait 0.5 second
  113. execute console command "/butcher"
  114. wait 0.5 second
  115. execute console command "/butcher"
  116. wait 0.5 second
  117. execute console command "/butcher"
  118. wait 0.5 second
  119. execute console command "/butcher"
  120. wait 0.5 second
  121. execute console command "/butcher"
  122. wait 0.5 second
  123. command "/butcher"
  124. wait 0.5 second
  125. command "/butcher"
  126. wait 0.5 second
  127. command "/butcher"
  128. broadcast "{@Pre} Butchering has finished, &casking to butcher &9at this point &cwill get you muted&9!"
  129.  
  130.  
  131. #- Setup for the Kills Scoreboard -#
  132.  
  133. command /killboard:
  134. permission: skript.op
  135. permission message: Insufficient permissions
  136. usage: "/killboard"
  137. trigger:
  138. execute console command "/scoreboard objectives add skkills playerKillCount &9Kills"
  139. execute console command "/scoreboard objectives setdisplay sidebar skkills"
  140. message "{@Pre} Killboard enabled!"
  141.  
  142. command /killboardoff:
  143. permission: skript.op
  144. permission message: Insufficient permissions
  145. usage: "/killboardoff"
  146. trigger:
  147. execute console command "/scoreboard objectives remove skkills"
  148. execute console command "/scoreboard objectives setdisplay sidebar off"
  149. message "{@Pre} Killboard disabled!"
  150.  
  151. on death of player:
  152. execute console command "/scoreboard players reset %victim%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement