Guest User

Elllz' Meetup in ? ~ A skript by: Bitlington

a guest
Jun 2nd, 2014
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 KB | None | 0 0
  1. #==================================# #Line 1
  2. #> Skript Author: /u/bitlington < # #Line 2
  3. #> Scenario Author: /u/Ellzman619 <# #Line 3
  4. #> Scenario: Meetup in ? < # #Line 4
  5. #==================================# #Line 5
  6. #Line 6
  7. #Line 7
  8. options: #Line 8
  9. scenario: &f[&bMeetupAt?&f]&7 #Line 9
  10. Variables: #Line 10
  11. {state}=off #Line 11
  12. # Line 12
  13. command /?meetup [<integer>] [<text>]: #Line 13
  14. description: Runs the Meetup in ? Scenario. Use Radius for to run game, no radius for ex. #Line 14
  15. usage: /?meetup <Radius> <off>(Turn scenario off) - No Radius gives explaination #Line 15
  16. executable by: players and console #Line 16
  17. aliases: /?m, //?meetup, //?m, /?meet, //?meet, /meet?, /m?, //m?, //meet? #Line 17
  18. trigger: #Line 18
  19. if arg 2 is set: #Line 19
  20. player is a op: #Line 20
  21. if arg 2 is "off": #Line 21
  22. set {state} to off #Line 22
  23. broadcast "{@scenario} Meetup has been stopped by <red>%player%!" #Line 23
  24. loop all players: #Line 24
  25. execute player command "/playsound mob.wolf.howl %loop-player% ~ ~ ~ 1 1 1" #Line 25
  26. if arg 1 is not set: #Line 26
  27. if arg 2 is not set:#Line 27
  28. message "{@scenario} &cAt a random time, meetup will start at random coords." to the player #Line 28
  29. wait 0.0001 seconds #Line 29
  30. message "{@scenario} &cScenario Author: /u/Ellzman619" to the player #Line 30
  31. wait 0.0001 seconds #Line 31
  32. message "{@scenario} &cSkript Author: /u/bitlington" to the player #Line 32
  33. wait 0.0001 seconds #Line 33
  34. if the player is a op: #Line 34
  35. message "{@scenario} &cUsage: /?meetup <Radius> <off>(Turn Scenario off) - No Radius Gives Explaination - Radius not nessecary for turning it off" to the player #Line 35
  36. if arg 1 is set: #Line 36
  37. player is not a op: #Line 37
  38. message "{@scenario} &cYou are not an operator thus you cannot use this command." to the player #Line 38
  39. stop trigger #Line 39
  40. if arg 2 is set: #Line 40
  41. player is not a op: #Line 41
  42. message "{@scenario} &cYou are not an operator thus you cannot use this command." to the player #Line 42
  43. stop trigger #Line 43
  44. if arg 1 is less than 50: #Line 44
  45. message "{@scenario} &cYour radius is too small to make the skript work!" to the player #Line 45
  46. wait 0.5 seconds #Line 46
  47. stop trigger #Line 47
  48. set {_xmeetuploc} to a random integer between (arg 1 + 25)*-1 and (arg 1 - 25)*1 #Line 48
  49. set {_zmeetuploc} to a random integer between (arg 1 + 25)*-1 and (arg 1 - 25)*1 #Line 49
  50. set {_meetuptime} to a random integer between 1800 and 7200 #Line 50 - 39 mins to 2 Hours in Seconds
  51. broadcast "{@scenario} &cRandom Meetup Location and Time has been chosen!" #Line 51
  52. loop all players: #Line 52
  53. execute console command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1" #Line 53
  54. set {state} to on #Line 54
  55. loop ({_meetuptime}+1)*20 times: #Line 55
  56. if {state} is on: #Line 56
  57. wait 1 tick #Line 57
  58. set {_meetuptimemin} to {_meetuptime}/60 #Line 58
  59. broadcast "{@scenario} &cMEETUP! Go to X = %{_xmeetuploc}%, and Z = %{_zmeetuploc}%. Time Elapsed: %{_meetuptimemin}% minutes!" #Line 59
  60. set {state} to off #Line 60
  61. loop all players: #Line 61
  62. execute console command "/playsound mob.wolf.howl %loop-player% ~ ~ ~ 1 1 1" #Line 62
  63. #The End Line 63
Advertisement
Add Comment
Please, Sign In to add comment