Guest User

Skript

a guest
Dec 18th, 2012
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.26 KB | None | 0 0
  1. command /dvz <text = "help"> <text> <player>:
  2. description: Start the Game!
  3. usage: /dvz <text>
  4. executable by: players
  5. permission: "skript.admin"
  6. trigger:
  7. if argument 1 is "start":
  8. if {dvz.gametype} is "class":
  9. add a magma cream to all players
  10. make player execute command "/gm-s"
  11. make player execute command "/h-all"
  12. make player execute command "/time day"
  13. make player execute command "/nopvp"
  14. message "<gold>|[GattcraftDvZ] The Match has Started! Left click the <light red>Magma Cream!|" to all players
  15. set {game.started} to true
  16. set {mob.released} to false
  17. make player execute command "/gamerule keepInventory true"
  18. set {mob.released} to false
  19. if {dvz.gametype} is "build":
  20. add a magma cream to all players
  21. make player execute command "/gm-s"
  22. make player execute command "/h-all"
  23. make player execute command "/time day"
  24. make player execute command "/nopvp"
  25. message "<gold>|[GattcraftDvZ] The Match has Started! Left click the <light red>Magma Cream!|" to all players
  26. message "<gold>|[GattcraftDvZ]<green> [TIP!]<gold> This match is a Build to get items match!" to all players
  27. set {game.started} to true
  28. set {mob.released} to false
  29. make player execute command "/gamerule keepInventory true"
  30. if argument 1 is "stop":
  31. make player execute command "/k-all"
  32. make all players execute command "/gr"
  33. make player execute command "/mangdelp dead magicspells.cast.monsterspell"
  34. make player execute command "/remwarp ender"
  35. make player execute command "/gamerule keepInventory false"
  36. wait 5 seconds
  37. message "<red>[GattcraftDvZ]<gold> The Match has Finished! The Monsters have Won!" to all players
  38. message "<red>[GattcraftDvZ]<gold> Server shutting down in 10 Seconds!" to all players
  39. set {game.started} to false
  40. wait 10 seconds
  41. make console execute command "/stop"
  42. if argument 1 is "help":
  43. message "<gold>--------------[DvZ HELP Owner Edition!]--------------"
  44. message "<gold>/dvz begin <green>- Starts the Game!"
  45. message "<gold>/dvz stop <green>- Finishes the Game!"
  46. message "<gold>/dvz event <green>- Starts the event! (Set the event using /dvz setevent [EventName]"
  47. message "<gold>/dvz monsters <green>- Releases the Monsters!"
  48. message "<gold>/dvz hoard [true/false] <green>- Summons the Hoard of monsters"
  49. message "<gold>/dvz setup <green>- Teleports user to random location for match setup!"
  50. message "<gold>/dvz assassin <green>- [WIP] Adds name to possible assassin"
  51. message "<gold>/dvz forceassassin [player] <green>- Makes argument 1 the assassin"
  52. message "<gold>/dvz gametype [build/class] <green>- Sets the game type"
  53. message "<gold>/groupreset [player] <green>- Sets players group to default"
  54. message "<gold>--------------[DvZ HELP Owner Edition!]--------------"
  55. if argument 1 is "event":
  56. if {dvz.event} is "assassin":
  57. make a random player out of all players execute command "/assassin %player%"
  58. make player execute command "/pvpon"
  59. if {dvz.event} is "dragon":
  60. set {dragon.type} to a random integer between 1 and 3
  61. if {dragon.type} is 1:
  62. message "<gold>The Dragon for this round is <light red>Black Beast" to all players
  63. if {dragon.type} is 2:
  64. message "<gold>The Dragon for this round is <light red>Mother Nature" to all players
  65. if {dragon.type} is 3:
  66. message "<gold>The Dragon for this round is <light red>The Ice Queen" to all players
  67. wait 5 seconds
  68. if {dragon.type} is 1:
  69. make player execute command "/ci"
  70. make player execute command "/fly"
  71. add 1 388 to the player
  72. make player execute command "/c spider_speed"
  73. make player execute command "/c disguiseenderdragon"
  74. make player execute command "/azrank %player% dragon"
  75. message "<red>[GattcraftDvZ]<gold> The Black Beast appears" to all players
  76. teleport player to {hoard.dragon}
  77. make player execute command "/pvpon"
  78. if {dragon.type} is 2:
  79. make player execute command "/ci"
  80. make player execute command "/fly"
  81. make player execute command "/i 351:2"
  82. make player execute command "/c spider_speed"
  83. make player execute command "/c disguiseenderdragon"
  84. make player execute command "/azrank %player% dragon"
  85. message "<red>[GattcraftDvZ]<gold> Mother Nature appears" to all players
  86. teleport player to {hoard.dragon}
  87. make player execute command "/pvpon"
  88. if {dragon.type} is 3:
  89. make player execute command "/ci"
  90. make player execute command "/fly"
  91. add 1 snowball to player
  92. make player execute command "/c spider_speed"
  93. make player execute command "/c disguiseenderdragon"
  94. make player execute command "/azrank %player% dragon"
  95. message "<red>[GattcraftDvZ]<gold> The Ice Queen appears" to all players
  96. teleport player to {hoard.dragon}
  97. make player execute command "/pvpon"
  98. if argument 1 is "forceassassin":
  99. make argument 3 execute command "/c DvZAssassin"
  100. message "<grey>|-------------------------------------------------------|" to all players
  101. message "<gold>| [GattcraftDvZ]<gold> The assassin has been choosen! |" to all players
  102. message "<gold>| His or Her identity shall be revealed soon! |" to all players
  103. message "<gold>| The assassin's head will be a JackOLantern! |" to all players
  104. message "<grey>|-------------------------------------------------------|" to all players
  105. message "<gold><bold>You have become the Assassin! You have 10 Seconds to hide!" to argument 3
  106. message "<gold><bold>You have been given some extra tools to help you!" to argument 3
  107. wait 10 seconds
  108. equip argument 3 with 91
  109. message "<red> The assassin is %argument 3%! Kill him/her Quickly!" to all players
  110. make player execute command "/pvpon"
  111. if argument 1 is "monsters":
  112. message "<red>[GattcraftDvZ]<gold> The monsters are coming! Prepare your swords!" to all players
  113. make player execute command "/mangaddp dead magicspells.cast.monsterspell"
  114. make player execute command "/pvpon"
  115. if argument 1 is "setup":
  116. make player execute command "/tprl"
  117. message "<red>[GattcraftDvZ]<gold> Round Setting up! Server MIGHT lag!" to all players
  118. make player execute command "//schem load mce keep"
  119. clear inventory of player
  120. add 1 arrow to player
  121. set gamemode of player to creative
  122. make player execute command "/v 7"
  123. make player execute command "/b over"
  124. make player execute command "/b 6"
  125. wait 4 seconds
  126. make player execute command "/descend"
  127. make player execute command "/descend"
  128. if argument 1 is "gametype":
  129. set {dvz.gametype} to argument 2
  130. message "<gold>Game type: %{dvz.gametype}%" to all players
  131. if argument 1 is "hoard":
  132. if argument 2 is "true":
  133. message "<red>[GattcraftDvZ]<gold>A Monster hoard appears!" to all players
  134. make player execute command "/time night"
  135. spawn 5 zombies at {hoard.1}
  136. spawn 5 zombies at {hoard.3}
  137. spawn 3 creepers at {hoard.2}
  138. spawn 2 skeletons at {hoard.4}
  139. spawn 2 blaze at {hoard.5}
  140. spawn 1 giant at {hoard.boss}
  141. spawn 2 slimes at {hoard.1}
  142. spawn 10 zombies at {hoard.boss}
  143. if argument 2 is "false":
  144. message "<red>[GattcraftDvZ]<gold> The hoard is Over!" to all players
  145. make player execute command "/killall monster"
  146. make player execute command "/time day"
Advertisement
Add Comment
Please, Sign In to add comment