Advertisement
Winter__

Untitled

Aug 16th, 2014
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.37 KB | None | 0 0
  1. # Sharpshooter Script
  2. # Made by NJCraftPvP
  3. # Currently only holds 8 teams
  4.  
  5. # CONFIG
  6. # CONFIG
  7. # CONFIG
  8.  
  9. options:
  10. Prefix: &f<<&4Sharpshooter&f>>&c
  11. WarpAmounts: 58
  12.  
  13. variables:
  14. {captain.%player%} = false
  15. {team1.%player%} = false
  16. {team2.%player%} = false
  17. {team3.%player%} = false
  18. {team4.%player%} = false
  19. {team5.%player%} = false
  20. {team6.%player%} = false
  21. {team7.%player%} = false
  22. {team8.%player%} = false
  23.  
  24. # COMMANDS
  25. # COMMANDS
  26. # COMMANDS
  27.  
  28. command /ss-help:
  29. description: Sharpshooter Script Help
  30. usage: /ss help
  31. trigger:
  32. message "{@Prefix} /ss-captain - Sets a captin"
  33. message "{@Prefix} /ss-ucaptain - Removes a captain"
  34. message "{@Prefix} /ss-reset - Issue at beginning of all games, before any othe SS commands"
  35. message "{@Prefix} /ss-teleport - Teleports all non-captains to their pads"
  36. message "{@Prefix} /ss-shoot - Teleport the next captain to shoot!"
  37. message "{@Prefix} /ss-freeze - Freeze a non-captain!"
  38. message "{@Prefix} /ss-ufreeze - Un-Freeze a player!"
  39.  
  40. command /ss-captain <player> <text>:
  41. description: Set SharpShooter captains
  42. usage: /sscaptain <player> <team>
  43. permission: sharpshooter.admin
  44. permission message: "&b&lNo."
  45. trigger:
  46. if {captain.%arg 1%} is false:
  47. set {captain.%arg 1%} to true
  48. broadcast "{@Prefix} &6&l%arg 1% &chas been made a captain!"
  49. message "{@Prefix} You have been selected as a captain!" to arg 1
  50. command "/warp SSCaptains %arg 1%"
  51. if arg 2 is "UHC0":
  52. command "/jointeam UHC0 %arg 1%"
  53. set {team1.%arg 1%} to true
  54. if arg 2 is "UHC1":
  55. command "/jointeam UHC1 %arg 1%"
  56. set {team2.%arg 1%} to true
  57. if arg 2 is "UHC2":
  58. command "/jointeam UHC2 %arg 1%"
  59. set {team3.%arg 1%} to true
  60. if arg 2 is "UHC3":
  61. command "/jointeam UHC3 %arg 1%"
  62. set {team4.%arg 1%} to true
  63. if arg 2 is "UHC4":
  64. command "/jointeam UHC4 %arg 1%"
  65. set {team5.%arg 1%} to true
  66. if arg 2 is "UHC5":
  67. command "/jointeam UHC5 %arg 1%"
  68. set {team6.%arg 1%} to true
  69. if arg 2 is "UHC6":
  70. command "/jointeam UHC6 %arg 1%"
  71. set {team7.%arg 1%} to true
  72. if arg 2 is "UHC7":
  73. command "/jointeam UHC7 %arg 1%"
  74. set {team8.%arg 1%} to true
  75. else:
  76. message "{@Prefix} This player is already a captain!"
  77.  
  78. command /ss-ucaptain <player>:
  79. description: Remove a SharpShooter captain
  80. usage: /ssucaptain <player>
  81. permission: sharpshooter.admin
  82. permission message: &b&lNo.
  83. trigger:
  84. if {captain.%arg 1%} is false:
  85. message "{@Prefix} This player is not a captain!"
  86. else:
  87. broadcast "{@Prefix} &6&l%argument% &chas been removed as a captain!"
  88. command "/leaveteam %arg 1%"
  89. command "/warp Spawn %arg 1%"
  90. set {captain.%arg 1%} to false
  91. set {team1.%arg 1%} to false
  92. set {team2.%arg 1%} to false
  93. set {team3.%arg 1%} to false
  94. set {team4.%arg 1%} to false
  95. set {team5.%arg 1%} to false
  96. set {team6.%arg 1%} to false
  97. set {team7.%arg 1%} to false
  98. set {team8.%arg 1%} to false
  99.  
  100. command /ss-reset:
  101. description: Reset all captains
  102. usage: /ssreset
  103. permission: sharpshooter.admin
  104. permission message: &b&lNo.
  105. trigger:
  106. set {warps.count} to 0
  107. loop all players:
  108. set {captain.%loop-player%} to false
  109. set {team1.%loop-player%} to false
  110. set {team2.%loop-player%} to false
  111. set {team3.%loop-player%} to false
  112. set {team4.%loop-player%} to false
  113. set {team5.%loop-player%} to false
  114. set {team6.%loop-player%} to false
  115. set {team7.%loop-player%} to false
  116. set {team8.%loop-player%} to false
  117. broadcast "{@Prefix} Sharpshooter successfully reset!"
  118.  
  119. command /ss-teleport:
  120. description: Teleport all non-captains to their positions
  121. usage: /ssteleport
  122. permission: sharpshooter.admin
  123. permission message: &b&lNo.
  124. trigger:
  125. loop all players:
  126. heal the loop-player
  127. if {captain.%loop-player%} is false:
  128. set the loop-player's gamemode to adventure
  129. apply JUMP 250 to the loop-player for 50000 seconds
  130. apply SLOW 250 to the loop-player for 50000 seconds
  131. apply BLINDNESS 10 to the loop-player for 50000 seconds
  132. broadcast "{@Prefix} Teleporting players in 3 seconds!"
  133. wait 1 second
  134. broadcast "{@Prefix} Teleporting players in 2 seconds!"
  135. wait 1 second
  136. broadcast "{@Prefix} Teleporting players in 1 second!"
  137. wait 1 second
  138. broadcast "{@Prefix} Teleporting all players to their pads!"
  139. loop all players:
  140. if {captain.%loop-player%} is false:
  141. add 1 to {warps.count}
  142. broadcast "{@Prefix} Teleported &6%loop-player% &cto their pad!"
  143. damage the loop-player by 3.1 hearts
  144. if {warps.count} is equal to 1:
  145. command "/warp SS1 %loop-player%"
  146. wait 1 tick
  147. if {warps.count} is equal to 2:
  148. command "/warp SS2 %loop-player%"
  149. wait 1 tick
  150. if {warps.count} is equal to 3:
  151. command "/warp SS3 %loop-player%"
  152. wait 1 tick
  153. if {warps.count} is equal to 4:
  154. command "/warp SS4 %loop-player%"
  155. wait 1 tick
  156. if {warps.count} is equal to 5:
  157. command "/warp SS5 %loop-player%"
  158. wait 1 tick
  159. if {warps.count} is equal to 6:
  160. command "/warp SS6 %loop-player%"
  161. wait 1 tick
  162. if {warps.count} is equal to 7:
  163. command "/warp SS7 %loop-player%"
  164. wait 1 tick
  165. if {warps.count} is equal to 8:
  166. command "/warp SS8 %loop-player%"
  167. wait 1 tick
  168. if {warps.count} is equal to 9:
  169. command "/warp SS9 %loop-player%"
  170. wait 1 tick
  171. if {warps.count} is equal to 10:
  172. command "/warp SS10 %loop-player%"
  173. wait 1 tick
  174. if {warps.count} is equal to 11:
  175. command "/warp SS11 %loop-player%"
  176. wait 1 tick
  177. if {warps.count} is equal to 12:
  178. command "/warp SS12 %loop-player%"
  179. wait 1 tick
  180. if {warps.count} is equal to 13:
  181. command "/warp SS13 %loop-player%"
  182. wait 1 tick
  183. if {warps.count} is equal to 14:
  184. command "/warp SS14 %loop-player%"
  185. wait 1 tick
  186. if {warps.count} is equal to 15:
  187. command "/warp SS15 %loop-player%"
  188. wait 1 tick
  189. if {warps.count} is equal to 16:
  190. command "/warp SS16 %loop-player%"
  191. wait 1 tick
  192. if {warps.count} is equal to 17:
  193. command "/warp SS17 %loop-player%"
  194. wait 1 tick
  195. if {warps.count} is equal to 18:
  196. command "/warp SS18 %loop-player%"
  197. wait 1 tick
  198. if {warps.count} is equal to 19:
  199. command "/warp SS19 %loop-player%"
  200. wait 1 tick
  201. if {warps.count} is equal to 20:
  202. command "/warp SS20 %loop-player%"
  203. wait 1 tick
  204. if {warps.count} is equal to 21:
  205. command "/warp SS21 %loop-player%"
  206. wait 1 tick
  207. if {warps.count} is equal to 22:
  208. command "/warp SS22 %loop-player%"
  209. wait 1 tick
  210. if {warps.count} is equal to 23:
  211. command "/warp SS23 %loop-player%"
  212. wait 1 tick
  213. if {warps.count} is equal to 24:
  214. command "/warp SS24 %loop-player%"
  215. wait 1 tick
  216. if {warps.count} is equal to 25:
  217. command "/warp SS25 %loop-player%"
  218. wait 1 tick
  219. if {warps.count} is equal to 26:
  220. command "/warp SS26 %loop-player%"
  221. wait 1 tick
  222. if {warps.count} is equal to 27:
  223. command "/warp SS27 %loop-player%"
  224. wait 1 tick
  225. if {warps.count} is equal to 28:
  226. command "/warp SS28 %loop-player%"
  227. wait 1 tick
  228. if {warps.count} is equal to 29:
  229. command "/warp SS29 %loop-player%"
  230. wait 1 tick
  231. if {warps.count} is equal to 30:
  232. command "/warp SS30 %loop-player%"
  233. wait 1 tick
  234. if {warps.count} is equal to 31:
  235. command "/warp SS31 %loop-player%"
  236. wait 1 tick
  237. if {warps.count} is equal to 32:
  238. command "/warp SS32 %loop-player%"
  239. wait 1 tick
  240. if {warps.count} is equal to 33:
  241. command "/warp SS33 %loop-player%"
  242. wait 1 tick
  243. if {warps.count} is equal to 34:
  244. command "/warp SS34 %loop-player%"
  245. wait 1 tick
  246. if {warps.count} is equal to 35:
  247. command "/warp SS35 %loop-player%"
  248. wait 1 tick
  249. if {warps.count} is equal to 36:
  250. command "/warp SS36 %loop-player%"
  251. wait 1 tick
  252. if {warps.count} is equal to 37:
  253. command "/warp SS37 %loop-player%"
  254. wait 1 tick
  255. if {warps.count} is equal to 38:
  256. command "/warp SS38 %loop-player%"
  257. wait 1 tick
  258. if {warps.count} is equal to 39:
  259. command "/warp SS39 %loop-player%"
  260. wait 1 tick
  261. if {warps.count} is equal to 40:
  262. command "/warp SS40 %loop-player%"
  263. wait 1 tick
  264. if {warps.count} is equal to 41:
  265. command "/warp SS41 %loop-player%"
  266. wait 1 tick
  267. if {warps.count} is equal to 42:
  268. command "/warp SS42 %loop-player%"
  269. wait 1 tick
  270. if {warps.count} is equal to 43:
  271. command "/warp SS43 %loop-player%"
  272. wait 1 tick
  273. if {warps.count} is equal to 44:
  274. command "/warp SS44 %loop-player%"
  275. wait 1 tick
  276. if {warps.count} is equal to 45:
  277. command "/warp SS45 %loop-player%"
  278. wait 1 tick
  279. if {warps.count} is equal to 46:
  280. command "/warp SS46 %loop-player%"
  281. wait 1 tick
  282. if {warps.count} is equal to 47:
  283. command "/warp SS47 %loop-player%"
  284. wait 1 tick
  285. if {warps.count} is equal to 48:
  286. command "/warp SS48 %loop-player%"
  287. wait 1 tick
  288. if {warps.count} is equal to 49:
  289. command "/warp SS49 %loop-player%"
  290. wait 1 tick
  291. if {warps.count} is equal to 50:
  292. command "/warp SS50 %loop-player%"
  293. wait 1 tick
  294. if {warps.count} is equal to 51:
  295. command "/warp SS51 %loop-player%"
  296. wait 1 tick
  297. if {warps.count} is equal to 52:
  298. command "/warp SS52 %loop-player%"
  299. wait 1 tick
  300. if {warps.count} is equal to 53:
  301. command "/warp SS53 %loop-player%"
  302. wait 1 tick
  303. if {warps.count} is equal to 54:
  304. command "/warp SS54 %loop-player%"
  305. wait 1 tick
  306. if {warps.count} is equal to 55:
  307. command "/warp SS55 %loop-player%"
  308. wait 1 tick
  309. if {warps.count} is equal to 56:
  310. command "/warp SS56 %loop-player%"
  311. wait 1 tick
  312. if {warps.count} is equal to 57:
  313. command "/warp SS57 %loop-player%"
  314. wait 1 tick
  315. if {warps.count} is equal to 58:
  316. command "/warp SS58 %loop-player%"
  317. wait 1 tick
  318.  
  319. command /ss-shoot <player> <text>:
  320. description: Send a shooter to level 1 platform
  321. usage: /ss-shoot <player> <level(high/low)>
  322. permission: sharpshooter.admin
  323. permission message: &b&lNo.
  324. trigger:
  325. if arg 2 is "low":
  326. command "/warp PlayerShooter %arg 1%"
  327. command "/give %arg 1% bow:3389 1"
  328. command "/give %arg 1% arrow 1"
  329. message "{@Prefix} Shoot the player in you wish to choose!" to arg 1
  330. broadcast "&6&l%arg 1% &cis now shooting!"
  331. if arg 2 is "high":
  332. command "/warp PlayerShooter1 %arg 1%"
  333. command "/give %arg 1% bow:3389 1"
  334. command "/give %arg 1% arrow 1"
  335. message "{@Prefix} Shoot the player in you wish to choose!" to arg 1
  336. broadcast "&6&l%arg 1% &cis now shooting!"
  337.  
  338. command /ss-late-teleport <player>:
  339. description: Teleport a late player to their pad
  340. usage: /ss-late-teleport
  341. permission: sharpshooter.admin
  342. permission message: &b&lNo.
  343. trigger:
  344. heal the argument
  345. broadcast "{@Prefix} Teleporting late player &6%arg 1% &cto their pad"
  346. set the argument's gamemode to adventure
  347. apply JUMP 250 to the argument for 50000 seconds
  348. apply SLOW 250 to the argument for 50000 seconds
  349. apply BLINDNESS 10 to the argument for 50000 seconds
  350. damage the argument by 3.1 hearts
  351. set {team1.%arg 1%} to false
  352. set {team2.%arg 1%} to false
  353. set {team3.%arg 1%} to false
  354. set {team4.%arg 1%} to false
  355. set {team5.%arg 1%} to false
  356. set {team6.%arg 1%} to false
  357. set {team7.%arg 1%} to false
  358. set {team8.%arg 1%} to false
  359. set {captain.%arg 1%} to false
  360.  
  361. command /whitelistall:
  362. description: Whitelist all players
  363. usage: /whitelistall
  364. permission: uhc.admin
  365. executable by: players, console
  366. trigger:
  367. command "/whitelist enable"
  368. loop all players:
  369. command "/whitelist add %loop-player%"
  370. broadcast "&f<<&4UHC&f>> &cAll players &6&lwhitelisted&c!"
  371. broadcast "&f<<&4UHC&f>> &cWhitelist is now &6&lON&c!"
  372.  
  373. command /a <text>:
  374. description: Replacement for broadcast
  375. usage: /a <message>
  376. permission: uhc.admin
  377. permission message: &b&lOr Naw
  378. executable by: players, console
  379. trigger:
  380. broadcast "&6&l<<&4UltraHardcore&6&l>> &c%arg 1%"
  381.  
  382. on join:
  383. set join message to "&b%player% &9has joined sharpshooter!"
  384.  
  385. on quit:
  386. set quit message to "&c%player% &4has left sharpshooter!"
  387.  
  388. on load:
  389. broadcast "{@Prefix} Sharpshooter Setup loaded!"
  390. loop all players:
  391. command "/ss-reset"
  392.  
  393. on damage of a player:
  394. attacker is a player
  395. broadcast "&6&l%attacker% &chas chosen &6&l%victim%&c!"
  396. wait 2 ticks
  397. heal the victim
  398. command "/ss-ufreeze %victim%"
  399. command "/warp Spawn %victim%"
  400.  
  401. on shoot:
  402. projectile is an arrow
  403. wait 2 seconds
  404. command "/warp SSCaptains %shooter%"
  405. message "{@Prefix} Thank you for shooting, but do not leave! Your next turn will arrive shortly!"
  406.  
  407. on damage of a player:
  408. attacker is a player
  409. command "effect %victim% clear"
  410. if {team1.%shooter%} is true:
  411. command "/jointeam UHC0 %victim%"
  412. if {team2.%shooter%} is true:
  413. command "/jointeam UHC1 %victim%"
  414. if {team3.%shooter%} is true:
  415. command "/jointeam UHC2 %victim%"
  416. if {team4.%shooter%} is true:
  417. command "/jointeam UHC3 %victim%"
  418. if {team5.%shooter%} is true:
  419. command "/jointeam UHC4 %victim%"
  420. if {team6.%shooter%} is true:
  421. command "/jointeam UHC5 %victim%"
  422. if {team7.%shooter%} is true:
  423. command "/jointeam UHC6 %victim%"
  424. if {team8.%shooter%} is true:
  425. command "/jointeam UHC7 %victim%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement