# Sharpshooter Script # Made by NJCraftPvP # Currently only holds 8 teams # CONFIG # CONFIG # CONFIG options: Prefix: &f<<&4Sharpshooter&f>>&c WarpAmounts: 58 variables: {captain.%player%} = false {team1.%player%} = false {team2.%player%} = false {team3.%player%} = false {team4.%player%} = false {team5.%player%} = false {team6.%player%} = false {team7.%player%} = false {team8.%player%} = false # COMMANDS # COMMANDS # COMMANDS command /ss-help: description: Sharpshooter Script Help usage: /ss help trigger: message "{@Prefix} /ss-captain - Sets a captin" message "{@Prefix} /ss-ucaptain - Removes a captain" message "{@Prefix} /ss-reset - Issue at beginning of all games, before any othe SS commands" message "{@Prefix} /ss-teleport - Teleports all non-captains to their pads" message "{@Prefix} /ss-shoot - Teleport the next captain to shoot!" message "{@Prefix} /ss-freeze - Freeze a non-captain!" message "{@Prefix} /ss-ufreeze - Un-Freeze a player!" command /ss-captain : description: Set SharpShooter captains usage: /sscaptain permission: sharpshooter.admin permission message: "&b&lNo." trigger: if {captain.%arg 1%} is false: set {captain.%arg 1%} to true broadcast "{@Prefix} &6&l%arg 1% &chas been made a captain!" message "{@Prefix} You have been selected as a captain!" to arg 1 command "/warp SSCaptains %arg 1%" if arg 2 is "UHC0": command "/jointeam UHC0 %arg 1%" set {team1.%arg 1%} to true if arg 2 is "UHC1": command "/jointeam UHC1 %arg 1%" set {team2.%arg 1%} to true if arg 2 is "UHC2": command "/jointeam UHC2 %arg 1%" set {team3.%arg 1%} to true if arg 2 is "UHC3": command "/jointeam UHC3 %arg 1%" set {team4.%arg 1%} to true if arg 2 is "UHC4": command "/jointeam UHC4 %arg 1%" set {team5.%arg 1%} to true if arg 2 is "UHC5": command "/jointeam UHC5 %arg 1%" set {team6.%arg 1%} to true if arg 2 is "UHC6": command "/jointeam UHC6 %arg 1%" set {team7.%arg 1%} to true if arg 2 is "UHC7": command "/jointeam UHC7 %arg 1%" set {team8.%arg 1%} to true else: message "{@Prefix} This player is already a captain!" command /ss-ucaptain : description: Remove a SharpShooter captain usage: /ssucaptain permission: sharpshooter.admin permission message: &b&lNo. trigger: if {captain.%arg 1%} is false: message "{@Prefix} This player is not a captain!" else: broadcast "{@Prefix} &6&l%argument% &chas been removed as a captain!" command "/leaveteam %arg 1%" command "/warp Spawn %arg 1%" set {captain.%arg 1%} to false set {team1.%arg 1%} to false set {team2.%arg 1%} to false set {team3.%arg 1%} to false set {team4.%arg 1%} to false set {team5.%arg 1%} to false set {team6.%arg 1%} to false set {team7.%arg 1%} to false set {team8.%arg 1%} to false command /ss-reset: description: Reset all captains usage: /ssreset permission: sharpshooter.admin permission message: &b&lNo. trigger: set {warps.count} to 0 loop all players: set {captain.%loop-player%} to false set {team1.%loop-player%} to false set {team2.%loop-player%} to false set {team3.%loop-player%} to false set {team4.%loop-player%} to false set {team5.%loop-player%} to false set {team6.%loop-player%} to false set {team7.%loop-player%} to false set {team8.%loop-player%} to false broadcast "{@Prefix} Sharpshooter successfully reset!" command /ss-teleport: description: Teleport all non-captains to their positions usage: /ssteleport permission: sharpshooter.admin permission message: &b&lNo. trigger: loop all players: heal the loop-player if {captain.%loop-player%} is false: set the loop-player's gamemode to adventure apply JUMP 250 to the loop-player for 50000 seconds apply SLOW 250 to the loop-player for 50000 seconds apply BLINDNESS 10 to the loop-player for 50000 seconds broadcast "{@Prefix} Teleporting players in 3 seconds!" wait 1 second broadcast "{@Prefix} Teleporting players in 2 seconds!" wait 1 second broadcast "{@Prefix} Teleporting players in 1 second!" wait 1 second broadcast "{@Prefix} Teleporting all players to their pads!" loop all players: if {captain.%loop-player%} is false: add 1 to {warps.count} broadcast "{@Prefix} Teleported &6%loop-player% &cto their pad!" damage the loop-player by 3.1 hearts if {warps.count} is equal to 1: command "/warp SS1 %loop-player%" wait 1 tick if {warps.count} is equal to 2: command "/warp SS2 %loop-player%" wait 1 tick if {warps.count} is equal to 3: command "/warp SS3 %loop-player%" wait 1 tick if {warps.count} is equal to 4: command "/warp SS4 %loop-player%" wait 1 tick if {warps.count} is equal to 5: command "/warp SS5 %loop-player%" wait 1 tick if {warps.count} is equal to 6: command "/warp SS6 %loop-player%" wait 1 tick if {warps.count} is equal to 7: command "/warp SS7 %loop-player%" wait 1 tick if {warps.count} is equal to 8: command "/warp SS8 %loop-player%" wait 1 tick if {warps.count} is equal to 9: command "/warp SS9 %loop-player%" wait 1 tick if {warps.count} is equal to 10: command "/warp SS10 %loop-player%" wait 1 tick if {warps.count} is equal to 11: command "/warp SS11 %loop-player%" wait 1 tick if {warps.count} is equal to 12: command "/warp SS12 %loop-player%" wait 1 tick if {warps.count} is equal to 13: command "/warp SS13 %loop-player%" wait 1 tick if {warps.count} is equal to 14: command "/warp SS14 %loop-player%" wait 1 tick if {warps.count} is equal to 15: command "/warp SS15 %loop-player%" wait 1 tick if {warps.count} is equal to 16: command "/warp SS16 %loop-player%" wait 1 tick if {warps.count} is equal to 17: command "/warp SS17 %loop-player%" wait 1 tick if {warps.count} is equal to 18: command "/warp SS18 %loop-player%" wait 1 tick if {warps.count} is equal to 19: command "/warp SS19 %loop-player%" wait 1 tick if {warps.count} is equal to 20: command "/warp SS20 %loop-player%" wait 1 tick if {warps.count} is equal to 21: command "/warp SS21 %loop-player%" wait 1 tick if {warps.count} is equal to 22: command "/warp SS22 %loop-player%" wait 1 tick if {warps.count} is equal to 23: command "/warp SS23 %loop-player%" wait 1 tick if {warps.count} is equal to 24: command "/warp SS24 %loop-player%" wait 1 tick if {warps.count} is equal to 25: command "/warp SS25 %loop-player%" wait 1 tick if {warps.count} is equal to 26: command "/warp SS26 %loop-player%" wait 1 tick if {warps.count} is equal to 27: command "/warp SS27 %loop-player%" wait 1 tick if {warps.count} is equal to 28: command "/warp SS28 %loop-player%" wait 1 tick if {warps.count} is equal to 29: command "/warp SS29 %loop-player%" wait 1 tick if {warps.count} is equal to 30: command "/warp SS30 %loop-player%" wait 1 tick if {warps.count} is equal to 31: command "/warp SS31 %loop-player%" wait 1 tick if {warps.count} is equal to 32: command "/warp SS32 %loop-player%" wait 1 tick if {warps.count} is equal to 33: command "/warp SS33 %loop-player%" wait 1 tick if {warps.count} is equal to 34: command "/warp SS34 %loop-player%" wait 1 tick if {warps.count} is equal to 35: command "/warp SS35 %loop-player%" wait 1 tick if {warps.count} is equal to 36: command "/warp SS36 %loop-player%" wait 1 tick if {warps.count} is equal to 37: command "/warp SS37 %loop-player%" wait 1 tick if {warps.count} is equal to 38: command "/warp SS38 %loop-player%" wait 1 tick if {warps.count} is equal to 39: command "/warp SS39 %loop-player%" wait 1 tick if {warps.count} is equal to 40: command "/warp SS40 %loop-player%" wait 1 tick if {warps.count} is equal to 41: command "/warp SS41 %loop-player%" wait 1 tick if {warps.count} is equal to 42: command "/warp SS42 %loop-player%" wait 1 tick if {warps.count} is equal to 43: command "/warp SS43 %loop-player%" wait 1 tick if {warps.count} is equal to 44: command "/warp SS44 %loop-player%" wait 1 tick if {warps.count} is equal to 45: command "/warp SS45 %loop-player%" wait 1 tick if {warps.count} is equal to 46: command "/warp SS46 %loop-player%" wait 1 tick if {warps.count} is equal to 47: command "/warp SS47 %loop-player%" wait 1 tick if {warps.count} is equal to 48: command "/warp SS48 %loop-player%" wait 1 tick if {warps.count} is equal to 49: command "/warp SS49 %loop-player%" wait 1 tick if {warps.count} is equal to 50: command "/warp SS50 %loop-player%" wait 1 tick if {warps.count} is equal to 51: command "/warp SS51 %loop-player%" wait 1 tick if {warps.count} is equal to 52: command "/warp SS52 %loop-player%" wait 1 tick if {warps.count} is equal to 53: command "/warp SS53 %loop-player%" wait 1 tick if {warps.count} is equal to 54: command "/warp SS54 %loop-player%" wait 1 tick if {warps.count} is equal to 55: command "/warp SS55 %loop-player%" wait 1 tick if {warps.count} is equal to 56: command "/warp SS56 %loop-player%" wait 1 tick if {warps.count} is equal to 57: command "/warp SS57 %loop-player%" wait 1 tick if {warps.count} is equal to 58: command "/warp SS58 %loop-player%" wait 1 tick command /ss-shoot : description: Send a shooter to level 1 platform usage: /ss-shoot permission: sharpshooter.admin permission message: &b&lNo. trigger: if arg 2 is "low": command "/warp PlayerShooter %arg 1%" command "/give %arg 1% bow:3389 1" command "/give %arg 1% arrow 1" message "{@Prefix} Shoot the player in you wish to choose!" to arg 1 broadcast "&6&l%arg 1% &cis now shooting!" if arg 2 is "high": command "/warp PlayerShooter1 %arg 1%" command "/give %arg 1% bow:3389 1" command "/give %arg 1% arrow 1" message "{@Prefix} Shoot the player in you wish to choose!" to arg 1 broadcast "&6&l%arg 1% &cis now shooting!" command /ss-late-teleport : description: Teleport a late player to their pad usage: /ss-late-teleport permission: sharpshooter.admin permission message: &b&lNo. trigger: heal the argument broadcast "{@Prefix} Teleporting late player &6%arg 1% &cto their pad" set the argument's gamemode to adventure apply JUMP 250 to the argument for 50000 seconds apply SLOW 250 to the argument for 50000 seconds apply BLINDNESS 10 to the argument for 50000 seconds damage the argument by 3.1 hearts set {team1.%arg 1%} to false set {team2.%arg 1%} to false set {team3.%arg 1%} to false set {team4.%arg 1%} to false set {team5.%arg 1%} to false set {team6.%arg 1%} to false set {team7.%arg 1%} to false set {team8.%arg 1%} to false set {captain.%arg 1%} to false command /whitelistall: description: Whitelist all players usage: /whitelistall permission: uhc.admin executable by: players, console trigger: command "/whitelist enable" loop all players: command "/whitelist add %loop-player%" broadcast "&f<<&4UHC&f>> &cAll players &6&lwhitelisted&c!" broadcast "&f<<&4UHC&f>> &cWhitelist is now &6&lON&c!" command /a : description: Replacement for broadcast usage: /a permission: uhc.admin permission message: &b&lOr Naw executable by: players, console trigger: broadcast "&6&l<<&4UltraHardcore&6&l>> &c%arg 1%" on join: set join message to "&b%player% &9has joined sharpshooter!" on quit: set quit message to "&c%player% &4has left sharpshooter!" on load: broadcast "{@Prefix} Sharpshooter Setup loaded!" loop all players: command "/ss-reset" on damage of a player: attacker is a player broadcast "&6&l%attacker% &chas chosen &6&l%victim%&c!" wait 2 ticks heal the victim command "/ss-ufreeze %victim%" command "/warp Spawn %victim%" on shoot: projectile is an arrow wait 2 seconds command "/warp SSCaptains %shooter%" message "{@Prefix} Thank you for shooting, but do not leave! Your next turn will arrive shortly!" on damage of a player: attacker is a player command "effect %victim% clear" if {team1.%shooter%} is true: command "/jointeam UHC0 %victim%" if {team2.%shooter%} is true: command "/jointeam UHC1 %victim%" if {team3.%shooter%} is true: command "/jointeam UHC2 %victim%" if {team4.%shooter%} is true: command "/jointeam UHC3 %victim%" if {team5.%shooter%} is true: command "/jointeam UHC4 %victim%" if {team6.%shooter%} is true: command "/jointeam UHC5 %victim%" if {team7.%shooter%} is true: command "/jointeam UHC6 %victim%" if {team8.%shooter%} is true: command "/jointeam UHC7 %victim%"