summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
authorarcshiru <arcshiru@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-24 15:00:41 +0000
committerarcshiru <arcshiru@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-24 15:00:41 +0000
commit182a0282401297b608db331676882e9dfe7cd89f (patch)
tree66f41bbeb04303a98a0ac5fa004d3bc702c6214f /doc/script_commands.txt
parente0d8dee7204e565febf8d651cdc7c04bdfa913e8 (diff)
downloadhercules-182a0282401297b608db331676882e9dfe7cd89f.tar.gz
hercules-182a0282401297b608db331676882e9dfe7cd89f.tar.bz2
hercules-182a0282401297b608db331676882e9dfe7cd89f.tar.xz
hercules-182a0282401297b608db331676882e9dfe7cd89f.zip
Added documentation for getcharip
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16961 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 2a7d4329b..e85b964ef 100644
--- a/doc/script_commands.txt
+++ b/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