summaryrefslogblamecommitdiff
path: root/npc/jobs/2-2/alchemist.txt
blob: 41f254fc2e558ccb44470c2348c97d466d591318 (plain) (tree)
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
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076



















































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































                                                                                                                                                                    
//===== eAthena Script ======================================= 
//= Alchemist Job Quest
//===== By: ==================================================
//= nestor_zulueta (Fusion), converted by Darkchild
//===== Current Version: ===================================== 
//= 2.3
//===== Compatible With: ===================================== 
//= eAthena 1.0 +
//===== Description: ========================================= 
//= Alchemist job quest based off of official iRO quest.
//===== Additional Comments: ================================= 
//= v1.0 Working.
//= npc/quests/counteragent_mixture.txt Also Needed
//= npc/quests/quests_yuno.txt Also Needed [Darkchild]
//= v1.1 Fixed some minor bugs.  Optimized some lines. Re-organized the script a bit. 
//= Giving Parmry NPC, Hammer and Old Book now waves the 50000 fee. (based of mRO website)
//= Having a joblvl of 50 allows you to skip Rasputin's test. (based of mRO website) [kobra_k88]
//= 1.2 fixed a few typos (have to hunt more) [Lupus]
//= 1.3 Added Baby Class Support [Lupus]
//= 1.6 Added a func which prevent advanced classes passing
//= 2nd Job Quests again. It also guides adv classes where
//= to go. [Lupus]
//= 1.6a fixed some wrong answers, thanks to zlider for info [Lupus]
//= 2.0 Changed numbers to constants. [Vicious]
//= 2.2 Got rid of 'al_morgen' var. Now uses (MISC_QUEST & 4) [Lupus]
//= 2.3 Optimized, changed job numbers to constants. Fixed some spelling [Lupus]
//============================================================ 


//==================================================================================================//
//					Registration and First Test
//==================================================================================================//
alde_alche.gat,27,185,4	script	Parmry Gianino	744,{
	callfunc "F_BlockHigh",Job_Merchant_High,"Merchant High",Job_Creator,"Creator","Parmry Gianino";

	mes "[Parmry Gianino]";
	if(baseJob == Job_Merchant) goto L_Merc;
	if(baseJob == Job_Alchem){
		mes "Hey there fellow Alchemist.  How's the business going?  Good I hope, well good luck to you.";
		close;
	}
	mes "Welcome to the Alchemist Union.  Ah, I apologize but I'm busy right now.";
	close;
L_Merc:	
	if(ALCH_Q == 1) goto L_Check;
	if(ALCH_Q == 2) goto L_Test2;
	if(ALCH_Q == 3) goto L_Test3;
	if(ALCH_Q == 4) goto L_Test4;
	if(ALCH_Q == 5) goto L_Test5;
	if(ALCH_Q == 6) goto L_Test6;
	if(ALCH_Q == 7) goto L_GoChange;
	mes "Welcome to the Alchemist Union.";
	mes "How may i help you?";
	next;
	menu "I would like to learn about Alchemy",-, "I want to become an Alchemist.",L_Start, "Nothing.",M_End;

		mes "[Parmry Gianino]";
		mes "Alchemists study and create new materials using a variety of existing substances.";
		mes "They research the atoms of chemicals, and experiment to change the properties of the chemicals.";
		next;
		mes "[Parmry Gianino]";
		mes "Most people think the final goal is to create gold, but that's not the entire truth.";
		mes "They make anything from simple medicines, to new materials.";
		next;
		mes "[Parmry Gianino]";
		mes "At times, some research the creation of life .... but that's considered god's territory...";
		mes "That field is so complex, everyone simply researhes for now.";
		next;
		mes "[Parmry Gianino]";
		mes "If you are interested in becoming an Alchemist, I recommend that you gain a lot experience as a Merchant.";
		mes "Being a merchant is a great opportunity to learn about materials while you deal with them.";
		next;
		mes "[Parmry Gianino]";
		mes "Only you can decide for yourself.";
		mes "The road to becoming an Alchemist is very challenging.";
		mes "You will need to focus on experimenting and researching rather than trade.";
		close;
	M_End:
		mes "[Parmry Gianino]";
		mes "Umm... Please say something if you need anything.";
		close;
L_Start:
	mes "[Parmry Gianino]";
	if(JobLevel < 40) goto L_LowLvl;
	mes "Is that so? My name is Parmry Gianino of the Alchemist Association.";
	mes "Nice to meet you.";
	next;
	mes "[Parmry Gianino]";
	mes "If you join our Union and pass some training you will be officially recognized,";
	mes "as an Alchemist and be able to join our researches.";
	next;
	mes "[Parmry Gianino]";
	mes "But we dont accept everyone.";
	mes "You must have a lot of effort, tenacity, and be able to devote yourself to research.";
	next;
	mes "[Parmry Gianino]";
	mes "There are a couple of requirements to join the association....";
	mes "but we'll discuss that after you apply.";
	next;
	mes "[Parmry Gianino]";
	mes "Then, would you like to apply to register?";
	next;
	menu "I would like to apply.",M_Apply,"I'll do it later.",-;

		mes "[Parmry Gianino]";
		mes "If you are a talented Merchant,";
		mes "you are always welcome here.";
		mes "Come again soon.";
		close;
	M_Apply:
		mes "[Parmry Gianino]";
		mes "Fill out this application form please.....";
		next;
		mes "(you fill out the form and hand it back)";
		next;
		mes "[Parmry Gianino]";
		mes "Very good.  In order to join the Alchemist Union you must first pay a ^5533FF50,000^000000 zeny membership fee.";
		mes "You will also need to bring us a few items as well.";
		next;
		mes "[Parmry Gianino]";
		mes "Of course if you bring us an ^5533FFOld Magic Book^000000 and an ^5533FFHammer of Blacksmith^000000...";
		mes "You won't have to pay the fee.";
		next;
		mes "[Parmry Gianino]";
		mes "Let's see.... you'll need to  bring us....^5533FF100 Mini Furnaces^000000.";
		mes "Once you have the Mini Furnaces come back and see me.";
		next;
		mes "[Parmry Gianino]";
		mes "When you come back I will also collect the ^5533FF50,000^000000 zeny fee so don't forget about that either.";
		mes "See you soon...";
		set ALCH_Q,1;
		close;
L_LowLvl:
	mes "You must be at least Job Level 40  to become a Alchemist.";
	close;

L_Check:
	mes "Oh, your back already... lets see....";
	next;
	mes "[Parmry Gianino]";
	if(countitem(612) < 100) goto L_NoItems;
	if(countitem(1005) > 0 && countitem(1006) > 0) goto L_Skip;
	if(zeny < 50000) goto L_NoZeny;
 	set zeny,zeny - 50000;
	delitem 612, 100;
	mes "You have 50,000 zeny...... You brought 100 mini furnaces.... Great!";
	mes "Now you are ready to learn the basics of being an Alchemist.";
	next;

	L_Cont:
	mes "[Parmry Gianino]";
	mes "But before that... ^5533FFRasputin^000000 wants to see you.....";
	mes "Hmm..... I'm not sure what it could be about....";
	next;
	mes "[Parmry Gianino]";
	mes "You should go visit him now.  Just go down those stairs to my right.  His room is in the SouthEastern corner.";
	set ALCH_Q,2;
	close;

	L_NoZeny:
		mes "You still need to pay the ^FF553350,000^000000 zeny membership fee.";
		mes "Let me know when you have enough money.";
		close;
	L_NoItems:
		mes "As I mentioned before, you must bring ^FF3355100 Mini Furnaces^000000 to join the union.";
		mes "Please come back when you are ready...";
		close;
L_Skip:
	mes "Oh, you have an ^5533FFOld Magic Book^000000 and an ^5533FFHammer of Blacksmith^000000........";
	mes "That means you don't have to pay the membership fee.";
	next;
	mes "[Parmry Gianino]";
	mes "Excellent.  Now I'll just take the Book, Hammer, 100 mini furnaces, and you'll be all set to learn the basics of being an Alchemist.";
	next;
	delitem 1005,1;
	delitem 1006,1;
 	delitem 612, 100;
	goto L_Cont;

L_Test2:	
	mes "Go visit ^5533FFRasputin^000000 now!";
	close;
L_Test3:	
	mes "Go visit ^5533FFDarwin^000000 now!";
	close;
L_Test4:	
	mes "Go visit ^5533FFVan Helmont^000000 now!";
	close;
L_Test5:	
	mes "Go visit ^5533FFNicholas Flamel^000000 now!";
	close;
L_Test6:	
	mes "Go back to ^5533FFNicholas Flamel^000000 now!";
	mes "He still has one more test for you.";
	close;
L_GoChange:	
	mes "Wow you finished all of the tests? Great now you can visit the Headmaster, ^5533FFVincent Carsciallo^000000.";
	mes "He's the one who will change you into an Alchemist.";
	close;
}


//==================================================================================================//
//					2nd Test: Math test :(
//==================================================================================================//
alde_alche.gat,175,107,4	script	Rasputin Gregory	749,{
	mes "[Rasputin Gregory]";
	if(baseJob == Job_Merchant) goto L_Merc;
	mes "What is it, kikikiki.  Are you curious about what I do...?";
	mes "I'll just especially let you know.  You see I... Kekeke..";
	next;
	mes "[Rasputin Gregory]";
	mes "Am researching! Once this potion is complete... you will be able to take over an entire country!!";
	next;
	mes "[Rasputin Gregory]";
	mes "Kikikikikekekekek.  It's a secret to the people of Prontera.....";
	close;
L_Merc:
	if(ALCH_Q == 2) goto L_Start;
	if(ALCH_Q == 3) goto L_Done;
	mes "Kikikikikekekekeke.";
	mes "What is it! You punk.";
	next;
	mes "[Rasputin Gregory]";
	mes "A Merchant should go and set up a shop...";
	mes "Why'd you come to a place like this!?";
	mes "Are you looking for something to scab off?";
	next;
	mes "[Rasputin Gregory]";
	mes "Kikiki... Go, leave this place.";
	mes "Dont loiter ... Kekeke.";
	close;
L_Start:
	if(ALCH_Q2 == 1) goto L_ReTest;
	if(JobLevel == 50) goto L_Skip;
	mes "Keke, another dumb one has stumbled into here.";
	mes "Join the Union?";
	next;
	mes "[Rasputin Gregory]";
	mes "I don't like it... I just don't...!";
	mes "Everywhere, all joining and being called Alchemist just for knowing how to mix herbs!!!";
	next;
	mes "[Rasputin Gregory]";
	mes "Kikiki, so for that reason an interview is necessary!";
	mes "I plan on scolding all the incompetent ones and chasing them away!!";
	next;
	mes "[Rasputin Gregory]";
	mes "You look dumb founded. It must be pretty crazy.";
	mes "If you were thinking of just changing clothes you thought wrong... Kekeke..";
	next;
	mes "[Rasputin Gregory]";
	mes "Now try solving the problems I give you.";
	mes "We'll see how smart you are.";
	next;
	set @score,0;

	//set of question 1
	q1:
		mes "[Rasputin Gregory]";
		mes "12+23+34+45 =?";
		next;
		input @num;
		if(@num == 114) set @score,@score+10;
	q2:	
		mes "[Rasputin Gregory]";
		mes "1000-36-227-348 =?";
		next;
		input @num;
		if(@num == 389) set @score,@score+10;
	q3:
		mes "[Rasputin Gregory]";
		mes "9765/3/5/7 =?";
		next;
		input @num;
		if(@num == 93) set @score,@score+10; 
	q4:
		mes "[Rasputin Gregory]";
		mes "(2646/7) + (13*28) =?";
		next;
		input @num;
		if(@num == 742) set @score,@score+10;
	q5:
		mes "[Rasputin Gregory]";
		mes "With a 24% discount";
		mes "How much are 12 Red Potions,";
		mes "5 Fly Wings, and ";
		mes "1 Butterfly Wing altogether?";
		next;
		input @num;
		if(@num == 909) set @score,@score+10;
	q6:
		mes "[Rasputin Gregory]";
		mes "What is the total weight of 3 ";
		mes "Scimiters,";
		mes "2 Helms and 1 Coat";
		next;
		input @num;
		if(@num == 450) set @score,@score+10;
	q7:	
		mes "[Rasputin Gregory]";
		mes "What is the total defense of ";
		mes "a Biretta, Mantle, Opera Mask,";
		mes "Ribbon, ";
		mes "Muffler, Boots, and Ear Muffs?";
		next;
		input @num;
		if(@num == 19) set @score,@score+10;
	q8:	
		mes "[Rasputin Gregory]";
		mes "If you buy 5 Helms with a 24%";
		mes "discount ";
		mes "and sell it at 20%, how much do you";
		mes "earn?";
		next;
		input @num;
		if(@num == 1760) set @score,@score+10;
		goto L_Total;

L_ReTest:
	mes "What, you want to take the test again?";
	mes "I thought I told you to leave.";
	next;
	mes "[Rasputin Gregory]";
	mes "Well, I'll let you go this one time...";
	mes "I forgive you ... Kekeke.";
	mes "Do well this time...";
	next;
	mes "[Rasputin Gregory]";
	mes "Now then, answer the question I ask.";
	mes "Let see how smart you are.";
	next;
	set @score,0;

	//set of question 2
	q11:
		mes "[Rasputin Gregory]";
		mes "13+25+37+48=?";
		next;
		input @num;
		if(@num == 123) set @score,@score+10;
	q12:
		mes "[Rasputin Gregory]";
		mes "1000-58-214-416 =?";
		next;
		input @num;
		if(@num == 312) set @score,@score+10;
	q13:
		mes "[Rasputin Gregory]";
		mes "12*24*3=?";
		next;
		input @num;
		if(@num == 864) set @score,@score+10;
	q14:
		mes "[Rasputin Gregory]";
		mes "10530/3/5/2=?";
		next;
		input @num;
		if(@num == 351) set @score,@score+10;
	q15:
		mes "[Rasputin Gregory]";
		mes "(35*19) - (1792/7) =?";
		next;
		input @num;
		if(@num == 409) set @score,@score+10;
	q16:
		mes "[Rasputin Gregory]";
		mes "(2368/8) + (24*17) = ?";
		next;
		input @num;
		if(@num == 704) set @score,@score+10;
	q17:
		mes "[Rasputin Gregory]";
		mes "(2646/7) + (13*28)=?";
		next;
		input @num;
		if(@num == 742) set @score,@score+10;
	q18:
		mes "[Rasputin Gregory]";
		mes "If buying at a 24% discount,";
		mes "What is the total price of";
		mes "15 Green Potions,";
		mes "6 Magnifiers and 4 Traps?";
		next;
		input @num;
		if(@num == 934) set @score,@score+10;
	q19:
		mes "[Rasputin Gregory]";
		mes "What is the total weight of ";
		mes "3 Ring Pommel Sabers,";
		mes "4 Caps and 2 Boots?";
		next;
		input @num;
		if(@num == 550) set @score,@score+10;
	q20:
		mes "[Rasputin Gregory]";
		mes "What is the total defense of a ";
		mes "Buckler, Coat, Gas Mask, Big";
		mes "Ribbon, Ribbon, Sakkat and";
		mes "Glasses?";
		next;
		input @num;
		if(@num == 16) set @score,@score+10;
	q21:
		mes "[Rasputin Gregory]";
		mes "How much zeny do you make";
		mes "if you buy Tights at a 24%";
		mes "discount";
		mes "and sell it at 20% of the normal";
		mes "price?";
		next;
		input @num;
		if(@num == 2840) set @score,@score+10;
L_Total:
	mes "[Rasputin Gregory]";
	if(@score < 80) goto L_Failed;
	set ALCH_Q,3;
	set ALCH_Q2, 0;
	mes "Kikiki... I'll let you go.";
	mes "Do some good research and be of some help to Rasputin... Kikiki!";
	next;	
	mes "[Rasputin Gregory]";
	mes "Well then go! ^5533FFGo to Darwin^000000.";
	mes "He'll teach you how to do the experiments.";
	mes "Tell him I sent you.";
	next;
	mes "[Rasputin Gregory]";
	mes "Kikikikekeke.";
	mes "Dont think this is the end of it!";
	close;

	L_Failed:
		set ALCH_Q2,1;
		mes "...Kekeke, you idiot,";
		mes "I feel dumb asking you all the question!";
		mes "you got them all wrong!!!";
		next;
		mes "[Rasputin Gregory]";
		mes "How can a person that can't even answer these question think of being an Alchemist!";
		mes "What? did you get any right?";
		next;
		mes "[Rasputin Gregory]";
		mes "Stupid! If you get one wrong everything is wrong for an Alchemist!";
		mes "Go! Leave! Get out of here!";
		close;
L_Done:
	mes "What are you doing? Leave already.";
	mes "Go to ^5533FFDarwin^000000.";
	mes "He'll teach you how to do the experiments.";
	mes "Tell him I sent you.";
	next;
	mes "[Rasputin Gregory]";
	mes "Kikikikekeke.";
	mes "Dont think this is the end of it!";
	close;
L_Skip:
	mes "Hmm... you have a pretty high job level..... I'll be nice today and let you pass.";
	mes "Next you should go see ^5533FFDarwin^000000.";
	mes "He'll teach you how to do the experiments.";
	mes "Tell him I sent you.";
	set ALCH_Q,3;
	set ALCH_Q2, 0;
	close;
}


//==================================================================================================//
//					3rd Test: Mix some medicine
//==================================================================================================//
alde_alche.gat,13,15,8	script	Darwin	750,{
	mes "[Darwin]";
	if(baseJob == Job_Merchant) goto L_Merc;
L_Other:
	mes "more to lose or gain...";
	mes "It's always like that...";
	next;
	mes "[Darwin]";
	mes "All I can see through my cursed eyes";
	mes "are illusions from the past,";
	mes "Ahahahaha...";
	next;
	mes "[Darwin]";
	mes "There's no such thing as paradise ... is there ?";
	mes "My love Harmona.... Aah....";
	close;

L_Merc:
	if(ALCH_Q == 3) goto L_Start;
	if(ALCH_Q == 4) goto L_Done;
	goto L_Other;

L_Start:
	if(ALCH_Q2 == 1) goto L_Check;
	mes "...........";
	mes ".........";
	mes "....Who is it...";
	next;
	mes "[Darwin]";
	mes "A wolf? Or a human...";
	mes "You must be looking for something as well.";
	next;
	mes "[Darwin]";
	mes "If you have something precious, be careful.";
	mes "You may lose something else while while going after another...";
	next;
	mes "[Darwin]";
	mes "..........";
	next;
	mes "[Darwin]";
	mes "... but what brings you here.";
	mes "Coming to a place like this.";
	next;
	menu "I want to learn how to experiment.",M_Exp, "Tell me more about flowers.",M_Flow;

	M_Flow:	
		mes "[Darwin]";
		mes ".......";
		mes "......";
		mes "...think about your precious things...";
		next;
		mes "[Darwin]";
		mes ".... There is a flower that I faintly remember....";
		next;
		mes "[Darwin]";
		mes "I divulged into researching one thing.....";
		mes "for the one I love...";
		next;
		mes "[Darwin]";
		mes "Lets just say that it was about the relationship between wolf and flowers...";
		mes "I wont tell you the details.";
		next;
		mes "[Darwin]";
		mes "But yes ... it was a flower.";
		mes "with its shine, it was said to  let you see paradise Illusion Flower...";
		next;
		mes "[Darwin]";
		mes "I made a homunculus.";
		mes "Nobody believe me. that I made life from a flower!!!";
		mes "My research!";
		next;
		mes "[Darwin]";
		mes "But now, I have nothing left..";
		mes "It's all over.";
		mes "Time has stopped at that moment in my life...";
		next;
		mes "[Darwin]";
		mes "Aag... Harmona, in the beautiful fields of flowers,";
		mes "where have you gone....";
		close;
	M_Exp:
		mes "[Darwin]";
		mes "You want to learn Alchemy...";
		mes "All the knowledge I possess..";
		mes "I made to make my dreams come true...";
		next;
		mes "[Darwin]";
		mes "I'll teach you the basics...";
		mes "but you must determine your own wishes.";
		next;
		mes "[Darwin]";
		mes "So, here are the basics.";
		mes "This is how you make simple medicine...";
		mes "Prepare some stuff...";
		next;
		mes "[Darwin]";
		mes "^5533FF3 Medicine Bowls";
		mes "3 Empty Bottles";
		mes "1 Red Herb";
		mes "1 Yellow Herb";
		mes "1 White Herb^000000";
		next;
		mes "[Darwin]";
		mes "Once you have prepared all the items... come here.";
		set ALCH_Q2, 1;
		close;

L_Check:
	mes "...........";
	mes ".........";
	mes "...Who is it....";
	next;
	mes "[Darwin]";
	mes "Ah You're the one that wants to learn Alchemy...";
	mes "So did you prepare everything?";
	next;
	if(countitem(7134) < 3 || countitem(713) < 3 || countitem(507) < 1 || countitem(508) < 1 || countitem(509) < 1) goto L_NotEnuf;
	delitem 7134,3;
	delitem 713,3;
	delitem 507,1;
	delitem 508,1;
	delitem 509,1;
	mes "[Darwin]";
	mes "Seems like you have everything ready.";
	mes "As i promised, I'll teach you how to make medicine";
	next;
	mes "[Darwin]";
	mes "First, prepare the Medicine Bowl then put the Herbs inside like this.";
	mes "And you slowly crush them.";
	next;
	mes "[Darwin]";
	mes "Pour small amounts of clean water and stirr until it become thick, ";
	mes "then add some more Herbs.";
	next;
	mes "[Darwin]";
	mes "That's how you make it if you think you have enough, ";
	mes "gently pour it into an empty bottle";
	next;
	mes "[Darwin]";
	mes "There you go, its complete.";
	mes "This time, do as I showed you.";
	mes "It should be easy since its so simple.";
	next;
	mes "[Darwin]";
	mes "... even though you don't have one?";
	next;
	set @score,0;
	menu "Prepare the medicine bowl",-, "Wear the medicine bowl on the head",M_0, "Kick the medicine bowl",M_0;

		set @score,@score+10;
	M_0:

	menu "Put the sand into the medicine bowl",M_1, "Put the herbs into the medicine bowl",-, "Put the harp into the medicine bowl",M_1;

		set @score,@score+10;
	M_1:

	menu "Smash the herbs",-, "Smash the medicine bowl",M_2, "Smash the Tarosia's foots",M_2;

		set @score,@score+10;
	M_2:

	menu "Spray the water",M_3, "Drink the water",M_3, "Pour in the water",-;

		set @score,@score+10;
	M_3:

	menu "Continue to smash the herbs",-, "Continues to eat the herbs",M_4, "Continues to dance and sing",M_4;

		set @score,@score+10;
	M_4:

	menu "Put in the noodles and fry it",M_5, "Put into the Empty Bottle",-, "Raise the medicine bowl and drink it",M_5;

		set @score,@score+10;
	M_5:

	mes "[Darwin]";
	if(@score < 60) goto L_Failed;
	mes "... Good job. It came out prettywell considering it's your first time...";
	mes "As a souvenier, take these.";
	getitem 501,1;
	getitem 503,1;
	getitem 504,1;
	set ALCH_Q,4;
	set ALCH_Q2,0;
	next;
	mes "[Darwin]";
L_Done:
	mes "Go to ^5533FFVan Helmont^000000 in the next room...";
	mes "He'll teach you more details.";
	mes "Go learn from him.";
	next;
	mes "[Darwin]";
	mes "Don't forget...";
	mes "You must protect what is trully precious to you.....";
	close;

	L_Failed:
		mes "... You messed up all the ingredients.";
		mes "... Go bring some more.";
		close;
L_NotEnuf:
	mes "[Darwin]";
	mes "...You must've forgotten the materials to bring.";
	mes "I'll tell you again.";
	mes "Dont forget them this time.";
	next;
	mes "[Darwin]";
	mes "^5533FF3 Medicine Bowls";
	mes "3 Empty Bottles";
	mes "1 Red Herb";
	mes "1 Yellow Herb";
	mes "1 White Herb^000000";
	next;
	mes "[Darwin]";
	mes "Come back when you are ready...";
	close;	
}


//==================================================================================================//
//					4th Test: Learn from Morgenstein
//==================================================================================================//
alde_alche.gat,79,19,4	script	Van Helmont	748,{
	mes "[Van Helmont]";
	if(baseJob == Job_Merchant) goto L_Merc;
L_Other:
	mes "Just a little ... yes, a little bit more ....";
	mes "agh, just a little bit more and it would've been done!";
	next;
	mes "[Van Helmont]";
	mes "Why, why another failure!!!";
	mes "Nothing was wrong!";
	mes "Why! Why!";
	next;
	mes "[Van Helmont]";
	mes "Does that mean I have to get more materials...";
	mes "But I should be able to complete it one day....Heeh...";
	close;
L_Merc:
	if(ALCH_Q == 4) goto L_Start;
	if(ALCH_Q == 5) goto L_Done;
	goto L_Other;
L_Start:
	if(ALCH_Q2 == 1) goto L_Check;
	mes "Arrrrgh... Why does this formula just stop... What's wrong.";
	mes "Theoretically it's all correct...";
	mes "I'm sure it's because there is an error in the formula";
	mes "somewhere...";
	next;
	mes "[Van Helmont]";
	mes "That's it, I pour it here and it should stop... but this is the formula that solution doesn't stop flowing.";
	mes " How could I make  such a stupid mistake... when did I switch these...";
	next;
	mes "[Van Helmont]";
	mes "Yes, that's it. I just need to fix this part.";
	mes "No need to start over.";
	mes "I just have to fix it...";
	mes "....But, wait. wait.";
	next;
	mes "[Van Helmont]";
	mes ".....................";
	next;
	mes "[Van Helmont]";
	mes "....Who are you?";
	next;
	menu "I want to become an Alchemist.",-,".....",M_Bye;

		mes "[Van Helmont]";
		mes "Oh, I see....";
		mes "Haha you want to learn Alchemy in world like this, what a funny merchant... hmmm.";
		next;
		mes "[Van Helmont]";
		mes "Well, that's nice, but I have a very urgent experiment I must tend to.";
		mes "So don't get in the way.";
		next;
		menu "Teach me something.",-,"..........",M_Bye;

			mes "[Van Helmont]";
			mes "Argh... didn't I just tell you not to bother me?";
			mes "Why can't you understand when I say something!";
			next;
			mes "[Van Helmont]";
			mes "Ok, I'll give you an assignment.";
			mes "Go study and come back. Let's see.";
			mes "What would be good... Hmm...";
			next;
			mes "[Van Helmont]";
			mes "Oh, I got it. Go learn from ^5533FFMorgenstein^000000. Learn how to make a ^009500Counteragent^000000 and ^FF3355Mixture^000000.";
			mes "You can find him in ^5533FFGeffen^000000.";
			next;
			mes "[Van Helmont]";
			mes "You don't need to bring what you made. But just go watch how he makes medicine and stuff.";
			mes "Got it?";
			next;
			mes "[Van Helmont]";
			mes "Well then, see you later.";
			mes "You'd be best off going as soon as you can.";
			set ALCH_Q2,1;
			close;
	M_Bye:
		mes "[Van Helmont]";
		mes "If you dont have business here just go away. Ok!!!";
		close;
L_Check:	
	if((MISC_QUEST & 4)==0) goto L_NotRdy; //this's a Morgenstein Quest check
	mes "Yes, cut the Tentacle..";
	mes "and mix some Sticky Mucus,";
	mes "Jellopy solution in the test tube Darn, where did the Medicine Bowl go...";
	next;
	mes "[Van Helmont]";
	mes "Did I use them all.. At a time like this, grrr. I wonder if Nicholas has any left.";
	mes "Ganfunnit... what a pain.";
	mes "....but, wait. wait.";
	next;
	mes "[Van Helmont]";
	mes "Ah, you're that merchant from before. So.. did you learn anything?";
	mes "I didn't send you there to play.";
	next;
	mes "[Van Helmont]";
	mes "Let me ask you a couple of questions. Answer how you heard and learned.";
	next;
	set @score,0;

	Q_1a:
		mes "[Van Helmont]";
		mes "What item is required to form the Counteragent?";
		next;
		menu "Feather",-,"Sticky Mucus",-,"Animal Blood",-;

	Q_1b:
		mes "[Van Helmont]";
		mes "Which of the following item is not required in forming the Counteragent?";
		next;
		menu "Karvodailnirol",-,"Detrimindexta",Q_2a,"Alchol",Q_2a;

			set @score,@score+10;

	Q_2a:
		mes "[Van Helmont]";
		mes "What item is required to form the Mixture?";
		next;
		menu "Monster's Feed",-,"Lip of Ancient Fish",-,"Rotten Bandage",-;

	Q_2b:
		mes "[Van Helmont]";
		mes "Which of the following item is not required in the process of forming the Mixture?";
		next;
		menu "Karvodailnirol",L_Result,"Detrimindexta",-,"Alchol",L_Result;

			set @score,@score+10;

L_Result:
	mes "[Van Helmont]";
	if(@score < 20) goto L_Failed;
	mes "Hmm, you learned well. Ok, now you know some stuff about medicine?";
	mes "Eh?";
	mes "I know, you must have a lot to say but let me continue with my experiment.";
	next;
	mes "[Van Helmont]";
	mes "Go out and to the room next to here.  ^5533FFNicholas^000000 probably has more to teach you than me.";
	set ALCH_Q,5;
	set ALCH_Q2,0;
	close;

	L_Failed:
		mes "...Be honest. You don't know,";
		mes "do you? I thought I told you to go learn from Morgenstein...";
		next;
		mes "[Van Helmont]";
		mes "Don't even think about coming back before you've learned for sure!";
		mes "Stop bothering me and leave!";
		close;
L_NotRdy:
	mes "Didn't I tell you to visit Morgenstein in Geffen!?!";
	mes "He is a wise man! You should go to him!";
	close;
L_Done:
	mes "What are you doing? Go out and to the room next to here.  ^5533FFNicholas^000000 probably has more to teach you than me.";
	mes "I have no more business with you.";
	close;

}


//==================================================================================================//
//				Test 5 & 6: Word Scramble, Help the Baijin Bros.
//==================================================================================================//
alde_alche.gat,145,19,4	script	Nicholas Flamel	57,{
	mes "[Nicholas Flamel]";
	if(baseJob == Job_Merchant) goto L_Merc;
L_Other:
	mes "Lorem ipsum dolor sit amet,";
	mes "consectetuer adipiscing elit.";
	mes "Vivamus sem. Sed metus lacus, viverra id, rutrum eget, rhoncus sit amet, lectus.";
	mes "Suspendisse sit amet urna in nisl frigilla faucibus.";
	mes "Nulla scelerisque eros....";
	mes "......mumblemumble........";
	close;
L_Merc:
	if(ALCH_Q == 5) goto L_Start;
	if(ALCH_Q == 6) goto L_Start2;
	if(ALCH_Q == 7) goto L_Done;
	goto L_Other;
L_Start:
	if(ALCH_Q2 == 1) goto L_ReTest;
	mes "Ooh... you're the Merchant that wants to become an Alchemist?";
	mes "But you know... not anyone can become an Alchemist.";
	next;
	mes "[Nicholas Flamel]";
	mes "The Union doesn't like those that just want to become Alchemist without a clear goal.";
	mes "So... to see if you qualify, I'll test how smart you are.";
	next;
	mes "[Nicholas Flamel]";
	mes "As you can see, Alchemist must memorize many equations,";	
	mes "chemical equations and a lot of other information.";
	mes "If you're not at a certain level..";
	mes "it's actually pretty tough.";
	next;
	mes "[Nicholas Flamel]";
	mes "The idea is to prevent those that are going to be useless Alchemists from joining the union!";
	next;
	mes "[Nicholas Flamel]";
	mes "Ok... Here go the questions!";
	mes "This is to test your concentration so that you won't get confused when looking at charts.";
	next;
	mes "[Nicholas Flamel]";
	mes "Find the words from the group of letters. They can be made by using some or all the letters given";
	next;
	mes "[Nicholas Flamel]";
	mes "You pass if you choose the word that is 'IN' the puzzle.";
	next;

	Q_1:
		set @score,0;
		mes "[Nicholas Flamel]";
		mes "s m i e x b w u n e n t a g l r";
		next;
		menu "tiger",-,"wolf",Q_2,"pumpkin",Q_2,"tripped",Q_2;

			set @score,@score+10; 

	Q_2:
		mes "[Nicholas Flamel]";
		mes "n i e g b o p d s o a u w r v";
		next;
		menu "bash",Q_3,"provoke",Q_3,"endure",-,"stun",Q_3,"abracadabra",Q_3;

			set @score,@score+10; 

	Q_3:
		mes "[Nicholas Flamel]";
		mes "l r m g r e x t a v i n e d e";
		next;
		menu "alberta",Q_4,"latifoliate",Q_4,"crimson",Q_4,"maple",Q_4,"evergreen",-;

			set @score,@score+10; 

	Q_4:
		mes "[Nicholas Flamel] ";
		mes "r o e h n r o m c a i n p t t";
		next;
		menu "forgemerchant",L_Score,"potionmerchant",-,"dcmerchant",L_Score,"vendingmerchant",L_Score;
	
			set @score,@score+10; 
L_Score:
	if(@score < 40) goto L_Failed;
	set ALCH_Q,6;
	set ALCH_Q2,0;
	mes "[Nicholas Flamel]";
	mes "You seem to be done.";
	next;
	mes "[Nicholas Flamel]";
	mes "Let's see.";
	mes "...Good job. Excellent.";
	next;
	mes "[Nicholas Flamel]";
	mes "Somehow you found all of them.";
	mes "With that kind of concentration, you should easily be able to read the medicine dictionaries.";
	mes "Let's see... next is..";
	next;
	mes "[Nicholas Flamel]";
	mes "Come back in a little bit. Get organized too..";
	close;

	L_Failed:
		mes "[Nicholas Flamel]";
		mes "Hmmm... You failed!";
		mes "Get your glasses maybe you can pass next time wearing those.";
		set ALCH_Q2,1;
		close;
L_ReTest:
	mes "Hmmm you returned.";
	mes "Well will see if you changed."; 
	next;
	goto Q_1;	

L_Start2:
	if(ALCH_Q2 > 0) goto L_Check2;
	mes "Next, you have to go somewhere.";
	mes "Go to ^5533FF'The Forgotten City of Yuno'^000000 and meet the ^FF3355Bain and Bajin^000000 brothers who are researching alchemy with the Sages there.";
	next;
	mes "[Nicholas Flamel]";
	mes "Go help out and come back Here, take these... it will help you get close to them.";
	next;
	getitem 974,1;
	getitem 7068,5;
	getitem 7043,5;
	getitem 756,3;
	getitem 757,3;
	mes "[Nicholas Flamel]";
	mes "1 Mixture";
	mes "5 Burnt Tree";
	mes "5 Fine Sand ";
	mes "3 Rough Oridecon ";
	mes "3 Rough Elunium";
	set ALCH_Q2,1;
	next;
	mes "[Nicholas Flamel]";
	mes "Have a safe trip.";
	mes "It's Yuno. Come back in one piece.";
	close;
L_Check2:
	if(ALCH_Q2 < 2) goto L_NotDone;
	set ALCH_Q, 7;
	set ALCH_Q2, 0;
	mes "Ooh! Well done on such a long  trip.";
	mes "I got a message saying that the Bain and Bajin brothers were happy about your visit.";
	next;
	mes "[Nicholas Flamel]";
	mes "You must have successfully helped them.";
	mes "If you're good enough to be of help to the brothers... ok, I think you qualify.";
	next;
	mes "[Nicholas Flamel]";
L_Done:
	mes "Go to the Union Leader on the 2nd floor!";
	mes "Congratulations. You'll change jobs soon!";
	close;

	L_NotDone:
		mes "Bain and Bajin brothers are in Yuno go help them.";
		close;

}


//==================================================================================================//
//					Job Changer
//==================================================================================================//
alde_alche.gat,101,184,4	script	Vincent Carsciallo	122,{
	mes "[Vincent Carsciallo]";
	if(baseJob == Job_Merchant) goto L_Merc;
	if(baseJob == Job_Alchem){
		mes "How Alchemy going? Make sure to be carefull and think about safety at all times.";
		mes "I wouldn't want you blowing yourself up or anything.....";
		close;
	}
	mes "Hmmm? What may a civilian have to do here?";
	next;
	mes "[Vincent Carsciallo]";
	mes "There's nothing amusing. Dont wander and leave.";
	close;
L_Merc:
	if(ALCH_Q == 7) goto L_Change;
	mes "Hmmm? A merchant.";
	mes "Are you interested in Alchemy?";
	next;
	mes "[Vincent Carsciallo]";
	mes "This is the Alchemist Union.";
	mes "We research many different substances.";
	mes "Our goal is to make something new without the power of magic.";
	next;
	mes "[Vincent Carsciallo]";
	mes "Create new life, and study how to live long and not die ...";
	mes "We also make new materials out of existing ones...";
	mes "These are just some of the things we do.";
	next;
	mes "[Vincent Carsciallo]";
	mes "After being a Merchant for a long time ";
	mes "you start to become interested in everything.";
	mes "If you would like to learn Alchemy as well,";
	mes "try joining our Union.";
	close;
L_Change:
	if(skillpoint){
		mes "Please use all your skill point before talking to me.";
		close;
	}
	mes "Oh, Ok. You joined and learned the basics, too. Well done.";
	next;
	callfunc "Job_Change",Job_Alchem;
	callfunc "F_ClearJobVar";
	emotion e_grat;
	mes "[Vincent Carsciallo]";
	mes "From now on, you are also a member of the Union as an Alchemist.";
	mes "I hope you learn a lot...";
	next;
	getitem 7127,1;
	mes "[Vincent Carsciallo]";
	mes "Here's a little something. ";
	mes "Use it to start off with some research.";
	next;
	mes "[Vincent Carsciallo]";
	mes "I'll see you later then...";
	mes "Be proud of being an Alchemist!";
	close;
}