Actions

RuneScript/Queues: Difference between revisions

From RuneWiki

Line 1: Line 1:


=== Commands ===
=== Commands ===
queue
queue(queue $script, int $delay, int $arg);


getqueue
queue*(queue $script, int $delay)(…args);


clearqueue
getqueue(queue $script)(int);
 
clearqueue(queue $script);


=== Queue Types ===
=== Queue Types ===

Revision as of 18:12, 15 February 2024

Commands

queue(queue $script, int $delay, int $arg);

queue*(queue $script, int $delay)(…args);

getqueue(queue $script)(int);

clearqueue(queue $script);

Queue Types

Normal

Requires protected access before it can execute

Weak

Requires protected access before it can execute.

Cleared when closing modals. Moving or interacting with something new closes modals and inherently clears weak queues

Strong

Requires protected access before it can execute.

Closes modals before executing and if the queue contains a strong queue at all (modals technically close twice)

Modals are aggressively closed because they block protected access

Soft

Not granted protected access so it can always execute.

This concept comes from soft timers, which share the same behavior. No protected access means they typically cannot edit anything on the player - unless the command or type is marked as not requiring protection