summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorjaBote <j@bot.e>2013-04-26 20:38:48 +0200
committerjaBote <j@bot.e>2013-04-26 20:38:48 +0200
commitb9431998463f5c072bdd38df18bbb6210c7e3297 (patch)
tree6314b7326692b263e53d6858d46fb6613d418ad9 /doc
parent1f6360f2e157d8eb742a32baed4c5ec7c68c0ef1 (diff)
downloadhercules-b9431998463f5c072bdd38df18bbb6210c7e3297.tar.gz
hercules-b9431998463f5c072bdd38df18bbb6210c7e3297.tar.bz2
hercules-b9431998463f5c072bdd38df18bbb6210c7e3297.tar.xz
hercules-b9431998463f5c072bdd38df18bbb6210c7e3297.zip
Some minor changes:
* Removed some forgotten references to rAthena. * Updated script_commands.txt for an upcoming script command modification by @shennetsind. * Corrected a typo in is_upper script command example. * Updated doc/sample/npc_test_skill.txt to reflect the type 3 flag. Signed-off-by: jaBote <j@bot.e>
Diffstat (limited to 'doc')
-rw-r--r--doc/sample/npc_test_skill.txt10
-rw-r--r--doc/script_commands.txt23
2 files changed, 19 insertions, 14 deletions
diff --git a/doc/sample/npc_test_skill.txt b/doc/sample/npc_test_skill.txt
index 1168014ea..cc6de3bbc 100644
--- a/doc/sample/npc_test_skill.txt
+++ b/doc/sample/npc_test_skill.txt
@@ -1,9 +1,9 @@
//===== Hercules Script =======================================
//= Sample: Skill
//===== By: ==================================================
-//= rAthena Dev Team
+//= Hercules Dev Team
//===== Current Version: =====================================
-//= 20121003
+//= 20130426
//===== Description: =========================================
//= Demonstrates the 'skill' command.
//============================================================
@@ -12,12 +12,13 @@
// flag=0 Grants the skill permanently
// flag=1 Grants the skill temporarily
// flag=2 Level bonus, stackable
+// flag=3 Grants the skill permanently even after skill resets/job changes
// If flag is undefined, it defaults to 1
// View db/(pre-)re/skill_db.txt for skill IDs
prontera,157,182,0 script Skills 116,{
mes "What skill would you like?";
- switch(select("First Aid:Play Dead:Heal:None")) {
+ switch(select("First Aid:Play Dead:Heal:Sight:None")) {
case 1:
skill 142,1,0; // Permanently gives player level 1 First Aid
close;
@@ -28,6 +29,9 @@ prontera,157,182,0 script Skills 116,{
skill 28,3,1; // Temporarily gives player level 3 Heal
close;
case 4:
+ skill 10,1,3; // Permanently gives player level 1 Sight, even after skill resets/job changes
+ close;
+ case 5:
close;
}
}
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index aa3112d62..a109aeb22 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!";
---------------------------------------
@@ -6965,7 +6966,7 @@ uppercase/lowercase. Otherwise, 0. Characters not of the alphabelt will return 0
Example:
- charisupper("Hercules", 1); //returns 1
+ charisupper("Hercules", 0); //returns 1
---------------------------------------