summaryrefslogtreecommitdiff
path: root/doc/sample/npc_test_chat.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/sample/npc_test_chat.txt')
-rw-r--r--doc/sample/npc_test_chat.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/sample/npc_test_chat.txt b/doc/sample/npc_test_chat.txt
new file mode 100644
index 000000000..f593490cb
--- /dev/null
+++ b/doc/sample/npc_test_chat.txt
@@ -0,0 +1,28 @@
+
+
+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;
+OnInit:
+ waitingroom "Test",15,"test0001::OnChatEvent",1;
+ end;
+OnChatEvent:
+ disablewaitingroomevent;
+ warpwaitingpc "prontera",160,180;
+ end;
+
+} \ No newline at end of file