Solved Circle Anti KillAura bot

  • 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 comminuty!

    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.

Wolwer

Active Member
Feb 8, 2018
53
5
8
Hello everyone!
Im a teen skript developer:emoji_grin:. I want to make a circle anti-killaura bot that circle around the player. I have already seen that thread: https://forums.skunity.com/threads/watchdog.7318/#post-31045

But i havent found the answer on my question. Pls someone help me with this skript.

I only need a command, that summons an npc circling around player.

(Sorry my English, im from Russia)
[doublepost=1537789140,1537649201][/doublepost]Help pls!:emoji_tired_face:
 
Hello, I just made an anti-killaura script. Use the /killaura <player> command when the player is fighting.
This spawns a pig to a block behind the player, and when the player hits the pig it says "You are using killaura"

code_language.skript:
command /killaura <Player>:
    trigger:
        set {loc1} to block behind arg-1
        set {attacker} to arg-1
        spawn a pig at {loc1}
        set {auratest} to the last spawned entity

on damage:
    if victim is {auratest}:
        if attacker is {attacker}:
            send "&cYou are using killaura!" to attacker

This isn't the best way to do this, because you can disable attacking animals with killaura in some hacked clients
Hope this helps! And sorry for my bad English :emoji_grinning:

EDIT: Removed the underscores so the script should work now. Thanks ShaneBee
 
Last edited:
Hello, I just made an anti-killaura script. Use the /killaura <player> command when the player is fighting.
This spawns a pig to a block behind the player, and when the player hits the pig it says "You are using killaura"

code_language.skript:
command /killaura <Player>:
    trigger:
        set {_loc1} to block behind arg-1
        set {_attacker} to arg-1
        spawn a pig at {_loc1}
        set {auratest} to the last spawned entity

on damage:
    if victim is {auratest}:
        if attacker is {_attacker}:
            send "&cYou are using killaura!" to attacker

This isn't the best way to do this, because you can disable attacking animals with killaura in some hacked clients
Hope this helps! And sorry for my bad English :emoji_grinning:
I recommend editing this post, as you are recommending to the op to use local variables, which will not work across those 2 different events/triggers, since local variables are only used within the event themselves.
 
I recommend editing this post, as you are recommending to the op to use local variables, which will not work across those 2 different events/triggers, since local variables are only used within the event themselves.
just one more thing, when I tested the script, it (the variables with underscore) worked.
 
Hello, I just made an anti-killaura script. Use the /killaura <player> command when the player is fighting.
This spawns a pig to a block behind the player, and when the player hits the pig it says "You are using killaura"

code_language.skript:
command /killaura <Player>:
    trigger:
        set {loc1} to block behind arg-1
        set {attacker} to arg-1
        spawn a pig at {loc1}
        set {auratest} to the last spawned entity

on damage:
    if victim is {auratest}:
        if attacker is {attacker}:
            send "&cYou are using killaura!" to attacker

This isn't the best way to do this, because you can disable attacking animals with killaura in some hacked clients
Hope this helps! And sorry for my bad English :emoji_grinning:

EDIT: Removed the underscores so the script should work now. Thanks ShaneBee
Thankyou, but i wanna a circle bot :emoji_grinning: I have already seen this on spigotmc, and this is very userfull, but a circle bot more cool))
It looks like this: https://embed.gyazo.com/3ab0ccb48c10502400a00a252fb04f63.gif (this link from spigotmc)
 
Last edited:
Thankyou, but i wanna a circle bot :emoji_grinning: I have already seen this on spigotmc, and this is very userfull, but a circle bot more cool))
It looks like this: https://embed.gyazo.com/3ab0ccb48c10502400a00a252fb04f63.gif (this link from spigotmc)
Try this out:
code_language.skript:
function circleBot(p: player):
    set {_n} to npc named "%random integer between 100000 and 999999%" "PLAYER"
    set fly of npc {_n} to true
    set protect of npc {_n} to false
    spawn npc {_n} at location of {_p} ~ vector 2, 0, 0
    set {_e} to entity from npc {_n}
    set gravity of {_e} to false
    add {_e} to {bots::*}
    loop 5 times:
        loop 360 times:
            set {_ploc} to location of {_p}
            set {_v} to vector from yaw loop-number-2 and pitch 0
            set vector length of {_v} to 2
            teleport {_e} to {_ploc} ~ {_v}
            mod(loop-number-2, 12) = 0
            wait 1 tick
    remove {_e} from {bots::*}
    remove npc {_n}
    
on damage:
    {bots::*} contains victim
    attacker is set
    attacker is a player
    send "You hit a bot!" to attacker
    
command /bot:
    trigger:
        circleBot(player)
 
Try this out:
code_language.skript:
function circleBot(p: player):
    set {_n} to npc named "%random integer between 100000 and 999999%" "PLAYER"
    set fly of npc {_n} to true
    set protect of npc {_n} to false
    spawn npc {_n} at location of {_p} ~ vector 2, 0, 0
    set {_e} to entity from npc {_n}
    set gravity of {_e} to false
    add {_e} to {bots::*}
    loop 5 times:
        loop 360 times:
            set {_ploc} to location of {_p}
            set {_v} to vector from yaw loop-number-2 and pitch 0
            set vector length of {_v} to 2
            teleport {_e} to {_ploc} ~ {_v}
            mod(loop-number-2, 12) = 0
            wait 1 tick
    remove {_e} from {bots::*}
    remove npc {_n}
   
on damage:
    {bots::*} contains victim
    attacker is set
    attacker is a player
    send "You hit a bot!" to attacker
   
command /bot:
    trigger:
        circleBot(player)
Skript version?
 
Skript (at least dev28), Citizens and Skellett with Npc: true in config.yml
Oooh..
[17:01:34 ERROR]: [Skript] 'circleBot(p: player)' is not a text (circle.sk, line 1: function circleBot(p: player):')
[17:01:34 ERROR]: [Skript] 'circleBot(player)' is not a boolean (yes/no) (circle.sk, line 28: circleBot(player)')
Skript: latest
Skellet: latest
server version: Craftbukkit 1.8.8-R0.1-SNAPSHOT
Help!
 
Oooh..
[17:01:34 ERROR]: [Skript] 'circleBot(p: player)' is not a text (circle.sk, line 1: function circleBot(p: player):')
[17:01:34 ERROR]: [Skript] 'circleBot(player)' is not a boolean (yes/no) (circle.sk, line 28: circleBot(player)')
Skript: latest
Skellet: latest
server rersion: Craftbukkit 1.8.8-R0.1-SNAPSHOT
Help!
Please send your exact Skript version using /ver Skript (not latest)
 
That version is 4 years old and definitely not the latest. Use https://github.com/SkriptLang/Skript/releases/tag/dev37c and if that doesn't work try https://github.com/SkriptLang/Skript/releases/tag/dev36
where i can download skellet latest version?
[doublepost=1538663414,1538662925][/doublepost]
That version is 4 years old and definitely not the latest. Use https://github.com/SkriptLang/Skript/releases/tag/dev37c and if that doesn't work try https://github.com/SkriptLang/Skript/releases/tag/dev36
Ouch!
[17:27:20 ERROR]: #!#! [Skript] Severe Error:
[17:27:20 ERROR]: #!#! Could not load circle.sk
[17:27:20 ERROR]: #!#!
[17:27:20 ERROR]: #!#! Something went horribly wrong with Skript.
[17:27:20 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[17:27:20 ERROR]: #!#! Your Minecraft version or server software appears to be unsupported by Skript (bensku's version).
[17:27:20 ERROR]: #!#! Currently only supported servers are Spigot and its forks for Minecraft 1.9 or newer.
[17:27:20 ERROR]: #!#! Other versions might work, but since you're getting this error message something is NOT working,
[17:27:20 ERROR]: #!#! nor it will work, unless you switch to supported platform.
[17:27:20 ERROR]: #!#! Issue tracker: https://github.com/SkriptLang/Skript/issues (only if you know what you're doing!)
[17:27:20 ERROR]: #!#!
[17:27:20 ERROR]: #!#! Stack trace:
[17:27:20 ERROR]: #!#! ch.njol.skript.SkriptAPIException: No class info found for lambda
[17:27:20 ERROR]: #!#! at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:264)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.createExprInfo(SkriptParser.java:1799)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.getExprInfo(SkriptParser.java:1766)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1514)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:225)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:180)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:493)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:812)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1530)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1526)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:225)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:180)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.Statement.parse(Statement.java:59)
[17:27:20 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:972)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.function.ScriptFunction.<init>(ScriptFunction.java:50)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.function.Functions.loadFunction(Functions.java:143)
[17:27:20 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:636)
[17:27:20 ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$1(ScriptLoader.java:391)
[17:27:20 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:403)
[17:27:20 ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$0(ScriptLoader.java:333)
[17:27:20 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:363)
[17:27:20 ERROR]: #!#! at ch.njol.skript.Skript$2.run(Skript.java:472)
[17:27:20 ERROR]: #!#! at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)
[17:27:20 ERROR]: #!#! at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350)
[17:27:20 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723)
[17:27:20 ERROR]: #!#! at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[17:27:20 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[17:27:20 INFO]: [Skript] Loaded 4 scripts with a total of 0 triggers and 0 commands in 1.29 seconds
[17:27:20 INFO]: [Skript] Finished loading.
I think, that this skript can't work with MC 1.8.8
 
where i can download skellet latest version?
[doublepost=1538663414,1538662925][/doublepost]
Ouch!
[17:27:20 ERROR]: #!#! [Skript] Severe Error:
[17:27:20 ERROR]: #!#! Could not load circle.sk
[17:27:20 ERROR]: #!#!
[17:27:20 ERROR]: #!#! Something went horribly wrong with Skript.
[17:27:20 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[17:27:20 ERROR]: #!#! Your Minecraft version or server software appears to be unsupported by Skript (bensku's version).
[17:27:20 ERROR]: #!#! Currently only supported servers are Spigot and its forks for Minecraft 1.9 or newer.
[17:27:20 ERROR]: #!#! Other versions might work, but since you're getting this error message something is NOT working,
[17:27:20 ERROR]: #!#! nor it will work, unless you switch to supported platform.
[17:27:20 ERROR]: #!#! Issue tracker: https://github.com/SkriptLang/Skript/issues (only if you know what you're doing!)
[17:27:20 ERROR]: #!#!
[17:27:20 ERROR]: #!#! Stack trace:
[17:27:20 ERROR]: #!#! ch.njol.skript.SkriptAPIException: No class info found for lambda
[17:27:20 ERROR]: #!#! at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:264)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.createExprInfo(SkriptParser.java:1799)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.getExprInfo(SkriptParser.java:1766)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1514)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:225)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:180)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:493)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:812)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1530)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1526)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:225)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:180)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.Statement.parse(Statement.java:59)
[17:27:20 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:972)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.function.ScriptFunction.<init>(ScriptFunction.java:50)
[17:27:20 ERROR]: #!#! at ch.njol.skript.lang.function.Functions.loadFunction(Functions.java:143)
[17:27:20 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:636)
[17:27:20 ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$1(ScriptLoader.java:391)
[17:27:20 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:403)
[17:27:20 ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$0(ScriptLoader.java:333)
[17:27:20 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:363)
[17:27:20 ERROR]: #!#! at ch.njol.skript.Skript$2.run(Skript.java:472)
[17:27:20 ERROR]: #!#! at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)
[17:27:20 ERROR]: #!#! at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350)
[17:27:20 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723)
[17:27:20 ERROR]: #!#! at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[17:27:20 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[17:27:20 INFO]: [Skript] Loaded 4 scripts with a total of 0 triggers and 0 commands in 1.29 seconds
[17:27:20 INFO]: [Skript] Finished loading.
I think, that this skript can't work with MC 1.8.8
From what version is that?
https://www.spigotmc.org/resources/skript-java-addon-skellett.34361/
 
Status
Not open for further replies.