Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #- A UHC run skript -#
- command /startuhc <integer> <integer>:
- permission: {@HostPerm}
- permission message: {@NotHostMess}
- usage: "/startuhc <time until PVP in minutes> <time until meetup in minutes>"
- executable by: players
- trigger:
- if arg 1 is less than 0:
- message "{@PreMess} Times cannot be negative!" to the player
- stop trigger
- if arg 2 is less than 0:
- message "{@PreMess} Times cannot be negative!" to the player
- stop trigger
- broadcast "{@Pre} Game Starting in: 5"
- wait 1 second
- broadcast "{@Pre} Game Starting in: 4"
- wait 1 second
- broadcast "{@Pre} Game Starting in: 3"
- wait 1 second
- broadcast "{@Pre} Game Starting in: 2"
- wait 1 second
- execute console command "/freeze"
- broadcast "{@Pre} Game Starting in: 1"
- wait 1 second
- broadcast "{@Pre} Game Starting Now!"
- execute console command "/unfreeze"
- execute console command "/killboard"
- execute console command "/pvp global off"
- execute console command "/heal *"
- execute console command "/feed *"
- set {_pvpseconds} to arg 1*60
- if arg 2 is not 0:
- set {_meetup} to (arg 2-arg 1)*60
- if arg 1 is not 0:
- execute console command "/timer %{_pvpseconds}% PVP"
- loop ({_pvpseconds}+1)*20 times:
- wait 1 tick
- broadcast "{@Pre} PVP ON!"
- execute console command "/pvp global on"
- if arg 2 is not 0:
- execute console command "/timer %{_meetup}% Meetup"
- loop ({_meetup}+1)*20 times:
- wait 1 tick
- broadcast "{@Pre} Meetup is now! Go to 0,0 Immediately! Only stop for a fight!"
- execute console command "/timer 9999999 MEETUP IS NOW"
Advertisement
Add Comment
Please, Sign In to add comment