Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /dvz <text = "help"> <text> <player>:
- description: Start the Game!
- usage: /dvz <text>
- executable by: players
- permission: "skript.admin"
- trigger:
- if argument 1 is "start":
- if {dvz.gametype} is "class":
- add a magma cream to all players
- make player execute command "/gm-s"
- make player execute command "/h-all"
- make player execute command "/time day"
- make player execute command "/nopvp"
- message "<gold>|[GattcraftDvZ] The Match has Started! Left click the <light red>Magma Cream!|" to all players
- set {game.started} to true
- set {mob.released} to false
- make player execute command "/gamerule keepInventory true"
- set {mob.released} to false
- if {dvz.gametype} is "build":
- add a magma cream to all players
- make player execute command "/gm-s"
- make player execute command "/h-all"
- make player execute command "/time day"
- make player execute command "/nopvp"
- message "<gold>|[GattcraftDvZ] The Match has Started! Left click the <light red>Magma Cream!|" to all players
- message "<gold>|[GattcraftDvZ]<green> [TIP!]<gold> This match is a Build to get items match!" to all players
- set {game.started} to true
- set {mob.released} to false
- make player execute command "/gamerule keepInventory true"
- if argument 1 is "stop":
- make player execute command "/k-all"
- make all players execute command "/gr"
- make player execute command "/mangdelp dead magicspells.cast.monsterspell"
- make player execute command "/remwarp ender"
- make player execute command "/gamerule keepInventory false"
- wait 5 seconds
- message "<red>[GattcraftDvZ]<gold> The Match has Finished! The Monsters have Won!" to all players
- message "<red>[GattcraftDvZ]<gold> Server shutting down in 10 Seconds!" to all players
- set {game.started} to false
- wait 10 seconds
- make console execute command "/stop"
- if argument 1 is "help":
- message "<gold>--------------[DvZ HELP Owner Edition!]--------------"
- message "<gold>/dvz begin <green>- Starts the Game!"
- message "<gold>/dvz stop <green>- Finishes the Game!"
- message "<gold>/dvz event <green>- Starts the event! (Set the event using /dvz setevent [EventName]"
- message "<gold>/dvz monsters <green>- Releases the Monsters!"
- message "<gold>/dvz hoard [true/false] <green>- Summons the Hoard of monsters"
- message "<gold>/dvz setup <green>- Teleports user to random location for match setup!"
- message "<gold>/dvz assassin <green>- [WIP] Adds name to possible assassin"
- message "<gold>/dvz forceassassin [player] <green>- Makes argument 1 the assassin"
- message "<gold>/dvz gametype [build/class] <green>- Sets the game type"
- message "<gold>/groupreset [player] <green>- Sets players group to default"
- message "<gold>--------------[DvZ HELP Owner Edition!]--------------"
- if argument 1 is "event":
- if {dvz.event} is "assassin":
- make a random player out of all players execute command "/assassin %player%"
- make player execute command "/pvpon"
- if {dvz.event} is "dragon":
- set {dragon.type} to a random integer between 1 and 3
- if {dragon.type} is 1:
- message "<gold>The Dragon for this round is <light red>Black Beast" to all players
- if {dragon.type} is 2:
- message "<gold>The Dragon for this round is <light red>Mother Nature" to all players
- if {dragon.type} is 3:
- message "<gold>The Dragon for this round is <light red>The Ice Queen" to all players
- wait 5 seconds
- if {dragon.type} is 1:
- make player execute command "/ci"
- make player execute command "/fly"
- add 1 388 to the player
- make player execute command "/c spider_speed"
- make player execute command "/c disguiseenderdragon"
- make player execute command "/azrank %player% dragon"
- message "<red>[GattcraftDvZ]<gold> The Black Beast appears" to all players
- teleport player to {hoard.dragon}
- make player execute command "/pvpon"
- if {dragon.type} is 2:
- make player execute command "/ci"
- make player execute command "/fly"
- make player execute command "/i 351:2"
- make player execute command "/c spider_speed"
- make player execute command "/c disguiseenderdragon"
- make player execute command "/azrank %player% dragon"
- message "<red>[GattcraftDvZ]<gold> Mother Nature appears" to all players
- teleport player to {hoard.dragon}
- make player execute command "/pvpon"
- if {dragon.type} is 3:
- make player execute command "/ci"
- make player execute command "/fly"
- add 1 snowball to player
- make player execute command "/c spider_speed"
- make player execute command "/c disguiseenderdragon"
- make player execute command "/azrank %player% dragon"
- message "<red>[GattcraftDvZ]<gold> The Ice Queen appears" to all players
- teleport player to {hoard.dragon}
- make player execute command "/pvpon"
- if argument 1 is "forceassassin":
- make argument 3 execute command "/c DvZAssassin"
- message "<grey>|-------------------------------------------------------|" to all players
- message "<gold>| [GattcraftDvZ]<gold> The assassin has been choosen! |" to all players
- message "<gold>| His or Her identity shall be revealed soon! |" to all players
- message "<gold>| The assassin's head will be a JackOLantern! |" to all players
- message "<grey>|-------------------------------------------------------|" to all players
- message "<gold><bold>You have become the Assassin! You have 10 Seconds to hide!" to argument 3
- message "<gold><bold>You have been given some extra tools to help you!" to argument 3
- wait 10 seconds
- equip argument 3 with 91
- message "<red> The assassin is %argument 3%! Kill him/her Quickly!" to all players
- make player execute command "/pvpon"
- if argument 1 is "monsters":
- message "<red>[GattcraftDvZ]<gold> The monsters are coming! Prepare your swords!" to all players
- make player execute command "/mangaddp dead magicspells.cast.monsterspell"
- make player execute command "/pvpon"
- if argument 1 is "setup":
- make player execute command "/tprl"
- message "<red>[GattcraftDvZ]<gold> Round Setting up! Server MIGHT lag!" to all players
- make player execute command "//schem load mce keep"
- clear inventory of player
- add 1 arrow to player
- set gamemode of player to creative
- make player execute command "/v 7"
- make player execute command "/b over"
- make player execute command "/b 6"
- wait 4 seconds
- make player execute command "/descend"
- make player execute command "/descend"
- if argument 1 is "gametype":
- set {dvz.gametype} to argument 2
- message "<gold>Game type: %{dvz.gametype}%" to all players
- if argument 1 is "hoard":
- if argument 2 is "true":
- message "<red>[GattcraftDvZ]<gold>A Monster hoard appears!" to all players
- make player execute command "/time night"
- spawn 5 zombies at {hoard.1}
- spawn 5 zombies at {hoard.3}
- spawn 3 creepers at {hoard.2}
- spawn 2 skeletons at {hoard.4}
- spawn 2 blaze at {hoard.5}
- spawn 1 giant at {hoard.boss}
- spawn 2 slimes at {hoard.1}
- spawn 10 zombies at {hoard.boss}
- if argument 2 is "false":
- message "<red>[GattcraftDvZ]<gold> The hoard is Over!" to all players
- make player execute command "/killall monster"
- make player execute command "/time day"
Advertisement
Add Comment
Please, Sign In to add comment