Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /uhc [<text>] [<integer>] [<integer>]:
- permission: skript.uhcbasic
- usage: /uhcstart
- trigger:
- if arg-1 is "yes":
- if {uhc.se} is true:
- set {uhc.%{uhc.v}%} to true
- message "{@P} &aConfirmed&r UHC %{uhc.v}%."
- else:
- message "{@P} &aConfirm&r/&cend&r UHC!"
- if arg-1 is "no":
- if {uhc.se} is true:
- delete {uhc.%{uhc.v}%}
- broadcast "{@P} &cDenied&r UHC %{uhc.v}%!"
- command sender command "/sall random.break"
- stop trigger
- else:
- message "{@P} &aConfirm&r/&cend&r UHC!"
- if arg-1 is "start":
- set {uhc.se} to true
- set {uhc.%arg-1%} to false
- set {uhc.v} to "start"
- message "{@P} Confirm UHC start:"
- message "{@P} /uhc &ayes"
- message "{@P} /uhc &cno"
- set {_c} to 5
- loop {_c} times:
- if {uhc.%{uhc.v}%} is false:
- message "{@P} %{_c}%"
- subtract 1 from {_c}
- wait 1 second
- if {uhc.%arg-1%} is true:
- set {uhc.%arg-1%} to true
- delete {uhc.se}
- delete {uhc.%{uhc.v}%}
- command sender command "/muteall"
- command sender command "/cMotd Game in progress!"
- set {uhcGame} to true
- set {dolphins} to false
- if arg-2 is not set:
- set {timeTilMeetup} to 90
- if arg-3 is not set:
- set {timeTilPvP} to 20
- if arg-2 is set:
- set {timeTilMeetup} to arg-2
- if arg-3 is set:
- set {timeTilPvP} to arg-3
- loop all players:
- execute console command "/vanflag %loop-player% -see"
- set the player's gamemode to survival
- execute console command "/pvptoggle world off"
- execute console command "/pvptoggle world_nether on"
- command sender command "/heal *"
- command sender command "/feed *"
- command sender command "/ci *"
- command sender command "/killboard on"
- execute console command "/chatclear"
- set {_time} to 5
- set {_sound} to 1.9
- 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"
- wait 2 seconds
- command sender command "/freeze"
- broadcast "{@P} UHC is starting in:"
- loop 5 times:
- set {_color} to a random element out of {_colors::*}
- remove {_color} from {_colors::*}
- broadcast "{@P} %{_color}%&l%{_time}%…"
- if {_time} is greater than or equal to 1:
- subtract 1 from {_time}
- if {_sound} is greater than or equal to 1.0:
- subtract 0.1 from {_sound}
- command sender command "/sall random.successful_hit %{_sound}%"
- wait 1 second
- delete {_time}
- delete {_sound}
- delete {_colors::*}
- loop 100 times:
- execute console command "/sall note.bass 2"
- wait 0.01 seconds
- loop 3 times:
- broadcast "{@P}&l GO!"
- wait 0.25 seconds
- loop all players:
- apply saturation 1 to the loop-player for 5 minutes
- set time to 6:00
- command sender command "/effc"
- command sender command "/timer-start %{timeTilMeetup}% %{timeTilPvP}%"
- command sender command "/firstdamage reset"
- loop 100 times:
- command sender command "/butcher"
- wait 0.1 seconds
- broadcast "{@P} Finished butchering!"
- wait 5 seconds
- command sender command "/heal *"
- command sender command "/feed *"
- broadcast "{@P} You have been given your final heal&7!"
- wait 3 seconds
- command sender command "/boxremove world"
- command sender command "/muteall"
- if {uhc.%{uhc.v}%} is false:
- broadcast "{@P} &9UHC not started in time!"
- command sender command "/sall random.break"
- broadcast "{@P} &9%command sender%, re-do command!"
- delete {uhc.se}
- stop trigger
- if arg-1 is "end":
- set {uhc.se} to true
- set {uhc.%arg-1%} to false
- set {uhc.v} to "end"
- message "{@P} Confirm UHC end:"
- message "{@P} /uhc &ayes"
- message "{@P} /uhc &cno"
- set {_c} to 5
- loop {_c} times:
- if {uhc.%{uhc.v}%} is false:
- message "{@P} %{_c}%"
- subtract 1 from {_c}
- wait 1 second
- if {uhc.%{uhc.v}%} is true:
- delete {uhc.se}
- set {uhc.%arg-1%} to true
- loop all players:
- teleport loop-player to spawn point of "FleftSpawn"
- execute console command "/xp -1000L %loop-player%"
- clear the loop-player's inventory
- make loop-player execute command "/endspec"
- wait 1 second
- set {uhcGame} to false
- command sender command "/hd setline spawn 2 &aWelcome!"
- command sender command "/timer-stop"
- command sender command "/pvptoggle on"
- command sender command "/wl off"
- execute console command "/wl clear"
- command sender command "/matchpost none"
- command sender command "/nextgame"
- command sender command "/feature off DeathLightning"
- command sender command "/feature on PotionNerfs"
- command sender command "/feature off PlayerHeads"
- command sender command "/pvparena on"
- command sender command "/1v1arena on"
- command sender command "/parkour on"
- command sender command "/wl death off"
- command sender command "/questions off"
- command sender command "/effc"
- command sender command "/heal *"
- command sender command "/feed *"
- command sender command "/killboard off"
- command sender command "/cmotd Open PvP!"
- command sender command "/chatclear"
- broadcast "{@P} UHC is over!"
- if {uhc.%{uhc.v}%} is false:
- broadcast "{@P} &9UHC not %{uhc.v}%ed in time!"
- command sender command "/sall random.break"
- broadcast "{@P} &9%command sender%, re-do command!"
- delete {uhc.se}
- stop trigger
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement