summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-19 18:44:01 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-19 18:44:01 +0000
commite3cf8d5104f6fa28e1af240ac9a98f25a5552e27 (patch)
treee37fa082ab8405c822e426042747a170e1709132 /doc
parentfae3410f42f3a2c4c294478c775f936881f31231 (diff)
downloadhercules-e3cf8d5104f6fa28e1af240ac9a98f25a5552e27.tar.gz
hercules-e3cf8d5104f6fa28e1af240ac9a98f25a5552e27.tar.bz2
hercules-e3cf8d5104f6fa28e1af240ac9a98f25a5552e27.tar.xz
hercules-e3cf8d5104f6fa28e1af240ac9a98f25a5552e27.zip
- Removed the max cap of autoloot so you are now allowed to set autoloot values above 100.
- Initialized w1/w2/w3/w4 before reading each npc line to avoid sending unread values to the parsers (for example, if w4 has a value in one line and none on the next, it will be parsed with the previous value of w4 on the following lines) - Updated getpartymember to receive an int which specifies what to retrieve. 0: Character names (array $@partymembername$), 1 character char ids (array $@partymembercid), 2 character account ids (array $@partynameaid). By default it returns party member names. - Updated script_commands.txt with the updated behaviour of getpartymember. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6182 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt23
1 files changed, 17 insertions, 6 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 4a0458177..2a3064a6c 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -1988,19 +1988,30 @@ Lets say the ID of a party was saved as a global variable:
---------------------------------------
-*getpartymember <party id>;
+*getpartymember <party id>,[<type>];
Thank you to HappyDenn for all this information.
This command will finds all members of a specified party and returns their names
-into an array of temporary global variables. There's actually quite a few
-commands like this which will fill a special variable with data upon execution
-and not do anything else.
+(or character id or account id depending on the value of "type") into an array
+of temporary global variables. There's actually quite a few commands like this
+which will fill a special variable with data upon execution and not do anything
+else.
Upon executing this,
$@partymembername$[] is a global temporary stringarray which contains all the
- names of these party members.
+ names of these party members
+ (only set when type is 0 or not specified)
+
+$@partymembercid[] is a global temporary number array which contains the
+ character id of these party members.
+ (only set when type is 1)
+
+$@partymemberaid[] is a global temporary number array which contains the
+ account id of these party members.
+ (only set when type is 2)
+
$@partymembercount is the number of party members that were found.
The party members will (apparently) be found regardless of whether they are
@@ -2014,7 +2025,7 @@ server will not clear the array for you, overwriting the values instead. So in
addition to returning the 5 member names, the 6th and 7th elements from the last
call remain, and you will get 5+2 members, of which the last 2 don't belong to
the new guy's party. $@partymembercount will always contain the correct number,
-(5) unlike 'getarraysise()' which will return 7 in this case.
+(5) unlike 'getarraysize()' which will return 7 in this case.
Example: