Преглед изворни кода

Added documentation for getcharip

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16961 54d463be-8e91-2dee-dedb-b68131a5f0ec
arcshiru пре 12 година
родитељ
комит
c3093ec12d
1 измењених фајлова са 16 додато и 0 уклоњено
  1. 16 0
      doc/script_commands.txt

+ 16 - 0
doc/script_commands.txt

@@ -2423,6 +2423,22 @@ Available information types are:
  1 - X coordinate
  2 - Y coordinate
 
+ ---------------------------------------
+ 
+ *getcharip{(<Character Name/Account ID/Char ID>)}
+
+ This function will return the IP address of the currently attached player
+ or the currently attached Character Name/Account ID/Character ID. This command
+ returns a blank str if there is no player attached.
+ 
+Example 1: Sets the variable, @ip$, into the IP address of currently attached player.
+ 
+	@ip$ = getcharip;
+
+Example 2: Sets the variable, @ip$, into the IP address of character "Silver".
+
+	@ip$ = getcharip("Silver");
+ 
 ---------------------------------------
 \\
 2,2 Item-related commands