From 9b18469c6c904003bc2c31dff333538ba59577cc Mon Sep 17 00:00:00 2001 From: brianluau Date: Fri, 9 Dec 2011 03:44:35 +0000 Subject: - 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 --- doc/script_commands.txt | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'doc/script_commands.txt') 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(,) 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(,,) @@ -6675,7 +6675,7 @@ The first letter is position 0. substr("foobar", 3, 5); //returns "bar" ---------------------------------------- +--------------------------------------- *explode(,,) @@ -6696,7 +6696,7 @@ The first letter is position 0. //.@my_array$[4]: "PIE" ---------------------------------------- +--------------------------------------- *implode({,}) @@ -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([,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(,[,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(,{,}) @@ -6750,7 +6750,7 @@ The first letter is position 0. strpos("foobarfoo", "foo", 0); //returns 0 strpos("foobarfoo", "foo", 1); //returns 6 ---------------------------------------- +--------------------------------------- *replacestr(, , {, {, }}) @@ -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(, {, }) -- cgit v1.2.3-70-g09d2