summaryrefslogtreecommitdiff
path: root/npc/merchants/3rd_trader.txt
blob: 7d16b1a1af7ea92d83ce3b13898fd97fb0505e43 (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
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
//===== eAthena Script ======================================= 
//= 3rd Item Seller
//===== By: ================================================== 
//= Masao
//===== Current Version: ===================================== 
//= 1.0
//===== Compatible With: ===================================== 
//= eAthena SVN
//===== Description: ========================================= 
//= [Aegis Conversion]
//= Sells some 3rd Job related Items.
//===== Additional Comments: ================================= 
//= v1.0 First Version.
//============================================================ 

job3_guil01,79,96,3	script	Poison Herb Salesman::phsale	877,{

	if(checkweight(1201,1) == 0 || MaxWeight - Weight < 20000)
	{
		mes "- Wait a minute !! -";
		mes "- Currently you're carrying -";
		mes "- too many items with you. -";
		mes "- Please try again -";
		mes "- after you loose some weight. -";
		close;
	}

	mes "[Poison Herb Salesman]";
	mes "I am the professional";
	mes "poison herb seller.";
	mes "Which one do you want?";
	mes "They cost 4,000 zeny each!";
	next;
	switch(select("Nerium:Rantana:Makulata:Seratum:Scopolia:Amoena:Poison Kit"))
	{
	case 1:
		mes "[Poison Herb Salesman]";
		mes "How many do you want? You can";
		mes "only buy a maximum of 2000ea";
		mes "and if you want to cancel, enter '0'.";
		next;
		input .@amount;
		if(.@amount == 0)
		{
			mes "[Poison Herb Salesman]";
			mes "You've cancelled the trade.";
			close;
		}
		else if(.@amount > 2000)
		{
			mes "[Poison Herb Salesman]";
			mes "Please check the maximum";
			mes "amount and then try again.";
			close;
		}
		else if(Zeny < .@amount * 4000)
		{
			mes "[Poison Herb Salesman]";
			mes "Please check the money you have,";
			mes "It doesn't seem like you have enough money.";
			close;
		}
		set Zeny,Zeny - .@amount * 4000;
		getitem 7932,.@amount;
		mes "[Poison Herb Salesman]";
		mes "Thank you. See you~!";
		close;
	case 2:
		mes "[Poison Herb Salesman]";
		mes "How many do you want? You can";
		mes "only buy a maximum of 2000ea";
		mes "and if you want to cancel, enter '0'.";
		next;
		input .@amount;
		if(.@amount == 0)
		{
			mes "[Poison Herb Salesman]";
			mes "You've cancelled the trade.";
			close;
		}
		else if(.@amount > 2000)
		{
			mes "[Poison Herb Salesman]";
			mes "Please check the maximum";
			mes "amount and then try again.";
			close;
		}
		else if(Zeny < .@amount * 4000)
		{
			mes "[Poison Herb Salesman]";
			mes "Please check the money you have,";
			mes "It doesn't seem like you have enough money.";
			close;
		}
		set Zeny,Zeny - .@amount * 4000;
		getitem 7933,.@amount;
		mes "[Poison Herb Salesman]";
		mes "Thank you. See you~!";
		close;
	case 3:
		mes "[Poison Herb Salesman]";
		mes "How many do you want? You can";
		mes "only buy a maximum of 2000ea";
		mes "and if you want to cancel, enter '0'.";
		next;
		input .@amount;
		if(.@amount == 0)
		{
			mes "[Poison Herb Salesman]";
			mes "You've cancelled the trade.";
			close;
		}
		else if(.@amount > 2000)
		{
			mes "[Poison Herb Salesman]";
			mes "Please check the maximum";
			mes "amount and then try again.";
			close;
		}
		else if(Zeny < .@amount * 4000)
		{
			mes "[Poison Herb Salesman]";
			mes "Please check the money you have,";
			mes "It doesn't seem like you have enough money.";
			close;
		}
		set Zeny,Zeny - .@amount * 4000;
		getitem 7934,.@amount;
		mes "[Poison Herb Salesman]";
		mes "Thank you. See you~!";
		close;
	case 4:
		mes "[Poison Herb Salesman]";
		mes "How many do you want? You can";
		mes "only buy a maximum of 2000ea";
		mes "and if you want to cancel, enter '0'.";
		next;
		input .@amount;
		if(.@amount == 0)
		{
			mes "[Poison Herb Salesman]";
			mes "You've cancelled the trade.";
			close;
		}
		else if(.@amount > 2000)
		{
			mes "[Poison Herb Salesman]";
			mes "Please check the maximum";
			mes "amount and then try again.";
			close;
		}
		else if(Zeny < .@amount * 4000)
		{
			mes "[Poison Herb Salesman]";
			mes "Please check the money you have,";
			mes "It doesn't seem like you have enough money.";
			close;
		}
		set Zeny,Zeny - .@amount * 4000;
		getitem 7935,.@amount;
		mes "[Poison Herb Salesman]";
		mes "Thank you. See you~!";
		close;
	case 5:
		mes "[Poison Herb Salesman]";
		mes "How many do you want? You can";
		mes "only buy a maximum of 2000ea";
		mes "and if you want to cancel, enter '0'.";
		next;
		input .@amount;
		if(.@amount == 0)
		{
			mes "[Poison Herb Salesman]";
			mes "You've cancelled the trade.";
			close;
		}
		else if(.@amount > 2000)
		{
			mes "[Poison Herb Salesman]";
			mes "Please check the maximum";
			mes "amount and then try again.";
			close;
		}
		else if(Zeny < .@amount * 4000)
		{
			mes "[Poison Herb Salesman]";
			mes "Please check the money you have,";
			mes "It doesn't seem like you have enough money.";
			close;
		}
		set Zeny,Zeny - .@amount * 4000;
		getitem 7936,.@amount;
		mes "[Poison Herb Salesman]";
		mes "Thank you. See you~!";
		close;
	case 6:
		mes "[Poison Herb Salesman]";
		mes "How many do you want? You can";
		mes "only buy a maximum of 2000ea";
		mes "and if you want to cancel, enter '0'.";
		next;
		input .@amount;
		if(.@amount == 0)
		{
			mes "[Poison Herb Salesman]";
			mes "You've cancelled the trade.";
			close;
		}
		else if(.@amount > 2000)
		{
			mes "[Poison Herb Salesman]";
			mes "Please check the maximum";
			mes "amount and then try again.";
			close;
		}
		else if(Zeny < .@amount * 4000)
		{
			mes "[Poison Herb Salesman]";
			mes "Please check the money you have,";
			mes "It doesn't seem like you have enough money.";
			close;
		}
		set Zeny,Zeny - .@amount * 4000;
		getitem 7937,.@amount;
		mes "[Poison Herb Salesman]";
		mes "Thank you. See you~!";
		close;
	case 7:
		mes "[Poison Herb Salesman]";
		mes "You can only buy";
		mes "1 Poison Kit and it costs 5,000 zeny.";
		mes "Will you buy it?";
		next;
		switch(select("Yes, I will.:No, I won't."))
		{
		case 1:
			if(Zeny < 5000)
			{
				mes "[Poison Herb Salesman]";
				mes "Please check the money you have.";
				mes "It doesn't seem like you have enough money.";
				close;
			}
			set Zeny,Zeny - 5000;
			getitem 7931,1;
			mes "[Poison Herb Salesman]";
			mes "Thank you. See you~!";
			close;
		case 2:
			mes "[Poison Herb Salesman]";
			mes "Well, I see. See you~!";
			close;
		}
	}
}

job3_rune01,90,62,3	script	Rune Salesman::runesale	853,{

	if(checkweight(1201,1) == 0 || MaxWeight - Weight < 20000)
	{
		mes "- Wait a minute !! -";
		mes "- Currently you're carrying -";
		mes "- too many items with you. -";
		mes "- Please try again -";
		mes "- after you loose some weight. -";
		close;
	}

	mes "[Rune Salesman]";
	mes "Hey, do you need Runes?!";
	mes "I sell all kinds of Rune Stones!";
	mes "What kind of Rune do you want?";
	next;
	switch(select("Buy high-quality Rune Stones.:Buy ordinary Rune Stones."))
	{
	case 1:
		mes "[Rune Salesman]";
		mes "High-quality Runes!";
		mes "They cost 2,500 zeny each!";
		mes "Tell me how many you want to buy";
		mes "and remember, you can only";
		mes "buy a maximum amount of 2000 ea!";
		next;
		input .@amount;
		if(.@amount == 0)
		{
			mes "[Rune Salesman]";
			mes "You're not buying? Go away!";
			close;
		}
		else if(.@amount > 2000)
		{
			mes "[Rune Salesman]";
			mes "Please check the maximum";
			mes "amount and then come back to me again!";
			close;
		}
		else if(Zeny < .@amount * 2500)
		{
			mes "[Rune Salesman]";
			mes "Money! Money!";
			mes "You are short of money!";
			mes "Check the amount of money you have!!";
			close;
		}
		set .@checkweight,.@amount * 100;
		if (MaxWeight < .@checkweight)
		{
			mes "[Rune Salesman]";
			mes "You're not able to carry it, so why are you trying to buy it?!";
			close;
		}
		set Zeny,Zeny - .@amount * 2500;
		getitem 12734,.@amount;
		mes "[Rune Salesman]";
		mes "You can buy more again.";
		mes "So, see you later.";
		close;
	case 2:
		mes "[Rune Salesman]";
		mes "Ordinary Rune Stones?";
		mes "They cost 1,000 zeny each!";
		mes "Tell me how many you want to buy";
		mes "and remember, you can only";
		mes "buy a maximum amount of 2000 ea!";
		next;
		input .@amount;
		if(.@amount == 0)
		{
			mes "[Rune Salesman]";
			mes "You're not buying? Go away!";
			close;
		}
		else if(.@amount > 2000)
		{
			mes "[Rune Salesman]";
			mes "Please check the maximum";
			mes "amount and then come back to me again!";
			close;
		}
		else if(Zeny < .@amount * 1000)
		{
			mes "[Rune Salesman]";
			mes "Money! Money!";
			mes "You are short of money!";
			mes "Check the amount of money you have!!";
			close;
		}
		set .@checkweight,.@amount * 100;
		if (MaxWeight < .@checkweight)
		{
			mes "[Rune Salesman]";
			mes "You're not able to carry it, so why are you trying to buy it?!";
			close;
		}
		set Zeny,Zeny - .@amount * 1000;
		getitem 12737,.@amount;
		mes "[Rune Salesman]";
		mes "You can buy more again.";
		mes "So, see you later.";
		close;
	}
}

job3_guil01,91,93,3	script	Rare Herb Collector	49,{

	if(checkweight(1201,1) == 0 || MaxWeight - Weight < 20000)
	{
		mes "- Wait a minute !! -";
		mes "- Currently you're carrying -";
		mes "- too many items with you. -";
		mes "- Please try again -";
		mes "- after you loose some weight. -";
		close;
	}

	if (Class == 4059 || Class == 4065)
	{
		mes "[Rare Poison Herb Collector]";
		mes "I wander around the world and collect rare poison herbs. Recently, I am dealing in the herb called Izidor. If you are interested, you can buy them.";
		next;
		switch(select("How can I buy them?:Exchange it with Animal Blood:Exchange it with a Bitter Herb:Exchange it with a Deadly Noxious Herb:Exchange it with a Frozen Rose:Exchange it with Ment:Exchange it with Hinalle"))
		{
		case 1:
			mes "[Rare Poison Herb Collector]";
			mes "You can buy any of those items for 10,000 zeny: Animal Blood, Bitter Herb, Deadly Noxious Herb, Frozen Rose, Ment or Hinalle. ";
			next;
			mes "[Rare Poison Herb Collector]";
			mes "Why I ask for money? That is just to pay a little respect to a collector like me. Ha ha ha...";
			close;
		case 2:
			if ((countitem(702) > 0) && (Zeny > 9999))
			{
				mes "[Rare Poison Herb Collector]";
				mes "Thank you. I've received your payment.";
				delitem 702,1;
				set Zeny,Zeny - 10000;
				getitem 709,1;
				close;
			}
			mes "[Rare Poison Herb Collector]";
			mes "Hey, try again after you've prepared all the requirements for the exchange.";
			close;
		case 3:
			if ((countitem(621) > 0) && (Zeny > 9999))
			{
				mes "[Rare Poison Herb Collector]";
				mes "Thank you. I've received your payment.";
				delitem 621,1;
				set Zeny,Zeny - 10000;
				getitem 709,1;
				close;
			}
			mes "[Rare Poison Herb Collector]";
			mes "Hey, try again after you've prepared all the requirements for the exchange.";
			close;
		case 4:
			if ((countitem(631) > 0) && (Zeny > 9999))
			{
				mes "[Rare Poison Herb Collector]";
				mes "Thank you. I've received your payment.";
				delitem 631,1;
				set Zeny,Zeny - 10000;
				getitem 709,1;
				close;
			}
			mes "[Rare Poison Herb Collector]";
			mes "Hey, try again after you've prepared all the requirements for the exchange.";
			close;
		case 5:
			if ((countitem(749) > 0) && (Zeny > 9999))
			{
				mes "[Rare Poison Herb Collector]";
				mes "Thank you. I've received your payment.";
				delitem 749,1;
				set Zeny,Zeny - 10000;
				getitem 709,1;
				close;
			}
			mes "[Rare Poison Herb Collector]";
			mes "Hey, try again after you've prepared all the requirements for the exchange.";
			close;
		case 6:
			if ((countitem(605) > 0) && (Zeny > 9999))
			{
				mes "[Rare Poison Herb Collector]";
				mes "Thank you. I've received your payment.";
				delitem 605,1;
				set Zeny,Zeny - 10000;
				getitem 709,1;
				close;
			}
			mes "[Rare Poison Herb Collector]";
			mes "Hey, try again after you've prepared all the requirements for the exchange.";
			close;
		case 7:
			if ((countitem(703) > 0) && (Zeny > 9999))
			{
				mes "[Rare Poison Herb Collector]";
				mes "Thank you. I've received your payment.";
				delitem 703,1;
				set Zeny,Zeny - 10000;
				getitem 709,1;
				close;
			}
			mes "[Rare Poison Herb Collector]";
			mes "Hey, try again after you've prepared all the requirements for the exchange.";
			close;
		}
	}
	mes "[Rare Poison Herb Collector]";
	mes "I wander around the world and collect rare poison herbs. But I don't feel like selling my herbs to a person like you... ha ha ha...";
	close;
}

gef_tower,105,172,5	script	Point Salesman#Sorcerer	700,{

	if(checkweight(1201,1) == 0 || MaxWeight - Weight < 20000)
	{
		mes "- Wait a minute !! -";
		mes "- Currently you're carrying -";
		mes "- too many items with you. -";
		mes "- Please try again -";
		mes "- after you loose some weight. -";
		close;
	}

    mes "[Point Salesman]";
	mes "Hello. I'm selling a catalyst that are called ^FF0000Points^000000 for Sorcerers. What would you like?";
	next;
	switch(select("Scarlet Points - 200z:Lime Green Points - 200z:Indigo Points - 200z:Yellow Wish Points - 200z:Cancel"))
	{
	case 1:
        mes "[Point Salesman]";
		mes "You have chosen Scarlet Points.";
		mes "How many do you want?";
		mes "If you want to cancel, enter 0.";
		next;
		input .@amount;
        if (.@amount == 0)
		{
            mes "[Point Salesman]";
            mes "You've cancelled the trade.";
            close;
		}
		set .@po_weight,.@amount * 10;
		set .@tt_weight,MaxWeight - .@po_weight;
		set .@po_money,.@amount * 200;
		if (.@tt_weight > 0)
		{
			if (Zeny >= .@po_money)
			{
				set Zeny,Zeny - .@po_money;
				getitem 6360,.@amount;
				mes "[Point Salesman]";
				mes "Thank you very much. See you~!";
				close;
			}
			mes "[Point Salesman]";
			mes "You don't seem to have enough money.";
			close;
		}
		mes "[Point Salesman]";
		mes "You don't have enough space in your inventory to buy this amount.";
		close;
    case 2:
        mes "[Point Salesman]";
		mes "You have chosen Lime Green Points.";
		mes "How many do you want?";
		mes "If you want to cancel, enter 0.";
		next;
		input .@amount;
        if (.@amount == 0)
		{
            mes "[Point Salesman]";
            mes "You've cancelled the trade.";
            close;
		}
		set .@po_weight,.@amount * 10;
		set .@tt_weight,MaxWeight - .@po_weight;
		set .@po_money,.@amount * 200;
		if (.@tt_weight > 0)
		{
			if (Zeny >= .@po_money)
			{
				set Zeny,Zeny - .@po_money;
				getitem 6363,.@amount;
				mes "[Point Salesman]";
				mes "Thank you very much. See you~!";
				close;
			}
			mes "[Point Salesman]";
			mes "You don't seem to have enough money.";
			close;
		}
		mes "[Point Salesman]";
		mes "You don't have enough space in your inventory to buy this amount.";
		close;
    case 3:
        mes "[Point Salesman]";
		mes "You have chosen Indigo Points.";
		mes "How many do you want?";
		mes "If you want to cancel, enter 0.";
		next;
		input .@amount;
        if (.@amount == 0)
		{
            mes "[Point Salesman]";
            mes "You've cancelled the trade.";
            close;
		}
		set .@po_weight,.@amount * 10;
		set .@tt_weight,MaxWeight - .@po_weight;
		set .@po_money,.@amount * 200;
		if (.@tt_weight > 0)
		{
			if (Zeny >= .@po_money)
			{
				set Zeny,Zeny - .@po_money;
				getitem 6361,.@amount;
				mes "[Point Salesman]";
				mes "Thank you very much. See you~!";
				close;
			}
			mes "[Point Salesman]";
			mes "You don't seem to have enough money.";
			close;
		}
		mes "[Point Salesman]";
		mes "You don't have enough space in your inventory to buy this amount.";
		close;
    case 4:
        mes "[Point Salesman]";
		mes "You have chosen Yellow Wish Points.";
		mes "How many do you want?";
		mes "If you want to cancel, enter 0.";
		next;
		input .@amount;
        if (.@amount == 0)
		{
            mes "[Point Salesman]";
            mes "You've cancelled the trade.";
            close;
		}
		set .@po_weight,.@amount * 10;
		set .@tt_weight,MaxWeight - .@po_weight;
		set .@po_money,.@amount * 200;
		if (.@tt_weight > 0)
		{
			if (Zeny >= .@po_money)
			{
				set Zeny,Zeny - .@po_money;
				getitem 6362,.@amount;
				mes "[Point Salesman]";
				mes "Thank you very much. See you~!";
				close;
			}
			mes "[Point Salesman]";
			mes "You don't seem to have enough money.";
			close;
		}
		mes "[Point Salesman]";
		mes "You don't have enough space in your inventory to buy this amount.";
		close;
    case 5:
        mes "[Point Salesman]";
		mes "You can't find the stuff you need?";
        close;
	}
}

morocc,190,96,4	duplicate(phsale)	Poison Herb Salesman#1	877
lhz_in02,16,205,4	duplicate(phsale)	Poison Herb Salesman#2	877
prontera,168,228,3	duplicate(runesale)	Rune Salesman#1	853