From 17382d380c0476ffc5616d8e34b299c4bc485be7 Mon Sep 17 00:00:00 2001 From: jaBote Date: Sun, 1 Jun 2014 23:41:30 +0200 Subject: Update script_commands.txt Fixed documentation errors: -> Strings are always delimited by double quotes ("), not single qotes('); -> Errors on optional parameters of monster and areamonster script commands; -> Also fixed curlies for optional parameters in sprintf and sscanf. --- doc/script_commands.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 45311592a..fbded8d41 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -5675,8 +5675,8 @@ Examples: //===================================== --------------------------------------- -*monster "",,,"",,{,"",,}; -*areamonster "",,,,,"",,{,"",,}; +*monster "",,,"",,{,""{,{,}}}; +*areamonster "",,,,,"",,{,""{,{,}}}; This command will spawn a monster on the specified coordinates on the specified map. If the script is invoked by a character, a special map @@ -7648,7 +7648,7 @@ Example: --------------------------------------- -*sprintf([,param[,param[,...]]]) +*sprintf({,param{,param{,...}}}) C style sprintf. The resulting string is returned same as in PHP. All C format specifiers are supported except %n. For more info check sprintf @@ -7656,7 +7656,7 @@ function at www.cplusplus.com Number of params is only limited by Hercules' script engine. Example: - .@format$ = 'The %s contains %d monkeys'; + .@format$ = "The %s contains %d monkeys"; dispbottom(sprintf(.@format$, "zoo", 5)); //prints "The zoo contains 5 monkeys" @@ -7665,7 +7665,7 @@ Example: --------------------------------------- -*sscanf(,[,param[,param[,...]]]) +*sscanf(,{,param{,param{,...}}}) C style sscanf. All C format specifiers are supported. More info: sscanf @ www.cplusplus.com. The number of params is only -- cgit v1.2.3-70-g09d2