summaryrefslogtreecommitdiff
path: root/npc/cities/louyang.txt
blob: f0f2695bf9704139b1a9df89ef1a59c0b1fa29d4 (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
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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
//===== eAthena Script ======================================= 
//= Lou Yang City NPC's 
//===== By: ================================================== 
//= Vidar (1.0)
//= Mass Zero (1.1)
//===== Current Version: ===================================== 
//= 1.0 
//===== Compatible With: ===================================== 
//= Any eAthena Version
//===== Description: ========================================= 
//= Unofficial NPC's for Lou Yang city.
//===== Additional Comments: ================================= 
//= Originally made for Vidar
//============================================================

louyang.gat,260,96,2	script	Chun Hua	770,{
mes "[^000080Chun Hua^000000]";
mes "Welcome traveler, you must be hungry and thirsty.";
mes "Please come inside, there is much to eat.";
next;
mes "[^000080Chun Hua^000000]";
mes "Do not be afraid about how much you ask for, there is much to go around.";
close;
}

lou_fild01.gat,188,102,1	script	Extraordinary Sailor	100,{
mes "[Extraordinary Sailor]";
mes "We run a line to Alberta, we could take you there if you like.";
next;
menu "Let me travel to Alberta",L_Menu1,"No, thanks",L_Menu2;
close;
L_Menu1:
warp "alberta.gat",247,44;
L_Menu2:
mes "[Extraordinary Sailor]";
mes "Suit yourself.";
close;
}

alberta.gat,247,42,4	script	Expert Sailor	100,{
mes "[Expert Sailor]";
mes "Have you ever been over seas?";
next;
menu "Yes",YES,"No",NO;
YES:
mes "Same here! I'm about to head back out that way again.";
mes "Would you like to come with me?";
next;
menu "Sure",L_Menu1,"No, thanks",L_Menu3;
close;
L_Menu1:
warp "lou_fild01.gat",192,105;
NO:
mes "What a shame, it is truley a sight to behold. I'm about to head back out that way again.";
mes "Would you like to come with me?";
next;
menu "Sure",L_Menu2,"No, thanks",L_Menu3;
close;
L_Menu2:
warp "lou_fild01.gat",192,105;
L_Menu3:
mes "[Expert Sailor]";
mes "Suit yourself.";
close;
}

louyang.gat,247,147,3	script	Huang Xing	59,{
mes "[^000080Huang Xing^000000]";
mes "Hello traveler.";
mes "Is there anything you need?";
next;
MNU:
menu "Full Heal (1000z)",LHeal,"Red Herbs (18z)",L0,"Yellow Herbs (40z)",L1,"White Herbs (120z)",L2,"Blue Herbs (60z)",L3,"Green Herbs (10z)",L4,"Holy Water (20z)",L5,"Rice Cake (50z)",L6,"Red Potions (50z)",L7,"Orange Potions (200z)",L8,"Yellow Potions (550z)",L9,"White Potions (1200z)",L10,"Blue Potions (5000z)",L11,"Green Potions (40z)",L12,"Leaflet of Hinal (150z)",L13,"Leaflet of Aloe (360z)",L14,"Panacea (500z)",L15,"Mastela Fruit (840z)",L16,"Yggdrasilberry (5000z)",L17,"Yggdrasil Leaf (8000z)",L18;
LHeal:
if(Zeny < 1000) goto EXIT;
set Zeny,Zeny-1000;
heal 30000,30000;
mes "[^000080Huang Xing^000000]";
mes "Take care.";
close;
EXIT:
mes "[^000080Huang Xing^000000]";
mes "I'm sorry, but you don't have enough zeny.";
goto ASK;
L0:
mes "[^000080Huang Xing^000000]";
mes "How many Red Herbs would you like to buy?";
mes "The cost is 18 zeny per unit.";
next;
input @ITEM;
set @COST,@ITEM*18;
if(Zeny < @COST) goto EXIT;
if(checkweight(507,@ITEM) > weight) goto EXIT1;
getitem 507,@ITEM;
set Zeny,Zeny-@COST;
mes "[^000080Huang Xing^000000]";
mes "Thank you.";
close;
ASK:
next;
mes "[^000080Huang Xing^000000]";
mes "Is there anything else that you'd like?";
next;
menu "Yes",MNU,"No",LNo;
LNo:
mes "[^000080Huang Xing^000000]";
mes "Very well, good luck on your travels.";
close;
L1:
mes "[^000080Huang Xing^000000]";
mes "How many Yellow Herbs would you like to buy?";
mes "The cost is 40 zeny per unit.";
next;
input @ITEM;
set @COST,@ITEM*40;
if(Zeny < @COST) goto EXIT;
if(checkweight(508,@ITEM) > weight) goto EXIT1;
getitem 508,@ITEM;
set Zeny,Zeny-@COST;
mes "[^000080Huang Xing^000000]";
mes "Thank you.";
next;
goto ASK;
L2:
mes "[^000080Huang Xing^000000]";
mes "How many Yellow Herbs would you like to buy?";
mes "The cost is 120 zeny per unit.";
next;
input @ITEM;
set @COST,@ITEM*120;
if(Zeny < @COST) goto EXIT;
if(checkweight(509,@ITEM) > weight) goto EXIT1;
getitem 509,@ITEM;
set Zeny,Zeny-@COST;
mes "[^000080Huang Xing^000000]";
mes "Thank you.";
next;
goto ASK;
L3:
mes "[^000080Huang Xing^000000]";
mes "How many Blue Herbs would you like to buy?";
mes "The cost is 60 zeny per unit.";
next;
input @ITEM;
set @COST,@ITEM*60;
if(Zeny < @COST) goto EXIT;
if(checkweight(510,@ITEM) > weight) goto EXIT1;
getitem 510,@ITEM;
set Zeny,Zeny-@COST;
mes "[^000080Huang Xing^000000]";
mes "Thank you.";
next;
goto ASK;
L4:
mes "[^000080Huang Xing^000000]";
mes "How many Green Herbs would you like to buy?";
mes "The cost is 10 zeny per unit.";
next;
input @ITEM;
set @COST,@ITEM*10;
if(Zeny < @COST) goto EXIT;
if(checkweight(511,@ITEM) > weight) goto EXIT1;
getitem 511,@ITEM;
set Zeny,Zeny-@COST;
mes "[^000080Huang Xing^000000]";
mes "Thank you.";
next;
goto ASK;
L5:
mes "[^000080Huang Xing^000000]";
mes "How many Holy Waters would you like to buy?";
mes "The cost is 20 zeny per unit.";
next;
input @ITEM;
set @COST,@ITEM*20;
if(Zeny < @COST) goto EXIT;
if(checkweight(523,@ITEM) > weight) goto EXIT1;
getitem 523,@ITEM;
set Zeny,Zeny-@COST;
mes "[^000080Huang Xing^000000]";
mes "Thank you.";
next;
goto ASK;
L6:
mes "[^000080Huang Xing^000000]";
mes "How many Rice Cakes would you like to buy?";
mes "The cost is 50 zeny per unit.";
next;
input @ITEM;
set @COST,@ITEM*50;
if(Zeny < @COST) goto EXIT;
if(checkweight(555,@ITEM) > weight) goto EXIT1;
getitem 555,@ITEM;
set Zeny,Zeny-@COST;
mes "[^000080Huang Xing^000000]";
mes "Thank you.";
next;
goto ASK;
L7:
mes "[^000080Huang Xing^000000]";
mes "How many Red Potions would you like to buy?";
mes "The cost is 50 zeny per unit.";
next;
input @ITEM;
set @COST,@ITEM*50;
if(Zeny < @COST) goto EXIT;
if(checkweight(501,@ITEM) > weight) goto EXIT1;
getitem 501,@ITEM;
set Zeny,Zeny-@COST;
mes "[^000080Huang Xing^000000]";
mes "Thank you.";
next;
goto ASK;
L8:
mes "[^000080Huang Xing^000000]";
mes "How many Orange Potions would you like to buy?";
mes "The cost is 200 zeny per unit.";
next;
input @ITEM;
set @COST,@ITEM*200;
if(Zeny < @COST) goto EXIT;
if(checkweight(502,@ITEM) > weight) goto EXIT1;
getitem 502,@ITEM;
set Zeny,Zeny-@COST;
mes "[^000080Huang Xing^000000]";
mes "Thank you.";
next;
goto ASK;
L9:
mes "[^000080Huang Xing^000000]";
mes "How many Yellow Potions would you like to buy?";
mes "The cost is 550 zeny per unit.";
next;
input @ITEM;
set @COST,@ITEM*550;
if(Zeny < @COST) goto EXIT;
if(checkweight(503,@ITEM) > weight) goto EXIT1;
getitem 503,@ITEM;
set Zeny,Zeny-@COST;
mes "[^000080Huang Xing^000000]";
mes "Thank you.";
next;
goto ASK;
L10:
mes "[^000080Huang Xing^000000]";
mes "How many White Potions would you like to buy?";
mes "The cost is 1200 zeny per unit.";
next;
input @ITEM;
set @COST,@ITEM*1200;
if(Zeny < @COST) goto EXIT;
if(checkweight(504,@ITEM) > weight) goto EXIT1;
getitem 504,@ITEM;
set Zeny,Zeny-@COST;
mes "[^000080Huang Xing^000000]";
mes "Thank you.";
next;
goto ASK;
L11:
mes "[^000080Huang Xing^000000]";
mes "How many Blue Potions would you like to buy?";
mes "The cost is 5000 zeny per unit.";
next;
input @ITEM;
set @COST,@ITEM*5000;
if(Zeny < @COST) goto EXIT;
if(checkweight(505,@ITEM) > weight) goto EXIT1;
getitem 505,@ITEM;
set Zeny,Zeny-@COST;
mes "[^000080Huang Xing^000000]";
mes "Thank you.";
next;
goto ASK;
L12:
mes "[^000080Huang Xing^000000]";
mes "How many Green Potions would you like to buy?";
mes "The cost is 40 zeny per unit.";
next;
input @ITEM;
set @COST,@ITEM*40;
if(Zeny < @COST) goto EXIT;
if(checkweight(506,@ITEM) > weight) goto EXIT1;
getitem 506,@ITEM;
set Zeny,Zeny-@COST;
mes "[^000080Huang Xing^000000]";
mes "Thank you.";
next;
goto ASK;
L13:
mes "[^000080Huang Xing^000000]";
mes "How many Leaflets of Hinal would you like to buy?";
mes "The cost is 150 zeny per unit.";
next;
input @ITEM;
set @COST,@ITEM*150;
if(Zeny < @COST) goto EXIT;
if(checkweight(520,@ITEM) > weight) goto EXIT1;
getitem 520,@ITEM;
set Zeny,Zeny-@COST;
mes "[^000080Huang Xing^000000]";
mes "Thank you.";
next;
goto ASK;
L14:
mes "[^000080Huang Xing^000000]";
mes "How many Leaflets of Aloe would you like to buy?";
mes "The cost is 360 zeny per unit.";
next;
input @ITEM;
set @COST,@ITEM*360;
if(Zeny < @COST) goto EXIT;
if(checkweight(521,@ITEM) > weight) goto EXIT1;
getitem 521,@ITEM;
set Zeny,Zeny-@COST;
mes "[^000080Huang Xing^000000]";
mes "Thank you.";
next;
goto ASK;
L15:
mes "[^000080Huang Xing^000000]";
mes "How many Panaceas would you like to buy?";
mes "The cost is 500 zeny per unit.";
next;
input @ITEM;
set @COST,@ITEM*500;
if(Zeny < @COST) goto EXIT;
if(checkweight(525,@ITEM) > weight) goto EXIT1;
getitem 525,@ITEM;
set Zeny,Zeny-@COST;
mes "[^000080Huang Xing^000000]";
mes "Thank you.";
next;
goto ASK;
L16:
mes "[^000080Huang Xing^000000]";
mes "How many Mastela Fruits would you like to buy?";
mes "The cost is 840 zeny per unit.";
next;
input @ITEM;
set @COST,@ITEM*840;
if(Zeny < @COST) goto EXIT;
if(checkweight(522,@ITEM) > weight) goto EXIT1;
getitem 522,@ITEM;
set Zeny,Zeny-@COST;
mes "[^000080Huang Xing^000000]";
mes "Thank you.";
next;
goto ASK;
L17:
mes "[^000080Huang Xing^000000]";
mes "How many Yggdrasilberries would you like to buy?";
mes "The cost is 5000 zeny per unit.";
next;
input @ITEM;
set @COST,@ITEM*5000;
if(Zeny < @COST) goto EXIT;
if(checkweight(607,@ITEM) > weight) goto EXIT1;
getitem 607,@ITEM;
set Zeny,Zeny-@COST;
mes "[^000080Huang Xing^000000]";
mes "Thank you.";
next;
goto ASK;
L18:
mes "[^000080Huang Xing^000000]";
mes "How many Yggdrasil Leaves would you like to buy?";
mes "The cost is 8000 zeny per unit.";
next;
input @ITEM;
set @COST,@ITEM*8000;
if(Zeny < @COST) goto EXIT;
if(checkweight(610,@ITEM) > weight) goto EXIT1;
getitem 610,@ITEM;
set Zeny,Zeny-@COST;
mes "[^000080Huang Xing^000000]";
mes "Thank you.";
next;
goto ASK;
EXIT1:
mes "[^000080Huang Xing^000000]";
mes "I'm sorry, but you can't hold that many items.";
next;
goto ASK;
}