Pls help!! KoTH Skript

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

lkluyt

New Member
Apr 26, 2021
5
0
1
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"
 
You can put in debug messages in different parts of the script, this way you know what code is being run
 
Status
Not open for further replies.