#(Zioxs) Stoping another queue task

45 messages · Page 1 of 1 (latest)

cobalt imp
#

Hi, i made combat tag system. I have problem in queue, how to stoping queue from another task

inland minnowBOT
#

(Zioxs) Stoping another queue task

inland minnowBOT
#

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>

cursive stone
#

!paste

shadow pineBOT
cursive stone
#

Can you share what you have

cobalt imp
#

command queue clear doesn't work anymore ?

nocturne flume
#

!e command

shadow pineBOT
# nocturne flume !e command
Group

Server

**WARNING**

This event is to override existing commands, and should not be used to create new commands - use a command script instead.

Event Lines

command <command_name> command

Triggers

when a player, console, or command block/minecart runs a Bukkit command. This happens before
any code of established commands, allowing scripts to 'override' existing commands.
Note that for the sake of the event line, escaping is used, so 'bukkit:plugins' becomes 'bukkit&coplugins'

Has Player

when source_type is player. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.

Context

<context.command> returns the command name as an ElementTag.
<context.raw_args> returns any args used, unmodified as plaintext.
<context.args> returns a ListTag of the arguments.
<context.source_type> returns the source of the command. Can be: PLAYER, SERVER, COMMAND_BLOCK, or COMMAND_MINECART.
<context.command_block_location> returns the command block's location (if the command was run from one).
<context.command_minecart> returns the EntityTag of the command minecart (if the command was run from one).

Determine

"FULFILLED" to tell Bukkit the command was handled.

Has Known Location

True - this adds switches in:<area> + location_flagged:<flag name>.

nocturne flume
#

oh this doesnt have switch for source_type

#

either way

#

!c repeat

shadow pineBOT
# nocturne flume !c repeat
Group

queue

Syntax

repeat [stop/next/<amount>] (from:<#>) (as:<name>) [<commands>]

Short Description

Runs a series of braced commands several times.

Description

Loops through a series of braced commands a specified number of times.
To get the number of loops so far, you can use <[value]>.

Optionally, specify "as:<name>" to change the definition name to something other than "value".

Optionally, to specify a starting index, use "from:<#>". Note that the "amount" input is how many loops will happen, not an end index.
The default "from" index is "1". Note that the value you give to "from" will be the value of the first loop.

To stop a repeat loop, do - repeat stop

To jump immediately to the next number in the loop, do - repeat next

nocturne flume
#

prolly should use this instead of writing everything manually

#

oh ye you were asking about those queues

#

!t queues

shadow pineBOT
nocturne flume
#

!t scripttag.queues

shadow pineBOT
nocturne flume
#

youre trying to cancel list of queues

#

so probably you could loop through them

cobalt imp
#

how do i cancel it?

#

using

- determine <script[timer].queues>
```?
nocturne flume
#
    - queue <[current]> clear```
#

but keep in my that this will stop all the queues running for that script

cobalt imp
#

oke, i will try it

nocturne flume
#

oh damn I made a huge mistake, queue clear and stop are deprecated, sorry

#

you should use directly stop command

#

!c

shadow pineBOT
# nocturne flume !c
Need input for 'Command' command

Please specify a command to search, like !command SomeCommandHere. Or, use !command all to view all documented commands.
You can also use !command [name] tags to view tags related to the command, or !command [name] usage to view usage examples.

nocturne flume
#

!c stop

shadow pineBOT
# nocturne flume !c stop
Group

queue

Syntax

stop

Short Description

Stops the current queue.

Description

This will immediately stop the current queue, preventing it from processing any further.

cobalt imp
#

instead of the stop command only for the queue in that task ?

charred sapphire
#

Seems like you don't need to do this at all, just use some flags and the delta time event

cobalt imp
#

Thanks for the advice

humble ermineBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please type </resolved:1028673926114594866> to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@cobalt imp