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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
|
// TMW2 scripts.
// Author:
// Saulc
// Variables:
// CandorQuests_Maya
// Values:
// 0 Default.
// 1 5 cotton cloth -> candor shirt
// 2 if end meye quest -> 10k + pearl + (random item) --> pearl ring
// 3 wolvern tooth +20k + 2000monster point ->claw pendant
005-1,42,37,0 script Maya NPC_RAIJIN_FEMALE_LEGION_ARTIS,{
.Item1 = CottonCloth;
.Item2 = Pearl;
.Item3 = WolvernTooth;
function quest_close {
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("Maybe next time.");
goodbye;
close;
}
function quest_giveitem {
.@maya = getq(CandorQuest_Maya);
if (.@maya == 2)
{
if (countitem("Iron Ingot") == 0)
{
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("You don't have the item.");
goodbye;
close;
}
delitem .Item3, 1;
Zeny = Zeny + 8000;
getexp 1500,0;
setq CandorQuest_Tolchi, 3;
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("Thanks mate that all i need ! Have a good day !");
}
if (.@maya == 1)
{
if (countitem("Coal") <= 2)
{
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("You don't have the item.");
goodbye;
close;
}
delitem .Item2, 3;
Zeny = Zeny + 800;
getexp 100,0;
setq CandorQuest_Maya, 2;
}
if (.@maya == 0)
{
if (countitem("Iron Ore") == 0)
{
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("You don't have the item.");
goodbye;
close;
}
delitem .Item1, 1;
Zeny = Zeny + 200;
getitem RustyKnife, 1;
getexp 50,0;
setq CandorQuest_Maya, 1;
}
close;
}
function quest_first {
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("Can you bring me 2 @@", getitemlink(.Item1));
do
{
select
l("Yes."),
l("No.");
switch (@menu)
{
case 1:
quest_giveitem;
break;
case 2:
quest_close;
break;
}
} while (@menu != 2);
}
function quest_second {
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("Can you bring me 3 @@", getitemlink(.Item2));
do
{
select
l("Yes."),
l("No.");
switch (@menu)
{
case 1:
quest_giveitem;
break;
case 2:
quest_close;
break;
}
} while (@menu != 2);
}
function quest_third {
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("Can you bring me 4 @@", getitemlink(.Item3));
do
{
select
l("Yes."),
l("No.");
switch (@menu)
{
case 1:
quest_giveitem;
break;
case 2:
quest_close;
break;
}
} while (@menu != 2);
}
.@maya = getq(CandorQuest_Maya,
if (BaseLevel <= 4 || BaseLevel <= 9 && .@maya == 1 || BaseLevel <= 14 && .@maya == 2)
{
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("You aren't strong enought. Come Back Later.");
goodbye;
close;
}
if (.@maya == 3)
{
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("Hey ! How are you today ? Thanks again for your help.");
goodbye;
close;
}
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("Hello can you help me?");
do
{
select
rif(.@maya == 0, l("Yes.")),
rif(.@maya == 1, l("Yes.")),
rif(.@maya == 2, l("Yes.")),
l("No.");
switch (@menu)
{
case 1:
quest_first;
setq CandorQuest_Maya, 0;
break;
case 2:
quest_second;
break;
case 3:
quest_third;
break;
case 4:
quest_close;
goodbye;
break;
}
} while (@menu != 4);
closedialog;
goodbye;
close;
OnTimer1000:
domovestep;
OnInit:
initpath "move", 44, 35,
"dir", UP, 0,
"wait", 30, 0,
"move", 43, 40,
"dir", UP, 0,
"wait", 30, 0,
"move", 40, 35,
"dir", UP, 0,
"wait", 30, 0,
"dir", LEFT, 0,
"wait", 30, 0,
"move", 42, 37,
"dir", DOWN, 0,
"dir", UP, 0,
"wait", 30, 0,
"Mmove", 45, 37,
"dir", DOWN, 0,
"wait", 30, 0,
"move", 33, 37,
"dir", LEFT, 0,
"wait", 30, 0,
"move", 33, 37,
"dir", RIGHT, 0,
"wait", 30, 0;
initialmove;
initnpctimer;
.distance = 5;
}
|