From 7113dbbc642a444ccb32c6f53cde69e3b93df906 Mon Sep 17 00:00:00 2001 From: Dastgir Date: Mon, 28 Sep 2015 16:38:04 +0530 Subject: Added Missing ScriptCommands in the doc. Corrected sleep/sleep2 parameter list. Changed bg_join_team return values. --- doc/script_commands.txt | 52 ++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 45 insertions(+), 7 deletions(-) (limited to 'doc') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 146e58a45..546122475 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -4457,6 +4457,14 @@ they will also have their skills reset upon 'changesex'. --------------------------------------- +*changecharsex; + +This command is exactly same as changesex, with an exception that, +character sex will be changed instead of account sex. +Requires client 2014-10-22 or greater. + +--------------------------------------- + *getexp ,; This command will give the invoking character a specified number of base @@ -4985,8 +4993,8 @@ Returns the item_id of a random item picked from the item container specified. T are different item containers and they are specified in 'db/(pre-)re/item_group.conf'. Example: - getitem groupranditem 603,1; - getitem groupranditem Old_Blue_Box,1; + getitem groupranditem(603),1; + getitem groupranditem(Old_Blue_Box),1; --------------------------------------- @@ -6499,8 +6507,8 @@ Example 4: --------------------------------------- -*sleep {}; -*sleep2 {}; +*sleep ; +*sleep2 ; *awake ""; These commands are used to control the pause of a NPC. @@ -8793,18 +8801,48 @@ following: ---------------------------------------- -*bg_getareausers(,,,,,); +*bg_getareausers(,"",,,,); Retrieves amount of players belonging to given battle group on given map within an specified rectangular area. ---------------------------------------- -*bg_updatescore "",,; +*bg_updatescore "",,; This command will force the update of the displayed scoreboard. It is only usable when the map is defined as a Type 2 Battleground: -mapflag%TAB%%TAB%battleground%TAB%2 +mapflag%TAB%%TAB%battleground%TAB%2 + +---------------------------------------- + +*bg_create_team "",,; + +This command will create a new BG Team. +When player dies, they will be respawned map_name,X,Y as mentioned. + +Command will return -1 if BG Creation is failed, +else it will return the BG ID(Also known as TeamID). + +---------------------------------------- + +*bg_join_team {,}; + +This command will make the attached player join to Team with ID as mentioned. +If account_id is provided, command will look for that player, instead of the attached player. + +Command will return -1 if Player is not found, 0 if join is failed, 1 upon successful. + +---------------------------------------- + +*bg_match_over ""{,}; + +This command will end the battleground Arena +(Arena Name as referred to, in conf/battlegrounds.conf) +If Cancelled is not provided, it will set the join delay, as mentioned in conf/battlegrounds.conf +else, it will just destroy the Teams and queue's. + +Command will return 0 when successful, else it will return 1. --------------------------------------- //===================================== -- cgit v1.2.3-70-g09d2