summaryrefslogtreecommitdiff
path: root/npc/jobs/2-1/wizard.txt
blob: 8b40063f426734d0abc6c424d9ecf33f214060dd (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
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
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
//===== eAthena Script ======================================= 
//= Wizard Job Quest
//===== By: ================================================== 
//= (Aegis) Translated by yoshiki, converted by kobra_k88
//= Further bugfixed and tested by Lupus
//===== Current Version: ===================================== 
//= 2.5c
//===== Compatible With: ===================================== 
//= eAthena SVN
//===== Description: ========================================= 
//= [Aegis Conversion]
//= Job Change quest for Wizard class.
//===== Additional Comments: ================================= 
//= 2.4 Rescripted to Aegis 10.3 standards. [L0ne_W0lf]
//= 2.5 Several bugfixes with the help of Barron-Monster. [L0ne_W0lf]
//= 2.5a More bugfixes care of Barron-Monster. [L0ne_W0lf]
//= 2.5b Fixed tests calling on a non-existant label in "Room of x#Failed" npcs. [L0ne_W0lf]
//= 2.5c Bug fixes. Cleaned up some NPCs slightly. [L0ne_W0lf]
//============================================================ 

gef_tower,111,37,4	script	Wizard Guildsman	70,{
	if (Upper == 1) {
		mes "[Catherine]";
		mes "? Excuse me, I am wondering if we have met before...?";
		mes "Hey~ you have changed a lot! So, what happened?";
		next;
		mes "[Catherine]";
		mes "I feel you have become so much powerful, eh?";
		mes "Congratulations and good luck with your life!";
		close;
	}
	if (BaseJob != Job_Mage) {
		if (BaseJob == Job_Wizard) {
			mes "[Catherine]";
			mes "Since you're already a Wizard, you don't have any more business with me...?";
			mes "Now, excuse me.";
			next;
			mes "[Catherine]";
			if (sex)
				mes "Well, If you intended to ask me on a date... I appreciate it...hohoho.";
			else
				mes "Well, if you fix me up with a cute guy... I'd appreciate it...hohoho!.";
			close;
		}
		else if (BaseClass == Job_Novice) {
			mes "[Wizard Guildsman]";
			mes "Oh my goodness, it's a novice~ ain't you the cutest little thing.";
			mes "By the way honey, this place is for Wizards.";
			next;
			mes "[Wizard Guildsman]";
			mes "If you are interested in magic,";
			mes "Go visit the ^0000FFMage^000000 guild.";
		}
		else {
			mes "[Wizard Guildsman]";
			mes "Huh? what brings you to such a high place...?";
			mes "If you don't have any specific business, please leave immediately.";
			mes "This place is for Wizards, you know?";
		}
		next;
		mes "[Wizard Guildsman]";
		mes "Ok, then. Farewell.";
		close;
	}
	if (WIZ_Q == 0) {
		mes "[Wizard Guildsman]";
		mes "Huh? What are you doing way up here...?";
		mes "So what brings you here?";
		next;
		if (select("I want to become a Wizard.:...nothing.") == 1) {
			mes "[Wizard Guildsman]";
			mes "I see... Well, of course you want to become a Wizard, otherwise you wouldn't have walked up all those stairs right?";
			mes "Anyways, I would like to welcome you. I will assist you in becoming a Wizard.";
			next;
			mes "[Wizard Guildsman]";
			mes "My name is Catherine Medici. Just between me and you, I just became a Wizard too!";
			mes "You can call me Cathy if you want. Hehehehehe~";
			next;
			mes "[Catherine]";
			mes "Many people want to become Wizards, but only the patient and strong ones will eventually accomplish their goals.";
			mes "In order to become a Wizard, one must undergo difficult quests.";
			next;
			mes "[Catherine]";
			mes "Also only mages who have reached a job level of 40 or higher are qualified for these quests.";
			mes "Lower level mages aren't experienced enough with magic to become Wizards...";
			next;
			mes "[Catherine]";
			mes "Well, I will give you more information when you apply for the job.";
			mes "So! Do you want to apply now?";
			next;
			if (select("Yes, I do.:On second thought, Let me think about it.") == 1) {
				if (JobLevel < 40) {
					mes "[Catherine]";
					mes "Hey hey, weren't you listening to me?";
					mes "I told you that you need to be at least job level 40 to sign up for the quest...";
					next;
					mes "[Catherine]";
					mes "No need to hurry, go experience and ponder more about the world of magic.";
					mes "When I deem you're qualified, I will accept your application.";
					close;
				}
				if (SkillPoint) {
					mes "[Catherine]";
					mes "Umm... You're well qualified, but you have some unused skill points left.";
					mes "You'd better learn more skills before applying again.";
					close;
				}
				mes "[Catherine]";
				mes "Very well then, I accept your application.";
				mes "Your name is..." + strcharinfo(0) + ", isn't it? I am not sure if I pronounced it correctly?";
				next;
				mes "[Catherine]";
				mes "The Wizard job change quest is divided into 3 parts.";
				mes "1st part, gathering magic items.";
				mes "2nd part, a written test.";
				mes "The last part is a practical magic test.";
				next;
				mes "[Catherine]";
				mes "Among one of these tests, we exempt those who are at job level 50.";
				mes "It is enough to prove to us the effort it will take to become a Wizard if a mage has learned that much already.";
				next;
				if (JobLevel == 50) {
					mes "[Catherine]";
					mes "Hmm, come to think of it, you're at job level 50!?";
					mes "You must have worked very hard. Your going to become a very powerful Wizard, I can feel it in you.";
					next;
					mes "[Catherine]";
					mes "Ok. You already passed the 1st test then.";
					mes "Don't get too laid back though, there are still 2 more tests left.";
					next;
					mes "[Catherine]";
					mes "Go talk to the man in the corner and he will give you the remaining exams.";
					mes "Be careful. We have lost many Mages due to the difficulty of the exams.";
					set WIZ_Q,3;
					close;
				}
				mes "[Catherine]";
				mes "Then, since I have your application and everything else I need, I'll give you some info about the first test.";
				mes "You can memorize this or write it down, doesn't matter. But remember it for sure.";
				next;
				mes "[Catherine]";
				mes "The first test is collecting magic items.";
				mes "The important part is that you must gather these items on your own.";
				next;
				set wizard_m1,rand(1,2);
				mes "[Catherine]";
				mes "The items you must collect are...";
				if (rand(1)) {
					set WIZ_Q,1;
					mes "^3355FFRed Gemstone^000000 10 each,";
					mes "^3355FFBlue Gemstone^000000 10 each,";
					mes "^3355FFYellow Gemstone^000000 10 each,";
				}
				else {
					set WIZ_Q,2;
					mes "^3355FFCrystal Blue^000000 5 each,";
					mes "^3355FFGreen Live^000000 5 each,";
					mes "^3355FFRed Blood^000000 5 each,";
					mes "^3355FFWind of Verdure^000000 5 each,";
				}
				mes "...is it too hard? No, any would be Wizard should be able to at least get these items.";
				next;
				mes "[Catherine]";
				mes "Well, good luck.";
				mes "I'll be happily waiting. ~Hehe.";
				close;
			}
			mes "[Catherine]";
			mes "Oh, ok then, take your time.";
			mes "Since I'll always be here, accepting applications...*sigh*...anyways! ~Hehehehe.";
			close;
		}
		mes "[Wizard Guildsman]";
		mes "Geez, what a lame person.";
		mes "You have no business here, hope you don't mind, now off you go!";
		close;
	}
	else if (WIZ_Q == 1) {
		mes "[Catherine]";
		mes "Let me see, did you get all the items?";
		mes "Then let's check...";
		next;
		if (countitem(716) > 9 && countitem(717) > 9 && countitem(715) > 9) {
			mes "[Catherine]";
			mes "Perfect! You got all the items. I like!~";
			mes "These items will be put to great use in our guild. ~Hehehee.";
			next;
			delitem 716,10; //Red_Gemstone
			delitem 717,10; //Blue_Gemstone
			delitem 715,10; //Yellow_Gemstone
			set WIZ_Q,3;
			mes "[Catherine]";
			mes "Good for you! You passed the first test.";
			mes "But there are still two more left, so don't get too relaxed.";
			next;
			mes "[Catherine]";
			mes "Go talk to the guy in the corner for the rest of the tests.";
			mes "It might be a bit hard, so be careful, I wouldn't want you ending up like most of the Mages that come for these exams...poor souls indeed, may they rest in peace. ~Hehehe.";
			close;
		}
		mes "[Catherine]";
		mes "Hey, what's this? Umm...I don't think you have everything yet!";
		next;
		mes "[Catherine]";
		mes "It might've been tough coming all the way up here, what with this altitude and all, but go back and collect the items.";
		mes "Life's short enough as it is, so stop wasting your time and gather the items I told you before.";
		next;
		mes "[Catherine]";
		mes "^3355FFRed Gemstone^000000 10 each,";
		mes "^3355FFBlue Gemstone^000000 10 each,";
		mes "^3355FFYellow Gemstone^000000 10 each,";
		mes "Don't forget this time, and bring all the items, ok?...";
		close;
	}
	else if (WIZ_Q == 2) {
		mes "[Catherine]";
		mes "Did you get all the items?";
		mes "Let's see... Do you have the right ones?...";
		next;
		if (countitem(991) > 4 && countitem(993) > 4 && countitem(990) > 4 && countitem(992) > 4) {
			mes "[Catherine]";
			mes "Perfect! Good job...I'm satisfied! ~Hehe";
			mes "Our guild greatly appreciates these items and will use them wisely.";
			next;
			delitem 991,5; //Crystal_Blue
			delitem 993,5; //Yellow_Live
			delitem 990,5; //Boody_Red
			delitem 992,5; //Wind_Of_Verdure
			set WIZ_Q,3;
			mes "[Catherine]";
			mes "Good. You've passed the first test now.";
			mes "But you still have two more tests to go, so don't get too laid back, because it only gets harder from here. ~Hehehe";
			next;
			mes "[Catherine]";
			mes "Go talk to that guy in the corner to take the rest of the tests.";
			mes "It might be a bit hard, so be careful, I wouldn't want you ending up like most of the Mages that come for these exams...poor souls indeed, may they rest in peace. ~Hehehe.";
			close;
		}
		mes "[Catherine]";
		mes "Eh, what's this? I don't think you have everything?";
		next;
		mes "[Catherine]";
		mes "I regret that you had to go through the trouble of coming all the way up here, but go get the right items again.";
		mes "Stop wasting your time and get the items I initially requested. For goodness sakes...This is the easiest part of the exam.";
		next;
		mes "[Catherine]";
		mes "^3355FFCrystsal Blue^000000 5 each,";
		mes "^3355FFGreen Live^000000 5 each,";
		mes "^3355FFRed Blood^000000 5 each,";
		mes "^3355FFWind of Verdure^000000 5 each,";
		mes "Don't forget them this time and gather the correct ones, ok? See you soon...";
		close;
	}
	else if (WIZ_Q == 3) {
		mes "[Catherine]";
		mes "What is it? You didn't go talk to the guy in the corner?";
		mes "You can't become a Wizard by just brining the items I requested, no no, that just wont do...";
		next;
		mes "[Catherine]";
		mes "You can only prove yourself Wizard material after you take the two remaining tests.";
		mes "I'll be waiting, so go now.";
		close;
	}
	else if (WIZ_Q == 4) {
		mes "[Catherine]";
		mes "*sigh*...Poor thing, what a pity.";
		mes "How can you think of trying to become a Wizard when you can't even answer those simple questions?";
		next;
		mes "[Catherine]";
		mes "Let's see... Should I give you some hints as your senior?";
		mes "But I'm a bit thirsty, so give me 1 Apple Juice, and we got a deal. ~Hehehe";
		next;
		switch(select("Give me some hints, please.:I want to try again on my own!")) {
		case 1:
			if (countitem(531) > 0) {
				delitem 531,1; //Apple_Juice
				mes "[Catherine]";
				mes "Yummers, Apple Juice is the best...";
				mes "Gulp gulp gulp... Haaaaaah... ~Hehe";
				next;
				mes "[Catherine]";
				mes "Well then, I'll give you a hint for the second test.";
				next;
				mes "[Catherine]";
				mes "He asks three types of questions.";
				mes "Questions about Magic, Monsters...";
				mes "and Magicians...also known as Mages.";
				next;
				mes "[Catherine]";
				mes "It's up to him to decide which questions to ask.";
				mes "*sigh*...He'd look much better if he cut his hair and shaved...";
				mes "He always looks so grungy because he doesn't take care of himself...*sigh*...pity, he could be a regular lady killer. ~tehehehe";
				next;
				mes "[Catherine]";
				mes "Anyways, as for the questions about magic...";
				mes "They're usually about the spells you've learned.";
				next;
				mes "[Catherine]";
				mes "If it's something you haven't learned or haven't experienced, or anything like that...";
				mes "I heard there's a nice place you can refer to that's very well organized.";
				next;
				mes "[Catherine]";
				mes "You just have to cast the spell, you know...the one that looks like a big bold *e* symbol.";
				mes "The magic words are... iro.ragnarokonline.com ~Or so they say!";
				mes "Strange spell, don't you think? I don't know how to make it work myself.";
				next;
				mes "[Catherine]";
				mes "And about the monster questions.";
				mes "Fighting them yourself and learning is the best way to go about that.";
				next;
				mes "[Catherine]";
				mes "But you know in Prontera, there is a big library.";
				mes "You can get information about most of the monsters in that library.";
				mes "Going there and studying a bit more would work too.";
				next;
				mes "[Catherine]";
				mes "Last, but not least, questions about Mages.";
				mes "This is something that most others cannot teach you...";
				mes "Because you are a Mage.";
				next;
				mes "[Catherine]";
				mes "It's hard to know about others when you don't even know about yourself, right?";
				mes "So if you get one of these questions, think about it carefully then answer.";
			}
			else {
				mes "[Catherine]";
				mes "Like I said, I'll think about it if you give me 1 Apple Juice.";
				mes "If not... Well, you can think about it on your own. Hey I don't make the rules here i just follow em! Can't argue with this one though. ~tehehehe";
			}
			break;
		case 2:
			mes "[Catherine]";
			mes "Yeah, you get the most satisfaction when you solve things on your own.";
			mes "Go finish the rest of the tests with that spirit!";
		}
		next;
		mes "[Catherine]";
		mes "Well then, see you soon! *crosses fingers* dont end up like the others before you! May God rest thier souls...huh? Oh nothing! ~Hehehehe";
		mes "Hurry, he's waiting for you!";
		close;
	}
	else if (WIZ_Q == 5) {
		mes "[Catherine]";
		mes "Tehehehe~ I was listening all along.";
		mes "Well done in answering all those questions. I want to give something, like a present...";
		next;
		mes "[Catherine]";
		mes "You still have one more test to go, right?";
		mes "Just a bit more and you will be qualified to be a Wizard, so I'll give you the present then. ~Hehe";
		next;
		mes "[Catherine]";
		mes "See ya, well...hopefully!";
		mes "He's waiting for you!";
		close;
	}
	else if (WIZ_Q == 6) {
		mes "[Catherine]";
		mes "Eh, did you leave in the middle of the test?";
		mes "You...*sigh*...I didn't think you would do such a dishonorable thing.";
		next;
		mes "[Catherine]";
		if (sex) {
			mes "Granted you're a mage, but how could a guy be so weak?!";
			mes "Well, at least your alive still. Go back and try harder this time. ~tehehehe";
		}
		else {
			mes "Don't pretend to be weak just because you're a girl. Look at me! I did it, and so can you. You can't ask for sympathy.";
			mes "You came all this way to become a Wizard! Now come on, you can do it!!";
			next;
			mes "[Catherine]";
			mes "I agree that it is difficult, but not to the point of giving up.";
			mes "You of all people should find the strength and patience to complete this test!";
		}
		next;
		mes "[Catherine]";
		mes "So, try harder this time...";
		mes "He's waiting!";
		close;
	}
	else if (WIZ_Q == 7) {
		if (JobLevel < 40) {
			set WIZ_Q,0;
			mes "[Catherine]";
			mes "Hey, what don't you get it?";
			mes "I said you must be at least job level 40 to change your job, got it?";
			next;
			mes "[Catherine]";
			mes "There is nothing to be in hurry, so why don't you take your time for studying?";
			mes "When the time comes, I will welcome you with open arms.";
			close;
		}
		if (SkillPoint) {
			mes "[Catherine]";
			mes "Are you done with all the tests? Oh drats, it seems like you still have some skill points left.";
			mes "Learn some other skills with your remaining points, and then come talk to me again.";
			close;
		}
		mes "[Catherine]";
		mes "Wooooooooooooow...you finished all the tests?!";
		mes "Congratulations, congrats, congrats! Wooopiiieeeee! ~Hehehehehehe";
		next;
		mes "[Catherine]";
		mes "Well, no need to wait, I congratulate you. I hearby deem you Wizard.";
		next;
		callfunc "Job_Change",Job_Wizard;
		callfunc "F_ClearJobVar";		// clears all job variables for the current player
		mes "[Catherine]";
		mes "Since you're a Wizard now, act like a Wizard, got it?";
		mes "Us wizards have to be careful since we possess the ultimate power of magic.";
		next;
		mes "[Catherine]";
		mes "Don't go about casting spells in town for no reason, or bother others with spells that are in their own battle.";
		mes "A Wizard's magic is meant for their own battles with monsters.";
		next;
		mes "[Catherine]";
		mes "Go join parties with others and keep training.";
		mes "And...oh, wait, I prepared a present for you, one sec.";
		next;
		mes "[Catherine]";
		mes "rummage rummage...";
		mes "shuffle shuffle...";
		next;
		getitem 505,6; //Blue_Potion
		mes "[Catherine]";
		mes "Here you go. I hope you'll make good use of it when you need it. ~tehehe";
		mes "I gave them to you as a present, so don't go out and sell it. Use it for yourself, ok?";
		next;
		mes "[Catherine]";
		mes "Well, then...*sight*...live a wonderful life as a Wizard, become the strongest out there!";
		close;
	}
}

gef_tower,102,24,2	script	Gloomy Wizard	735,{
	if (BaseJob != Job_Mage) {
		if (BaseJob == Job_Wizard) {
			mes "[Raulel]";
			mes "*Cough* *cough* what do you want?";
			mes "If you are a person that uses magic, then you need to make sure you are well informed about it.";
			next;
			mes "[Raulel]";
			mes "Don't live dishonestly, or impolitely, or else one day you'll be caught in a spell you can't control, and BOOM, your dead!";
			if (sex == 1) {
				mes "If you don't want that to happen, then learn how to use spells properly!";
				next;
				mes "[Raulel]";
				mes "You may live life crippled if you get obsessed with the love of Greater Magic. ~haha";
			}
			else {
				mes "So learn how to use magic properly, or you would just be better off giving up on using magic.";
				next;
				mes "[Raulel]";
				mes "If you don't want that, go hit on a guy or something! ~Hahahaha";
				mes "If you don't pay attention to yourself, you'll be engulfed by magic one day...";
			}
			close;
		}
		else if (BaseJob == Job_Priest) {
			mes "[Raulel]";
			mes "Go away, one who works for the Church!";
			mes "Magic repels Holy power, jeez...your messing up my aura.";
			next;
			mes "[Raulel]";
			mes "And plus, *cough* *cough* my health isn't all that good right now either...";
			mes "Don't come any closer, just leave!";
			close;
		}
		else if (BaseClass == Job_Novice) {
			mes "[Raulel]";
			mes "Why did a little one like you come here?!";
			mes "Get lost! ~Hahahahaha";
			close2;
			warp "geffen",120,110;
			end;
		}
		mes "[Raulel]";
		mes "*sneeze* *cough* Oooowww...my entire body is in pain. I feel like I'm trapped in a tub of ice water!";
		next;
		mes "[Raulel]";
		mes "What do you want? Jeez...just get lost, won't you?";
		close;
	}
	if (WIZ_Q == 0) {
		mes "[Raulel]";
		mes "*cough* *cough* *sneeze* I don't know who you are and what you do, but I don't have any business with you.";
		next;
		mes "[Raulel]";
		mes "Go away! Get lost!";
		close;
	}
	else if (WIZ_Q == 1 || WIZ_Q  == 2) {
		mes "[Raulel]";
		mes "Hahahaha~ You're the one that wants to become a Wizard?!";
		next;
		mes "[Raulel]";
		mes "*sneeze* If you just lived as you were, all you'd have to do was hunt a little and live the easy life...";
		next;
		mes "[Raulel]";
		mes "*Cough* *cough* Let's see how well you live as a Wizard. ~Hahahahhaha";
		close;
	}
	else if (WIZ_Q == 3) {
		mes "[Raulel]";
		mes "*Cough* *cough*...You must've passed the first test.";
		mes "Ok, I'm the Wizard in charge of your testing from now on. My name is 'Raulel Asparagus'.";
		next;
		mes "[Raulel]";
		mes "*sneeze* It's not too late yet, wouldn't you rather just go back to town and enjoy the peaceful life?";
		next;
		mes "[Raulel]";
		mes "Hahahaha~ You don't know how dangerous it is...to deal with Greater Magic.";
		next;
		if (select("I want to live as a normal Mage.:I would like to continue with the tests.") == 1) {
			mes "[Raulel]";
			mes "Hahaha~ *sneeze* Good choice...*cough* *cough*~";
			mes "Best not to even dream about life as a Wizard. Graa...Greaa...*sneeze* Greater Magic wasn't meant for humans to use!";
			next;
			mes "[Raulel]";
			mes "Leave the top of this tower quietly and don't ever look back.";
			mes "Just live peacefully with the powers that you have right now.";
			close;
		}
		mes "[Raulel]";
		mes "*sneeze* Hahahaha~ Now there's a foolish one here!";
		mes "Well then, let's see how good you are. *cough* I want to see this with my own two eyes!";
		next;
		mes "[Raulel]";
		mes "*sneeze* Then let's begin the test!";
		mes "If you don't answer them all correctly, you fail. Hahahahahahahahaha~";
		next;
		mes "[Raulel]";
		mes "I'll give you 10 questions so give me the right answers.";
		mes "If you get something wrong, I won't tell you what it is!";
		next;
		mes "[Raulel]";
		mes "*Cough* *cough* Then here go the questions!";
L_AskQuestions:
		next;
		switch(rand(1,3)) {
		case 1:
			mes "[Raulel]";
			mes "1. Which of the following is not necessary to learn Fire Wall?";
			next;
			if (select("Fire Bolt Lv 4:Fire Ball Lv 5:Sight Lv 1:Napalm Beat Lv 4") == 4)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "2. Regaurdless of it's previous attribute, What does the monster's attribute change to when you cast Frost Diver on it?";
			next;
			if (select("Water:Earth:Fire:Wind") == 1)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "3. When you completely master Napalm Beat, what is the ratio of the increased MATK using that spell?";
			next;
			if (select("1.6 times:1.7 times:2 times:20 times") == 2)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "4. What item do you need when casting Stone Curse?";
			next;
			if (select("Red Blood:Blue Gemstone:Yellow Gemstone:Red Gemstone") == 4)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "5. Which of the following is not required to master Safety Wall?";
			next;
			if (select("Napalm Beat Lv 4:Soul Strike Lv 5:Increase SP Recovery Lv 6:Safety Wall Lv 7") == 3)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "6. Without the INT bonus, what amount of SP is recovered every 10 seconds when you have learned Increase SP Recovery Lv 7?";
			next;
			if (select("14:21:28:35") == 2)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "7. Using Energy Coat, when you have 50% of your SP remaining, how much SP is used when hit, and what percentage is damage reduced by?";
			next;
			if (select("Damage 18% SP1.5%:Damage 18% SP2%:Damage 24% SP1.5%:Damage 24% SP2%") == 2)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "8. How much SP is consumed and how many times can you avoid attacks when using Safety Wall Lv 6?";
			next;
			if (select("SP 40, 6 times:SP 35, 6 times:SP 40, 7 times:SP 35, 7 times") == 3)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "9. How much SP is needed when using Lv 10 Thunderstorm?";
			next;
			if (select("84:74:64:54") == 2)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "10. Which skill is most useful training in the Byalan Dungeon?";
			next;
			if (select("Lightning Bolt:Fire Bolt:Cold Bolt:Sight") == 1)
				set .@wizard_t,.@wizard_t+10;
			break;
		case 2:
			mes "[Raulel]";
			mes "1. Which monster can you obtain a slotted Guard from?";
			next;
			if (select("Thief Bug:PecoPeco:Pupa:Kobold (Hammer)") == 3)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "2. Which of the following is the easiest monster for a low level Mage to hunt?";
			next;
			if (select("Flora:Giearth:Golem:Myst") == 1)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "3. Which monster will not be affected by Stone Curse?";
			next;
			if (select("Elder Willow:Evil Druid:Magnolia:Marc") == 2)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "4. When attacking a Lv 3 water attribute monster with a wind attribute weapon, what is the damage percentage?";
			next;
			if (select("125%:150%:175%:200%") == 4)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "5. If a Baby Desert Wolf and a Familiar fought, which one would win?";
			next;
			if (select("Baby Desert Wolf:Familiar:Neither:I don't know") == 1)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "6. Which of the following cannot be a Cute Pet?";
			next;
			if (select("Poporing:Roda Frog:Smokie:Poison Spore") == 2)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "7. Choose the monster that is weak against a fire attribute attack.";
			next;
			if (select("Dagger Goblin:Mace Goblin:Morningstar Goblin:Hammer Goblin") == 4)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "8. Which of the following has the highest defense?";
			next;
			if (select("Horn:Chonchon:Andre:Caramel") == 4)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "9. Choose the monster that's of a different species.";
			next;
			if (select("Poring:Mastering:Ghostring:Spore") == 3)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "10. Which of the following is not an Undead monster?";
			next;
			if (select("Drake:Megalodon:Deviace:Khalitzburg") == 3)
				set .@wizard_t,.@wizard_t+10;
			break;
		case 3:
			mes "[Raulel]";
			mes "1. Which stat is the most important for a Mage?";
			next;
			if (select("INT:AGI:DEX:VIT") == 1)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "2. Which attribute does not have a 'Bolt' type attack?";
			next;
			if (select("Water:Earth:Fire:Wind") == 2)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "3. Choose the one that does not relate to a Mage.";
			next;
			if (select("Weak physical strength.:Attacks at a distance.:Good at selling stuff.:Magic Defense is high.") == 3)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "4. Which town is the home of Mages?";
			next;
			if (select("Prontera:Morroc:Alberta:Geffen") == 4)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "5. Which of the following cards has nothing to do with INT?";
			next;
			if (select("Andre Egg Card:Soldier Andre Card:Baby Desert Wolf Card:Elder Willow Card") == 2)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "6. What is the Mage good at compared to other job classes?";
			next;
			if (select("Exceptional Vocal Ability:Exceptional Acting Ability:Exceptional Dance Skills:Exceptional Magic Skills") == 4)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "7. What is the INT bonus at Job Lv 40 for a Mage?";
			next;
			if (select("8:7:6:5") == 4)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "8. Which item can a Mage not equip?";
			next;
			if (select("Knife:Boys Cap:Sandle:Eye of Dullahan") == 2)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "9. Which of the following is the catalyst when making the Mage test solution 3?";
			next;
			if (select("Blue Gemstone:Red Gemstone:Yellow Gemstone:Red Blood") == 1)
				set .@wizard_t,.@wizard_t+10;
			mes "[Raulel]";
			mes "10. Which card is irrelevant to magic?";
			next;
			if (select("Marduk Card:Magnolia Card:Willow Card:Maya Card") == 2)
				set .@wizard_t,.@wizard_t+10;
		}
		mes "[Raulel]";
		if (WIZ_Q == 4) {
			mes "Good job, you finished answered all the questions... Go buy yourself some potions or something if you have the Zeny. Haha...";
			next;
			mes "[Raulel]";
			mes "Your score is... " + .@wizard_t + "points.....";
			if (.@wizard_t == 100) {
				set WIZ_Q,5;
				mes "Hahahahahahah~ Well done, you passed the second test.";
				mes "It wasn't done in one try like mine was, but I'll let you slide...";
				next;
				mes "[Raulel]";
				mes "*sneeze* Don't relax just yet, there's still the matter of the third and final test.";
				mes "I advise you to rest a bit while the final test is prepared. Your gonna need it. Hahahahaha~";
				close;
			}
			else if (.@wizard_t == 90) {
				set WIZ_Q,5;
				mes "Hahaha~ Since you only missed one problem, you passed the second test.";
				mes "It wasn't done in one try like mine was, but I'll let you slide...";
				next;
				mes "[Raulel]";
				mes "*sneeze* Don't relax just yet, there's still the matter of the third and final test.";
				mes "I advise you to rest a bit while the final test is prepared. Your gonna need it. Hahahahaha~";
				close;
			}
			else if (.@wizard_t == 80) {
				set WIZ_Q,5;
				mes "Sheez... You didn't do very well, but you passed the second test.";
				mes "It wasn't done in one try like mine was, but I'll let you slide...";
				next;
				mes "[Raulel]";
				mes "*sneeze* Don't relax just yet, there's still the matter of the third and final test.";
				mes "I advise you to rest a bit while the final test is prepared. Your gonna need it. Hahahahaha~";
				close;
			}
			else {
				mes "You failed. Go study some more!";
				next;
				mes "[Raulel]";
				mes "*cough* *cough* Did you really think you could become a Wizard with such a mediocre level like yours?";
				mes "Get lost! If you were a Wizard right now, the monsters that I fight, would eat you up in no time!";
				close;
			}
		}
		mes "Hmmm...Good job, you finished answering all the questions, go buy yourself some potions or something, thats IF you have the Zeny. Hahahahahahahah~";
		next;
		mes "[Raulel]";
		mes "Your score is... " + .@wizard_t + " points!";
		if (.@wizard_t == 100) {
			set WIZ_Q,5;
			mes "*cough* *Cough* Well done, you passed the second test.";
			next;
			mes "[Raulel]";
			mes "Hahahaha~ Don't relax just yet, there's still the third test.";
			mes "*sneeze* I advise you to rest a bit while the final test is prepared...Hahahahah~";
			close;
		}
		else if (.@wizard_t == 90) {
			set WIZ_Q,5;
			mes "Hahahaha~ I'll let you slide by since you only missed one problem. You passed the second test.";
			next;
			mes "[Raulel]";
			mes "Hahahaha~ Don't relax just yet, there's still the third test.";
			mes "*sneeze* I advise you to rest a bit while the final test is prepared...Hahahahah~";
			close;
		}
		else {
			set WIZ_Q,4;
			mes "You failed. I will let you come back again...after you've learned more relating to the type of questions I've asked you.";
			next;
			mes "[Raulel]";
			mes "Tisk...not enough, not enough! Did you really think you could become a Wizard with the little bit of knowledge you have?";
			mes "Get lost! If you were a Wizard right now, the monsters I deal with would eat you up in no time!";
			close;
		}
	}
	else if (WIZ_Q == 4) {
		mes "[Raulel]";
		mes "Hahahaha~ Are you that desperate? *sneeze* What a pain in the arse...";
		next;
		mes "[Raulel]";
		mes "Since you don't want to settle for a stable and peaceful life, I'll give you another chance...";
		next;
		mes "[Raulel]";
		mes "If you miss one single question, then just give up. You wouldn't have any talent in being a Wizard! ~Hahahahaha";
		next;
		if (select("Because of you, I want to live as a normal Mage now.:I would like to continue with the tests.") == 1) {
			mes "[Raulel]";
			mes "Hahahaha~ Surprising, comming from you, that's a very wise choice...*cough* *cough*";
			mes "If i were you, i would never, ever dream of becoming a Wizard again. Gre...Greaa...*sneeze* Greater Magic wasn't meant for humans to use.";
			next;
			mes "[Raulel]";
			mes "Just leave the top of this tower quietly and never look back.";
			mes "Live peacefully with the powers that you have right now.";
			close;
		}
		mes "[Raulel]";
		mes "Hahahahahahaha~ Now there's a foolish one right here!";
		mes "Well then, let's see just how good you can be! *sneeze* I want to see this with my own two eyes.";
		next;
		mes "[Raulel]";
		mes "Then let's begin the test!";
		goto L_AskQuestions;
	}
	else if (WIZ_Q == 5) {
		mes "[Raulel]";
		mes "Ok, hope you got plenty of rest. Hahahahahah~";
		mes "Then let's begin the last test.";
		next;
		mes "[Raulel]";
		mes "Should I explain a little about this final test? It is difficult, I will not hide that from you...";
		next;
		if (select("No, it's ok, I'm ready.:I would like to listen.") == 1) {
			mes "[Raulel]";
			mes "What a rash person. Your the type that rushes into battle without thinking, what in the world are you doing here instead of with the Prontera Chivalry? Heck, go for it! *cough* Not my fault if you end up dying.";
			mes "Just consider yourself a glass cannon...because the monsters are going to break you into pieces. Hahahahahahahahaha~";
			next;
			set WIZ_Q,6;
			savepoint "geffen",120,107;
			mes "[Raulel]";
			mes "Then, as you wish. I'll send you there right now.";
			mes "Oh, if you see a white light at the end of a tunnel, that means your pathetic cause you failed! Hahahahahah~";
			close2;
			warp "job_wiz",57,154;
			end;
		}
		mes "[Raulel]";
		mes "What a devoted person. Very well, I'll explain.";
		mes "No matter how hard this last test may seem, if you do as I say, you can finish it quickly and easily.";
		next;
		mes "[Raulel]";
		mes "The final test has a total of 3 parts.";
		mes "The order is Water Room, Earth Room, Fire Room. In each room, there are monsters of that particular attribute.";
		next;
		mes "[Raulel]";
		mes "You'll find out what monsters will be there once you go in. If you use attacks with the *sneeze*";
		mes "right attribute, it shouldn't be too hard. Hahaha~";
		next;
		mes "[Raulel]";
		mes "Once you defeat all the monsters within the given time in any one room...";
		mes "you'll be moved to the next room.";
		next;
		mes "[Raulel]";
		mes "After these three rooms are clear, the testing is over.";
		mes "You will become a Wizard which is controlled by Greater Magic Powers! Know this...There is no returning to an easy life.";
		next;
		mes "[Raulel]";
		mes "Hahaha~ You look frightened. You know, it's not too late to turn back and live an easy life.";
		mes "If you want, I can send you back to town right now... What do you want to do?";
		next;
		if (select("Continue testing.:I want to go back because I have butterflies in my stomach.") == 1) {
			set WIZ_Q,6;
			savepoint "geffen",120,107;
			mes "[Raulel]";
			mes "You are indeed, very determined. Ok! Hahahahahaha~";
			mes "*Cough* *cough* As you wish, we shall begin the final test!";
			close2;
			warp "job_wiz",57,154;
			end;
		}
		set WIZ_Q,6;
		mes "[Raulel]";
		mes "Good thinking. This is a better choice for you. Hahahahah~";
		mes "Go back and live a easy life, Greater Magic is a force that should not be wield by types like yourself.";
		close2;
		warp "geffen",120,110;
		end;
	}
	else if (WIZ_Q == 6) {
		if (WIZ_Q2 == 6) {
			mes "[Raulel]";
			mes "Hahahahahaha~ I've never seen anyone so...sooo...*sneeze* tenacious as you.";
			mes "So you want to try again eh? Even though I've ridiculed you for your failures before??";
			next;
			mes "[Raulel]";
			mes "Ok then, here's a proposition. Since you're probably worn out as it is, and I can clearly see the lust for Greater Magic burning in your eyes...";
			mes "Hahahahaha~ yeah! Go bring me a ^3355FFWorn Out Scroll^000000.";
			next;
			set WIZ_Q2,WIZ_Q2+1;
			mes "[Raulel]";
			mes "If not, you can take the test again...";
			mes "Well, I'll send you to take the test for now. Hahahaha~";
			close2;
			warp "job_wiz",57,154;
			end;
		}
		else if (WIZ_Q2 > 6) {
			mes "[Raulel]";
			mes "Oh! So you're back? Hahahahaha~";
			mes "*Cough* Cough* Do you want to take the test again? Or did you bring the ^3355FFWorn Out Scroll^000000?";
			next;
			if (select("Continue the test.:Worn Out Scroll...") == 1) {
				savepoint "geffen",120,107;
				mes "[Raulel]";
				mes "Hahaha~ Ok, at least you have some spirit.";
				mes "I'll send you in again, try dying once more will yah? Hahahahahahahahaha~";
				close2;
				warp "job_wiz",57,154;
				end;
			}
			if (countitem(618) > 0) {
				delitem 618,1; //Worn_Out_Scroll
				mes "[Raulel]";
				mes "Hahahahahahahaha~ *Cough* *cough* So you ended up bringing one of these eh? Good job...";
				mes "I think I can continue my research with this...";
				next;
				set WIZ_Q2,0;
				set WIZ_Q,7;
				mes "[Raulel]";
				mes "Even though your not Grade A Wizard material, I can tell your serious about wanting the Greater Magic. I'll tell Catherine that you passed. Hahahahahahahahah~";
				mes "You went through a lot of trouble here, and that is the true purpose for us selecting Wizards. Only those who will devote themselves to the art will ever become Wizards. Good luck to you. Become much Stronger. Hahahahahaha~";
				close;
			}
		}
		mes "[Raulel]";
		mes "*sneeze* What? You want to take the test again?";
		mes "Geez...you already failed the battle test! Hahahahahahahaha~ So you like magic that much, eh?";
		next;
		mes "[Raulel]";
		mes "Since your so weak that you can't finish this final test on your own...you need a separate test to help you out.";
		mes "*Cough* If you can't pass the battle test, then do a good job with this one. Hahahahahahah~";
		next;
		mes "[Raulel]";
		mes "Well, you better answer these problems if you plan on becoming a Wizard. Hahahahahahaha~";
		next;
		mes "[Raulel]";
		mes "1. Choose the monster with a different attribute than the others.";
		next;
		if (select("Mantis:Cornutus:Giearth:Caramel") == 2)
			set .@wizard_t,.@wizard_t+20;
		mes "[Raulel]";
		mes "2. Choose the monster that is not a looting one.";
		next;
		if (select("Yoyo:Magnolia:Metaller:Zerom") == 4)
			set .@wizard_t,.@wizard_t+20;
		mes "[Raulel]";
		mes "3. Which of these monsters does not recognize casting?";
		next;
		if (select("Marina:Vitata:Scorpion:Giearth") == 1)
			set .@wizard_t,.@wizard_t+20;
		mes "[Raulel]";
		mes "4. Choose the spell that would be efficient against a Marine Sphere.";
		next;
		if (select("Cold Bolt:Fire Bolt:Lightning Bolt:Stone Curse") == 3)
			set .@wizard_t,.@wizard_t+20;
		mes "[Raulel]";
		mes "5. Choose the monster that can move.";
		next;
		if (select("Hydra:Madragora:Greatest General:Frilldora") == 4)
			set .@wizard_t,.@wizard_t+20;
		mes "[Raulel]";
		mes "*pfft* Do it right, so I don't have to ask again.";
		next;
		mes "[Raulel]";
		mes "You got " + .@wizard_t + " points.";
		if (.@wizard_t == 100) {
			mes "Hahahahahaha~ *Cough* *cough* If you can answer all these questions correctly, how is it you can't do well in battles??";
			next;
		}
		else if (.@wizard_t == 80) {
			mes "Eh, soso...";
			mes "I'll let you retake the test.";
			next;
		}
		else {
			mes "You failed! Go study some more!";
			next;
			mes "[Raulel]";
			mes "You lack something...*sneez*...like intelligence. That's why you keep on failing. Hahahahahahahaha~";
			close;
		}
		if (select("Begin the test please.:Can I get another explanation?") == 1) {
			mes "[Raulel]";
			mes "Nobody is going to help you become a Wizard. Hahahahahahahaha~";
			mes "*Cough* *cough* No point in crying after dying...";
			next;
			percentheal 100,100;
			mes "[Raulel]";
			mes "Then, as you wish. I'll send you to fight.";
			mes "Oh! If you see some tall pearly gates and hear a booming deep voice from behind it, that means that your a failure when it comes to Magic. Hahahahahahahahaha~";
			close2;
			warp "job_wiz",57,154;
			end;
		}
		mes "[Raulel]";
		mes "*Cough* *cough* Then I shall explain.";
		mes "The test may be hard, but just do as I tell you and it shouldn't be a problem.";
		next;
		mes "[Raulel]";
		mes "There are 3 parts to this final test.";
		mes "The order is...*sneez*...the Water Room, Earth Room, and then the Fire Room. Each room has monsters of that attribute in it.";
		next;
		mes "[Raulel]";
		mes "You'll see what monsters they are when you enter.";
		mes "If you use the appropriate spells against them, it shouldn't be that difficult. Hahahahahahaha~";
		next;
		mes "[Raulel]";
		mes "Within the given time, if you defeat all the monsters...";
		mes "you will be sent to the next room.";
		next;
		mes "[Raulel]";
		mes "After that, the test is over.";
		mes "You will then become a Wizard controlled by Greater Magic powers! There is no coming back to the easy life you have known thus far.";
		next;
		mes "[Raulel]";
		mes "Hahahahaha~ You look frightened. It's not too late you know.";
		mes "*Cough* *cough* You can give up and go back to town! Just forget about the Greater Magic and live a normal life. What do yah say?";
		next;
		if (select("Continue with the test.:I'm too scared, I would like to quit.") == 1) {
			percentheal 100,100;
			mes "[Raulel]";
			mes "This time when you die, don't come back crying. Hahahahahahahahah~ *Cough *cough*";
			mes "As you wish, let's begin the final test!";
			close2;
			warp "job_wiz",57,154;
			end;
		}
		mes "[Raulel]";
		mes "Comming from you, thats some darn good thinking. That's more a fit for you anyways. Hahahahahahahahaha~";
		mes "Go back and live a quiet and peaceful life!";
		close2;
		warp "geffen",120,110;
		end;
	}
	else if (WIZ_Q == 7) {
		mes "[Raulel]";
		mes "You shouldn't have any more business with me as far as I'm concerned.";
		mes "But, since your so darned persistent, I'll let you take the test again. Hahahahaha~";
		next;
		mes "[Raulel]";
		mes "Go! Go and become the Wizard you really want to be.";
		mes "And be careful! Greater Magic will always be after you...";
		close;
	}
}

job_wiz,50,165,4	script	Arena Assistant	700,{
	mes "[Arena Assistant]";
	mes "Welcome to the Wizard Job Change Arena.";
	mes "If you would like to take the final test, then please enter the waiting room.";
	next;
	mes "[Arena Assistant]";
	mes "If someone is already taking the test, please wait.";
	mes "All testing status will be broadcasted, and will begin as soon as the previous tester has gone through.";
	next;
	mes "[Arena Assistant]";
	mes "Each person may take approximately 5 to 10 minutes.";
	mes "If you would like to leave the arena, please log off anytime.";
	close;
}

job_wiz,50,165,4	script	Waiting Room#wiz	700,{
OnInit:
	waitingroom "Waiting Room",20,"Waiting Room#wiz::OnStartArena",1;
	end;

OnStartArena:
	set $@WzUsers, getareausers("job_wiz", 98, 154, 129, 185);			// get user count for first lvl
	set $@WzUsers, $@WzUsers + getareausers("job_wiz", 100, 82, 131, 113);	// get user count for second lvl + first lvl
	set $@WzUsers, $@WzUsers + getareausers("job_wiz", 30, 82, 61, 113);	// get user count for third lvl + second lvl + first lvl
	if ($@WzUsers > 0) end;

	if ((getwaitingroomstate(33)) == 0) end;		// finds out if there is anyone in the waiting room
	killmonsterall "job_wiz";
	warpwaitingpc "job_wiz",114,169;
	donpcevent "Room of Water::OnEnable";
	disablenpc "Waiting Room#wiz";
	end;
}

// Water Room (Test 2 part 1)
//==========================================================
job_wiz,1,1,1	script	Room of Water	66,{
OnInit:
	disablenpc "Room of Water";
	end;

OnEnable:
	enablenpc "Room of Water";
	set .MyMobs,8;
	monster "job_wiz",109,174,"Phen",1158,1,"Room of Water::OnMyMobDead";
	monster "job_wiz",118,174,"Clam",1074,1,"Room of Water::OnMyMobDead";
	monster "job_wiz",109,165,"Vadon",1066,1,"Room of Water::OnMyMobDead";
	monster "job_wiz",118,165,"Cornutus",1067,1,"Room of Water::OnMyMobDead";
	monster "job_wiz",101,157,"Marina",1141,1,"Room of Water::OnMyMobDead";
	monster "job_wiz",126,157,"Marin",1242,1,"Room of Water::OnMyMobDead";
	monster "job_wiz",98,170,"Magnolia",1138,1,"Room of Water::OnMyMobDead";
	monster "job_wiz",129,170,"Obeaune",1044,1,"Room of Water::OnMyMobDead";
	initnpctimer;
	end;

OnDisable:
	killmonsterall "job_wiz";
	disablenpc "Room of Water";
	end;

OnMyMobDead:
	set .MyMobs,.MyMobs-1;
	if (.MyMobs < 1) {
		set WIZ_Q2,WIZ_Q2+1;
		mapannounce "job_wiz",strcharinfo(0)+" has succeeded in eliminating the monsters.",bc_map;
		donpcevent "Room of Water#Door::OnEnable";
		stopnpctimer;
	}
	end;

OnTimer1000:
	mapannounce "job_wiz","Water Room; The job change test will now proceed.",bc_map;
	end;

OnTimer2000:
	mapannounce "job_wiz","Time limit is 3 minutes. We will now start the test.",bc_map;
	end;

OnTimer3000:
	mapannounce "job_wiz","Please eliminate all monsters within the time limit.",bc_map;
	end;

OnTimer33000:
	mapannounce "job_wiz","2 minutes and 30 seconds remaining.",bc_map;
	end;

OnTimer63000:
	mapannounce "job_wiz","2 minutes remaining.",bc_map;
	end;

OnTimer93000:
	mapannounce "job_wiz","1 minute and 30 seconds remaining.",bc_map;
	end;

OnTimer123000:
	mapannounce "job_wiz","1 minute remaining.",bc_map;
	end;

OnTimer153000:
	mapannounce "job_wiz","30 seconds remaining.",bc_map;
	end;

OnTimer173000:
	mapannounce "job_wiz","10 seconds remaining.",bc_map;
	end;

OnTimer183000:
	mapannounce "job_wiz","Time is up.",bc_map;
	donpcevent "Room of Water::OnDisable";
	end;

OnTimer184000:
	donpcevent "Room of Water#Failed::OnEnable";
	end;

OnTimer185000:
	mapannounce "job_wiz","Next candidate, please enter.",bc_map;
	end;

OnTimer186000:
	disablenpc "Room of Water#Failed";
	donpcevent "Room of Water::OnDisable";
	donpcevent "Waiting Room#wiz::OnEnable";
}

job_wiz,1,2,1	script	Room of Water#Door	66,{
OnInit:
	disablenpc "Room of Water#Door";
	end;

OnEnable:
	enablenpc "Room of Water#Door";
	donpcevent "Room of Water::OnDisable";
	set .MyMobs,5;
	monster "job_wiz",114,169,"Marine Sphere",1142,1,"Room of Water#Door::OnMyMobDead";
	monster "job_wiz",112,169,"Hydra",1068,1,"Room of Water#Door::OnMyMobDead";
	monster "job_wiz",116,169,"Hydra",1068,1,"Room of Water#Door::OnMyMobDead";
	monster "job_wiz",114,171,"Hydra",1068,1,"Room of Water#Door::OnMyMobDead";
	monster "job_wiz",114,167,"Hydra",1068,1,"Room of Water#Door::OnMyMobDead";
	initnpctimer;
	end;

OnDisable:
	killmonsterall "job_wiz";
	disablenpc "Room of Water#Door";
	end;

OnMyMobDead:
	set .MyMobs,.MyMobs-1;
	if (.MyMobs < 1) {
		mapannounce "job_wiz",strcharinfo(0)+" has succeeded in eliminating the monsters.",bc_map;
		warp "job_wiz",116,97;
		percentheal 100,100;
		donpcevent "Room of Water#Door::OnDisable";
		donpcevent "Room of Earth::OnEnable";
		stopnpctimer;
	}
	end;

OnTimer1000:
	mapannounce "job_wiz","The guard monster has appeared. You have 1 minute.",bc_map;
	end;

OnTimer30000:
	mapannounce "job_wiz","30 seconds remaining.",bc_map;
	end;

OnTimer50000:
	mapannounce "job_wiz","10 seconds remaining.",bc_map;
	end;

OnTimer60000:
	mapannounce "job_wiz","Time is up.",bc_map;
	donpcevent "Room of Water#Door::OnDisable";
	end;

OnTimer61000:
	enablenpc "Room of Water#Failed";
	end;

OnTimer62000:
	mapannounce "job_wiz","Next candidate, please enter.",bc_map;
	end;

OnTimer63000:
	disablenpc "Room of Water#Failed";
	donpcevent "Room of Water#Door::OnDisable";
	donpcevent "Waiting Room#wiz::OnEnable";
}

job_wiz,114,169,0	script	Room of Water#Failed	-1,16,16,{
OnInit:
	disablenpc "Room of Water#Failed";
	end;

OnTouch:
	mapannounce "job_wiz",strcharinfo(0)+" has not succeeded.",bc_map;
	warp "geffen",120,110;
	end;
}

// Earth Room (Test 2 part 2)
//==========================================================
job_wiz,1,3,1	script	Room of Earth	66,{
OnInit:
	disablenpc "Room of Earth";
	end;

OnEnable:
	enablenpc "Room of Earth";
	set .MyMobs,10;
	monster "job_wiz",111,102,"Yoyo",1057,1,"Room of Earth::OnMyMobDead";
	monster "job_wiz",120,102,"Deniro",1105,1,"Room of Earth::OnMyMobDead";
	monster "job_wiz",111,102,"Caramel",1103,1,"Room of Earth::OnMyMobDead";
	monster "job_wiz",120,102,"Hode",1127,1,"Room of Earth::OnMyMobDead";
	monster "job_wiz",111,93,"Savage",1166,1,"Room of Earth::OnMyMobDead";
	monster "job_wiz",120,93,"Giearth",1121,1,"Room of Earth::OnMyMobDead";
	monster "job_wiz",107,98,"Bigfoot",1060,1,"Room of Earth::OnMyMobDead";
	monster "job_wiz",124,98,"Orc Warrior",1023,1,"Room of Earth::OnMyMobDead";
	monster "job_wiz",104,86,"Vitata",1176,1,"Room of Earth::OnMyMobDead";
	monster "job_wiz",127,86,"Mantis",1139,1,"Room of Earth::OnMyMobDead";
	initnpctimer;
	end;

OnDisable:
	killmonsterall "job_wiz";
	disablenpc "Room of Earth";
	end;

OnMyMobDead:
	set .MyMobs,.MyMobs-1;
	if (.MyMobs < 1) {
		mapannounce "job_wiz",strcharinfo(0) + " has succeeded in eliminating the monsters.",bc_map;
		donpcevent "Room of Earth#Door::OnEnable";
		stopnpctimer;
	}
	end;

OnTimer1000:
	mapannounce "job_wiz","Earth Room; The job change test will now proceed.",bc_map;
	end;

OnTimer2000:
	mapannounce "job_wiz","The time limit is 3 minutes.",bc_map;
	end;

OnTimer3000:
	mapannounce "job_wiz","Eliminate all monster within the time limit.",bc_map;
	end;

OnTimer33000:
	mapannounce "job_wiz","2 minutes and 30 seconds remaining.",bc_map;
	end;

OnTimer63000:
	mapannounce "job_wiz","2 minutes remaining.",bc_map;
	end;

OnTimer93000:
	mapannounce "job_wiz","1 minute and 30 seconds remaining.",bc_map;
	end;

OnTimer123000:
	mapannounce "job_wiz","1 minute remaining.",bc_map;
	end;

OnTimer153000:
	mapannounce "job_wiz","30 seconds remaining.",bc_map;
	end;

OnTimer173000:
	mapannounce "job_wiz","10 seconds remaining.",bc_map;
	end;

OnTimer183000:
	mapannounce "job_wiz","Time is up.",bc_map;
	donpcevent "Room of Earth::OnDisable";
	end;

OnTimer184000:
	enablenpc "Room of Earth#Failed";
	end;

OnTimer185000:
	mapannounce "job_wiz","Next candidate, please enter.",bc_map;
	end;

OnTimer186000:
	disablenpc "Room of Earth#Failed";
	donpcevent "Room of Earth::OnDisable";
	donpcevent "Waiting Room#wiz::OnEnable";
}

job_wiz,1,4,1	script	Room of Earth#Door	66,{
OnInit:
	disablenpc "Room of Earth#Door";
	end;

OnEnable:
	enablenpc "Room of Earth#Door";
	donpcevent "Room of Earth::OnDisable";
	set .MyMobs,7;
	monster "job_wiz",116,97,"Flora",1118,1,"Room of Earth#Door::OnMyMobDead";
	monster "job_wiz",114,95,"Mandragora",1020,1,"Room of Earth#Door::OnMyMobDead";
	monster "job_wiz",118,95,"Mandragora",1020,1,"Room of Earth#Door::OnMyMobDead";
	monster "job_wiz",114,99,"Mandragora",1020,1,"Room of Earth#Door::OnMyMobDead";
	monster "job_wiz",118,99,"Mandragora",1020,1,"Room of Earth#Door::OnMyMobDead";
	monster "job_wiz",116,94,"Mandragora",1020,1,"Room of Earth#Door::OnMyMobDead";
	monster "job_wiz",116,100,"Mandragora",1020,1,"Room of Earth#Door::OnMyMobDead";
	initnpctimer;
	end;

OnDisable:
	killmonsterall "job_wiz";
	disablenpc "Room of Earth#Door";
	end;

OnMyMobDead:
	set .MyMobs,.MyMobs-1;
	if (.MyMobs < 1) {
		mapannounce "job_wiz",strcharinfo(0) + " has succeeded in eliminating the monster.",bc_map;
		percentheal 100,100;
		warp "job_wiz",46,99;
		donpcevent "Room of Earth#Door::OnDisable";
		donpcevent "Room of Fire::OnEnable";
		stopnpctimer;
	}
	end;

OnTimer1000:
	mapannounce "job_wiz","The guard monster has appeared. You have 1 minute.",bc_map;
	end;

OnTimer30000:
	mapannounce "job_wiz","30 seconds remaining.",bc_map;
	end;

OnTimer50000:
	mapannounce "job_wiz","10 seconds remaining.",bc_map;
	end;

OnTimer60000:
	mapannounce "job_wiz","End time.",bc_map;
	donpcevent "Room of Earth#Door::OnDisable";
	end;

OnTimer61000:
	donpcevent "Room of Earth#Failed::OnEnable";
	end;

OnTimer62000:
	mapannounce "job_wiz","Next candidate, please enter.",bc_map;
	end;

OnTimer63000:
	disablenpc "Room of Earth#Failed";
	donpcevent "Room of Earth#Door::OnDisable";
	donpcevent "Waiting Room#wiz::OnEnable";
}

job_wiz,116,97,0	script	Room of Earth#Failed	-1,16,16,{
OnInit:
	disablenpc "Room of Earth#Failed";
	end;

OnTouch:
	mapannounce "job_wiz",strcharinfo(0) + " has not succeeded.",bc_map;
	warp "geffen",120,110;
	end;
}

// Fire Room (Test 2 part 3)
//==========================================================
job_wiz,1,5,1	script	Room of Fire	66,{
OnInit:
	disablenpc "Room of Fire";
	end;

OnEnable:
	enablenpc "Room of Fire";
	set .MyMobs,8;
	monster "job_wiz",58,110,"Zerom",1178,1,"Room of Fire::OnMyMobDead";
	monster "job_wiz",33,110,"Goblin",1123,1,"Room of Fire::OnMyMobDead";
	monster "job_wiz",40,103,"Scorpion",1001,1,"Room of Fire::OnMyMobDead";
	monster "job_wiz",51,103,"Frilldora",1119,1,"Room of Fire::OnMyMobDead";
	monster "job_wiz",40,92,"PecoPeco",1019,1,"Room of Fire::OnMyMobDead";
	monster "job_wiz",51,92,"Elder Willow",1033,1,"Room of Fire::OnMyMobDead";
	monster "job_wiz",37,89,"Metaller",1058,1,"Room of Fire::OnMyMobDead";
	monster "job_wiz",54,89,"Desert Wolf",1106,1,"Room of Fire::OnMyMobDead";
	initnpctimer;
	end;

OnDisable:
	killmonsterall "job_wiz";
	disablenpc "Room of Fire";
	end;

OnMyMobDead:
	set .MyMobs,.MyMobs-1;
	if (.MyMobs < 1) {
		mapannounce "job_wiz",strcharinfo(0) + " has succeeded in eliminating the monsters.",bc_map;
		donpcevent "Room of Fire#Door::OnEnable";
		stopnpctimer;
	}
	end;

OnTimer1000:
	mapannounce "job_wiz","Fire Room; The job change test shall now proceed.",bc_map;
	end;

OnTimer2000:
	mapannounce "job_wiz","Time limit is 3 minutes. We will now start the test.",bc_map;
	end;

OnTimer3000:
	mapannounce "job_wiz","Please eliminate all monsters within the time limit.",bc_map;
	end;

OnTimer33000:
	mapannounce "job_wiz","2 minutes and 30 seconds remaining.",bc_map;
	end;

OnTimer63000:
	mapannounce "job_wiz","2 minutes remaining.",bc_map;
	end;

OnTimer93000:
	mapannounce "job_wiz","1 minute and 30 seconds remaining.",bc_map;
	end;

OnTimer123000:
	mapannounce "job_wiz","1 minute remaining.",bc_map;
	end;

OnTimer153000:
	mapannounce "job_wiz","30 seconds remaining.",bc_map;
	end;

OnTimer173000:
	mapannounce "job_wiz","10 seconds remaining.",bc_map;
	end;

OnTimer183000:
	mapannounce "job_wiz","Time is up.",bc_map;
	donpcevent "Room of Fire::OnDisable";
	end;

OnTimer184000:
	donpcevent "Room of Fire#Failed::OnEnable";
	end;

OnTimer185000:
	mapannounce "job_wiz","Next candidate, please enter.",bc_map;
	end;

OnTimer186000:
	disablenpc "Room of Fire#Failed";
	donpcevent "Room of Fire::OnDisable";
	donpcevent "Waiting Room#wiz::OnEnable";
}

job_wiz,1,6,1	script	Room of Fire#Door	66,{
OnInit:
	disablenpc "Room of Fire#Door";
	end;

OnEnable:
	enablenpc "Room of Fire#Door";
	donpcevent "Room of Fire::OnDisable";
	set .MyMobs,3;
	monster "job_wiz",44,99,"Greatest General",1277,1,"Room of Fire#Door::OnMyMobDead";
	monster "job_wiz",43,99,"Horong",1129,1,"Room of Fire#Door::OnMyMobDead";
	monster "job_wiz",45,99,"Horong",1129,1,"Room of Fire#Door::OnMyMobDead";
	initnpctimer;
	end;

OnDisable:
	killmonsterall "job_wiz";
	disablenpc "Room of Fire#Door";
	end;

OnMyMobDead:
	set .MyMobs,.MyMobs-1;
	if (.MyMobs < 1) {
		mapannounce "job_wiz","Congratulations, " + strcharinfo(0) + ". You have passed the job change test.",bc_map;
		set WIZ_Q,7;
		donpcevent "Room of Fire#Door::OnDisable";
		donpcevent "Room of Fire#Door::OnDisable";
		donpcevent "Test Helper#wiz::OnEnable";
		stopnpctimer;
	}
	end;

OnTimer1000:
	mapannounce "job_wiz","The guard monster has appeared. You have 2 minutes.",bc_map;
	end;

OnTimer30000:
	mapannounce "job_wiz","1 minute and 30 seconds remaining.",bc_map;
	end;

OnTimer60000:
	mapannounce "job_wiz","1 minute remaining.",bc_map;
	end;

OnTimer90000:
	mapannounce "job_wiz","30 seconds remaining.",bc_map;
	end;

OnTimer110000:
	mapannounce "job_wiz","10 seconds remaining.",bc_map;
	end;

OnTimer120000:
	mapannounce "job_wiz","Time is up.",bc_map;
	donpcevent "Room of Fire#Door::OnDisable";
	end;

OnTimer121000:
	enablenpc "Room of Fire#Failed";
	end;

OnTimer122000:
	mapannounce "job_wiz","Next candidate, please enter.",bc_map;
	end;

OnTimer123000:
	disablenpc "Room of Fire#Failed";
	donpcevent "Room of Fire#Door::OnDisable";
	donpcevent "Waiting Room#wiz::OnEnable";
}

job_wiz,46,99,0	script	Room of Fire#Failed	-1,16,16,{
OnInit:
	disablenpc "Room of Fire#Failed";
	end;

OnTouch:
	warp "geffen",120,110;
	end;
}

job_wiz,1,7,1	script	Test Helper#wiz	66,{
	end;

OnInit:
	disablenpc "Test Helper#wiz";
	end;

OnEnable:
	initnpctimer;
	end;

OnDisable:
	disablenpc "Test Helper#wiz";
	end;

OnTimer2000:
	mapannounce "job_wiz","Please return and complete the rest of the job change processes.",bc_map;
	end;

OnTimer4000:
	mapannounce "job_wiz","This is the end of the test. Next candidate, please stand by.",bc_map;
	end;

OnTimer5000:
	areawarp "job_wiz",33,82,57,113,"gef_tower",110,30;
	end;

OnTimer7000:
	mapannounce "job_wiz","Next candidate, please enter.",bc_map;
	end;

OnTimer9000:
	donpcevent "Test Helper#wiz::OnDisable";
	donpcevent "Waiting Room#wiz::OnEnable";
	stopnpctimer;
}

gef_tower,107,36,4	script	White Dog#wiz	81,{
	if (BaseJob != Job_Mage) {
		if (BaseJob == Job_Wizard) {
			mes "[Maria]";
			mes "Instead of sticking around here, wouldn't it be better to go out and test how strong you've become?";
			next;
			mes "[Maria]";
			mes "Don't forget that Wizards grow and improve in power each and every day.";
			close2;
			cutin "job_wizard_maria01",255;
			end;
		}
		else if (BaseClass == Job_Novice) {
			mes "[Dog]";
			mes "What? Kiddo!";
			mes "Is a Dog talking so amusing to you?";
		}
		else {
			cutin "job_wizard_maria02",2;
			mes "[Dog]";
			mes "Sheesh...Why would a person that can't even cast a spell a single spell come up here?";
			mes "*Pfft* If you're that bored, do the world a favor and climb to the top of this building via the outside, then proceed to do some acrobatics if you get there.";
		}
		next;
		mes "[Dog]";
		mes "*Bark* Get lost!";
		mes "I don't have time for people like you!";
		close2;
		cutin "job_wizard_maria02",255;
		end;
	}
	if (WIZ_Q == 0) {
		cutin "job_wizard_maria01",2;
		mes "[Dog]";
		mes "Ah...I know what you're about to say. You want to change jobs to a Wizard, right?";
		next;
		mes "[Dog]";
		mes "Go talk to Catherine. She'll help you.";
		next;
		mes "[Dog]";
		mes "Also, if you would like to know anything about the job change process, I can explain.";
		next;
		switch(select(".......:A Dog is talking to me...")) {
		case 1:
			mes "[Dog]";
			mes "...*bark*...? What is it?? Why are you looking at me like that?!";
			mes "Is it your first time seeing a Dog talk?";
			next;
			mes "[Dog]";
			mes "*Bark* It's not common that you see a Dog talking I suppose. bark~";
			mes "...Yes i suppose it is a rare site...*grrr*...Stop Gawking for goodness sakes!";
			next;
			mes "[Dog]";
			mes "My name is 'Maria Splodofska'. Just call me 'Maria'.";
			mes "I'm helping candidates that wish to become Wizards.";
			next;
			cutin "job_wizard_maria03",2;
			mes "[Maria]";
			mes "*Bark* Well, the reason I became a dog is...I was helping my boyfriend in experimenting to prepare for his Final for his Magic Degree. Well, *Grrrr* he accidentally turned me into a dog.";
			mes "Theoretically, in a couple months the chemicals should wear off and I should be returned to normal. When exactly, I have no idea?";
			next;
			cutin "job_wizard_maria01",2;
			mes "[Maria]";
			mes "Well...it doesn't concern you anyways.";
			mes "Now, where were we.";
			next;
			break;
		case 2:
			cutin "job_wizard_maria02",2;
			mes "[Dog]";
			mes "*Bark* *bark* *bark* Don't state the obvious! Alright, I know I'm a dog!";
			next;
			cutin "job_wizard_maria01",2;
			mes "[Dog]";
			mes "My name is 'Maria Splodofska'. People call me 'Maria'.";
			mes "I'm helping little ones like you that wish to become Wizards.";
			next;
			cutin "job_wizard_maria03",2;
			mes "[Dog called 'Maria']";
			mes "The reason I became a dog is...My boyfriend that was experimenting to prepare for the Magic Degree, accidentally turned me into a dog.";
			mes "Theoretically, in a couple months, the chemicals should wear off and I should be returned to normal. Exactly when, I have no idea?";
			next;
			cutin "job_wizard_maria02",2;
			mes "[Dog called 'Maria']";
			mes "I'm not a 'dog' called 'Maria'!! Oi!! Listen to me!!";
			next;
			mes "[Dog... 'Maria'...]";
			mes "..........";
			next;
			mes "[Maria]";
			mes "...*BARK* *BARK* *BARK*... I'm upset, but whatever!! You seem busy so I'll just drop it.";
			next;
			break;
		}
		cutin "job_wizard_maria01",2;
		mes "[Maria]";
		mes "Like I said before, to change jobs, talk to Catherine.";
		mes "She's a new Wizard too.";
		next;
		mes "[Maria]";
		mes "I can tell you more about the job change process, but I can't hold back a busy person now can I?";
		mes "What do you think? Should I explain some about whats in store for Mages that wish to become Wizards?";
		next;
		switch(select("Yes, please! I would like that.:No, it's ok.:A talking dog...")) {
		case 1:
			cutin "job_wizard_maria01",2;
			mes "[Maria]";
			mes "OK, I will explain the process for you.";
			next;
			mes "[Maria]";
			mes "There are three tests in the job change process.";
			mes "The first test is collecting magic items.";
			next;
			mes "[Maria]";
			mes "That one begins when you submit an application to Catherine.";
			mes "She'll either tell you to collect all types of gemstones, or gather stones with attributes.";
			next;
			mes "[Maria]";
			mes "Second test is a magic quiz,";
			mes "The gloomy Laurel in the corner is in charge of that part.";
			next;
			mes "[Maria]";
			mes "There are questions about magic, monsters, and Mages.";
			mes "Out of the 10 questions, if you don't get them all correct, he doesn't let you pass. In other words, you fail...";
			next;
			mes "[Maria]";
			mes "Oddly enough, He is in charge of the 3rd test too.";
			mes "The third test is eliminating monsters.";
			next;
			mes "[Maria]";
			mes "In each room, there are monsters of certain attributes.";
			mes "You must attack them with the appropriate spells.";
			next;
			mes "[Maria]";
			mes "Well, that's all that I can say. Go apply now.";
			next;
			mes "[Maria]";
			mes "It's better to just try it yourself than to listen to my descriptions.";
			close2;
			cutin "job_wizard_maria01",255;
			warp "gef_dun00",116,102;
			end;
		case 2:
			mes "[Maria]";
			mes "Really? Ok, then go apply and do your best.";
			close2;
			cutin "job_wizard_maria01",255;
			end;
		case 3:
			cutin "job_wizard_maria02",2;
			mes "[Maria]";
			mes "I'm not a DOG!! HOOOOWWWWWWLLLLLLL~";
			next;
			mes "[Maria]";
			mes "Dang it! I hope you FAIL!! Go get lost!!";
			close2;
			cutin "job_wizard_maria01",255;
			warp "gef_dun00",116,102;
			end;
		}
	}
	else if (WIZ_Q == 1) {
		cutin "job_wizard_maria01",2;
		mes "[Maria]";
		mes "You seem lost...";
		mes "You've applied, and now you're looking for the items right?";
		next;
		mes "[Maria]";
		mes "But since this is only the first test, don't depend on others.";
		mes "Complete it yourself. Thats the best way.";
		next;
		mes "[Maria]";
		mes "From what I've heard, you have to gather gemstones...";
		mes "I can't help you directly, but I can give you some advice.";
		next;
		mes "[Maria]";
		mes "First, to get Red Gemstones, go to Culverts in Prontera.";
		mes "You can obtain them from the Thief Bugs and Thief Bug eggs found plentiful there.";
		next;
		mes "[Maria]";
		mes "Yellow Gemstones are easy to find in the desert.";
		mes "Condors, Picky's, and sometimes monsters like Golem's drop them.";
		next;
		mes "[Maria]";
		mes "And...*woof* to get Blue Gemstones. Try going to the Byalan Dungeons.";
		mes "Cornutus, Vadon, and monsters like Mars can drop those Gems.";
		next;
		mes "[Maria]";
		mes "Of course you can get blue Gemstones at the magic shop here in town...";
		mes "But, finding them yourself would be much more rewarding and helpful later in the test.";
		next;
		mes "[Maria]";
		mes "Anyways, try your best.";
		mes "This is the basics of being a Wizard.";
		close2;
		cutin "job_wizard_maria01",255;
		end;
	}
	else if (WIZ_Q == 2) {
		cutin "job_wizard_maria01",2;
		mes "[Maria]";
		mes "You seem lost...";
		mes "You've applied, and now you're looking for the items right?";
		next;
		mes "[Maria]";
		mes "But since this is only the first test, don't depend on others for help.";
		mes "Complete it yourself, thats the best way.";
		next;
		mes "[Maria]";
		mes "From what I've heard, you have to gather elemental stones...";
		mes "I can't help you directly, but I can give you some advice.";
		next;
		mes "[Maria]";
		mes "Well, you can find the Crystal Blue in Byalan Dungeon.";
		mes "Cornutus, Kukre, Marina, Vadon...these monsters drop them frequently.";
		next;
		mes "[Maria]";
		mes "You can get Green Live from insect type monsters.";
		mes "Try hunting monsters like Horn, Mantis, or Vitata.";
		next;
		mes "[Maria]";
		mes "Oh and *woof*, Red Blood. I heard you can get a lot of those from...";
		mes "Elder Willows, Metallers or Scorpions found in the desert would work well too.";
		next;
		mes "[Maria]";
		mes "For Wind of Verdue. Hornet, Stainer, Steel Chonchon.";
		mes "If you try just a bit, you can get them really easily.";
		next;
		mes "[Maria]";
		mes "But anyways, always try your best.";
		mes "It's the basics of being a Wizard.";
		close2;
		cutin "job_wizard_maria01",255;
		end;
	}
	else if (WIZ_Q == 3) {
		cutin "job_wizard_maria01",2;
		mes "[Maria]";
		mes "Don't be too relieved just after the first test.";
		mes "Try your best, as you still have two more tests to go.";
		close2;
		cutin "job_wizard_maria01",255;
		end;
	}
	else if (WIZ_Q == 4) {
		cutin "job_wizard_maria01",2;
		mes "[Maria]";
		mes "ZzzzZzzzZzzz...";
		next;
		cutin "job_wizard_maria02",2;
		mes "[Maria]";
		mes "*wimper*...Blizadris...you suck...Zzz...";
		close2;
		cutin "job_wizard_maria02",255;
		end;
	}
	else if (WIZ_Q == 5) {
		cutin "job_wizard_maria01",2;
		mes "[Maria]";
		mes "Oh, you're doing well aren't you?";
		next;
		mes "[Maria]";
		mes "Well, try your best to the very end.";
		mes "Laurel is waiting.";
		close2;
		cutin "job_wizard_maria01",255;
		end;
	}
	else if (WIZ_Q == 6) {
		cutin "job_wizard_maria01",2;
		mes "[Maria]";
		mes "*BARK*...you gave up?";
		mes "*Sigh*...How can you become a Wizard with such a weak heart?";
		next;
		mes "[Maria]";
		mes "You know that each room has monsters of the same attribute...";
		mes "If you're a person that deals with magic, you need to know about the different spells.";
		next;
		mes "[Maria]";
		mes "You also need to learn how to counter monsters that use skills.";
		mes "Your best bet is to kill the monsters that are attacking you first.";
		next;
		mes "[Maria]";
		mes "*Grrr* Anyways, continue the test.";
		mes "Don't have a weak mind, *woof* and go back! *Bark* *Bark* Right this moment! *BARK*";
		close2;
		cutin "job_wizard_maria01",255;
		end;
	}
	else if (WIZ_Q == 7) {
		cutin "job_wizard_maria01",2;
		mes "[Maria]";
		mes "As I thought, I knew you'd be able to do it, I could smell it in yah! *Woof*";
		mes "Now I can call you Wizard.";
		next;
		mes "[Maria]";
		mes "Congratulations. Always give your best at everything, no matter what.";
		close2;
		cutin "job_wizard_maria01",255;
		end;
	}
}

//============================================================ 
// Old changelog
//============================================================ 
//= 1.1 Now using the initnpctimer command, donpcevent,
//= and new waitingroom event commands.  No more addtimer spamming.
//= No longer have to talk to the npc to take the test.  Just enter the chat room.
//= 1.2 Changed global variable names to unique ones.
//= 1.2a Rollback from the wrong Kashy's fix
//= 1.2b Fixed issue with duplicating monsters thx to Bison.[kobra_k88]
//= 1.2c changed one Horong to Frilldora (now 3rd room contains 1 agressive mob.)
//= 1.2d more simplified fire room - removed agressive Desert Wolf [Lupus]
//= 1.3 Added Baby Class support. 1.5 Fixed possible EXP abuse [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.7 Replaced 2 Hodes with 2 Horong's (according to the official guide) [Lupus]
//= 1.8 Removed callfunc Is_####_Class in favor of baseClass [Silentdragon]
//= 2.1 Changed numbers to constants. [Vicious]
//= 2.2 Merged back JFunc [Lupus] 2.2a Removed extra MES, added missing NEXT
//= 2.3 Bigfoot monster summon corrected [Zairik]