summaryrefslogtreecommitdiff
path: root/doc/sample/npc_test_chat.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_chat.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_chat.txt')
-rw-r--r--doc/sample/npc_test_chat.txt45
1 files changed, 27 insertions, 18 deletions
diff --git a/doc/sample/npc_test_chat.txt b/doc/sample/npc_test_chat.txt
index f593490cb..7a8a65471 100644
--- a/doc/sample/npc_test_chat.txt
+++ b/doc/sample/npc_test_chat.txt
@@ -1,28 +1,37 @@
-
+//===== rAthena Script =======================================
+//= Sample: Chat Test
+//===== By: ==================================================
+//= rAthena Dev Team
+//===== Current Version: =====================================
+//= 20121003
+//===== Description: =========================================
+//= Demonstrates waitingroom commands.
+//============================================================
prontera,158,182,0 script Chat Test::test0001 116,{
- mes "Trigger Number" + getwaitingroomstate(2);
- mes "Trigger State" + getwaitingroomstate(3);
- menu "Enable",L_ENA,"Disable",L_DISA,"Delete",L_DEL,"Create",L_MAKE;
- close;
-L_ENA:
- enablewaitingroomevent;
- close;
-L_DISA:
- disablewaitingroomevent;
- close;
-L_DEL:
- delwaitingroom;
- close;
-L_MAKE:
- waitingroom "Test",15,"test0001::OnChatEvent",1;
- close;
+ mes "Trigger Number: " + getwaitingroomstate(2);
+ mes "Trigger State: " + getwaitingroomstate(3);
+ switch(select("Enable:Disable:Delete:Create")) {
+ case 1:
+ enablewaitingroomevent;
+ close;
+ case 2:
+ disablewaitingroomevent;
+ close;
+ case 3:
+ delwaitingroom;
+ close;
+ case 4:
+ waitingroom "Test",15,"test0001::OnChatEvent",1;
+ close;
+ }
+
OnInit:
waitingroom "Test",15,"test0001::OnChatEvent",1;
end;
+
OnChatEvent:
disablewaitingroomevent;
warpwaitingpc "prontera",160,180;
end;
-
} \ No newline at end of file