diff options
author | jaBote <jaBote@users.noreply.github.com> | 2014-06-01 23:41:30 +0200 |
---|---|---|
committer | jaBote <jaBote@users.noreply.github.com> | 2014-06-01 23:41:30 +0200 |
commit | 17382d380c0476ffc5616d8e34b299c4bc485be7 (patch) | |
tree | 90b0dde38767db5f00c65ad6aa052cb05a96574b /doc | |
parent | e9b9764d1f6fc803319b7046a15f8d88aa2891b5 (diff) | |
download | hercules-17382d380c0476ffc5616d8e34b299c4bc485be7.tar.gz hercules-17382d380c0476ffc5616d8e34b299c4bc485be7.tar.bz2 hercules-17382d380c0476ffc5616d8e34b299c4bc485be7.tar.xz hercules-17382d380c0476ffc5616d8e34b299c4bc485be7.zip |
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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/script_commands.txt | 10 |
1 files 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 "<map name>",<x>,<y>,"<name to show>",<mob id>,<amount>{,"<event label>",<size>,<ai>}; -*areamonster "<map name>",<x1>,<y1>,<x2>,<y2>,"<name to show>",<mob id>,<amount>{,"<event label>",<size>,<ai>}; +*monster "<map name>",<x>,<y>,"<name to show>",<mob id>,<amount>{,"<event label>"{,<size>{,<ai>}}}; +*areamonster "<map name>",<x1>,<y1>,<x2>,<y2>,"<name to show>",<mob id>,<amount>{,"<event label>"{,<size>{,<ai>}}}; 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(<format>[,param[,param[,...]]]) +*sprintf(<format>{,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(<string>,<format>[,param[,param[,...]]]) +*sscanf(<string>,<format>{,param{,param{,...}}}) C style sscanf. All C format specifiers are supported. More info: sscanf @ www.cplusplus.com. The number of params is only |