Spawn Line of Particles Where Player Is Looking Bukkit

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Thread Status:
Not open for further replies.
  1. Wolwer

    Joined:
    Feb 8, 2018
    Messages:
    53
    Likes Received:
    5
    Hello!
    I need help with this script:
    1. function circleBot(p: player):
    2.     set {_name} to "&c%random integer between 11111111 and 99999999%"
    3.     set {_n} to npc named {_name} "PLAYER"
    4.     set fly of npc {_n} to true
    5.     set protect of npc {_n} to false
    6.     spawn npc {_n} at location of {_p} ~ vector 1, 100, 0
    7.     make console execute command "npc select %{_name}%"
    8.     make console execute command "npc gravity"
    9.     set {_e} to entity from npc {_n}
    10.     set gravity of {_e} to false
    11.     apply invisibility without particles to {_e} for 4 seconds
    12.             set {_ploc} to location of {_p}
    13.             set {_v} to cylindrical vector 2, loop-number-2, 1
    14.             teleport {_e} to {_ploc} ~ {_v}
    15.             mod(loop-number-2, 16) = 0
    16.     remove {_e} from {bots::*}
    17.     delete {botcheck::%{_p}%}
    18.     if {bots::*} contains victim:
    19.             add 1 to {botcheck::%attacker%}
    20.             if {botcheck::%attacker%} = 4:
    21.                 kick attacker due to "Killaura suspect!"
    So i need to make npc visible only for 1 player (prob violator)

    Here a video of bot-checks:


    (First circle check is in another skript)

    And there is 1 more problemm. - I cant use those scripts with SkQuery... Idk why, but when I adding a SkQuery plugin to my server the skripts going down with this error:

    1. [13:45:01 ERROR]: #!#! [Skript] Severe Error:
    2. [13:45:01 ERROR]: #!#! Could not load bot.sk
    3. [13:45:01 ERROR]: #!#! Something went horribly wrong with Skript.
    4. [13:45:01 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
    5. [13:45:01 ERROR]: #!#! Your Minecraft version or server software appears to be unsupported by Skript (bensku's version).
    6. [13:45:01 ERROR]: #!#! Currently only supported servers are Spigot and its forks for Minecraft 1.9 or newer.
    7. [13:45:01 ERROR]: #!#! Other versions might work, but since you're getting this error message something is NOT working,
    8. [13:45:01 ERROR]: #!#! nor it will work, unless you switch to supported platform.
    9. [13:45:01 ERROR]: #!#! Issue tracker: https://github.com/SkriptLang/Skript/issues (only if you know what you're doing!)
    10. [13:45:01 ERROR]: #!#! Stack trace:
    11. [13:45:01 ERROR]: #!#! ch.njol.skript.SkriptAPIException: No class info found for lambda
    12. [13:45:01 ERROR]: #!#!     at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:263)
    13. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.createExprInfo(SkriptParser.java:1804)
    14. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.getExprInfo(SkriptParser.java:1771)
    15. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1519)
    16. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:225)
    17. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:180)
    18. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:495)
    19. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:814)
    20. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1535)
    21. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1492)
    22. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1531)
    23. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1492)
    24. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1492)
    25. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1465)
    26. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:225)
    27. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:180)
    28. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:325)
    29. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:627)
    30. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.VariableString.newInstance(VariableString.java:241)
    31. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.VariableString.newInstance(VariableString.java:145)
    32. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:493)
    33. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:814)
    34. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1535)
    35. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1531)
    36. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:225)
    37. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:180)
    38. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.Statement.parse(Statement.java:59)
    39. [13:45:01 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:972)
    40. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.function.ScriptFunction.<init>(ScriptFunction.java:50)
    41. [13:45:01 ERROR]: #!#!     at ch.njol.skript.lang.function.Functions.loadFunction(Functions.java:143)
    42. [13:45:01 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:634)
    43. [13:45:01 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.lambda$1(ScriptLoader.java:389)
    44. [13:45:01 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:401)
    45. [13:45:01 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.lambda$0(ScriptLoader.java:331)
    46. [13:45:01 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:361)
    47. [13:45:01 ERROR]: #!#!     at ch.njol.skript.Skript$2.run(Skript.java:490)
    48. [13:45:01 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)
    49. [13:45:01 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350)
    50. [13:45:01 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723)
    51. [13:45:01 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
    52. [13:45:01 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
    53. [13:45:01 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
    54. [13:45:01 ERROR]: #!#!     at java.lang.Thread.run(Unknown Source)
    55. [13:45:01 ERROR]: #!#! Version Information:
    56. [13:45:01 ERROR]: #!#!   Skript: 2.2-dev36
    57. [13:45:01 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
    58. [13:45:01 ERROR]: #!#!   Minecraft: 1.8.8
    59. [13:45:01 ERROR]: #!#!   Java: 1.8.0_201 (Java HotSpot(TM) 64-Bit Server VM 25.201-b09)
    60. [13:45:01 ERROR]: #!#!   OS: Windows 10 amd64 10.0
    61. [13:45:01 ERROR]: #!#! Server platform: Spigot
    62. [13:45:01 ERROR]: #!#! Current node: set {_name} to "&c%random integer between 11111111 and 99999999%" (bot.sk, line 2)
    63. [13:45:01 ERROR]: #!#! Current item: null
    64. [13:45:01 ERROR]: #!#! Thread: Server thread
    65. [13:45:01 ERROR]: #!#! Language: english
    66. [13:45:01 ERROR]: #!#! Link parse mode: DISABLED
    67. [13:45:01 ERROR]: #!#! End of Error.
    Help me pls :'(
  2. Wolwer

    Joined:
    Feb 8, 2018
    Messages:
    53
    Likes Received:
    5
    OMG thanks a lot! Now SkQuery is working! But what I should do to hide bot from all players expect violator?
    --- Double Post Merged, Jul 31, 2019 , Original Post Date: Jul 30, 2019 ---
    Up
  3. Marsbar

    Joined:
    Mar 31, 2019
    Messages:
    131
    Likes Received:
    4
    set {_p} to (the player)
    hide {_n} from all players
    reveal {_n} to {_p}

    Or maybe it is like this:
    set {_p} to (the player)
    hide npc {_n} from all players
    reveal npc {_n} to {_p}

Thread Status:
Not open for further replies.

Share This Page

Spawn Line of Particles Where Player Is Looking Bukkit

Source: https://forums.skunity.com/threads/make-npc-visible-only-for-1-player.9611/

0 Response to "Spawn Line of Particles Where Player Is Looking Bukkit"

Publicar un comentario

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel