Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Variables:
- {skoth} = false
- {kmsg} = false
- on walk on polished andesite:
- if {skoth} is true:
- if distance between player and {koth} is less than 3:
- if size of {capping::*} is 1:
- stop
- else:
- if size of {capping::*} is 0:
- add player to {capping::*}
- if {kmsg} is not true:
- broadcast "&bKothlab &7» &c%player% &7is now capturing the KoTH! 30 Seconds Left!"
- set {kmsg} to true
- wait 15 seconds
- if player is in {capping::*}:
- broadcast "&bKothlab &7» &c%player% &7is capturing the KoTH! 15 Seconds Left!"
- wait 15 seconds
- if player is in {capping::*}:
- broadcast "&bKothlab &7» &c%player% &7has captured the KoTH!"
- execute console command "/cc give physical Enchanted 2 %player%"
- set {skoth} to false
- set {kmsg} to false
- remove player from {capping::*}
- on walk on grass:
- if {skoth} is true:
- if player is in {capping::*}:
- if player's location is not within 3 blocks of {koth}:
- if player's location is within 4 blocks of {koth}:
- broadcast "&bKothlab &7» &c%player% &7is no longer capturing the KoTH!"
- set {kmsg} to false
- command /setkoth:
- permission: rank.admin
- permission message: &cInsufficient Permissions.
- trigger:
- set {koth} to player's location
- send "&aSuccess! &7&o(Set The KoTH's Location to %player's location%!)"
- command /startkoth:
- permission: rank.admin
- permission message: &cInsufficient Permissions.
- trigger:
- set {skoth} to true
- broadcast "&bKothlab &7» A KoTH has begun at &c%{koth}%&b!"
- command /endkoth:
- permission: rank.admin
- permission message: &cInsufficient Permissions.
- trigger:
- set {skoth} to false
- set {kmsg} to false
- delete {capping::*}
- broadcast "&bKothlab &7» The KoTH was abruptly ended!"
- command /koth:
- trigger:
- send "&bKothlab &7» The KoTH's location is &c%{koth}%&7!"
- #THE ERROR MESSAGE IT SAYS IS Line 30: Can't compare a location with 'within 3 blocks of {koth}' (script.sk, line 30: if player's location is not within 3 blocks of {koth}:')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement