summaryrefslogtreecommitdiff
path: root/doc/sample/npc_test_func.txt
diff options
context:
space:
mode:
authoreuphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-10-03 23:13:33 +0000
committereuphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-10-03 23:13:33 +0000
commitbafe9ca1ceaac5554b4716b7b5b4911c3f40a51d (patch)
tree65732204e49c51946b48244eabaeae2747cc7e81 /doc/sample/npc_test_func.txt
parentd4cec2529589b43bb4fd70ba79589bc1bb75da98 (diff)
downloadhercules-bafe9ca1ceaac5554b4716b7b5b4911c3f40a51d.tar.gz
hercules-bafe9ca1ceaac5554b4716b7b5b4911c3f40a51d.tar.bz2
hercules-bafe9ca1ceaac5554b4716b7b5b4911c3f40a51d.tar.xz
hercules-bafe9ca1ceaac5554b4716b7b5b4911c3f40a51d.zip
* Standardization of doc\sample\ folder.
* Deleted doc\sample\PCLoginEvent.txt, which contained outdated information. * Follow-up r16812, fixed file encoding. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16813 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc/sample/npc_test_func.txt')
-rw-r--r--doc/sample/npc_test_func.txt20
1 files changed, 14 insertions, 6 deletions
diff --git a/doc/sample/npc_test_func.txt b/doc/sample/npc_test_func.txt
index 1f50afb46..1a60ac69d 100644
--- a/doc/sample/npc_test_func.txt
+++ b/doc/sample/npc_test_func.txt
@@ -1,9 +1,18 @@
+//===== rAthena Script =======================================
+//= Sample: Functions
+//===== By: ==================================================
+//= rAthena Dev Team
+//===== Current Version: =====================================
+//= 20120901
+//===== Description: =========================================
+//= Demonstrates use of functions.
+//============================================================
// Define the function func001
function script func001 {
mes "Hello there!";
next;
- return; // continue script
+ return; // Return to script
}
// Define the function func002
@@ -11,17 +20,16 @@ function script func002 {
return "I'm a function";
}
-// An NPC using 3 different methods of displaying npc dialog from both internal
-// and external sources.
+// Uses 3 different methods of displaying dialogue from both internal and external sources.
prontera,168,189,1 script Functions 112,{
callfunc "func001"; // Calls func001 and displays "Hello there!"
- mes callfunc("func002"); // Calls func002 and displays "I'm a function"
+ mes callfunc("func002"); // Calls func002 and displays "I'm a function"
next;
- callsub L_SUB001; // Calls the label L_SUB001 and displays "I'm a label"
+ callsub L_SUB001; // Calls the label L_SUB001 and displays "I'm a label"
close;
end;
L_SUB001:
mes "I'm a label";
- return; // continue script
+ return;
}