From 367c806bccbf242c2025356777b4cf1d194c481a Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 14 Nov 2015 19:43:38 +0100 Subject: Standardized script-queue related commands - The commands queueadd, queueremove, queueopt, queuedel and qiclear now all return true (success) or false (failure). - Taken/extended from AnnieRuru's PR #847. - The constants HQO_OnDeath, HQO_OnLogOut, HQO_OnMapChange were renamed to QUEUEOPT_DEATH, QUEUEOPT_LOGOUT, QUEUEOPT_MAPCHANGE respectively. - The name of the variable @QMapChangeTo$ used during the QUEUEOPT_MAPCHANGE event has been renamed to @Queue_Destination_Map$. Signed-off-by: Haru --- doc/script_commands.txt | 40 ++++++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 16 deletions(-) (limited to 'doc/script_commands.txt') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 6e2b92417..5219eed47 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -8964,17 +8964,21 @@ Returns the amount of entries in the queue instance of . --------------------------------------- -*queueadd(,); +*queueadd(, ); -Adds to queue of , returning 1 if is already -present in the queue, otherwise returning 0. +Adds to queue of . + +Returns false if couldn't be added (was already present in the queue), +true otherwise. --------------------------------------- -*queueremove(,); +*queueremove(, ); + +Removes from queue of . -Removes from queue of , returning 1 if is not -present in the queue, otherwise returning 0. +Returns false if couldn't be removed (wasn't present in the queue), +true otherwise. --------------------------------------- @@ -8984,23 +8988,26 @@ Modifies 's . When