From c4c3107d53002da172af6d93e21a8741d9b0b266 Mon Sep 17 00:00:00 2001 From: ultramage Date: Mon, 5 Feb 2007 14:11:43 +0000 Subject: Changed the 'getpartyleader' script command so that it returns a map name instead of the useless mapindex number. Also fixed it so that it doesn't throw a 'args of aFree is not valid pointer' error (although I'm not at all sure that the fix is correct). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9787 54d463be-8e91-2dee-dedb-b68131a5f0ec --- doc/script_commands.txt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'doc/script_commands.txt') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 65d61f4ba..212ad25d6 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -2155,18 +2155,19 @@ Example: *getpartyleader ,[]; -This function returns some information about the given party-id's leader. When type is ommitted, -the default information retrieved is Character name of the party leader. Possible types are: +This function returns some information about the given party-id's leader. +When type is ommitted, the default information retrieved is the leader's name. +Possible types are: 1: Leader account id 2: Leader character id 3: Leader's class - 4: Leader's current map index + 4: Leader's current map name 5: Leader's current level as stored on the party structure (may not be current level if leader leveled up recently). -If retrieval fails (leader not found or party does not exists), "null" is returned instead of character name, -and -1 is returned for the other types. +If retrieval fails (leader not found or party does not exist), this function +returns "null" instead of the character name, and -1 is for the other types. --------------------------------------- *getguildname() @@ -3548,7 +3549,8 @@ four values: - val3 is the second element, val4 is the resistance to said element. eg: sc_start4 SC_DefEle,60000,Ele_Fire,20,Ele_Water,-15; -'sc_end' will remove a specified status effect. +'sc_end' will remove a specified status effect. If SC_All is used (-1), it will +do a complete removal of all statuses (although permanent ones will re-apply). You can see the full list of status effects caused by skills in 'src/map/status.h' - they are currently not fully documented, but most of that -- cgit v1.2.3-70-g09d2