#(Skullfurious) Command Script not working as it once was when executed as_player.

15 messages · Page 1 of 1 (latest)

fathom ledge
#

A lot of the stuff in this script says it runs, but I can never see the NPC, my character doesn't turn invisible, and as far as I can tell the player doesn't end up flagged with anything either. The NPC id increments though, and all the narrates come through.

When doing /sleep it works, not sure what's going on. Any ideas?

Script: https://paste.denizenscript.com/View/108768
!logcheck https://paste.denizenscript.com/View/108769

arctic lightBOT
#

(Skullfurious) Command Script not working as it once was when executed as_player.

#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

fathom ledge
warped rivetBOT
# fathom ledge !logcheck https://paste.denizenscript.com/View/108769
Server Version

Paper version git-Paper-510 (MC: 1.19.4)-- (Current build :white_check_mark:)

Plugin Version(s)

Citizens: 2.0.31-SNAPSHOT (build 3030) -- (Current build :white_check_mark:)
Denizen: 1.2.7-SNAPSHOT (build 6744-DEV) -- (Current build :white_check_mark:)

Checked For

@fathom ledge

Java Version

17.0.6 :white_check_mark:

Other Noteworthy Plugin(s)

WorldGuard: 7.0.8-beta-01+cbb2ba7

Problematic Plugin(s)

Geyser-Spigot: 2.1.0-SNAPSHOT - Bedrock clients are unsupportable. Please do all testing with a Java Edition client.
floodgate: 2.2.2-SNAPSHOT (b78-65e4de4)

Possibly Relevant Plugin(s)

Multiverse-Core: 4.3.8 - Multi-world configuration plugins may affect NPCs in unexpected ways.

fathom ledge
#

I think sleep is getting executed twice for some reason.

#
        on player starts sneaking:
            - ratelimit <player> 3t
            - if <player.has_flag[ExpressiveTimerA]> && <player.location.pitch.is_less_than_or_equal_to[-89]>:
                - execute as_player "sleep"
                - flag <player> ExpressiveTimerA:!
                - stop
            - if <player.has_flag[ExpressiveTimerA]> && <player.location.pitch.is_more_than_or_equal_to[89]>:
                - execute as_player "crawl"
                - flag <player> ExpressiveTimerA:!
                - stop
            - if !<player.has_flag[ExpressiveTimerA]>:
                - flag <player> ExpressiveTimerA expire:8t```
#

Assuming it has something to do with this segment of the code.