summaryrefslogtreecommitdiff
path: root/doc/sample/npc_test_array.txt
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-05 11:39:58 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-15 19:15:07 +0300
commitf0a72fee1cd6ffb7420afbec60214ed72d86e622 (patch)
treef1c17769a9971223093b405be6a84253da48ee1c /doc/sample/npc_test_array.txt
parentef6bfb4d20f7ecc55e7d7da44f58d9280fad150a (diff)
downloadhercules-f0a72fee1cd6ffb7420afbec60214ed72d86e622.tar.gz
hercules-f0a72fee1cd6ffb7420afbec60214ed72d86e622.tar.bz2
hercules-f0a72fee1cd6ffb7420afbec60214ed72d86e622.tar.xz
hercules-f0a72fee1cd6ffb7420afbec60214ed72d86e622.zip
Clean doc dir from client or server data related docs.
Diffstat (limited to 'doc/sample/npc_test_array.txt')
-rw-r--r--doc/sample/npc_test_array.txt43
1 files changed, 0 insertions, 43 deletions
diff --git a/doc/sample/npc_test_array.txt b/doc/sample/npc_test_array.txt
deleted file mode 100644
index a429ffb93..000000000
--- a/doc/sample/npc_test_array.txt
+++ /dev/null
@@ -1,43 +0,0 @@
-//===== Hercules Script =======================================
-//= Sample: Array Test
-//===== By: ==================================================
-//= Hercules Dev Team
-//===== Current Version: =====================================
-//= 20131225
-//===== Description: =========================================
-//= Demonstrates array commands.
-//============================================================
-
-prontera,164,190,1 script Array Test 4_F_KAFRA6,{
- .@hoge[0] = 1;
- .@hoge[1] = 5;
- mes "Please enter a value for hoge[2].";
- next;
- input .@hoge[2];
- mes "hoge => " + .@hoge;
- mes "hoge[0]=> " + .@hoge[0];
- mes "hoge[1]=> " + .@hoge[1];
- mes "hoge[2]=> " + .@hoge[2];
- next;
- setarray .@hoge[1],2,3,4,5;
- mes "true: 5,1,2,3,4";
- mes "hoge size = "+ getarraysize(.@hoge);
- mes "hoge[0]=> " + .@hoge[0];
- mes "hoge[1]=> " + .@hoge[1];
- mes "hoge[2]=> " + .@hoge[2];
- mes "hoge[3]=> " + .@hoge[3];
- next;
- copyarray .@fuga[0],.@hoge[2],2;
- mes "true: 3,4,0";
- mes "fuga[0]=> " + .@fuga[0];
- mes "fuga[1]=> " + .@fuga[1];
- mes "fuga[2]=> " + .@fuga[2];
- next;
- deletearray .@hoge[1],2;
- mes "true: 1,4,5,0";
- mes "hoge[0]=> " + .@hoge[0];
- mes "hoge[1]=> " + .@hoge[1];
- mes "hoge[2]=> " + .@hoge[2];
- mes "hoge[3]=> " + .@hoge[3];
- close;
-}