So I just got a KoTH skript (not mine) and I realized that it kinda stops around line 14. It may have to do something with {capping::*} but idk what that means. I'm pretty new to skript
Code:
Variables:
{skoth} = false
{kmsg} = false
on any movement:
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 "&bVile &7» &c%player% &7is now capturing the KoTH! 30 Seconds Left!"
set {kmsg} to true
wait 15 seconds
if player is in {capping::*}:
broadcast "&bVile &7» &c%player% &7is capturing the KoTH! 15 Seconds Left!"
wait 15 seconds
if player is in {capping::*}:
broadcast "&bVile &7» &c%player% &7has captured the KoTH!"
execute console command "/eco give %player% 50"
execute console command "/rg flag spawn pvp deny"
set {skoth} to false
set {kmsg} to false
remove player from {capping::*}
on any movement:
if {skoth} is true:
if player is in {capping::*}:
if distance between player and {koth} is more than 3:
if distance between player and {koth} is less than 3:
broadcast "&bVile &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 "&bVile &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 "&bVile &7» The KoTH was abruptly ended!"
command /koth:
trigger:
send "&bVile &7» The KoTH's location is &c%{koth}%&7!"
every 1 minute:
execute console command "/rg flag -w ul_Void11Season3 spawn pvp allow"
execute console command "/startkoth"