summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-09 03:44:35 +0000
committerbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-09 03:44:35 +0000
commit9b18469c6c904003bc2c31dff333538ba59577cc (patch)
tree142ee7b1dec969b025b43519642e3192f563f685 /doc
parent4c9994514b1a560ea94c8210685aced085f85e82 (diff)
downloadhercules-9b18469c6c904003bc2c31dff333538ba59577cc.tar.gz
hercules-9b18469c6c904003bc2c31dff333538ba59577cc.tar.bz2
hercules-9b18469c6c904003bc2c31dff333538ba59577cc.tar.xz
hercules-9b18469c6c904003bc2c31dff333538ba59577cc.zip
- Added a blank line at EOF to make SVN and some compilers happy. (bugreport:5107)
- Removed trailing tabs in /doc/script_commands.txt - Set svn:eol-style=native for some recently added text files (follow up to r15009). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15043 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt20
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index a10002f0e..6ade12953 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -3495,7 +3495,7 @@ When no name is given, the attached player is used for checking.
Returns true or false (1 or 0) when the player is chatting/vending or not.
Example(s):
-if (checkVending("Aaron")) mes "Aaron is currently vending!";
+if (checkVending("Aaron")) mes "Aaron is currently vending!";
//This will check if Aaron is vending, and if so, put a message in front
//of the attached player saying Aaron is vending.
@@ -6594,7 +6594,7 @@ The first letter is position 0.
*charat(<string>,<index>)
Returns char at specified index. If index is out of range,
- returns empty string.
+ returns empty string.
Example:
@@ -6662,7 +6662,7 @@ The first letter is position 0.
charisupper("eAthena", 1); //returns 1
----------------------------------------
+---------------------------------------
*substr(<string>,<start_index>,<end_index>)
@@ -6675,7 +6675,7 @@ The first letter is position 0.
substr("foobar", 3, 5); //returns "bar"
----------------------------------------
+---------------------------------------
*explode(<dest_array>,<string>,<delimiter>)
@@ -6696,7 +6696,7 @@ The first letter is position 0.
//.@my_array$[4]: "PIE"
----------------------------------------
+---------------------------------------
*implode(<string_array>{,<glue>})
@@ -6707,7 +6707,7 @@ The first letter is position 0.
setarray .@my_array$[0], "This", "is", "a", "test";
implode(.@my_array$, " "); //returns "This is a test"
----------------------------------------
+---------------------------------------
*sprintf(<format>[,param[,param[,...]]]) [Mirei]
@@ -6722,7 +6722,7 @@ The first letter is position 0.
dispbottom(sprintf(.@format$, "zoo", 5)); //prints "The zoo contains 5 monkeys"
dispbottom(sprintf(.@format$, "barrel", 82)); //prints "The barrel contains 82 monkeys"
----------------------------------------
+---------------------------------------
*sscanf(<string>,<format>[,param[,param[,...]]]) [Mirei]
@@ -6736,7 +6736,7 @@ The first letter is position 0.
sscanf("This is a test: 42 foobar", "This is a test: %d %s", .@num, .@str$);
dispbottom(.@num + " " + .@str$); //prints "42 foobar"
----------------------------------------
+---------------------------------------
*strpos(<haystack>,<needle>{,<offset>})
@@ -6750,7 +6750,7 @@ The first letter is position 0.
strpos("foobarfoo", "foo", 0); //returns 0
strpos("foobarfoo", "foo", 1); //returns 6
----------------------------------------
+---------------------------------------
*replacestr(<input>, <search>, <replace>{, <usecase>{, <count>}})
@@ -6764,7 +6764,7 @@ The first letter is position 0.
replacestr("Donkey", "don", "mon", 0); //returns "monkey"
replacestr("test test test test test", "yay", 0, 3); //returns "yay yay yay test test"
----------------------------------------
+---------------------------------------
*countstr(<input>, <search>{, <usecase>})