summaryrefslogtreecommitdiff
path: root/npc/quests/quests_airship.txt
blob: 9c096c83ef916f8f4f08d713f0f75be260ffddce (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
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
//================= Hercules Script =======================================
//=       _   _                     _
//=      | | | |                   | |
//=      | |_| | ___ _ __ ___ _   _| | ___  ___
//=      |  _  |/ _ \ '__/ __| | | | |/ _ \/ __|
//=      | | | |  __/ | | (__| |_| | |  __/\__ \
//=      \_| |_/\___|_|  \___|\__,_|_|\___||___/
//================= License ===============================================
//= This file is part of Hercules.
//= http://herc.ws - http://github.com/HerculesWS/Hercules
//=
//= Copyright (C) 2012-2017  Hercules Dev Team
//= Copyright (C)  Asheraf
//= Copyright (C)  Euphy
//= Copyright (C)  Joseph
//= Copyright (C)  brianluau
//= Copyright (C)  L0ne_W0lf
//= Copyright (C)  SinSloth
//= Copyright (C)  Samuray22
//=
//= Hercules is free software: you can redistribute it and/or modify
//= it under the terms of the GNU General Public License as published by
//= the Free Software Foundation, either version 3 of the License, or
//= (at your option) any later version.
//=
//= This program is distributed in the hope that it will be useful,
//= but WITHOUT ANY WARRANTY; without even the implied warranty of
//= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//= GNU General Public License for more details.
//=
//= You should have received a copy of the GNU General Public License
//= along with this program.  If not, see <http://www.gnu.org/licenses/>.
//=========================================================================
//= Airship Related Quests
//================= Description ===========================================
//= Quest from the airplane to Einbroch and Einbech.
//= Reward: - Free Ticket for Flyship.
//=         - Free System to Repair.
//= Quest about how work the airship
//= Reward: - Base Experience 200,000
//=         - Job Experience 10,000
//================= Current Version =======================================
//= 3.0
//=========================================================================

//== Airship Ticket Quest :: kain_ticket =======================

//- Kain Himere -
airplane,47,61,7	script	Crewman#ein	4_M_ZONDAOYAJI,{
	if (kain_ticket == 4) {
		mes("[Kain Himere]");
		mes("Ah...");
		mes("Here it is!");
		next();
		mes("[Kain Himere]");
		mes("A few days ago, a customer");
		mes("from Einbroch left this on the");
		mes("Airship. He called and let us");
		mes("know that he can't come back");
		mes("to get it, but he is staying");
		mes("over at the Einbroch Hotel.");
		next();
		mes("[Kain Himere]");
		mes("I know it's a strange");
		mes("favor to ask, but would");
		mes("you deliver this to Defru");
		mes("Ark at the Einbroch Hotel?");
		mes("Of course, I'll repay you");
		mes("upon your return.");
		next();
		kain_ticket = 5;
		setquest(2079);
		mes("^3355FFKain Himere has");
		mes("given you a small box.^000000");
		close();
	}
	mes("[Kain Himere]");
	mes("Welcome to the Airship~");
	mes("If you have questions or");
	mes("need any assistance, please");
	mes("don't hesitate to ask me or");
	mes("any one of the other crewmen.");
	next();
	if (kain_ticket == 0) {
		switch (select("About the Airship...", "Leave a Comment")) {
		case 1:
			kain_ticket = 1;
			mes("[Kain Himere]");
			mes("Is this your first time flying?");
			mes("I understand if you feel nervous. Before I worked here, I used to feel the same way. Still, this");
			mes("Airship is pretty amazing. It's incredible what science can do...");
			next();
			mes("[Kain Himere]");
			mes("I hear from the scholars");
			mes("who developed the Airship");
			mes("technology that just a little");
			mes("piece of the heart of Ymir");
			mes("generates the power for");
			mes("this ship to fly. Incredible...");
			next();
			mes("[Kain Himere]");
			mes("You know, scientific research");
			mes("has made living easier and more");
			mes("comfortable in the Schwaltzvalt");
			mes("Republic, much in the way magic");
			mes("research has changed life in the Rune-Midgarts Kingdom.");
			next();
			select("What else is used for transportation?");
			mes("[Kain Himere]");
			mes("Transportation?");
			mes("Well, there's a train that");
			mes("runs between Einbech and");
			mes("Einbroch. Aside from riding");
			mes("Airship and the Train, there's");
			mes("walking and that's it. Hahaha~");
			close();
		case 2:
			mes("[Kain Himere]");
			mes("You wish to leave");
			mes("a comment about our");
			mes("service? Tell me your");
			mes("message and I'll report");
			mes("it to the higher ups.");
			mes("To cancel, enter '0'.");
			next();
			input(.@comment$);
			if (.@comment$ == "kafra") {
				mes("[Kain Himere]");
				mes("K-Kafra...?");
				mes("Hmm, maybe I better");
				mes("not send this up after all...");
				emotion(e_an);
				close();
			} else if (.@comment$ == "0") {
				mes("[Kain Himere]");
				mes("Ah, well, if you have any");
				mes("helpful criticism about our");
				mes("service, feel free to leave");
				mes("me a comment at any time.");
				close();
			} else {
				mesf("[%s]", strcharinfo(PC_NAME));
				mesf("%s.", .@comment$);
				next();
				mes("[Kain Himere]");
				mes("Hmmmm...");
				mes("I see. Well, I'll");
				mes("send your message");
				mes("to my superiors as");
				mes("soon as possible.");
				mes("Thank you very much.");
				close();
			}
		}
	} else if (kain_ticket == 1) {
		switch (select("About the Airship...", "Make a remark")) {
		case 1:
			kain_ticket = 2;
			mes("[Kain Himere]");
			mes("You want to hear more");
			mes("about the Airship? Hmm,");
			mes("there's not too much that");
			mes("I know, but let me see...");
			next();
			mes("[Kain Himere]");
			mes("Well, it's rumored that this");
			mes("really big corporation runs");
			mes("this Airship. Supposedly,");
			mes("they've got their hands in");
			mes("all sorts of enterprises.");
			next();
			mes("[Kain Himere]");
			mes("Since the Airships are our");
			mes("form of national transportation,");
			mes("the higher-ups must be making");
			mes("a ton of money. It's pretty crazy.");
			close();
		case 2:
			mes("[Kain Himere]");
			mes("You wish to leave");
			mes("a comment about our");
			mes("service? Tell me your");
			mes("message and I'll report");
			mes("it to the higher ups.");
			mes("To cancel, press '0'.");
			next();
			input(.@comment$);
			if (.@comment$ == "kafra") {
				mes("[Kain Himere]");
				mes("K-Kafra...?");
				mes("Hmm, maybe I better");
				mes("not send this up after all...");
				emotion(e_an);
				close();
			} else if (.@comment$ == "0") {
				mes("[Kain Himere]");
				mes("Ah, well, if you have any");
				mes("helpful criticism about our");
				mes("service, feel free to leave");
				mes("me a comment at any time.");
				close();
			} else {
				mesf("[%s]", strcharinfo(PC_NAME));
				mesf("%s.", .@comment$);
				next();
				mes("[Kain Himere]");
				mes("Hmmmm...");
				mes("I see. Well, I'll");
				mes("send your message");
				mes("to my superiors as");
				mes("soon as possible.");
				mes("Thank you very much.");
				close();
			}
		}
	} else if (kain_ticket == 2) {
		select("About the Airship...");
		mes("[Kain Himere]");
		mes("You must really want");
		mes("to know all about the");
		mes("Airship, don't you? I'm");
		mes("sorry, but I don't know");
		mes("much more than what");
		mes("I've already told you.");
		next();
		mes("[Kain Himere]");
		mes("I guess if you'd want to know more, you should study to become a Sage in Juno and do your own Airship research...");
		next();
		mes("[Kain Himere]");
		mes("^666666*Sob...*^000000");
		mes("E-excuse me...");
		mes("^666666*Sniff*^000000");
		next();
		switch (select("What the hell...?", "What's wrong?")) {
		case 1:
			mes("[Kain Himere]");
			mes("I-I'm sorry...");
			mes("That was so");
			mes("unprofessional.");
			mes("H-have a safe trip");
			mes("and th-thank you for");
			mes("using the Airship! ^333333*Sob*^000000");
			close();
		case 2:
			mes("[Kain Himere]");
			mes("I'm sorry, but it's");
			mes("a long story. Plus,");
			mes("you wouldn't understand...");
			next();
			select("I have time for a long story.");
			mes("[Kain Himere]");
			mes("Alright, I might as well get");
			mes("this off my chest. I guess it");
			mes("all started when I was a young");
			mes("man living in Einbech.");
			next();
			mes("[Kain Himere]");
			mes("Those days, I was pretty hot");
			mes("headed and short tempered,");
			mes("but working as a miner used to");
			mes("always bring me a sense of peace. Staking my life with my friends, mining pick in hand. Yeah...");
			next();
			mes("[Kain Himere]");
			mes("It might have been dangerous,");
			mes("but it was good, hard and honest work. You know, the mines that connected to the Einbech lode");
			mes("used to be everything to our little town. But then, things changed...");
			next();
			mes("[Kain Himere]");
			mes("The factories started popping");
			mes("up and all the ores were moved");
			mes("to where the smokestacks never");
			mes("stopped churning. More miners");
			mes("started working in the factories and the mines became lonelier...");
			next();
			mes("[Kain Himere]");
			mes("But I loved working on the");
			mes("land so much, I kept at it");
			mes("until the accident happened.");
			mes("Now I can't use my right arm");
			mes("the way I used to, so I had to");
			mes("quit my job as a miner...");
			next();
			select("I'm sorry to hear that.");
			mes("[Kain Himere]");
			mes("Yeah...");
			mes("I was really devastated");
			mes("when it happened. Those");
			mes("were probably the worst");
			mes("years of my entire life.");
			next();
			mes("[Kain Himere]");
			mes("I couldn't think about");
			mes("life without mining and");
			mes("I just lost all enthusiasm");
			mes("for life. I developed a drinking problem and started shutting out my family. I was so stupid...");
			next();
			mes("[Kain Himere]");
			mes("I still can't believe how");
			mes("supportive my wife was during");
			mes("those days. Even when I was at");
			mes("my lowest, she tried to sooth my sorrow and even took on a job");
			mes("to support me and our daughter.");
			next();
			mes("[Kain Himere]");
			mes("^666666*Sob*^000000 It was only after she");
			mes("died that I realized how much");
			mes("she must have suffered. To make");
			mes("matters worse, I had to leave my daughter behind with a neighbor");
			mes("while I searched for work...");
			next();
			mes("[Kain Himere]");
			mes("I spent years wandering");
			mes("from town to town, living");
			mes("a pretty wild life until I could pick myself up again. And finally, I became an Airship crewman.");
			next();
			mes("[Kain Himere]");
			mes("It's been twenty years");
			mes("since I've lost my family.");
			mes("My daughter is somewhere");
			mes("out there, but I can't even");
			mes("remember her name...");
			next();
			select("Have you tried looking for her?");
			mes("[Kain Himere]");
			mes("I tried going to the house");
			mes("where my neighbor had lived,");
			mes("but they moved out years ago.");
			mes("I really have no clue where she");
			mes("could be. But I don't deserve to see her. I was a horrible father!");
			next();
			mes("[Kain Himere]");
			mes("^666666*Sob*^000000 I'm sorry you");
			mes("had to hear all of that,");
			mes("but I really appreciate that");
			mes("you've listened to me. Now");
			mes("tell me, where are you headed?");
			next();
			switch (select("Einbroch", "Juno")) {
			case 1:
				kain_ticket = 4;
				mesf("[%s]", strcharinfo(PC_NAME));
				mes("I'm heading");
				mes("to Einbroch.");
				next();
				mes("[Kain Himere]");
				mes("Perfect...!");
				mes("If you don't mind,");
				mes("would you do a favor");
				mes("for me? First, let me");
				mes("find that package...");
				close();
			case 2:
				kain_ticket = 3;
				mesf("[%s]", strcharinfo(PC_NAME));
				mes("I'm heading");
				mes("to Juno.");
				next();
				mes("[Kain Himere]");
				mes("Ah, I see...");
				mes("There was something");
				mes("I needed sent to Einbroch.");
				mes("Anyway, have a good trip.");
				mes("Oh, and thanks for listening.");
				close();
			}
		}
	} else if (kain_ticket == 3) {
		mes("[Kain Himere]");
		mes("Oh, how are you?");
		mes("If you don't mind me");
		mes("asking, where are you");
		mes("headed this time?");
		next();
		switch (select("Einbroch", "Juno")) {
		case 1:
			kain_ticket = 4;
			mesf("[%s]", strcharinfo(PC_NAME));
			mes("I'm heading");
			mes("to Einbroch.");
			next();
			mes("[Kain Himere]");
			mes("Perfect...!");
			mes("If you don't mind,");
			mes("would you do a favor");
			mes("for me? First, let me");
			mes("find that package...");
			close();
		case 2:
			mesf("[%s]", strcharinfo(PC_NAME));
			mes("I am heading to Juno.");
			next();
			mes("[Kain Himere]");
			mes("Ah, I see...");
			mes("There was something");
			mes("I needed sent to Einbroch.");
			mes("Anyway, have a good trip.");
			mes("Oh, and thanks for listening.");
			close();
		}
	} else if (kain_ticket > 4 && kain_ticket < 10) {
		mes("[Kain Himere]");
		mes("Oh hello!");
		mes("Things are a little");
		mes("hectic right now, but");
		mes("did you delive-- Oh!");
		mes("Wait, excuse me! Sir--!");
		next();
		mes("^3355FFKain seems too");
		mes("busy to speak to");
		mes("you right now...^000000");
		close();
	} else if (kain_ticket == 10) {
		mes("[Kain Himere]");
		mes("Welcome back");
		mes("to the Airship.");
		mes("So did you deliver");
		mes("that little box safely?");
		next();
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("No, unfortunately.");
		mes("He was away when");
		mes("I got there. Let me give");
		mes("this box back to you.");
		next();
		mes("[Kain Himere]");
		mes("Oh...");
	 	mes("What should I do now?");
		mes("Oh well, sorry for putting");
		mes("you through so much trouble.");
		next();
		switch (select("Casually mention Miner's Song", "Suavely mention Tarsha")) {
		case 1:
			mesf("[%s]", strcharinfo(PC_NAME));
			mes("While we're on the topic");
			mes("of boxes and deliveries,");
			mes("have you ever heard of");
			mes("the ''Miner's Song?''");
			next();
			mes("[Kain Himere]");
			mes("''Miner's Song...''");
			mes("I miss singing that");
			mes("while working the mines.");
			mes("I used to sing it all the time");
			mes("when I was younger, actually.");
			next();
			mes("[Kain Himere]");
			mes("I think I sang it so");
			mes("much, I even got my little");
			mes("daughter to sing it with me~");
			mes("(But what was her name?!)");
			next();
			break;
		case 2:
			mesf("[%s]", strcharinfo(PC_NAME));
			mes("^333333*Cough cough*");
			mes("*Cou--TARSHA--Cough*^000000");
			next();
			mes("[Kain Himere]");
			mes("What the...?");
			mes("Wait. T-Tarsha...");
			mes("Why does it feel like that");
			mes("name means something?");
			next();
			break;
		}
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("You know...");
		mes("I met a little girl in Einbroch");
		mes("who was singing the ''Miner's");
		mes("Song.'' It seems her mother");
		mes("Tarsha had taught it to her.");
		next();
		mes("[Kain Himere]");
		mes("Interesting. But usually,");
		mes("only miners would know ");
		mes("that song. Does this have");
		mes("anything to do with me?");
		next();
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("Well, this little girl's mother, Tarsha, learned the song from");
		mes("her father who might have been");
		mes("a miner. But he mysteriously");
		mes("disappeared years ago...");
		next();
		mes("[Kain Himere]");
		mes("Poor girl...!");
		mes("Her father just");
		mes("left her?! Why,");
		mes("she's just like...");
		next();
		mes("[Kain Himere]");
		mes("Wait...");
		mes("Sweet Christ...");
		mes("The miner who taught");
		mes("Tarsha that song might");
		mes("have been... ^0000FFme^000000.");
		next();
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("Well, for now, we can't");
		mes("be too sure. Do you have");
		mes("anything that might prove");
		mes("you're Tarsha's father?");
		next();
		mes("[Kain Himere]");
		mes("Ehhmmm...");
		mes("Before I left own, I buried");
		mes("some of my stuff underneath");
		mes("a tree in Einbech. I can't exactly remember where, but my wife's");
		mes("journal should be there.");
		next();
		mes("[Kain Himere]");
		mes("Since my wife kept track");
		mes("of everything in her journal,");
		mes("she should have written enough");
		mes("about our daughter for us to know whether or not this Tarsha could be my long lost daughter.");
		next();
		mes("[Kain Himere]");
		mes("Now, I can't really leave");
		mes("the Airship, so would you help");
		mes("me by finding that journal and");
		mes("seeing if Tarsha is really related to me somehow? I'd be grateful");
		mes("if you could do that for me...");
		kain_ticket = 11;
		changequest(2081, 2082);
		close();
	} else if (kain_ticket == 11 || kain_ticket == 12) {
		mes("[Kain Himere]");
		mes("Would you find my wife's");
		mes("journal and see if Tarsha");
		mes("is really my daughter? The");
		mes("journal should be buried");
		mes("underneath a tree in Einbech.");
		close();
	} else if (kain_ticket == 13) {
		mes("^3355FFYou better fulfill Kain's");
		mes("request by finding his wife's");
		mes("journal and confronting Tarsha");
		mes("before you speak to him again.^000000");
		close();
	} else if (kain_ticket == 14) {
		if (countitem(Picture_Letter) > 0) {
			mes("^3355FFYou give his wife's");
			mes("journal to Kain and tell");
			mes("him that you learn that Tarsha");
			mes("is really his daughter and that");
			mes("she is happily married and is");
			mes("an inventor in Einbroch.^000000");
			next();
			mes("^3355FFKain's eyes well");
			mes("with tears and his");
			mes("entire body trembles");
			mes("with unrestrainable joy.");
			next();
			mes("[Kain Himere]");
			mes("She must have");
			mes("had a hard time...");
			mes("But she doesn't");
			mes("hate me at all.");
			next();
			mes("[Kain Himere]");
			mes("Rashelle?");
			mes("Can you see me?");
			mes("Can I really be this");
			mes("happy? I'm so sorry,");
			mes("my love... ^666666*Sob...*^000000");
			next();
			mes("[Kain Himere]");
			mes("Thank you for all of");
			mes("your help, youngster.");
			mes("And please, take this");
			mes("as a token of my gratitude.");
			next();
			mes("[Kain Himere]");
			mes("I know this isn't");
			mes("much, but please");
			mes("understand that it's");
			mes("all I have to give you.");
			mes("God bless you for all");
			mes("you've done for me~");
			close2();
			delitem(Picture_Letter, 1);
			kain_ticket = 15;
			completequest(2084);
			getitem(Free_Flying_Ship_Ticket, 4);
			end;
		} else {
			mes("^3355FFHmmm...");
			mes("It would be better");
			mes("if you approached");
			mes("Kain with the Doodled");
			mes("Letter that you received.^000000");
			close();
		}
	} else if (kain_ticket >= 15) {
		mes("[Kain Himere]");
		mes("Oh, how are you");
		mes("lately, my friend?");
		mes("I've been doing great,");
		mes("especially since you've");
		mes("helped me find my daughter.");
		mes("Enjoy your travels~");
		close();
	}
}

//- Empty Room 201 -
ein_in01,227,279,3	script	#door_ein	HIDDEN_NPC,5,5,{
OnTouch:
	if (kain_ticket == 5) {
		kain_ticket = 6;
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("Excuse me...?");
		next();
		mes("^3355FFNo one's here!^000000");
		next();
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("This must be the room...");
		mes("But where the hell is he?");
		mes("I can't just leave this stuff");
		mes("here if he won't come back.");
		next();
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("Oh well...");
		mes("I guess I can");
		mes("just give this");
		mes("back to Kain");
		mes("on the Airship.");
		next();
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("While I'm in Einbroch,");
		mes("I may as well take a look");
		mes("around here and see if I can");
		mes("find anything interesting. Still, I can't help but think of Kain");
		mes("Himere's long lost daughter... ");
		next();
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("Maybe...");
		mes("Just maybe...");
		mes("I can find some");
		mes("sort of clue about");
		mes("where she is. She might");
		mes("even live here in Einbroch.");
		next();
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("I think I'll do that.");
		mes("Maybe even right this");
		mes("minute. Treat it like");
		mes("sort of quest or something.");
		mes("Yeah, that could work.");
		close();
	}
}

//- Elle Cherno -
ein_in01,261,241,3	script	Elle Cherno	4_F_KID2,3,3,{
OnTouch:
	mes("[Elle Cherno]");
	mes("Let's get to work");
	mes("fear-less comraaades~!");
	mes("Do our best! Nothing");
	mes("can stop us, lads~!");
	next();
	if (kain_ticket == 6) {
		switch (select("Hello!", "What are you singing?")) {
		case 1:
			mes("[Elle Cherno]");
			mes("Let's get to work");
			mes("fear-less comraaades~!");
			mes("Do our best! Nothing");
			mes("can stop us, lads~!");
			next();
			mes("[Elle Cherno]");
			mes("I like this song lots!");
			mes("Especially when I yell out");
			mes("''comrades!'' COMRADES!");
			close();
		case 2:
			kain_ticket = 7;
			mes("[Elle Cherno]");
			mes("This...?");
			mes("It's the ''Miner's Song!''");
			mes("My mommy taught it to me");
			mes("and she sings it a lot. Daddy");
			mes("says it's too noisy, though.");
			next();
			mes("[Elle Cherno]");
			mes("Mmm, when my mommy sings");
			mes("this song, sometimes she looks");
			mes("a little sad. Jus' today she sang it a little and looked like she was gonna cry. ^666666*Gasp!*^000000 Wait, do you");
			mes("think maybe Mommy's sick?");
			next();
			mes("[Elle Cherno]");
			mes("Oh no, oh no...");
			mes("Hey, will you go see");
			mes("if my mommy's okay for me?");
			mes("Please? Our house is behind");
			mes("the Hotel, so tell me if she's");
			mes("not feeling good, promise?");
			changequest(2079, 2080);
			close();
		}
	} else if (kain_ticket == 7) {
		mes("[Elle Cherno]");
		mes("Our house is right");
		mes("behind of the Hotel.");
		mes("Will you go there and");
		mes("see my mommy for me,");
		mes("please? I'm worried...");
		close();
	} else if (kain_ticket == 13) {
		if (checkweight(Knife, 1) == 0) {
			mes("[Elle Cherno]");
			mes("Hey! I have something");
			mes("to give you, but you have");
			mes("tooooo much stuff! Hey,");
			mes("come back later so I can");
			mes("give it to you, okay?");
			close();
		} else {
			mes("[Elle Cherno]");
			mes("You saw my grandpa?");
			mes("You're his friend, right?");
			mes("A-are you gonna see");
			mes("him later? 'Cuz... cuz...");
			next();
			mes("[Elle Cherno]");
			mes("I made this for him.");
			mes("I don't know how to write,");
			mes("but I made Grampa a letter");
			mes("as best as I can. Will you");
			mes("promise to give this to him");
			mes("for me, pleeeeeease?");
			next();
			mes("^3355FFElle put a big");
			mes("doodled message");
			mes("into your hands.^000000");
			close2();
			kain_ticket = 14;
			changequest(2083, 2084);
			getitem(Picture_Letter, 1);
			end;
		}
	}
	close();
}

//- Theo Cherno -
ein_in01,123,94,1	script	Theo Cherno	4_M_REPAIR,{
	if (kain_ticket == 7) {
		callfunc("F_Cherno", true);
		kain_ticket = 8;
		close();
	} else if (kain_ticket > 7 && kain_ticket < 10) {
		mes("[Theo Cherno]");
		mes("You're very kind,");
		mes("adventurer. There");
		mes("should be more people");
		mes("in the world like you.");
		close();
	} else if (kain_ticket > 9 && kain_ticket < 13) {
		mes("[Theo Cherno]");
		mes("Are you sure");
		mes("that you can find");
		mes("Tarsha's father? Oh,");
		mes("you must be a godsend!");
		close();
	} else if (kain_ticket > 12) {
		emotion(e_heh);
		mes("[Theo Cherno]");
		mes("I'm so happy");
		mes("for my wife. I....");
		mes("I don't know how");
		mes("I can thank you...");
		close();
	} else {
		mes("[Theo Cherno]");
		mes("Hmm...");
		mes("Can we talk later?");
		mes("I'm pretty busy trying");
		mes("to fix this thing at");
		mes("the moment.");
		close();
	}
}

//- Tarsha Cherno -
ein_in01,125,99,3	script	Tarsha Cherno	4_F_EINWOMAN,{
	if (kain_ticket == 7) {
		callfunc("F_Cherno");
		kain_ticket = 8;
		close();
	} else if (kain_ticket == 8) {
		mes("[Tarsha Cherno]");
		mes("Although most of these");
		mes("contraptions aren't worth");
		mes("showing off, we've put a lot");
		mes("of work in inventing these");
		mes("machines. So, of course,");
		mes("they give us pride~");
		next();
		mes("[Tarsha Cherno]");
		mes("Maybe all these little");
		mes("projects might not be");
		mes("that impressive, but I like");
		mes("to think of them as stepping");
		mes("stones to future achievements.");
		close();
	} else if (kain_ticket == 9) {
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("Excuse me, ma'am,");
		mes("but you have a scar");
		mes("on your shoulder. Is");
		mes("that from an accident?");
		next();
		mes("[Tarsha Cherno]");
		mes("Oh, that's an old");
		mes("injury that happened");
		mes("years ago. I suppose");
		mes("I was quite the trouble");
		mes("maker to the people");
		mes("who raised me...");
		next();
		mes("[Tarsha Cherno]");
		mes("You see, I lost my parents");
		mes("when I was very young. It");
		mes("was only later when I realized");
		mes("I was raised by foster parents.");
		mes("I learned that my real mother");
		mes("died a long time ago...");
		next();
		mes("[Tarsha Cherno]");
		mes("As for my father, no");
		mes("one knows if he's dead");
		mes("or alive. I tried my best");
		mes("to my foster parents happy,");
		mes("but I ended up being too rebellious and giving them grief.");
		next();
		mes("[Tarsha Cherno]");
		mes("I finally left home and");
		mes("studied mechanics. I met");
		mes("my husband in school and");
		mes("it was the greatest thing that");
		mes("ever happened to me~");
		emotion(e_lv, false, "Theo Cherno");
		next();
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("By the way, I heard");
		mes("your daughter singing");
		mes("some sort of Miner's Song.");
		mes("Did you teach her that?");
		emotion(e_omg, false, "Tarsha Cherno");
		emotion(e_omg, false, "Theo Cherno");
		next();
		mes("[Theo Cherno]");
		mes("I don't understand");
		mes("why little Elle likes");
		mes("such a rowdy, man song.");
		mes("This is all your fault, Tarsha!");
		emotion(e_ag, false, "Theo Cherno");
		next();
		emotion(e_heh, false, "Tarsha Cherno");
		mes("[Tarsha Cherno]");
		mes("Oh~hohohoho~");
		mes("I was too young to");
		mes("remember it clearly,");
		mes("but I'm sure my real");
		mes("father loved that song.");
		next();
		mes("[Tarsha Cherno]");
		mes("I barely recall that");
		mes("he used to sing it while");
		mes("cleaning our old house.");
		mes("Yes, I don't remember what");
		mes("he looked like, but he must");
		mes("have been a miner at one time.");
		next();
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("A miner...?");
		mes("(Wait, that crewman,");
		mes("Kain Himere! He was");
		mes("a miner who lost his");
		mes("daughter! Just maybe...)");
		next();
		emotion(e_gasp);
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("...!");
		mes("Tarsha...");
		mes("Your father");
		mes("may still be alive!");
		next();
		mes("[Tarsha Cherno]");
		mes("...What?");
		next();
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("I've got to go check");
		mes("something now, but");
		mes("hopefully I'll be back");
		mes("soon with good news!");
		kain_ticket = 10;
		changequest(2080, 2081);
		close();
	} else if (kain_ticket == 10 || kain_ticket == 11) {
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("Tarsha, I know someone");
		mes("who might be your father!");
		mes("Just wait for me and hopefully");
		mes("I'll bring back good news soon!");
		close();
	} else if (kain_ticket == 12) {
		mes("[Tarsha Cherno]");
		mes("Oh, welcome back~");
		mes("So were you able to");
		mes("bring back good news?");
		emotion(e_heh, false, "Tarsha Cherno");
		next();
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("Why, yes.");
		mes("Speaking of which,");
		mes("allow me to... check");
		mes("something first...");
		next();
		switch (select("Check her neck.", "Check her hands.", "Check her legs.", "Check her forehead.")) {
		case 1:
			mes("^3355FFUh oh...");
			mes("Nothing's there!^000000");
			next();
			mes("[Theo Cherno]");
			mes("H-how rude!");
			mes("Touching another");
			mes("man's wife...?!");
			next();
			specialeffect(EF_PIERCE, AREA, playerattached());
			percentheal(-10, 0);
			close();
		case 2:
			mes("^3355FFYou found");
			mes("a burn mark");
			mes("on her hand.^000000");
			next();
			mesf("[%s]", strcharinfo(PC_NAME));
			mes("That's it!");
			mes("Tarsha, your");
			mes("father's name is");
			mes("Kain Himere and he's");
			mes("working on the Airship");
			mes("as one of the crewmen.");
			next();
			mesf("[%s]", strcharinfo(PC_NAME));
			mes("He misses you");
			mes("a lot and hopes");
			mes("that you can forgive");
			mes("him... Someday.");
			next();
			mes("[Tarsha Cherno]");
			mes("Are...");
			mes("Are you serious?");
			mes("My father's alive!");
			mes("Oh thank god! Thank");
			mes("you so much, adventurer!");
			next();
			mes("[Tarsha Cherno]");
			mes("...........");
			mes("So that means, my");
			mes("real name would be");
			mes("^3131FFTarsha Himere Cherno^000000.");
			next();
			mes("[Tarsha Cherno]");
			mes("Oh, you're a godsend!");
			mes("I'll never forget what you've");
			mes("done for me! I must repay");
			mes("you somehow! But all I know");
			mes("is mechanical engineering...");
			next();
			mes("[Tarsha Cherno]");
			mes("Oh, I know~");
			mes("If you have any");
			mes("^3131FFbroken equipment^000000,");
			mes("I can fix it with this");
			mes("Expert Repairman. It's");
			mes("one of our best inventions!");
			next();
			mes("[Tarsha Cherno]");
			mes("I must go and see");
			mes("my real father soon!");
			mes("I've missed him for years!");
			mes("Thank you again for all");
			mes("you've done for my family~");
			next();
			mes("[Tarsha Cherno]");
			mes("Oh, and before you");
			mes("go, would you go see");
			mes("Elle again? She wanted to");
			mes("talk to you for some reason.");
			kain_ticket = 13;
			changequest(2083, 2084);
			close();
		case 3:
			mes("^3355FFUh oh...");
			mes("Nothing's there!^000000");
			next();
			mes("[Theo Cherno]");
			mes("H-how rude!");
			mes("Touching another");
			mes("man's wife...?!");
			next();
			specialeffect(EF_PIERCE, AREA, playerattached());
			percentheal(-20, 0);
			close();
		case 4:
			mes("^3355FFUh oh...");
			mes("Nothing's there!^000000");
			next();
			mes("[Theo Cherno]");
			mes("H-how rude!");
			mes("Touching another");
			mes("man's wife...?!");
			next();
			specialeffect(EF_PIERCE, AREA, playerattached());
			percentheal(-10, 0);
			close();
		}
	} else if (kain_ticket > 12) {
		mes("[Tarsha Cherno]");
		mes("I've been feeling great");
		mes("after all you've done for");
		mes("us. Once again, I'd like to");
		mes("thank you, kind adventurer.");
		close();
	} else {
		mes("[Tarsha Cherno]");
		mes("I'm sorry, but");
		mes("we're pretty busy.");
		mes("Please excuse us~");
		close();
	}
}

ein_in01,127,94,3	script	#exp_ein	HIDDEN_NPC,{ end; }

function	script	F_Cherno	{
	specialeffect(EF_COMBOATTACK1, AREA, getnpcid(0, "#exp_ein"));
	mes("^33355F*Bang*^000000");
	next();
	specialeffect(EF_COMBOATTACK2, AREA, getnpcid(0, "#exp_ein"));
	mes("^3355FF*Bang*^000000");
	if (getarg(0) == true) {
		mes("^3355FF*Beeeeeep*^000000");
	}
	next();
	specialeffect(EF_COMBOATTACK3, AREA, getnpcid(0, "#exp_ein"));
	mes("^3355FF*Bang*^000000");
	if (getarg(0) == true) {
		mes("^3355FF*Beeeeeep*^000000");
		mes("^3355FF*Boop Boop Boop*^000000");
	}
	next();
	specialeffect(EF_POISONATTACK, AREA, getnpcid(0, "#exp_ein"));
	mes("^33355F*Crash!*^000000");
	mes(".....");
	emotion(e_swt, false, "Theo Cherno");
	emotion(e_swt, false, "Tarsha Cherno");
	next();
	mes("[Theo Cherno]");
	mes("Honey...");
	mes("I think there's");
	mes("a critical structural");
	mes("problem with the joint.");
	next();
	mes("[Tarsha Cherno]");
	mes("They must not");
	mes("be connected right.");
	mes("Maybe if we... Hmmm.");
	next();
	mes("[Theo Cherno]");
	mes("Well, let's call");
	mes("it a day and finish");
	mes("this tomorrow, yeah?");
	next();
	emotion(e_what, false, "Tarsha Cherno");
	mes("[Tarsha Cherno]");
	mes("Oh~");
	mes("I didn't know we");
	mes("had a guest. Hello,");
	mes("how are you doing?");
	mes("Are you interested in");
	mes("any of our inventions?");
	next();
	switch (select("Nothing.", "Your daughter asked me to visit you.")) {
	case 1:
		mes("[Theo Cherno]");
		mes("Oh yes, my wife are");
		mes("I are keeping ourselves");
		mes("busy by conducting research.");
		mes("We're trying to invent new");
		mes("things for better living.");
		mes("It's what we do...");
		close();
	case 2:
		emotion(e_heh, false, "Tarsha Cherno");
		emotion(e_heh, false, "Theo Cherno");
		mes("[Tarsha Cherno]");
		mes("Hahaha, Elle?");
		mes("Why would our");
		mes("daughter send");
		mes("you to visit us?");
		next();
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("Well, uh...");
		mes("She wanted me to");
		mes("check if her mom");
		mes("was sick or sad");
		mes("...Or something?");
		next();
		emotion(e_swt2, false, "Tarsha Cherno");
		mes("[Tarsha Cherno]");
		mes("Oh my god...!");
		mes("What is she thinking?");
		mes("I apologize for troubling");
		mes("you over this kind of silly");
		mes("mistake, adventurer!");
		next();
		mes("[Theo Cherno]");
		mes("But wait, darling.");
		mes("I agree that sometimes");
		mes("you look like the loneliest");
		mes("person in the world, gazing");
		mes("out that window with those");
		mes("impossibly wistful eyes.");
		next();
		mes("[Tarsha Cherno]");
		mes("Oh, I must be");
		mes("making my family");
		mes("very anxious. But");
		mes("don't you worry, love.");
		mes("I'm very happy with");
		mes("you and Elle.");
		next();
		mes("[Tarsha Cherno]");
		mes("And...");
		mes("Kind adventurer,");
		mes("may I ask your name?");
		next();
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("I am called,");
		mesf("%s.", strcharinfo(PC_NAME));
		emotion(e_heh);
		next();
		mes("[Tarsha Cherno]");
		mesf("%s,", strcharinfo(PC_NAME));
		mes("I appreciate your");
		mes("concern for us. Would");
		mes("you stay for a cup of tea?");
		next();
		mes("[Tarsha Cherno]");
		mes("Now, please pardon the");
		mes("mess. My husband and I are");
		mes("mechanical engineers focused");
		mes("on creating machines that would");
		mes("reduce the risk of mining ores.");
		next();
		mes("[Tarsha Cherno]");
		mes("Since we work at home, we");
		mes("can't avoid having machine");
		mes("parts lying here and there");
		mes("sometimes. In any case, we're");
		mes("hoping we create a machine that could make miners' lives safer...");
		next();
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("Ah...");
		mes("So that's why");
		mes("there's so many");
		mes("interesting things");
		mes("in your house...");
		next();
		mes("^3355FFYou begin to");
		mes("take a look around");
		mes("the Cherno household.^000000");
		return;
	}
}

//- Unidentified Machine -
ein_in01,122,103,5	script	Unidentified Machine#ein	HIDDEN_NPC,{
	mes("^3355FFIt's...");
	mes("It's a really");
	mes("strange looking");
	mes("machine. Does it");
	mes("even do anything?^000000");
	close();
}

//- Mirror -
ein_in01,121,99,3	script	Mirror#ein	HIDDEN_NPC,{
	if (kain_ticket == 8) {
		mes("^3355FFIt's a mirror.");
		mes("So, of course the");
		mes("first thing you'll");
		mes("see is yourself.");
		next();
		if (Sex == SEX_MALE) {
			switch (rand(1, 5)) {
			case 1:
				mesf("[%s]", strcharinfo(PC_NAME));
				mes("Man...");
				mes("I didn't know");
				mes("I was so good");
				mes("looking! Ooh yah~");
				break;
			case 2:
				mesf("[%s]", strcharinfo(PC_NAME));
				mes("Whoa...");
				mes("So that's why the");
				mes("ladies keep looking");
				mes("at me. I'm a walking");
				mes("free gun show!");
				break;
			case 3:
				mesf("[%s]", strcharinfo(PC_NAME));
				mes("It's a shame I can't job");
				mes("change to Male Model.");
				mes("Clearly, I'd be like, Job");
				mes("Level 87 or something.");
				mes("Man, I'm beautiful...");
				break;
			case 4:
				mesf("[%s]", strcharinfo(PC_NAME));
				mes("This is my reflection?!");
				mes("No one can be this good");
				mes("looking, not without special");
				mes("effects! I mean, it's not");
				mes("fair to everyone else...");
				break;
			case 5:
				mesf("[%s]", strcharinfo(PC_NAME));
				mes("Oh wow...");
				mes("I look pretty good.");
				mes("No wait. Really, really");
				mes("good. So this must be");
				mes("why I get such great");
				mes("service at restaurants...");
				break;
			}
		} else {
			switch (rand(1, 5)) {
			case 1:
				mesf("[%s]", strcharinfo(PC_NAME));
				mes("Oh. Wow.");
				mes("I never realized...");
				mes("Everything is in");
				mes("perfect proportion!");
				mes("No wonder people");
				mes("want to party with me~");
				break;
			case 2:
				mesf("[%s]", strcharinfo(PC_NAME));
				mes("Oh my gosh~");
				mes("How can I look this");
				mes("good without any makeup?");
				mes("I-It isn't fair to all the other");
				mes("girls... Wow, is this really me?");
				break;
			case 3:
				mesf("[%s]", strcharinfo(PC_NAME));
				mes("Am I going crazy?");
				mes("Is that girl in the");
				mes("mirror really me...?");
				mes("How did I not realize");
				mes("how gorgeous I look?");
				break;
			case 4:
				mesf("[%s]", strcharinfo(PC_NAME));
				mes("So...");
				mes("What did you do with");
				mes("this mirror? Because I'm");
				mes("looking at my reflection");
				mes("and I can't seem to find");
				mes("any flaws with my figure...");
				next();
				emotion(e_swt2, false, "Tarsha Cherno");
				mes("[Tarsha Cherno]");
				mes("Actually...");
				mes("That's not one");
				mes("of our inventions.");
				mes("It's just a normal mirror...");
				next();
				mesf("[%s]", strcharinfo(PC_NAME));
				mes("Well now...!");
				mes("Are you sure?");
				mes("Because my face looks");
				mes("freakin' immaculate! And");
				mes("it's like, I'm almost too sexy!");
				break;
			case 5:
				mesf("[%s]", strcharinfo(PC_NAME));
				mes("Oh wow...");
				mes("I look pretty good.");
				mes("No wait. Really, really");
				mes("good. So this must be");
				mes("why I get such great");
				mes("service at restaurants...");
				break;
			}
		}
		next();
		mes("^3355FFAfter enjoying that");
		mes("little epiphany, you");
		mes("see a reflection of");
		mes("Tarsha's neck as you");
		mes("set the mirror back down.^000000");
		next();
		mes("^3355FFAs you take a closer");
		mes("look, you find that there's");
		mes("a strange mark around her");
		mes("neck. What ever could it mean?^000000");
		kain_ticket = 9;
		close();
	}
}

//- Tree from Einbech -
einbech,45,113,5	script	Tree#ein-1	HIDDEN_NPC,{
	if (kain_ticket == 11) {
		mes("^3355FFYou crouch down");
		mes("under the tree and");
		mes("begin digging into");
		mes("the ground.^000000");
		next();
		mes("...");
		mes("......");
		next();
		mes("...");
		mes("......");
		mes(".........");
		next();
		.@find_diary = rand(1, 100);
		if (.@find_diary > 10) {
			mes("^3355ffUnfortunately,");
			mes("you weren't able");
			mes("to find anything.^000000");
			close();
		} else {
			mes("^3355FFYou have found a journal");
			mes("among some other articles");
			mes("that have been buried by Kain.");
			mes("You open the journal and begin");
			mes("to read what's written inside.^000000");
			next();
			callsub L_Diary;
			next();
			mes("...");
			mes("......");
			next();
			mes("^3355FFThat was the last entry");
			mes("in the journal. You picked");
			mes("it up so that you can bring");
			mes("it over to Tarsha.^000000");
			kain_ticket = 12;
			changequest(2082, 2083);
			close();
		}
	} else if (kain_ticket == 12) {
		mes("^3355FFYou open");
		mes("the journal");
		mes("and begin to read...^000000");
		next();
		callsub(L_Diary);
		close();
	}

L_Diary:
	mes("...");
	mes("......");
	next();
	mes("<Date : OX OX>");
	mes("^856363I'm sooo happy");
	mes("to be with Kain.");
	mes("He's such an honest,");
	mes("sincere man, even if");
	mes("he is quiet sometimes.");
	next();
	mes("^856363Although he's a very");
	mes("good husband to me,");
	mes("I'm not so good at being");
	mes("a housewife. But I'll do");
	mes("my very best for us both.");
	next();
	mes("<Date : OX OX>");
	mes("^856363I fell asleep while");
	mes("fixing dinner and burned");
	mes("all the food. How can I be");
	mes("so careless? But Kain ate");
	mes("every bite, even if he had");
	mes("to pretend that he liked it.^000000");
	next();
	mes("<Date : OX OX>");
	mes("^856363Kain and I will be having");
	mes("a child soon! I'm so happy,");
	mes("but I'm also a little worried");
	mes("sometimes. Kain is all smiles");
	mes("though, and he gives me relief.^000000");
	next();
	mes("<Date : OX OX>");
	mes("^856363More people have been");
	mes("leaving the mines to work");
	mes("for the new factories, many");
	mes("of them Kain's friends. I think");
	mes("Kain's pride was pretty hurt.");
	mes("I wonder how I can help him?^000000");
	next();
	mes("<Date : OX OX>");
	mes("^856363Kain and I are now the");
	mes("proud parents of a beautiful");
	mes("baby girl. We named her ^000000Tarsha^856363");
	mes("and she has her father's eyes.");
	mes("I'm going to be the best mother");
	mes("that I can possibly be for her.");
	next();
	mes("<Date : OX OX>");
	mes("^856363Tarsha called me");
	mes("''Mommy'' for the first");
	mes("time! It's a miracle!");
	mes("I want nothing else in");
	mes("the world but for her to");
	mes("be happy and healthy.^000000");
	next();
	mes("<Date : OX OX>");
	mes("^856363Kain got into an accident");
	mes("at the mine. While they were");
	mes("digging ores, toxic gas was");
	mes("released somehow. It wasn't");
	mes("lethal, but Kain's arm has");
	mes("been partly paralyzed...^000000");
	next();
	mes("^856363When the doctor said that");
	mes("it may even affect his memories");
	mes("later, he became so depressed.");
	mes("I tried to make him feel better");
	mes("by making his favorite soup.");
	mes("He smiled, but I could tell...^000000");
	next();
	mes("^856363I could tell he's");
	mes("not alright with this.");
	mes("I hope he feels better");
	mes("soon. His despair is");
	mes("at least as great as his");
	mes("passion for his job.^000000");
	next();
	mes("...");
	mes("......");
	next();
	mes("<Date : OX OX>");
	mes("^856363Kain's drinking is");
	mes("getting worse. He comes");
	mes("home too often screaming");
	mes("and yelling. There's too");
	mes("much anger in him and he's");
	mes("not the same anymore...");
	next();
	mes("...");
	mes("......");
	next();
	mes("<Date : OX OX>");
	mes("^856363Tarsha got her hand");
	mes("scalded from boiling");
	mes("water while playing in");
	mes("the kitchen. Although she");
	mes("was treated, she'll always");
	mes("have that ^000000burn mark^856363.^000000");
	next();
	mes("^856363After we got home from");
	mes("the doctor's, Tarsha laughed");
	mes("and played with her doll as if");
	mes("nothing ever happened. But for");
	mes("some reason, I couldn't stop");
	mes("myself from crying...^000000");
	next();
	mes("...");
	mes("......");
	next();
	mes("<Date : OX OX>");
	mes("^856363Kain comes home less");
	mes("nowadays. I've had to");
	mes("start working in the store");
	mes("after we spent all of our");
	mes("savings. It's tough working");
	mes("and taking care of the family.");
	next();
	mes("^856363Still, it's all worth");
	mes("it to see Tarsha's smile.");
	mes("But I can never stop worrying");
	mes("about my poor, dear Kain...");
	next();
	mes("...");
	mes("......");
	next();
	mes("<Date : OX OX>");
	mes("^856363Everyday, I feel weaker");
	mes("and weaker, as if I die");
	mes("just a little more each day.");
	mes("I wanted to tell Kain about");
	mes("what the doctor said, but he's");
	mes("not ready for this news yet...^000000");
	next();
	mes("^856363Lately, Tarsha cries");
	mes("a lot. My poor baby loves");
	mes("her father, but he's always");
	mes("so distant. But sometimes,");
	mes("I see him sadly smile for");
	mes("Tarsha, if only for a moment.^000000");
	return;
}
einbech,36,100,3	duplicate(Tree#ein-1)	Tree#ein-2	HIDDEN_NPC
einbech,44,90,3	duplicate(Tree#ein-1)	Tree#ein-3	HIDDEN_NPC
einbech,53,94,3	duplicate(Tree#ein-1)	Tree#ein-4	HIDDEN_NPC

//- Expert Repairman -
ein_in01,117,80,3	script	Unidentified Machine#as	HIDDEN_NPC,{//Official hidden name "#ein"
	if (kain_ticket > 12) {
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("This is the");
		mes("^FF0000Expert Repairman^000000?!");
		mes("It looks like it");
		mes("needs repairs itself...");
		next();
		if (select("Fix an Item", "Cancel.") == 2) {
			close();
		}
		.@mugi = getbrokencount();
		if (.@mugi == 0) {
			mes("[Expert Repairman]");
			mes("*Beep-*");
			mes("You have");
			mes("nothing to fix.");
			close();
		}
		mes("*Beep-*");
		mes("You have a total");
		mesf("of %d damaged items.", .@mugi);
		mes("Shall I repair them?");
		next();
		if (select("Yes", "No") == 2) {
			close();
		}
		if (.@mugi == getbrokencount()) {
			for (.@i = 1; .@i < .@mugi; ++.@i)
				repair(.@i);
			next();
			mes("[Expert Repairman]");
			mes("*Beep-*");
			mes("Repair complete.");
			close();
		} else {
			mes("*Beep-*");
			mes("Please check");
			mes("your items again.");
			close();
		}
	} else {
		mes("^3355FFIt's some sort of");
		mes("strange machine.");
		mes("Its function and purpose");
		mes("is completely undiscernable.^000000");
		close();
	}
}

//== "How Does The Airship Work" Quest :: lght_air & lght_ymir =

//- Monsters Attack :: lght_air -
airplane_01,1,1,0	script	Airship#airplane02	FAKE_NPC,{
	end;
OnEnable:
	initnpctimer();
	end;
OnTimer25000:
	mapannounce("airplane_01", _("We are heading to Izlude."), bc_map, C_LIME);
	end;
OnTimer30000:
	mapannounce("airplane_01", _("Captain: Attention, all passengers."), bc_map, C_LIME);
	end;
OnTimer34000:
	mapannounce("airplane_01", _("Captain: We are being approached by a group of unidentified creatures."), bc_map, C_LIME);
	end;
OnTimer38000:
	mapannounce("airplane_01", _("Captain: All passengers on deck, please find shelter inside the ship!"), bc_map, C_LIME);
	hideonnpc("Airship Staff#airplane01");
	end;
OnTimer48000:
	monster("airplane_01", 245, 57, _("Gremlin"), GREMLIN, 1, "Airship#airplane02::OnMyMobDead");
	monster("airplane_01", 247, 59, _("Gremlin"), GREMLIN, 1, "Airship#airplane02::OnMyMobDead");
	monster("airplane_01", 249, 52, _("Gremlin"), GREMLIN, 1, "Airship#airplane02::OnMyMobDead");
	monster("airplane_01", 243, 62, _("Gremlin"), GREMLIN, 1, "Airship#airplane02::OnMyMobDead");
	monster("airplane_01", 239, 52, _("Beholder"), BEHOLDER, 1, "Airship#airplane02::OnMyMobDead");
	monster("airplane_01", 234, 56, _("Beholder"), BEHOLDER, 1, "Airship#airplane02::OnMyMobDead");
	monster("airplane_01", 227, 49, _("Beholder"), BEHOLDER, 1, "Airship#airplane02::OnMyMobDead");
	monster("airplane_01", 233, 41, _("Beholder"), BEHOLDER, 1, "Airship#airplane02::OnMyMobDead");
	switch (rand(1, 5)) {
	case 1:
		monster("airplane_01", 251, 47, _("Drainliar"), DRAINLIAR, 1, "Airship#airplane02::OnMyMobDead");
		break;
	case 2:
		monster("airplane_01", 251, 47, _("Rotar Zairo"), ROTAR_ZAIRO, 1, "Airship#airplane02::OnMyMobDead");
		break;
	case 3:
		monster("airplane_01", 251, 47, _("Farmiliar"), FARMILIAR, 1, "Airship#airplane02::OnMyMobDead");
		break;
	case 4:
		monster("airplane_01", 251, 47, _("Picky"), PICKY, 1, "Airship#airplane02::OnMyMobDead");
		break;
	case 5:
		monster("airplane_01", 251, 47, _("Steel Chonchon"), STEEL_CHONCHON, 1, "Airship#airplane02::OnMyMobDead");
		break;
	}
	switch (rand(1, 5)) {
	case 1:
		monster("airplane_01", 245, 53, _("Drainliar"), DRAINLIAR, 1, "Airship#airplane02::OnMyMobDead");
		break;
	case 2:
		monster("airplane_01", 245, 53, _("Rotar Zairo"), ROTAR_ZAIRO, 1, "Airship#airplane02::OnMyMobDead");
		break;
	case 3:
		monster("airplane_01", 245, 53, _("Farmiliar"), FARMILIAR, 1, "Airship#airplane02::OnMyMobDead");
		break;
	case 4:
		monster("airplane_01", 245, 53, _("Picky"), PICKY, 1, "Airship#airplane02::OnMyMobDead");
		break;
	case 5:
		monster("airplane_01", 245, 53, _("Steel Chonchon"), STEEL_CHONCHON, 1, "Airship#airplane02::OnMyMobDead");
		break;
	}
	switch (rand(1, 5)) {
	case 1:
		monster("airplane_01", 234, 46, _("Drainliar"), DRAINLIAR, 1, "Airship#airplane02::OnMyMobDead");
		break;
	case 2:
		monster("airplane_01", 234, 46, _("Rotar Zairo"), ROTAR_ZAIRO, 1, "Airship#airplane02::OnMyMobDead");
		break;
	case 3:
		monster("airplane_01", 234, 46, _("Farmiliar"), FARMILIAR, 1, "Airship#airplane02::OnMyMobDead");
		break;
	case 4:
		monster("airplane_01", 234, 46, _("Picky"), PICKY, 1, "Airship#airplane02::OnMyMobDead");
		break;
	case 5:
		monster("airplane_01", 234, 46, _("Steel Chonchon"), STEEL_CHONCHON, 1, "Airship#airplane02::OnMyMobDead");
		break;
	}
	switch (rand(1, 5)) {
	case 1:
		monster("airplane_01", 233, 58, _("Drainliar"), DRAINLIAR, 1, "Airship#airplane02::OnMyMobDead");
		break;
	case 2:
		monster("airplane_01", 233, 58, _("Rotar Zairo"), ROTAR_ZAIRO, 1, "Airship#airplane02::OnMyMobDead");
		break;
	case 3:
		monster("airplane_01", 233, 58, _("Farmiliar"), FARMILIAR, 1, "Airship#airplane02::OnMyMobDead");
		break;
	case 4:
		monster("airplane_01", 233, 58, _("Picky"), PICKY, 1, "Airship#airplane02::OnMyMobDead");
		break;
	case 5:
		monster("airplane_01", 233, 58, _("Steel Chonchon"), STEEL_CHONCHON, 1, "Airship#airplane02::OnMyMobDead");
		break;
	}
	// it's possible this is an error, but in aegis it stops resetting the random var.
	switch (rand(1, 5)) {
	case 1:
		monster("airplane_01", 243, 60, _("Drainliar"), DRAINLIAR, 1, "Airship#airplane02::OnMyMobDead");
		monster("airplane_01", 228, 54, _("Drainliar"), DRAINLIAR, 1, "Airship#airplane02::OnMyMobDead");
		monster("airplane_01", 232, 41, _("Drainliar"), DRAINLIAR, 1, "Airship#airplane02::OnMyMobDead");
		break;
	case 2:
		monster("airplane_01", 243, 60, _("Rotar Zairo"), ROTAR_ZAIRO, 1, "Airship#airplane02::OnMyMobDead");
		monster("airplane_01", 228, 54, _("Rotar Zairo"), ROTAR_ZAIRO, 1, "Airship#airplane02::OnMyMobDead");
		monster("airplane_01", 232, 41, _("Rotar Zairo"), ROTAR_ZAIRO, 1, "Airship#airplane02::OnMyMobDead");
		break;
	case 3:
		monster("airplane_01", 243, 60, _("Farmiliar"), FARMILIAR, 1, "Airship#airplane02::OnMyMobDead");
		monster("airplane_01", 228, 54, _("Farmiliar"), FARMILIAR, 1, "Airship#airplane02::OnMyMobDead");
		monster("airplane_01", 232, 41, _("Farmiliar"), FARMILIAR, 1, "Airship#airplane02::OnMyMobDead");
		break;
	case 4:
		monster("airplane_01", 243, 60, _("Picky"), PICKY, 1, "Airship#airplane02::OnMyMobDead");
		monster("airplane_01", 228, 54, _("Picky"), PICKY, 1, "Airship#airplane02::OnMyMobDead");
		monster("airplane_01", 232, 41, _("Picky"), PICKY, 1, "Airship#airplane02::OnMyMobDead");
		break;
	case 5:
		monster("airplane_01", 243, 60, _("Steel Chonchon"), STEEL_CHONCHON, 1, "Airship#airplane02::OnMyMobDead");
		monster("airplane_01", 228, 54, _("Steel Chonchon"), STEEL_CHONCHON, 1, "Airship#airplane02::OnMyMobDead");
		monster("airplane_01", 232, 41, _("Steel Chonchon"), STEEL_CHONCHON, 1, "Airship#airplane02::OnMyMobDead");
		break;
	}
	end;
OnTimer48010:
	monster("airplane_01", 238, 56, _("Gremlin"), GREMLIN, 1, "Airship#airplane02::OnCaptainMobDead");
	monster("airplane_01", 239, 56, _("Gremlin"), GREMLIN, 1, "Airship#airplane02::OnCaptainMobDead");
	monster("airplane_01", 240, 50, _("Gremlin"), GREMLIN, 1, "Airship#airplane02::OnCaptainMobDead");
	monster("airplane_01", 241, 56, _("Gremlin"), GREMLIN, 1, "Airship#airplane02::OnCaptainMobDead");
	monster("airplane_01", 247, 51, _("Gremlin"), GREMLIN, 1, "Airship#airplane02::OnCaptainMobDead");
	monster("airplane_01", 237, 44, _("Beholder"), BEHOLDER, 1, "Airship#airplane02::OnCaptainMobDead");
	monster("airplane_01", 233, 54, _("Beholder"), BEHOLDER, 1, "Airship#airplane02::OnCaptainMobDead");
	monster("airplane_01", 237, 62, _("Beholder"), BEHOLDER, 1, "Airship#airplane02::OnCaptainMobDead");
	end;
OnTimer53000:
	mapannounce("airplane_01", _("Attendant: Captain Tarlock, we're in trouble! The monsters are heading to the propellers!"), bc_map, C_LIME);
	end;
OnTimer58000:
	mapannounce("airplane_01", _("Captain Tarlock: What?! I've got to stop them!"), bc_map, 0x70DBDB);
	end;
OnTimer63000:
	hideonnpc("Airship Captain#01");
	hideoffnpc("Airship Captain#02");
	end;
OnTimer68000:
	emotion(e_ag, false, "Airship Captain#02");
	mapannounce("airplane_01", _("Captain Tarlock: You ugly, godforsaken creatures... Get off my ship!"), bc_map, 0x70DBDB);
	end;
OnTimer73000:
	mapannounce("airplane_01", _("*Kzzz...Drrrr...Boom! CRASH!*"), bc_map, C_LIME);
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom6#airplane"));
	end;
OnTimer73500:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom7#airplane"));
	end;
OnTimer74000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom8#airplane"));
	end;
OnTimer74500:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom9#airplane"));
	end;
OnTimer75000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom10#airplane"));
	end;
OnTimer75500:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom6#airplane"));
	end;
OnTimer76000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom7#airplane"));
	end;
OnTimer76500:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom8#airplane"));
	end;
OnTimer77000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom9#airplane"));
	end;
OnTimer77500:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom10#airplane"));
	end;
OnTimer78000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom6#airplane"));
	mapannounce("airplane_01", _("Engineer: Oh no! We've got a problem with the Number One Rear Engine!"), bc_map, C_LIME);
	end;
OnTimer79000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom7#airplane"));
	end;
OnTimer80000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom8#airplane"));
	end;
OnTimer81000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom9#airplane"));
	end;
OnTimer82000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom10#airplane"));
	end;
OnTimer83000:
	mapannounce("airplane_01", _("Pilot: Hurry! Get the women, old people and children somewhere safe first! Hurry!"), bc_map, C_LIME);
	end;
OnTimer84000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom6#airplane"));
	end;
OnTimer85000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom7#airplane"));
	end;
OnTimer86000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom8#airplane"));
	end;
OnTimer87000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom7#airplane"));
	end;
OnTimer88000:
	emotion(e_ag, false, "Airship Captain#02");
	mapannounce("airplane_01", _("Captain Tarlock: You dirty monsters are dealing with this ship's captain..."), bc_map, 0x70DBDB);
	end;
OnTimer93000:
	emotion(e_ag, false, "Airship Captain#02");
	mapannounce("airplane_01", _("Captain Tarlock: I'll protect this ship and my crew with my life!"), bc_map, 0x70DBDB);
	end;
OnTimer98000:
	emotion(e_pif, false, "Airship Captain#02");
	mapannounce("airplane_01", _("Captain Tarlock: Here goes! Special Exodus Joker XIII Doom Rifle!"), bc_map, 0x70DBDB);
	end;
OnTimer103000:
	mapannounce("airplane_01", _("*Bang! Bang Bang! Bang Bang! Bang Bang Bang!*"), bc_map, C_LIME);
	specialeffect(EF_HIT5, AREA, getnpcid(0, "Airship Captain#02"));
	end;
OnTimer103500:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom1#airplane"));
	specialeffect(EF_HIT5, AREA, getnpcid(0, "Airship Captain#02"));
	end;
OnTimer104000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom2#airplane"));
	specialeffect(EF_HIT5, AREA, getnpcid(0, "Airship Captain#02"));
	end;
OnTimer104500:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom3#airplane"));
	specialeffect(EF_HIT5, AREA, getnpcid(0, "Airship Captain#02"));
	end;
OnTimer105000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom4#airplane"));
	specialeffect(EF_HIT5, AREA, getnpcid(0, "Airship Captain#02"));
	end;
OnTimer105500:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom5#airplane"));
	specialeffect(EF_HIT5, AREA, getnpcid(0, "Airship Captain#02"));
	end;
OnTimer106000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom0#airplane"));
	specialeffect(EF_HIT5, AREA, getnpcid(0, "Airship Captain#02"));
	end;
OnTimer106500:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom1#airplane"));
	specialeffect(EF_HIT5, AREA, getnpcid(0, "Airship Captain#02"));
	end;
OnTimer107000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom2#airplane"));
	specialeffect(EF_HIT5, AREA, getnpcid(0, "Airship Captain#02"));
	end;
OnTimer107500:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom4#airplane"));
	specialeffect(EF_HIT5, AREA, getnpcid(0, "Airship Captain#02"));
	end;
OnTimer108000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom5#airplane"));
	killmonster "airplane_01","Airship#airplane02::OnCaptainMobDead";
	end;
OnTimer113000:
	emotion(e_pif, false, "Airship Captain#02");
	mapannounce("airplane_01", _("Captain Tarlock: Filthy animals! Stop ruining my ship!"), bc_map, 0x70DBDB);
	end;
OnTimer118000:
	mapannounce("airplane_01", _("*Bang! Bang Bang! Bang Bang! Bang Bang Bang!*"), bc_map, C_LIME);
	specialeffect(EF_HIT5, AREA, getnpcid(0, "Airship Captain#02"));
	end;
OnTimer118500:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom6#airplane"));
	specialeffect(EF_HIT5, AREA, getnpcid(0, "Airship Captain#02"));
	end;
OnTimer119000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom7#airplane"));
	specialeffect(EF_HIT5, AREA, getnpcid(0, "Airship Captain#02"));
	end;
OnTimer119500:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom8#airplane"));
	specialeffect(EF_HIT5, AREA, getnpcid(0, "Airship Captain#02"));
	end;
OnTimer120000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom9#airplane"));
	specialeffect(EF_HIT5, AREA, getnpcid(0, "Airship Captain#02"));
	end;
OnTimer120500:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom10#airplane"));
	specialeffect(EF_HIT5, AREA, getnpcid(0, "Airship Captain#02"));
	end;
OnTimer121000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom6#airplane"));
	specialeffect(EF_HIT5, AREA, getnpcid(0, "Airship Captain#02"));
	end;
OnTimer121500:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom7#airplane"));
	specialeffect(EF_HIT5, AREA, getnpcid(0, "Airship Captain#02"));
	end;
OnTimer122000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom8#airplane"));
	specialeffect(EF_HIT5, AREA, getnpcid(0, "Airship Captain#02"));
	end;
OnTimer122500:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom9#airplane"));
	specialeffect(EF_HIT5, AREA, getnpcid(0, "Airship Captain#02"));
	end;
OnTimer123000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom8#airplane"));
	mapannounce("airplane_01", _("*Boom! Boom Boom! Boom Boom! Boom!*"), bc_map, C_LIME);
	end;
OnTimer124000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom9#airplane"));
	end;
OnTimer125000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom10#airplane"));
	end;
OnTimer126000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom6#airplane"));
	end;
OnTimer127000:
	specialeffect(EF_SUI_EXPLOSION, AREA, getnpcid(0, "boom7#airplane"));
	end;
OnTimer128000:
	emotion(e_an, false, "Airship Captain#02");
	mapannounce("airplane_01", _("Captain Tarlock: There's... Too many to handle!"), bc_map, 0x70DBDB);
	end;
OnTimer133000:
	mapannounce("airplane_01", _("Pilot: Captain, sir, the situation is getting critical!"), bc_map, C_LIME);
	end;
OnTimer138000:
	emotion(e_swt, false, "Airship Captain#02");
	mapannounce("airplane_01", _("Captain Tarlock: We'll need all the help we can get!"), bc_map, 0x70DBDB);
	end;
OnTimer143000:
	emotion(e_sry, false, "Airship Captain#02");
	mapannounce("airplane_01", _("Captain Tarlock: All hands and any passenger who can fight! We've got to drive away these monsters!"), bc_map, 0x70DBDB);
	end;
OnTimer148000:
	hideonnpc("Airship Captain#02");
	hideoffnpc("Airship Captain#01");
	end;
OnTimer400000:
	killmonster("airplane_01", "Airship#airplane02::OnMyMobDead");
	end;
OnTimer405000:
	mapannounce("airplane_01", _("Monster threat eliminated. The Airship is now returning to normal operation."), bc_map, C_LIME);
	hideoffnpc("Airship Staff#airplane01");
	end;
OnTimer410000:
	mapannounce("airplane_01", _("We will arrive in Izlude shortly."), bc_map, C_LIME);
	end;
OnTimer420000:
	$@airplanelocation2 = 1;
	donpcevent("#AirshipWarp-3::OnUnhide");
	donpcevent("#AirshipWarp-4::OnUnhide");
	mapannounce("airplane_01", _("Welcome to Izlude. Have a safe trip."), bc_map, C_LIME);
	end;
OnTimer430000:
	mapannounce("airplane_01", _("We are currently in Izlude. The Airship will take off shortly."), bc_map, C_LIME);
	end;
OnTimer440000:
	donpcevent("#AirshipWarp-3::OnHide");
	donpcevent("#AirshipWarp-4::OnHide");
	mapannounce("airplane_01", _("The Airship is now taking off. Our next destination is Juno."), bc_map, 0x70DBDB);
	end;
OnTimer465000:
	mapannounce("airplane_01", _("We are heading to Juno."), bc_map, 0x70DBDB);
	end;
OnTimer490000:
	mapannounce("airplane_01", _("We will arrive in Juno shortly."), bc_map, 0x70DBDB);
	end;
OnTimer500000:
	$@airplanelocation2 = 2;
	donpcevent("#AirshipWarp-3::OnUnhide");
	donpcevent("#AirshipWarp-4::OnUnhide");
	mapannounce("airplane_01", _("Welcome to Juno. Have a safe trip."), bc_map, 0x70DBDB);
	end;
OnTimer510000:
	mapannounce("airplane_01", _("We are currently in Juno. The Airship will leave shortly."), bc_map, 0x70DBDB);
	end;
OnTimer520000:
	donpcevent("#AirshipWarp-3::OnHide");
	donpcevent("#AirshipWarp-4::OnHide");
	mapannounce "airplane_01","The Airship is leaving the ground. Our next destination is Rachel.",bc_map,"0xFF8200";
	end;
OnTimer545000:
	mapannounce "airplane_01","We are heading to Rachel.",bc_map,"0xFF8200";
	end;
OnTimer570000:
	mapannounce "airplane_01","We will arrive in Rachel shortly.",bc_map,"0xFF8200";
	end;
OnTimer580000:
	$@airplanelocation2 = 0;
	donpcevent("#AirshipWarp-3::OnUnhide");
	donpcevent("#AirshipWarp-4::OnUnhide");
	mapannounce "airplane_01","Welcome to Rachel. Have a safe trip.",bc_map,"0xFF8200";
	end;
OnTimer590000:
	mapannounce "airplane_01","We are currently in Rachel. The Airship will take off shortly.",bc_map,"0xFF8200";
	end;
OnTimer600000:
	donpcevent("#AirshipWarp-3::OnHide");
	donpcevent("#AirshipWarp-4::OnHide");
	mapannounce("airplane_01", _("The Airship is now taking off. Our next destination is Izlude."), bc_map, C_LIME);
	stopnpctimer();
	set(getvariableofnpc(.moninv, "International_Airship"), 2);
	donpcevent("International_Airship::OnEnable");
	end;

OnMyMobDead:
OnCaptainMobDead:
	end;
}

airplane_01,246,54,3	script	Airship Captain#02	4_M_REINDEER,{
	cutin("fly_felrock", 2);
	mes("[Tarlock]");
	mes("I am Tarlock,");
	mes("captain of this");
	mes("Airship. Go and");
	mes("fight with the");
	mes("Gremlins!");
	close2();
	cutin("", 255);
	end;

OnInit:
	hideonnpc("Airship Captain#02");
	end;
}

airplane_01,249,50,0	script	boom0#airplane	HIDDEN_WARP_NPC,{ end; }
airplane_01,239,62,0	script	boom1#airplane	HIDDEN_WARP_NPC,{ end; }
airplane_01,244,55,0	script	boom2#airplane	HIDDEN_WARP_NPC,{ end; }
airplane_01,239,50,0	script	boom3#airplane	HIDDEN_WARP_NPC,{ end; }
airplane_01,245,59,0	script	boom4#airplane	HIDDEN_WARP_NPC,{ end; }
airplane_01,245,48,0	script	boom5#airplane	HIDDEN_WARP_NPC,{ end; }
airplane_01,235,39,0	script	boom6#airplane	HIDDEN_WARP_NPC,{ end; }
airplane_01,252,41,0	script	boom7#airplane	HIDDEN_WARP_NPC,{ end; }
airplane_01,252,63,0	script	boom8#airplane	HIDDEN_WARP_NPC,{ end; }
airplane_01,234,65,0	script	boom9#airplane	HIDDEN_WARP_NPC,{ end; }
airplane_01,227,67,0	script	boom10#airplane	HIDDEN_WARP_NPC,{ end; }

//- Captain Tarlock :: lght_air -
airplane_01,238,154,3	script	Airship Captain#01	4_M_REINDEER,{
	cutin("fly_felrock", 2);
	mes("[Tarlock]");
	mes("I am Tarlock,");
	mes("captain of this");
	mes("Airship. Did you");
	mes("have a question?");
	next();
	if (lght_air == 4) {
		.@question$ = _("I handed the letter to Captain Ferlock.");
	} else if (lght_air == 5) {
		.@question$ = _("You finished reading the letter?");
	} else if (lght_air == 6) {
		.@question$ = _("Already finished reading?");
	} else {
		.@question$ = _("How does this Airship fly?");
	}
	switch (select("Y-you're a reindeer?!", .@question$, "No, not really.")) {
	case 1:
		mes("[Tarlock]");
		mes("Hm? Oh, that");
		mes("We reindeer are a proud");
		mes("race who like to travel the");
		mes("world. But that should be");
		mes("obvious if you think of the");
		mes("reindeer working for Claus.");
		next();
		mes("[Tarlock]");
		mes("Well, reindeer or");
		mes("not, I've earned the");
		mes("captaincy of this ship");
		mes("and the loyalty of my crew.");
		mes("We'll do everything we can to");
		mes("make sure your flight is safe.");
		close2();
		cutin("", 255);
		end;
	case 2:
		if (lght_air == 0) {
			mes("[Tarlock]");
			mes("Hahaha! How this");
			mes("Airship flies? Yes, it's");
			mes("quite wonderful, isn't it?");
			mes("Although that's a secret,");
			mes("let me assure you that it's");
			mes("nothing weird or dangerous.");
			lght_air = 1;
			close2();
			cutin("", 255);
			end;
		} else if (lght_air == 1) {
			if (BaseLevel <= 59) {
				mes("[Tarlock]");
				mes("Mm...?");
				mes("Didn't you ask me that");
				mes("before? Well, in any case");
				mes("I apologize, but I'm still not");
				mes("allowed to tell you that secret.");
				close2();
				cutin("", 255);
				end;
			} else {
				mes("[Tarlock]");
				mes("Mm...?");
				mes("Didn't you ask me that");
				mes("before? Are you just curious");
				mes("or did you really want to know?");
				next();
				switch (select("No, not really...", "Yes, I really want to know!")) {
				case 1:
					mes("[Tarlock]");
					mes("Hahahaha~");
					mes("Maybe someday you'll");
					mes("figure out how this Airship");
					mes("is able to stay aloft and");
					mes("fly through the skies.");
					close2();
					cutin("", 255);
					end;
				case 2:
					mes("[Tarlock]");
					mes("In all honestly, the");
					mes("secret to this Airship's");
					mes("flight is something that");
					mes("only captains are authorized");
					mes("to know. So I shouldn't really");
					mes("tell you anything about it.");
					next();
					mes("[Tarlock]");
					mes("But I've never been able");
					mes("to trust upper management");
					mes("so I don't have any loyalty to");
					mes("them. I wouldn't mind telling");
					mes("you that classified info if you");
					mes("do a little favor for me first.");
					next();
					switch (select("Let me think about it.", "Sure.")) {
					case 1:
						mes("[Tarlock]");
						mes("Alright. But don't");
						mes("worry, I'm not going");
						mes("to ask you to do anything");
						mes("that you can't handle. Come");
						mes("back after you decide, alright?");
						close2();
						cutin("", 255);
						end;
					case 2:
						lght_air = 2;
						setquest(8032);
						mes("[Tarlock]");
						mes("Ha-hah! I like you");
						mes("already! Alright, here's");
						mes("the deal. I have a younger");
						mes("brother who I rarely see since");
						mes("he's also an Airship Captain");
						mes("that's always traveling.");
						next();
						mes("[Tarlock]");
						mes("Would you bring this");
						mes("letter to my brother,");
						mes("Ferlock? Also, please");
						mes("make sure that you come");
						mes("back with his reply, alright?");
						mes("Thank you, adventurer.");
						next();
						mes("[Tarlock]");
						mes("Oh, and once you meet");
						mes("my brother, please help");
						mes("him out. He'll explain it");
						mes("once you see him.");
						next();
						mes("^3131FFYou have received");
						mes("Captain Tarlock's letter");
						mes("to deliver to his younger");
						mes("brother, Captain Ferlock.");
						close2();
						cutin("", 255);
						end;
					}
				}
			}
		} else if (lght_air == 4) {
			lght_air = 5;
			changequest(8034, 8035);
			mes("[Tarlock]");
			mes("Oh!");
			mes("And he answer you? Really?!");
			mes("In fact, I wasn't");
			mes("expecting that too much...");
			mes("Please wait a little,");
			mes("I'll read his letter.");
			close2();
			cutin("", 255);
			end;
		} else if (lght_air == 5) {
			lght_air = 6;
			mes("[Tarlock]");
			mes("Um... Ha ha ha~!");
			mes("This guy, he is a real lover!");
			mes("But his true inner man");
			mes("is limited by his duty.");
			mes("What do you think?");
			mes("Hoh hoh hoh.");
			next();
			mes("^3131ffHe continue reading");
			mes("the letter.^000000");
			close2();
			cutin("", 255);
			end;
		} else if (lght_air == 6) {
			mes("[Tarlock]");
			mes("Yes, I finished.");
			mes("Even if I understand him");
			mes("I've a totally different");
			mes("point of view. But both");
			mes("of us are fearless.");
			next();
			mes("[Tarlock]");
			mes("Oh, I almost forgot,");
			mes("I'll teach you what you");
			mes("wanted to know.");
			next();
			mes("[Tarlock]");
			mes("The Airship's secret to float is...");
			mes("The large boiler is setted on fire,");
			mes("That moves the pistons, gears");
			mes("and turbines with the steam");
			mes("that is generated when the water");
			mes("passes within the boiler.");
			next();
			mes("[Tarlock]");
			mes("That turns the propeller.");
			mes("That's all. Did you understand?");
			next();
			select("Um? Only that? There's no more?");
			mes("[Tarlock]");
			mes("Ha ha ha!");
			mes("I explained it roughly to");
			mes("make it easier to understand");
			mes("by you. Still, you aren't");
			mes("pleased? I said it in plain");
			mes("english that everyone could");
			mes("understand.");
			next();
			mes("[Tarlock]");
			mes("Obviously, only with a steam");
			mes("is impossible to make this fly.");
			mes("Therefore, it uses an amplifier");
			mes("called ^ff0000Rune Mechanism^000000.");
			next();
			select("Uh? What's a Rune Mechanism?");
			mes("[Tarlock]");
			mes("It's a device that uses a");
			mes("magic stone as power source.");
			mes("However, I don't know how");
			mes("this work...");
			mes("I forgot the details probably");
			mes("because I didn't paid much attention.");
			next();
			mes("[Tarlock]");
			mes("The only I remember is");
			mes("that the energy is amplified");
			mes("while it passes through the");
			mes("Rune that is attached to a");
			mes("steam engine.");
			next();
			mes("[Tarlock]");
			mes("In fact, all this airship");
			mes("floats thanks to the power");
			mes("given by the stone, no");
			mes("exaggeration.");
			mes("It has really a strong power.");
			next();
			specialeffect(EF_MAPPILLAR, AREA, playerattached());
			mes("[Tarlock]");
			mes("Did you understand?");
			mes("I'll rest a little.");
			mes("I'm tired for reading");
			mes("and writing those long");
			mes("letters.");
			lght_air = 7;
			completequest(8035);
			if (RENEWAL_EXP)
				getexp(20000, 1000);
			else
				getexp(200000, 10000);
			close2();
			cutin("", 255);
			end;
		} else if (lght_air == 7) {
			mes("[Tarlock]");
			mes("Didn't I teach you before?");
			mes("I won't explain such a long");
			mes("tale again!");
			close2();
			cutin("", 255);
			end;
		} else {
			mes("[Tarlock]");
			mes("Hahahah! Don't worry, I'll");
			mes("tell you know this Airship");
			mes("flies once you deliver that");
			mes("letter to my brother, Ferlock,");
			mes("and bring back his reply.");
			close2();
			cutin("", 255);
			end;
		}
		mes("[Tarlock]");
		mes("Hahaha! How this");
		mes("Airship flies? Yes, it's");
		mes("quite wonderful, isn't it?");
		mes("Although that's a secret,");
		mes("let me assure you that it's");
		mes("nothing weird or dangerous.");
		lght_air = 1;
		close2();
		cutin("", 255);
		end;
	case 3:
		mes("[Tarlock]");
		mes("Alright, then.");
		mes("Thanks for flying");
		mes("with us, and I hope");
		mes("you enjoy your travels.");
		close2();
		cutin("", 255);
		end;
	}
}

//- Captain Ferlock :: lght_ymir -
airplane,236,163,5	script	Airship Captain#03	4_M_REINDEER,{
	cutin("fly_trock", 2);
	if (hg_ma1 == 3 || hg_ma1 == 4) {
		mes("[Ferlock]");
		mes("Welcome to the airship. I am the captain Ferlock.");
		mes("Is there anything that I can help you with today?");
		next();
		select("I am looking for a man named Thierry.");
		mes("[Ferlock]");
		mes("Thierry? Well, I do not think that I know that person.");
		mes("I can guarantee you at least that he is not working for me.");
		next();
		select("Will you let me check the history of passenger lists?");
		mes("[Ferlock]");
		mes("I am sorry, but I cannot release such personal information to an unauthorized person.");
		if (hg_ma1 == 3) {
			close2();
			cutin("", 255);
			end;
		}
		next();
		select("Tell him the story of what happened.");
		mes("- Captain Ferlock was carefully listening to you while you were explaining the reason why you have been looking for Thierry. -");
		next();
		mes("[Ferlock]");
		mes("Ummm....I see, I fully understand the situation. But, this is my situation that I am not allowed to release our passenger lists to unauthorized people...");
		next();
		mes("[Ferlock]");
		mes("*Sigh*....I guess that rules exist only to be broken one of these days... Okay, I will let you check our passenger lists. Please give me a moment.");
		next();
		mes("- Captain Ferlock took out a heavy book from somewhere, and wrote the name 'Thierry' on the first blank page. -");
		mes("- As the letters slowly disappeared, pages of the book started being turned by themselves. -");
		next();
		mes("- The pages stopped turning at a page that the name 'Thierry' was written on. -");
		next();
		mes("[Ferlock]");
		mes("Haha, you must be surprised by this, huh? As you see, this book is a magic book which you do not need to turn the pages to find a specific page.");
		mes("Well, this is how we, Schwaltzvalt Republicans adopt magic in their lives.");
		next();
		mes("[Ferlock]");
		mes("My old friend has given me this....well, it is not important at this moment anyways.");
		next();
		mes("[Ferlock]");
		mes("Let's see, Thierry, Thierry.... Yes, he was in the airship about a month ago. He was heading to Hugel, and he was one of the very first passengers of the Hugel route.");
		next();
		mes("[Ferlock]");
		mes("....Oh, did you say that he was good at researching stuffs? Now I remember him, he was the guy!");
		next();
		mes("[Ferlock]");
		mes("It was the very first day that we operated the Hugel route. While we were heading to Hugel, a group of dragons raided our airship. ");
		mes("We were unprepared for a such attack, so basically we were at the very dangerous moment.");
		next();
		mes("[Ferlock]");
		mes("It was all my fault because I knew that dragons were one of the reasons why people had not dared to visit Hugel.");
		mes("How stupid of me! Even until then, I did not even think twice about preparing our crews for those brutal dragons' attacks.");
		next();
		mes("[Ferlock]");
		mes("So the dragons seriously damaged our airship, and we were about to fall into the ground. Then this young man came forward and repaired the airship as if he knew that it would be coming.");
		mes("I am very sure that Thierry was that guy who saved our lives.");
		next();
		mes("[Ferlock]");
		mes("At that time, I wondered what made him look so sad and depressed. And now I know why.");
		mes("I am so glad that I decided to help you in finding this amazing guy. Now you can go tell his fiance where he is.");
		next();
		mes("[Ferlock]");
		mes("If you meet him, please send my regard to him.");
		hg_ma1 = 5;
		changequest(8045, 8046);
		close2();
		cutin("", 255);
		end;
	} else if (hg_ma1 == 5) {
		mes("[Ferlock]");
		mes("Please tell his fiance where he is.");
		close2();
		cutin("", 255);
		end;
	}
	if (lght_air == 7 && lhz_heart == 11) {
		mes("[Ferlock]");
		mes("Ah, thank you for coming.");
		mes("Now, I wanted to ask you");
		mes("why you were investigating");
		mes("Ymir's Heart Piece. Are you");
		mes("merely curious, or did you");
		mes("have some special reason?");
		next();
		switch (select("Just curious...", "Well, there's someone I need to help...")) {
		case 1:
			mes("[Ferlock]");
			mes("Just curious...?");
			mes("I don't know if satisfying");
			mes("your curiosity is worth the");
			mes("risks that you have already");
			mes("taken. You should be more ");
			mes("careful in the future...");
			close2();
			cutin("", 255);
			end;
		case 2:
			mes("[Ferlock]");
			mes("Well, I shouldn't be");
			mes("trusting you this much,");
			mes("but since you've helped");
			mes("me and my brother, I feel");
			mes("that you must be one of those altruistic adventurers. Very well.");
			next();
			mes("[Ferlock]");
			mes("If you promise that you'll");
			mes("never tell what I reveal to");
			mes("you, then I suppose I can");
			mes("tell you know about the Rune");
			mes("Stone and Ymir's Heart Piece.");
			next();
			select("I promise...");
			mes("[Ferlock]");
			mes("Alright, then. I expect you");
			mes("to keep your word. Now, you");
			mes("already know that the Airships");
			mes("are powered by Rune Stones, imitations of Ymir's Heart pieces.");
			next();
			mes("[Ferlock]");
			mes("Although Rune Stones are");
			mes("inferior to true Ymir Heart");
			mes("pieces, we can make as many");
			mes("as want. As for true Ymir Heart");
			mes("Pieces, they're difficult to find or effectively reproduce.");
			next();
			mes("[Ferlock]");
			mes("You may have already");
			mes("figured this out, but all");
			mes("Rune Stones are produced");
			mes("in the Einbroch Laboratory");
			mes("for use in the Airships. So");
			mes("you see what's going on?");
			next();
			select("Wait, what's the Varmunt Project?");
			mes("[Ferlock]");
			mes("The Varmunt Project is");
			mes("a continuation of one of");
			mes("the projects started by the");
			mes("great Sage, Varmunt. Even as");
			mes("a child, he was renown as an");
			mes("incredible genius, a prodigy.");
			next();
			mes("[Ferlock]");
			mes("However, no matter how");
			mes("much academic success he");
			mes("enjoyed--he even became a");
			mes("tenured professor at Juno");
			mes("University--Varmunt was never able to finance his own research.");
			next();
			mes("[Ferlock]");
			mes("Eventually, he accepted an");
			mes("offer from Rekenber Co. to");
			mes("develop an energy source in");
			mes("exchange for funding. The");
			mes("result of his work for them is the invention of the Rune Stone.");
			next();
			mes("[Ferlock]");
			mes("However, the public isn't");
			mes("supposed to know that Varmunt");
			mes("invented the Rune Stones. Now,");
			mes("Varmunt disappeared before he");
			mes("could perfect the Rune Stone");
			mes("creation process.");
			next();
			mes("[Ferlock]");
			mes("Therefore, the Rune Stones");
			mes("we have now are unstable and");
			mes("become useless after a while.");
			mes("The Varmunt Project aims to");
			mes("correct these flaws and perfect");
			mes("the Ymir Heart replication...");
			next();
			mes("[Ferlock]");
			mes("Er, anyway, that's why");
			mes("I was at the Einbroch");
			mes("Laboratory today. My Rune");
			mes("Stone was close to empty,");
			mes("so I went there to pick up");
			mes("a fully charged one.");
			next();
			mes("[Ferlock]");
			mes("^333333*Phew...*^000000");
			mes("Would you give me");
			mes("a moment to catch");
			mes("my breath before");
			mes("I continue? Yes,");
			mes("there's a little more...");
			lhz_heart = 12;
			close2();
			cutin("", 255);
			end;
		}
	} else if (lght_air == 7 && lhz_heart == 12) {
		mes("[Ferlock]");
		mesf("Now, %s,", strcharinfo(PC_NAME));
		mes("you must be wondering");
		mes("why I'm telling you all");
		mes("this. I believe that some");
		mes("party wishes to steal the");
		mes("Rune Stones from the Airships.");
		next();
		mes("[Ferlock]");
		mes("Have you noticed the");
		mes("Gremlins and Beholders");
		mes("that attack my brother's");
		mes("ship? Believe it or not,");
		mes("Gremlins are usually just");
		mes("harmless and mischievous.");
		next();
		mes("[Ferlock]");
		mes("Gremlin wings also aren't");
		mes("naturally powerful enough to");
		mes("enable them to fly. However,");
		mes("if someone implants Wills of");
		mes("the Darkness into them, their");
		mes("powers increase exponentially.");
		next();
		mes("[Ferlock]");
		mes("Although Gremlins tend");
		mes("not to attack humans unless");
		mes("provoked, and that they tend");
		mes("to shy away from people, they");
		mes("are being controlled to steal");
		mes("our Airships' Rune Stones.");
		next();
		mes("[Ferlock]");
		mes("Whoever is controlling the");
		mes("Gremlins also sends those");
		mes("Beholder monsters in order");
		mes("to monitor their progress");
		mes("and observe our resistance.");
		next();
		mes("[Ferlock]");
		mes("My brother and I have been");
		mes("investigating this matter, but");
		mes("so far, we haven't learned very");
		mes("much. Now, my Airship only");
		mes("provides domestic flights");
		mes("and hasn't been attacked.");
		next();
		mes("[Ferlock]");
		mes("Now, my brother's Airship");
		mes("specializes in international");
		mes("flights and suffers from the");
		mes("Gremlin invasions, so we are");
		mes("guessing the attackers are from outside the Schwaltzvalt Republic.");
		next();
		mes("[Ferlock]");
		mes("In any case, that is all");
		mes("I really know. Please keep");
		mes("this information to yourself");
		mes("and let me know if you learn anything new about this situation.");
		next();
		mes("[Ferlock]");
		mes("If I manage to uncover");
		mes("anything about the ones");
		mes("that are using the Wills");
		mes("of Darkness to control the");
		mes("Gremlins and steal our Rune");
		mes("Stones, I'll let you know.");
		next();
		mes("[Ferlock]");
		mes("Who is sending these");
		mes("monsters to invade our");
		mes("Airships, and for what");
		mes("purpose do they want the");
		mes("Rune Stones? Hmm. Well, this");
		mes("is goodbye for now, adventurer.");
		close2();
		specialeffect(EF_ABSORBSPIRITS, AREA, playerattached());
		lhz_heart = 13;
		completequest(8043);
		if (RENEWAL_EXP)
			getexp(70000, 40000);
		else
			getexp(700000, 400000);
		cutin("", 255);
		end;
	} else if (lght_air == 7 && lhz_heart == 13) {
		mes("[Ferlock]");
		mes("I'll be quite busy with my");
		mes("captaining duties and my");
		mes("private investigation of the");
		mes("attempted Rune Stone robberies.");
		mes("Hopefully, we'll be able to meet again later. For now, take care.");
		close2();
		cutin("", 255);
		end;
	}
	mes("[Ferlock]");
	mes("Hey there, welcome");
	mes("aboard the Airship. I'm");
	mes("Ferlock, your captain");
	mes("on this flight. How can");
	mes("I be of service to you?");
	next();
	if (lght_air == 2) {
		.@question2$ = _("Give him Tarlock's Letter.");
		.@question3$ = _("Cancel.");
	} else if (lght_air == 3) {
		.@question2$ = _("Here are the items I've found.");
		.@question3$ = _("Cancel.");
	} else {
		.@question2$ = _("Cancel.");
	}
	switch (select("How does this Airship fly?", .@question2$, .@question3$)) {
	case 1:
		mes("[Ferlock]");
		mes("I'm sorry, but I can't");
		mes("give you that kind of");
		mes("classified information.");
		mes("It's too important to the");
		mes("security and safety of");
		mes("this Airship, you see.");
		close2();
		cutin("", 255);
		end;
	case 2:
		if (lght_air == 2) {
			lght_air = 3;
			changequest(8032, 8033);
			mes("^3131FFYou give Captain Ferlock");
			mes("the letter that his brother");
			mes("Tarlock has written for him.^000000");
			next();
			mes("[Ferlock]");
			mes("Oh, this is from my");
			mes("brother? Hey, thanks so");
			mes("much for bringing this to");
			mes("me for him. Ah, give me");
			mes("a minute to read all of");
			mes("this, would you now?");
			next();
			mes("[Ferlock]");
			mes("...");
			mes("So that's what he's been");
			mes("up to. Huh. Hahaha! Oh, that's");
			mes("funny. Ah, it's always good to");
			mes("hear from Tarlock. Anyway,");
			mes("I'm sorry to make you wait.");
			next();
			mes("[Ferlock]");
			mes("Anyway, my brother wrote");
			mes("about the usual stuff, but");
			mes("he mentioned that he was");
			mes("hoping to finally return a few");
			mes("things he borrowed from me.");
			mes("However, he lost them...");
			next();
			mes("[Ferlock]");
			mes("It turns that those nasty");
			mes("gremlins that sometimes");
			mes("attack his ship stole my");
			mes("things, so was he actually");
			mes("hoping that you would");
			mes("help me get them back.");
			next();
			mes("[Ferlock]");
			mes("Yeah, yeah. He specifically");
			mes("mentioned that I shouldn't");
			mes("give you my reply until you");
			mes("hunt those monsters and get");
			mes("my stuff back. I'm sorry, but");
			mes("I guess you owe big bro, huh?");
			next();
			mes("[Ferlock]");
			mes("Well, if you're willing to");
			mes("help me, would you get my");
			mes("^ff00002 Will of the Darkness^000000 and");
			mes("^ff00002 Prickly Fruit^000000 back for me?");
			next();
			mes("[Ferlock]");
			mes("The monsters that attack");
			mes("Tarlock's Airship should");
			mes("have them. I'd appreciate");
			mes("it if you'd help me out on");
			mes("this, adventurer. Thanks");
			mes("in advance and good luck~");
			close2();
			cutin("", 255);
			end;
		} else if (lght_air == 3) {
			if (countitem(Will_Of_Darkness) >= 2 && countitem(Prickly_Fruit) >= 2) {
				delitem(Will_Of_Darkness, 2);
				delitem(Prickly_Fruit, 2);
				lght_air = 4;
				changequest(8033, 8034);
				mes("[Ferlock]");
				mes("Oh this is great! Finally,");
				mes("I have my stuff back! Still,");
				mes("I have no idea why Tarlock");
				mes("wanted these things to begin");
				mes("with. Oh well. Would you please take this reply to Tarlock for me?");
				next();
				mes("[Ferlock]");
				mes("Thanks again");
				mes("for all of your help!");
				mes("I don't think I'd ever");
				mes("see these things again");
				mes("if it weren't for you~");
				next();
				mes("^3355FFYou have received");
				mes("Captain Ferlock's letter");
				mes("to deliver to his elder");
				mes("brother, Captain Tarlock.^000000");
				close2();
				cutin("", 255);
				end;
			}
			mes("[Ferlock]");
			mes("Oh, I'm sorry, but it looks");
			mes("like you're missing something.");
			mes("Would you please go and find");
			mes("^ff00002 Will of the Darkness^000000 and");
			mes("^ff00002 Prickly Fruit^000000? Thanks,");
			mes("brave adventurer~");
			close2();
			cutin("", 255);
			end;
		}
		mes("[Ferlock]");
		mes("Well, I hope that");
		mes("you enjoy your time");
		mes("here on the Airship");
		mes("and that you have a");
		mes("very pleasant journey.");
		close2();
		cutin("", 255);
		end;
	case 3:
		mes("[Ferlock]");
		mes("Well, I hope that");
		mes("you enjoy your time");
		mes("here on the Airship");
		mes("and that you have a");
		mes("very pleasant journey.");
		close2();
		cutin("", 255);
		end;
	}
}

//== Heart Fragment Quest :: lght_ymir =====================
airplane,236,63,4	script	Hallen#yusa	4_M_KID1,{
	if (hg_ma1 == 3) {
		mes("[Hallen]");
		mes("If you need me to");
		mes("do anything, just");
		mes("give me a holler.");
		mes("Bweh heh... hollah~");
		next();
		select("Hey, do you know a guy named Thierry?");
		mes("[Hallen]");
		mes("Thierry? Um...I don't think so. Why don't you go ask Kaci? She might know.");
		close();
	}
	if (BaseLevel < 60) {
		mes("[Hallen]");
		mes("If you need me to");
		mes("do anything, just");
		mes("give me a holler.");
		mes("Bweh heh... hollah~");
		close();
	}
	if (lhz_heart == 0) {
		mes("[Hallen]");
		mes("Howdy, howdy~");
		mes("Welcome to the Airship.");
		next();
		switch (select("I'm not a passenger.", "Hey kid, what are you doing?")) {
		case 1:
			emotion(e_what, false);
			mes("[Hallen]");
			mes("Does that mean you're");
			mes("one of the crewmen, then?");
			mes("I don't think we've met before,");
			mes("and I should be familiar with");
			mes("everyone working here by now...");
			next();
			emotion(e_gasp, false);
			mes("[Hallen]");
			mes("Hey...!");
			mes("If you're on duty,");
			mes("shouldn't you be in");
			mes("uniform? I guess you");
			mes("don't work here after all!");
			mes("Heh, figured it out myself~");
			next();
			mes("[Hallen]");
			mes("Eh, I need to finish");
			mes("sweeping this deck. Then,");
			mes("on my break, I can play a");
			mes("little game for Apples with");
			mes("Kaci. That's how I roll, yo.");
			next();
			break;
		case 2:
			mes("[Hallen]");
			mes("Ummm... Isn't it obvious?");
			mes("I'm sweeping the deck. I'm");
			mes("the youngest crewman, so");
			mes("I get stuck with the lamest");
			mes("jobs. But once I'm done, it's");
			mes("Dice time with Kaci. Oh yeah~");
			next();
			break;
		}
		select("Kaci?");
		mes("[Hallen]");
		mes("Kaci... You know, the");
		mes("dealer of the Dice game?");
		mes("You should try it out: just");
		mes("roll some dice for a chance");
		mes("to win some Apples. Hey,");
		mes("you could get really lucky!");
		next();
		mes("[Hallen]");
		mes("Heh, there's one guy that");
		mes("won so many Apples from Kaci");
		mes("that he was able to become");
		mes("an Apple Merchant. Can you");
		mes("believe that? Yeah... Kaci");
		mes("doesn't like him so much...");
		close2();
		lhz_heart = 1;
		end;
	} else if (lhz_heart == 1) {
		mes("[Hallen]");
		mes("Oh hey, it's you~");
		mes("We talked earlier,");
		mes("didn't we? Yeah...");
		mes("I'm still here sweeping");
		mes("this floor. It's gonna");
		mes("take quite a while.");
		next();
		emotion(e_gasp, false);
		mes("[Hallen]");
		mes("It doesn't look like");
		mes("I'm gonna finish this");
		mes("anytime soon. Hey, do");
		mes("you think you could do");
		mes("me a favor since I can't");
		mes("really leave this joint?");
		next();
		switch (select("Sorry, but I'm busy...", "What is it?")) {
		case 1:
			mes("[Hallen]");
			mes("Eh, alright. I guess");
			mes("I can understand. But");
			mes("still, I coulda made it");
			mes("worth your while, if you");
			mes("know what I mean~");
			close();
		case 2:
			mes("[Hallen]");
			mes("Don't worry, it's not much");
			mes("work. I'm supposed to deliver");
			mes("letters from Juno Airport to");
			mes("the other crewmen, but I don't");
			mes("got the time. Now, I have");
			mes("this letter for Kaci here...");
			next();
			mes("[Hallen]");
			mes("Would you go and");
			mes("deliver this letter");
			mes("to her for me? It's");
			mes("from some guy named");
			mes("Mr. Mawong, her mentor");
			mes("or something like that.");
			next();
			mes("^3355FFHallen gave you");
			mes("Mawong's letter to");
			mes("be delivered to Kaci.^000000");
			lhz_heart = 2;
			setquest(8036);
			next();
			mes("[Hallen]");
			mes("Hey, thanks a lot, pal~");
			mes("You can find Kaci hosting");
			mes("the Dice game in the Airship.");
			close();
		}
	} else if (lhz_heart == 2) {
		mes("[Hallen]");
		mes("^333333*Sigh...*^000000");
		mes("I'm so sick and");
		mes("tired of sweeping.");
		mes("It's like I'm some");
		mes("kinda lame cabin boy.");
		mes("But... I guess I am!");
		next();
		mes("[Hallen]");
		mes("Oh hey, were you");
		mes("able to give that");
		mes("letter to Kaci yet?");
		mes("I think it's pretty");
		mes("important, so try not");
		mes("to take too long, okay?");
		close();
	} else if (lhz_heart == 3) {
		mes("[Hallen]");
		mes("^333333*Sigh...*^000000");
		mes("I'm so sick and");
		mes("tired of sweeping.");
		mes("It's like I'm some");
		mes("kinda lame cabin boy.");
		mes("But... I guess I am!");
		close();
	} else if (lhz_heart == 4) {
		mes("[Hallen]");
		mes("Hey, thanks for delivering");
		mes("that letter to Kaci for me.");
		mes("She wasn't too happy that");
		mes("I asked a passenger to do");
		mes("it, but she understood that");
		mes("I'm totally swamped with work.");
		next();
		mes("[Hallen]");
		mes("Wouldn't you agree");
		mes("that people should");
		mes("help each other in");
		mes("times of crisis?");
		next();
		switch (select("Not at all. Every man for himself!", "Yes, I do.")) {
		case 1:
			mes("[Hallen]");
			mes("Wh-what...?");
			mes("I can't think");
			mes("that you really");
			mes("believe that...");
			lhz_heart = 5;
			changequest(8038, 8039);
			close();
		case 2:
			mes("[Hallen]");
			mes("Aww, really?");
			mes("I knew that you'd");
			mes("feel the same way");
			mes("I do. You and me, we're");
			mes("on the same wavelength~");
			next();
			if (checkweight(Red_Potion, 1) == 0 || MaxWeight - Weight < 70) {
				mes("[Hallen]");
				mes("Oh... Hey, I was");
				mes("going to give you");
				mes("a little something,");
				mes("but you're carrying");
				mes("too much stuff right now...");
				close();
			}
			lhz_heart = 5;
			getitem(Red_Potion, 1);
			mes("[Hallen]");
			mes("I know this isn't");
			mes("much, but I'd like you");
			mes("to have it. Besides, you");
			mes("never know what'll come in");
			mes("handy during an emergency.");
			mes("Alright then, see you later~");
			close();
		}
	} else if (lhz_heart == 5) {
		mes("[Hallen]");
		mes("Hey, hey~ How's it going?");
		mes("I know, I know, I'm supposed");
		mes("to be sweeping, and I'm not");
		mes("finished yet, but sometimes,");
		mes("you know, you just have to");
		mes("rest and take a break, yeah?");
		next();
		mes("[Hallen]");
		mes("Ahh, busy days like these");
		mes("remind me of working back");
		mes("home in Juno with my neighbor,");
		mes("Gyver. He's a genius inventor,");
		mes("you know, and sort of like");
		mes("a hero or role model to me.");
		next();
		mes("[Hallen]");
		mes("Guyver is so brilliant,");
		mes("he can pretty much make");
		mes("anything he wants. Someday,");
		mes("I want to reach his level, and");
		mes("create things that will help");
		mes("people and make them happy.");
		next();
		mes("[Hallen]");
		mes("That's pretty much my");
		mes("life ambition-- you know,");
		mes("the kind of thing I want to");
		mes("contribute to the world. Of");
		mes("course, I doubt I can compare");
		mes("to the great Sage Varmunt.");
		next();
		select("Sage Varmunt?");
		mes("[Hallen]");
		mes("Yeah, Varmunt... He's like");
		mes("one of the greatest Sages in");
		mes("history. Well, nobody know too");
		mes("much about him, but 300 years");
		mes("ago, he was responsible for most ground breaking accomplishments.");
		next();
		mes("[Hallen]");
		mes("Supposedly, he single handedly");
		mes("revolutionized science. Many of");
		mes("the machines that are convenient to life today are his inventions.");
		mes("Sadly, he disappeared from history and no one know how he vanished.");
		next();
		mes("[Hallen]");
		mes("The great Sage Varmunt...");
		mes("It's a pretty well known");
		mes("legend in the Schwaltzvalt");
		mes("Republic. Anyway, for my");
		mes("project, I wanted to learn");
		mes("more about these Airships.");
		next();
		mes("[Hallen]");
		mes("These Airships are so huge");
		mes("and heavy, and I can scarcely");
		mes("believe that they can fly. How");
		mes("is it even possible? Well, if");
		mes("you could find out for me, ");
		mes("it'd be a really big help.");
		lhz_heart = 6;
		changequest(8038, 8039);
		close();
	} else if (lhz_heart == 6) {
		mes("[Hallen]");
		mes("Hey, have you learned");
		mes("what makes such a big,");
		mes("heavy Airship like this fly");
		mes("for so long in the sky?");
		next();
		if (lght_air == 7) {
			select("Umm, yeah, kind of.");
			mes("[Hallen]");
			mes("Really...?");
			mes("Are you serious?");
			mes("So what's the secret?");
			mes("Tell me, I'm dying to know!");
			next();
			mes("^3355FFYou tell Hallen everything");
			mes("that you've learned from");
			mes("Captain Tarlock, but you're");
			mes("careful not to make any");
			mes("mention of Ymir's Heart Piece.^000000");
			next();
			mes("[Hallen]");
			mes("So... The propellers are");
			mes("powered through steam?");
			mes("That doesn't make sense.");
			mes("No way, it can't be that simple. Besides, steam has its limits.");
			mes("Are you sure that's everything?");
			next();
			select("Actually, there's another power source.");
			mes("^3355FFYou reveal what you");
			mes("learn about the Rune Stone,");
			mes("an imitation of Ymir's Heart");
			mes("Piece: Hallen is a well meaning");
			mes("kid who probably won't use this");
			mes("knowledge for evil purposes.");
			next();
			mes("[Hallen]");
			mes("A-awesome! So there is");
			mes("some special magic power");
			mes("source that helps this Airship");
			mes("fly! I knew it! Now, what was");
			mes("it called again? Ah, the");
			mes("Rune Stone, right?");
			next();
			mes("[Hallen]");
			mes("An imitation of Ymir's");
			mes("Heart Piece. Now where");
			mes("have I heard about that");
			mes("before? Mm, let me think...");
			lhz_heart = 7;
			changequest(8039, 8040);
			close();
		} else {
			select("Actually...");
			mes("[Hallen]");
			mes("You didn't learn anything");
			mes("about the Airship yet, huh?");
			mes("Maybe Captain Ferlock might");
			mes("know something, or any one");
			mes("of the other Airship captains.");
			mes("Hopefully, one will tell you...");
			next();
			mes("[Hallen]");
			mes("I know that the secrets of");
			mes("Airship flight is considered");
			mes("classified information, but if");
			mes("anyone can wrest those secrets,");
			mes("it'll be one of you adventurers. So please help me out here...");
			close();
		}
	} else if (lhz_heart == 7) {
		mes("[Hallen]");
		mes("So the Rune Stone");
		mes("is an imitation of just");
		mes("a piece of Ymir's Heart.");
		mes("But where have I heard");
		mes("about that before...?");
		next();
		emotion(e_gasp, false);
		mes("[Hallen]");
		mes("Oh, that's right!");
		mes("Kaci told me about a");
		mes("drunkard that always");
		mes("mentions Ymir's Heart");
		mes("when he plays the Dice");
		mes("game for Apples!");
		next();
		if (Shinokas_Quest > 9) {
			mesf("[%s]", strcharinfo(PC_NAME));
			mes("(^333333Wait, I met that guy when");
			mes("I was helping Shinokas. He");
			mes("was one of the directors of");
			mes("the Einbroch Laboratory that");
			mes("had a piece of Ymir's Heart.");
			mes("It's worth investigating...^000000)");
			next();
		}
		mes("[Hallen]");
		mes("Anyway, it's not much,");
		mes("but let me give you a little");
		mes("something for going through");
		mes("the trouble of learning that");
		mes("secret information for me...");
		next();
		if (checkweight(Red_Potion, 1) == 0 || MaxWeight - Weight < 70) {
			mes("[Hallen]");
			mes("Aw, nuts...");
			mes("You don't have");
			mes("enough room to");
			mes("receive my little gift.");
			mes("Please free up more space");
			mes("in your inventory for me, okay?");
			close();
		}
		if (Shinokas_Quest > 9) {
			lhz_heart = 9;
			changequest(8040, 8042);
		} else {
			lhz_heart = 8;
			changequest(8040, 8041);
		}
		getitem(Red_Potion, 1);
		mes("[Hallen]");
		mes("Here you go~");
		mes("I know it's pretty paltry");
		mes("compared to the rewards ");
		mes("you adventurers usually get,");
		mes("but hey... It's my thought that");
		mes("counts, right? See you later~");
		close();
	} else if (lhz_heart == 8) {
		mes("[Hallen]");
		mes("Hey, why don't you");
		mes("ask Kaci about that");
		mes("drunkard that's always");
		mes("playing her Dice game?");
		mes("You might learn more about");
		mes("Ymir's Heart Piece, you know?");
		close();
	} else {
		mes("[Hallen]");
		mes("Thanks for helping me");
		mes("out that last time. I guess");
		mes("learning about the Rune Stone");
		mes("kinda inspired me to build an");
		mes("Airship of my own someday...");
		close();
	}
}

airplane,33,69,4	script	Kaci#airplane	1_F_MERCHANT_01,{
	if (hg_ma1 == 3) {
		mes("[Kaci]");
		mes("You must be sooo");
		mes("bored, adventurer~");
		mes("How would you like");
		mes("to play a game of Dice?");
		next();
		select("Do you know a guy named Thierry?");
		mes("[Kaci]");
		mes("Thierry? Um...that sounds familiar...");
		next();
		mes("[Kaci]");
		mes("....................");
		mes(".............");
		mes(".......");
		mes("...");
		next();
		mes("[Kaci]");
		mes("Oh, right! Thierry, Thierry, Thierry! Right?");
		next();
		mes("[Kaci]");
		mes("- She suddenly called out the name several times,  -");
		mes("- so you were startled and dropped your half eaten apple. -");
		next();
		mes("[Kaci]");
		mes("Oops, sorry, if I startled you. I could not remember the name because it has been a while since I heard of his name the last time.");
		next();
		mes("[Kaci]");
		mes("Thierry was a guy living in the next door while I was learning games and tricks from Mr. Mawong.");
		mes("I remember that he was a very smart guy and was doing many research stuffs.");
		next();
		mes("[Kaci]");
		mes("Oh yeah, and he was in love with Eukran's sister.");
		mes("And Eukran and I were studying games together under Mr. Mawong at that time.");
		mes("Hmm...I wonder how they have been doing.");
		next();
		mes("- You told her that Euslan and Thierry got engaged, but Thierry had to leave her to find medicine for her illness. -");
		next();
		mes("[Kaci]");
		mes("Oh...gosh...I can't believe that Euslan is has become ill....Oh......");
		next();
		mes("- Kaci seemed to be shocked by such devastating news. -");
		mes("- She was mumbling something for a while, and then came back to her senses again. -");
		next();
		mes("[Kaci]");
		mes("I am so sorry for her...I really want to give here some help...but, it has been a while for me since I saw them. So, I don't know where he is.");
		next();
		mes("[Kaci]");
		mes("But, let me think if...");
		next();
		mes("[Kaci]");
		mes("Oh, right! The airship captain might be able to help you, because he is the one who is in charge of the passenger list.");
		next();
		mes("[Kaci]");
		mes("Although the passenger list is classified and strictly restricted from releasing to public...");
		next();
		mes("[Kaci]");
		mes("But, if you tell him the story, he might be able to help you. Please go ask him if you can.");
		next();
		mes("[Kaci]");
		mes("And if you see Euslan again, please send my regard and blessing to her.");
		next();
		mes("- You promised her to send her regards and blessings to Euslan. -");
		hg_ma1 = 4;
		changequest(8044, 8045);
		close();
	} else if (hg_ma1 == 4) {
		mes("[Kaci]");
		mes("The airship captain might be able to help you in finding Thierry's whereabouts.");
		close();
	} else if (lhz_heart == 2) {
		mes("[Kaci]");
		mes("You must be sooo");
		mes("bored, adventurer~");
		mes("How would you like");
		mes("to play a game of Dice?");
		next();
		select("Give her the letter from Hallen.");
		mes("[Kaci]");
		mes("Oh, Hallen must have");
		mes("asked you to deliver this.");
		mes("He should be doing this sort");
		mes("of thing himself, instead of");
		mes("asking customers for favors!");
		mes("But still, he's really busy...");
		next();
		lhz_heart = 3;
		changequest(8036, 8037);
		mes("[Kaci]");
		mes("Thank you for bringing");
		mes("this to me. If you ever");
		mes("need a little favor from");
		mes("me, feel free to ask me,");
		mes("alright? See you later~");
		close();
	} else if (lhz_heart == 3) {
		mes("[Kaci]");
		mes("Oh, hello. Thanks for");
		mes("delivering that letter from");
		mes("Mr. Mawong to me, especially");
		mes("since Hallen was too busy to");
		mes("do it himself. Reading that");
		mes("letter really made my day~");
		next();
		while (true) {
			switch (select("Ask about Hallen", "Ask about Mawong", "Ask about the Airship")) {
			case 1:
				.@mesa = 1;
				mes("[Kaci]");
				mes("Hallen? Well, he and I are");
				mes("pretty close. Did you know");
				mes("that we're cousins? In fact,");
				mes("his dad, my uncle, brought");
				mes("me as a child after my father");
				mes("passed away 20 years ago.");
				next();
				mes("[Kaci]");
				mes("There was some kind of");
				mes("mine explosion accident in");
				mes("Einbech. I don't remember.");
				mes("Anyway, me and Hallen are");
				mes("like sister and brother, and");
				mes("we always stick together.");
				next();
				mes("[Kaci]");
				mes("When Captain Ferlock saw me");
				mes("host a Dice game by coincidence");
				mes("and then hired me to work on his Airship, Hallen insisted on coming");
				mes("along. He's stubborn like that,");
				mes("but he's also very sweet.");
				next();
				break;
			case 2:
				.@mesb = 1;
				mes("[Kaci]");
				mes("Mr. Mawong? Oh, don't get");
				mes("the wrong idea! He's my");
				mes("mentor, the one who taught");
				mes("me how to play all of these");
				mes("wonderful games. He's pretty");
				mes("famous around Juno, you know.");
				next();
				mes("[Kaci]");
				mes("I used to be so depressed,");
				mes("not caring about the world");
				mes("at all, after my father died.");
				mes("Then, I ran into Mr. Mawong,");
				mes("and he taught me how to find");
				mes("the joy in life once again.");
				next();
				mes("[Kaci]");
				mes("Because of him, I decided");
				mes("to learn his games and to");
				mes("help people forget their");
				mes("worries and just enjoy");
				mes("themselves, even if it's");
				mes("just for a little while.");
				next();
				break;
			case 3:
				.@mesc = 1;
				mes("[Kaci]");
				mes("The Airship? It's so");
				mes("huge and beautiful, and");
				mes("I'm always amazed that it");
				mes("can fly so gracefully through");
				mes("the air. I've always wanted to live someplace close to the sky...");
				next();
				mes("[Kaci]");
				mes("A place where I can see");
				mes("the clouds and bask in the");
				mes("sun. So, when Captain Ferlock");
				mes("invited me to work here, it was");
				mes("like a dream come true~");
				next();
				break;
			}
			mes("[Kaci]");
			mes("Please don't hesitate");
			mes("to ask me anything if");
			mes("you need a small favor,");
			mes("or if you're just curious");
			mes("about me in general~");
			next();
			if (.@mesa && .@mesb && .@mesc)
				break;
		}
		mes("[Kaci]");
		mes("By the way, if Hallen");
		mes("bothers you with another");
		mes("request, please refuse to");
		mes("help him next time, okay?");
		mes("I won't allow him to get");
		mes("spoiled! Ho ho ho ho~");
		next();
		mes("[Kaci]");
		mes("Well, I better get");
		mes("back to work now.");
		mes("Have a nice day,");
		mes("and I'll see you later~");
		changequest(8037, 8038);
		lhz_heart = 4;
		close();
	} else if (lhz_heart == 8) {
		mes("[Kaci]");
		mesf("Hello, %s.", strcharinfo(PC_NAME));
		mes("It's nice to see you again.");
		mes("So is there anything I can");
		mes("help you with today?");
		next();
		select("Who's that drunk over there?");
		mes("[Kaci]");
		mes("Oh, him? He's one of my");
		mes("regulars, some guy who's");
		mes("supposed to be an Einbroch");
		mes("Lab Director. He keeps losing");
		mes("Apples whenever he plays Dice:");
		mes("I think he's a gambling addict~");
		next();
		mes("[Kaci]");
		mes("In fact, his losses make up");
		mes("for all the Apples I lost when");
		mes("that Apple Merchant played here. Now, it's a legendary tale that");
		mes("we all think fondly of, but at");
		mes("the time, it nearly broke me.");
		next();
		mes("[Kaci]");
		mes("Anyway, aside from the fact");
		mes("that the Einbroch Lab Director");
		mes("is kind of a whiny person when");
		mes("he's drunk, and a poor gambler,");
		mes("I don't know much about him.");
		next();
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("(^333333Einbroch Laboratory...");
		mes("It's so suspicious. That");
		mes("director knows about Ymir's");
		mes("Heart Piece, so they must be");
		mes("keeping something really");
		mes("important over there.^000000)");
		next();
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("(^333333I better investigate");
		mes("that laboratory in Einbroch");
		mes("as soon as I can, even if it's");
		mes("a heavily restricted area.^000000)");
		lhz_heart = 9;
		changequest(8041, 8042);
		close();
	}
	mes("[Kaci]");
	mes("You must be sooo");
	mes("bored, adventurer~");
	mes("How would you like");
	mes("to play a game of Dice?");
	next();
	callfunc("applegamble", "Kaci");
	end;
}

ein_in01,279,25,0	script	#lab01_yusa	HIDDEN_WARP_NPC,1,1,{
	end;
OnTouch:
	if (lhz_heart == 9) {
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("(^333333I've... I've just");
		mes("got to investigate");
		mes("that laboratory and");
		mes("see if anything funny");
		mes("is going on in there.^000000)");
		close();
	}
}

ein_in01,264,17,0	script	#lab02_yusa	HIDDEN_WARP_NPC,1,1,{
	end;
OnTouch:
	if (lhz_heart == 9) {
		mesf("[%s]", strcharinfo(PC_NAME));
		mes("What the...");
		mes("It's some sort of");
		mes("weird device. The label");
		mes("here says, ''Password");
		mes("Checker?'' Well, this");
		mes("might come in handy later.");
		next();
		mes("^3355FFYou decide to bring");
		mes("the Password Checker");
		mes("device with you into");
		mes("the laboratory.^000000");
		lhz_heart = 10;
		close();
	}
}

ein_in01,263,35,3	script	Ferlock#lab	4_M_REINDEER,{
	end;

OnInit:
	disablenpc("Ferlock#lab");
	stopnpctimer();
	end;

OnEnter:
	enablenpc("Ferlock#lab");
	initnpctimer();
	end;

OnTimer120000:
	donpcevent("Ferlock#lab::OnInit");
	end;
}

ein_in01,261,35,0	script	lab03_yusa	HIDDEN_WARP_NPC,1,1,{
	end;
OnTouch:
	if (lhz_heart == 9) {
		mes("[Security System]");
		mes("^FF0000Unauthorized person");
		mes("detected. Password");
		mes("Checker not detected.");
		mes("Access denied.^000000");
		close();
	} else if (lhz_heart == 10) {
		mes("[Security System]");
		mes("^FF0000Enter the 3 digit password.");
		mes("You will be allowed 5 tries");
		mes("within 3 minutes to enter");
		mes("the correct password, or");
		mes("the password will reset.^000000");
		next();
		mes("[Password Checker]");
		mes("^333333Hint:");
		mes("Do not use the");
		mes("number 0, and do");
		mes("not enter any number");
		mes("more than once. Make");
		mes("sure the password is 3 digits.");
		@retry = 0;
		next();
		while (true) {
			@yagu100 = rand(1, 9);
			@yagu10 = rand(1, 9);
			@yagu1 = rand(1, 9);
			if (((@yagu100 != @yagu10) && (@yagu100 != @yagu1)) && (@yagu10 != @yagu1)) {
				break;
			}
		}
		while (true) {
			while (true) {
				next();
				input(@input);
				if (@input < 100 || @input > 999) {
					mes("[Security System]");
					mes("^FF0000Error.");
					mes("The password entered");
					mes("exceeds the number digit");
					mes("limit. You must only enter");
					mes("3 digit passwords.^000000");
					close();
				}
				@input100 = @input / 100;
				@input10 = (@input % 100) / 10;
				@input1 = @input % 10;
				if ((@input100 > 0) && (@input10 > 0) && (@input1 > 0)) {
					if ((@input100 != @input10) && (@input100 != @input1) && (@input10 != @input1)) {
						break;
					}
					mes("[Security System]");
					mes("^FF0000Error.");
					mes("You cannot enter the");
					mes("number 0, or use any");
					mes("other number more than");
					mes("once. Please try again.^000000");
					next();
				}
			}
			++@retry;
			mes("[Security System]");
			mesf("^ff0000%s^000000", strcharinfo(PC_NAME));
			mes("has entered the following:");
			mesf("^0000ff%d^000000 - ^0000ff%d^000000 - ^0000ff%d^000000.", @input100, @input10, @input1);
			mes("Please wait for authorization to complete.");
			next();
			@strike = 0;
			@ball = 0;
			if (@yagu100 == @input100) @strike += 1;
			if (@yagu10 == @input10) @strike += 1;
			if (@yagu1 == @input1) @strike += 1;
			if ((@yagu100 == @input10) || (@yagu100 == @input1)) @ball += 1;
			if ((@yagu10 == @input100) || (@yagu10 == @input1)) @ball += 1;
			if ((@yagu1 == @input100) || (@yagu1 == @input10)) @ball += 1;
			if (@strike == 3) {
				mes("[Security System]");
				mes("Authorization complete.");
				mes("Archive access granted.");
				next();
				mes("^3355FFThe archive door opens,");
				mes("revealing a series of");
				mes("filed documents. Out");
				mes("of all of them, one of the");
				mes("files grabs your attention.^000000");
				next();
				mes("Varmunt Project No. 3");
				mes("Security Level : Grade 1-C");
				mes(" ");
				mes("Caution: Only project members");
				mes("of the Ymir Heart Synthesization project are authorized to view");
				mes("this classified document.");
				next();
				mes("Varmunt Project No. 3");
				mes("Security Level : Grade 1-C");
				mes(" ");
				mes("All others found reading");
				mes("this document are subject");
				mes("to punishment or dismissal.");
				next();
				mes("^3355FFYou perceive the sound of");
				mes("footsteps and quickly try to");
				mes("return the document to its");
				mes("original place. However,");
				mes("the person that has come");
				mes("to the archive has already");
				mes("seen you holding the file.^000000");
				next();
				donpcevent("Ferlock#lab::OnEnter");
				mes("[Ferlock]");
				mes("Excuse me, but are");
				mes("you an employee here?");
				mes("I've come to pick up a");
				mes("new Rune Stone for the");
				mes("Airship. Wait, wait...");
				mes("You look familiar...");
				next();
				emotion(e_omg, false, "Ferlock#lab");
				mes("[Ferlock]");
				mes("That's right, aren't you the");
				mes("one who brought me my");
				mes("brother's letter? Yeah, you");
				mes("were asking me about the");
				mes("Airship's flight mechanics.");
				mes("So you're not an employee...");
				next();
				mes("[Ferlock]");
				mes("Boy, you must be more than");
				mes("curious to be looking up that");
				mes("information in a restricted");
				mes("area. But don't worry, you");
				mes("must have your reasons,");
				mes("so I won't call the guards.");
				next();
				mes("[Ferlock]");
				mes("Still, you better get out");
				mes("of here. The guards patrol");
				mes("this place regularly, so you're");
				mes("almost sure to get caught. Hmm,");
				mes("come and see me later at the");
				mes("Airship, alright? Now hurry!");
				close2();
				donpcevent("Ferlock#lab::OnInit");
				changequest(8042, 8043);
				lhz_heart = 11;
				end;
			}
			mes("[Password Checker]");
			mes(" ");
			mes("^333333Total of correct numbers");
			mesf("in correct sequence: ^ff0000%d^333333", @strike);
			mesf("Total of correct numbers misplaced: ^ff0000%d^333333.", @ball);
			mes("Please use these results");
			mes("to make a more accurate guess.^000000");
			next();
			if (@retry > 4) {
				mes("[Security System]");
				mes("^FF0000The correct password");
				mes("for this session was");
				mesf("^000000%d^FF0000 - ^000000%d^000000 - ^000000%d^FF0000.", @yagu100, @yagu10, @yagu1);
				mes("Password will now be reset.^000000");
				close();
			}
			mes("[Security System]");
			mes("Beeeeep!");
			mes("Incorrect password.");
			mes(" ");
			switch (@retry) {
			case 1:
				mes("Initialing 2nd attempt...^000000");
				break;
			case 2:
				mes("Initialing 3rd attempt...^000000");
				break;
			case 3:
				mes("Initialing 4th attempt...^000000");
				break;
			case 4:
				mes("Initialing final attempt...^000000");
				break;
			}
		}
	}
	end;
}