diff options
author | shennetsind <notind@gmail.com> | 2013-05-04 08:46:28 -0700 |
---|---|---|
committer | shennetsind <notind@gmail.com> | 2013-05-04 08:46:28 -0700 |
commit | bedb124ca9876de6baa90dbf013fec54786bf760 (patch) | |
tree | 4af5e8e4fb38ca45ca1408d494c33bf0b5ee5ef8 /doc/script_commands.txt | |
parent | c70868dd525a69d84cd53ac905291f1738eded55 (diff) | |
parent | 1e5e8f5f42abb2cd42ad7ecf8e07439b8a1c570b (diff) | |
download | hercules-bedb124ca9876de6baa90dbf013fec54786bf760.tar.gz hercules-bedb124ca9876de6baa90dbf013fec54786bf760.tar.bz2 hercules-bedb124ca9876de6baa90dbf013fec54786bf760.tar.xz hercules-bedb124ca9876de6baa90dbf013fec54786bf760.zip |
Merge pull request #23 from jaBote/master
Some minor changes.
I'll be committing a script.c change to reflect these documentation changes within the next few minutes.
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r-- | doc/script_commands.txt | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 277df7ee4..bf462c812 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -1,4 +1,4 @@ -//===== Hercules Documentation ================================ +//===== Hercules Documentation ================================ //= Hercules Script Commands //===== By: ================================================== //= Hercules Dev Team @@ -540,9 +540,9 @@ If you try to set Zeny to a negative number, the script will be terminated with Assigning variables --------- --------- -As of rAthena revision 15982, variables can be accessed and assigned values directly -without the use of the built-in 'set' function. This means that variables can be -accessed and modified much like other programming languages. +Variables can be accessed and assigned values directly without the use of the built-in +'set' function. This means that variables can be accessed and modified much like other +programming languages. @x = 100; @x = @y = 100; @@ -1475,8 +1475,8 @@ generally cleaner: return 1;// it's odd } -Alternately, as of rAthena revision 15979 and 15981, user-defined functions -may be called directly without the use of the 'callfunc' script command. +Alternately, user-defined functions may be called directly without the use of +the 'callfunc' script command. function<TAB>script<TAB>SayHello<TAB>{ mes "Hello " + getarg(0); @@ -4125,12 +4125,13 @@ wall), the character is pushed only up to the obstacle. --------------------------------------- -*get_revision() +*get_version() -This command will return the SVN revision number that the server is -currently running on. +This command will return the SVN revision number or Git SHA-1 hash that the server +is currently running on (depends on whether you used a SVN or Git client for +getting Hercules. - if ( get_revision() >= 15000 ) + if ( get_version() >= 15000 ) mes "Welcome Hercules!"; --------------------------------------- @@ -6959,7 +6960,7 @@ uppercase/lowercase. Otherwise, 0. Characters not of the alphabelt will return 0 Example: - charisupper("Hercules", 1); //returns 1 + charisupper("Hercules", 0); //returns 1 --------------------------------------- |