summaryrefslogtreecommitdiff
path: root/npc/001-1_Tulimshar/bernard.txt
blob: 25aad835fa6007003a6a7159a5525f16907c1c80 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
//

001-1.gat,37,44,0	script	Bernard	117,{
	if(TMW_Quest >= 4) goto L_Done2;
	if(TMW_Quest == 3) goto L_Progress2;
	if(TMW_Quest == 2) goto L_Done1;
	if(TMW_Quest == 1) goto L_Progress;

	set @TEMP, rand(2);
	if(@TEMP == 0) goto L_Opening0;
	if(@TEMP == 1) goto L_Opening1;

L_Opening0:
	mes "[Bernard]";
	mes "\"In Tulimshar, there are a lot of maggots. I need a favor, please help me. Will you?\"";
	next;
	goto L_Ask;

L_Opening1:
	mes "[Bernard	]";
	mes "\"The taste of maggots in soup is... unforgettable, taste so good. Will you help me kill some?\"";
	next;
	goto L_Ask;

L_Ask:
	menu
		"Yes", L_Yes,
		"No", L_No;

L_Yes:
	set @TEMP, rand(2);
	if(@TEMP == 0) goto L_Req0;
	if(@TEMP == 1) goto L_Req1;

L_Req0:
	mes "[Bernard]";
	mes "\"I need a [Roasted Maggot] for my soup.\"";
	next;
	goto L_Set;

L_Req1:
	mes "[Bernard]";
	mes "\"Bring me a [Roasted Maggot]. I'll give you something if you do.\"";
	next;
	goto L_Set;

L_Set:
	set TMW_Quest,1;
	mes "[Bernard]";
	mes "\"Please bring me it!\"";
	close;

L_Progress:
	if (countitem("RoastedMaggot") < 1) goto L_NotEnough;
	mes "[Bernard]";
	mes "\"Perfect! It's perfect !";
	mes "You brought me my Roasted Maggot!  Here, have some cake.\"";
	getinventorylist;
	if ((@inventorylist_count - (countitem("RoastedMMaggot") == 1) > 99 - (countitem("CherryCake") == 0) )) goto L_TooMany;
	delitem "RoastedMaggot", 1;
        getexp 100, 0;
	getitem "CherryCake", 5;
	set TMW_Quest, 2;
	close;

L_Progress2:
        if (countitem("MaggotSlime") < 3) goto L_NotEnough1;
        mes "[Bernard]";
        mes "\"Nice ! It'll perfect, so perfect !";           
        mes "You brought me the 3 maggots slimes! Here, have some beer.\"";
        getinventorylist;             
        if ((@inventorylist_count - (countitem("MaggotSlime") == 3) > 99  - (countitem("Beer") == 0) )) goto L_TooMany;
        delitem "MaggotSlime", 3;
        getexp 100, 0;     
        getitem "Beer", 3;       
        set TMW_Quest, 4;                
        close;


L_NotEnough:
	mes "[Bernard]";
	mes "\"Please hurry and bring me a [Roasted Maggot].\"";
	close;

L_NotEnough1:
        mes "[Bernard]";
        mes "\"Please hurry and bring me 3 [Maggot Slime]s.\"";
        close;


L_Done1:
	mes "[Bernard]";
	mes "\"Thank you so much !\"";
	mes "\"But something is missing to make the soup creamy !\"";
	next;
	mes "\"I need 3 [Maggot Slime] for the soup.\"";
	mes "\"Bring me them. I'll give you something if you do.\"";
	set TMW_Quest,3;
	close;

L_Done2:
        mes "[Bernard]";
        mes "\"I didn't tell you, I also put beer in my soup.  I hope you like beer as much as I do because..\"";
        next;
        mes "\"Beer is life!\"";
        close;


L_No:
	close;

L_TooMany:
	next;
	mes "[Bernard]";
	mes "\"You don't have room for my reward. I'll wait until you do.\"";
	close;
}