summaryrefslogtreecommitdiff
path: root/doc/sample/npc_test_chat.txt
blob: 24176b802e8fe9d7ce65ad9797ccf323c97960fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//===== Hercules Script =======================================
//= Sample: Chat Test
//===== By: ==================================================
//= Hercules 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;
}