diff options
Diffstat (limited to 'doc/sample/npc_test_chat.txt')
-rw-r--r-- | doc/sample/npc_test_chat.txt | 37 |
1 files changed, 37 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..7a8a65471 --- /dev/null +++ b/doc/sample/npc_test_chat.txt @@ -0,0 +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); + 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 |