Guest User

Longshots Skript

a guest
Aug 12th, 2014
929
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. #Variable - Wait wat ONLY 1 - NOOOOOOOOOOOOOOOOOOOOOO
  2. #{Longshots.GameIsGoing} = If set, scenario is running
  3. #awkwardturtles
  4.  
  5. #Choices
  6. options:
  7. n: &7[&aLongshots&7]&e #Change the Name in Brackets
  8. perms: Set.Your.Own #Permissions - Ops get all by default
  9. scenario: ls #Scenario Name
  10.  
  11. #Command
  12.  
  13. #Registering Command
  14. command ls [<text>]:
  15. trigger:
  16.  
  17. #/Longshots
  18. if arg-1 is not set:
  19. message "{@n} Skripted by: &lBitlington&r &eand Idea from &lZodiac_Nick"
  20. message "{@n} Bow shots over 75 blocks, will deal 1.5x better, and heal 1 Heart."
  21. message "{@n} To Learn more use &7/{@scenario} help"
  22.  
  23. #/Longshots enable
  24. else if arg-1 is equal to "enable":
  25. if player has permission "{@perms}":
  26. if {Longshots.GameIsGoing} is not set:
  27. set {Longshots.GameIsGoing} to true
  28. loop all players:
  29. execute console command "/playsound note.harp %player% ~ ~ ~ 1 1 1"
  30. if command sender is equal to "mroll5":
  31. broadcast "{@n} &aEnabled &7by [&cAROLL5!!!!!!&7]"
  32. else:
  33. broadcast "{@n} &aEnabled &7by [&c%command sender%&7]"
  34. else:
  35. message "{@n}&c The Scenario is already running."
  36. execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
  37. else:
  38. message "{@n} &cYou do not have the correct Permissions."
  39. execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
  40.  
  41. #/Longshots disable
  42. else if arg-1 is equal to "disable":
  43. if player has permission "{@perms}":
  44. if {Longshots.GameIsGoing} is set:
  45. delete {Longshots.GameIsGoing}
  46. loop all players:
  47. execute console command "/playsound note.harp %player% ~ ~ ~ 1 1 1"
  48. if command sender is equal to "mroll5":
  49. broadcast "{@n} &cDisabled &7by [&cAROOOOOL!!11!&7]"
  50. else:
  51. broadcast "{@n} &cDisabled &7by [&c%command sender%&7]"
  52. else:
  53. message "{@n}&c The Scenario is already disabled."
  54. execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
  55. else:
  56. message "{@n} &cYou do not have the correct Permissions."
  57. execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
  58.  
  59. #/Longshots toggle
  60. else if arg-1 is equal to "toggle":
  61. if player has permission "{@perms}":
  62. if {Longshots.GameIsGoing} is set:
  63. make the player execute "/longshots disable"
  64. else:
  65. make the player execute "/longshots enable"
  66. else:
  67. message "{@n} &cYou do not have the correct Permissions."
  68. execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
  69.  
  70. #/Longshots help
  71. else if arg-1 is equal to "help":
  72. message "{@n} Commands:"
  73. if player has permission "{@perms":
  74. message "{@n}/{@scenario} enable &7- Enables the Scenario"
  75. message "{@n}/{@scenario} disable &7- Disables the Scenario"
  76. message "{@n}/{@scenario} toggle &7- Toggles the Scenario"
  77. message "{@n}/{@scenario} &7- Explains the Scenario"
  78.  
  79. #/Longshots awjoadpolwp
  80. else:
  81. message "{@n} &cWrong Syntax - use /{@scenario} help"
  82. execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
  83.  
  84. #Event 'n' Sterf
  85.  
  86. #Longshot
  87. on damage of player:
  88. {Longshots.GameIsGoing} is true
  89. damage was caused by projectile
  90. projectile is arrow
  91. set {_l} to the distance between the attacker and victim
  92. if {_l} is greater than 75:
  93. broadcast "{@n} %attacker% scored a longshot on %victim% of %{_l}% blocks!"
  94. add 1 to attacker's health
  95. set damage to damage*1.5
  96.  
  97. #Thx m8 for reading
  98.  
  99. #Skript Tidbit
  100. #on walking on jungle leaves:
  101. # broadcast "JUNGLEJUMP!!"
  102. # push the player upwards by 10 force
Advertisement
Add Comment
Please, Sign In to add comment