summaryrefslogtreecommitdiff
path: root/doc/sample/npc_test_func.txt
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-05 11:34:32 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-20 19:32:10 +0300
commit62dbac477a49a09487ac4a232e4d90dc6790959a (patch)
tree59a5827d519de835f7301f0ef1d1e3a6d6db9fe5 /doc/sample/npc_test_func.txt
parentf74d408e219326b18b38c201f564fa72d5a88cbb (diff)
downloadhercules-62dbac477a49a09487ac4a232e4d90dc6790959a.tar.gz
hercules-62dbac477a49a09487ac4a232e4d90dc6790959a.tar.bz2
hercules-62dbac477a49a09487ac4a232e4d90dc6790959a.tar.xz
hercules-62dbac477a49a09487ac4a232e4d90dc6790959a.zip
Remove conf dir.
Diffstat (limited to 'doc/sample/npc_test_func.txt')
-rw-r--r--doc/sample/npc_test_func.txt35
1 files changed, 0 insertions, 35 deletions
diff --git a/doc/sample/npc_test_func.txt b/doc/sample/npc_test_func.txt
deleted file mode 100644
index a57b6cfb1..000000000
--- a/doc/sample/npc_test_func.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-//===== Hercules Script =======================================
-//= Sample: Functions
-//===== By: ==================================================
-//= Hercules Dev Team
-//===== Current Version: =====================================
-//= 20131225
-//===== Description: =========================================
-//= Demonstrates use of functions.
-//============================================================
-
-// Define the function func001
-function script func001 {
- mes "Hello there!";
- next;
- return; // Return to script
-}
-
-// Define the function func002
-function script func002 {
- return "I'm a function";
-}
-
-// Uses 3 different methods of displaying dialogue from both internal and external sources.
-prontera,168,189,1 script Functions 4_F_KAFRA6,{
- callfunc "func001"; // Calls func001 and displays "Hello there!"
- 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"
- close;
- end;
-
-L_SUB001:
- mes "I'm a label";
- return;
-}