Guest User

Untitled

a guest
May 18th, 2014
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. #- A UHC run skript -#
  2. command /startuhc <integer> <integer>:
  3. permission: {@HostPerm}
  4. permission message: {@NotHostMess}
  5. usage: "/startuhc <time until PVP in minutes> <time until meetup in minutes>"
  6. executable by: players
  7. trigger:
  8. if arg 1 is less than 0:
  9. message "{@PreMess} Times cannot be negative!" to the player
  10. stop trigger
  11. if arg 2 is less than 0:
  12. message "{@PreMess} Times cannot be negative!" to the player
  13. stop trigger
  14. broadcast "{@Pre} Game Starting in: 5"
  15. wait 1 second
  16. broadcast "{@Pre} Game Starting in: 4"
  17. wait 1 second
  18. broadcast "{@Pre} Game Starting in: 3"
  19. wait 1 second
  20. broadcast "{@Pre} Game Starting in: 2"
  21. wait 1 second
  22. execute console command "/freeze"
  23. broadcast "{@Pre} Game Starting in: 1"
  24. wait 1 second
  25. broadcast "{@Pre} Game Starting Now!"
  26. execute console command "/unfreeze"
  27. execute console command "/killboard"
  28. execute console command "/pvp global off"
  29. execute console command "/heal *"
  30. execute console command "/feed *"
  31. set {_pvpseconds} to arg 1*60
  32. if arg 2 is not 0:
  33. set {_meetup} to (arg 2-arg 1)*60
  34. if arg 1 is not 0:
  35. execute console command "/timer %{_pvpseconds}% PVP"
  36. loop ({_pvpseconds}+1)*20 times:
  37. wait 1 tick
  38. broadcast "{@Pre} PVP ON!"
  39. execute console command "/pvp global on"
  40. if arg 2 is not 0:
  41. execute console command "/timer %{_meetup}% Meetup"
  42. loop ({_meetup}+1)*20 times:
  43. wait 1 tick
  44. broadcast "{@Pre} Meetup is now! Go to 0,0 Immediately! Only stop for a fight!"
  45. execute console command "/timer 9999999 MEETUP IS NOW"
Advertisement
Add Comment
Please, Sign In to add comment