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
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
|
//================= Hercules Script =======================================
//= _ _ _
//= | | | | | |
//= | |_| | ___ _ __ ___ _ _| | ___ ___
//= | _ |/ _ \ '__/ __| | | | |/ _ \/ __|
//= | | | | __/ | | (__| |_| | | __/\__ \
//= \_| |_/\___|_| \___|\__,_|_|\___||___/
//================= License ===============================================
//= This file is part of Hercules.
//= http://herc.ws - http://github.com/HerculesWS/Hercules
//=
//= Copyright (C) 2012-2020 Hercules Dev Team
//= Copyright (C) Euphy
//= Copyright (C) Samuray22
//= Copyright (C) SinSloth
//= Copyright (C) Lupus
//= Copyright (C) Balish
//= Copyright (C) Toms
//= Copyright (C) Playtester
//= Copyright (C) L0ne_W0lf
//= Copyright (C) DZeroX
//=
//= 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/>.
//=========================================================================
//= Kiel Hyre Quest/Robotic Lab Dungeon
//================= Description ===========================================
//= Quest for opening Robot Factory first and second floors.
//================= Current Version =======================================
//= 4.7
//================= Additional Comments ===================================
//= Based on [iRO Sakray] as of [03/29/2007]
//= Let it be noted that ALL DIALOG IS OFFICIAL TO IRO UNLESS SPECIFIED.
//= I've fixed a few of iRO's mistakes, but I'm sure I made some of my own.
//= Will probably require a major optimizing.
//= Not going to list ALL of the more usless NPCs. (Doors + Empty
//= "Beautiful Ladies")
//= Parties are *NOT REQUIRED* as per Doddler's Wiki information.
//================= Maps Used =============================================
//= yuno_in01 : Start quest in pub
//= kh_school : Deliver Wine here, Meet Elly
//= yuno : Get Delivery for/from "Little Kid"
//= lighthalzen : Get Delivery package for "Little Kid"
//= kh_vila : Kiel Hyre cottage.
//= kh_dun01 : Robot Factory; Save Kiel Hyre
//= kh_mansion : Kiel Hyre's Mansion in Lighthalzen
//= kh_kiehl01 : Kiehl's room/Cave
//= kh_kiehl02 : Kiehl's room/Boss Room
//================= Variables Used ========================================
//= KielHyreQuest : Main quest tracking variable (Quest finished at 106)
//= KHToastGirlEnd : 1 - Pick up delivery
//= 2 - picked up delivery
//= 3 - finished
//= Deleted once no longer needed.
//= KHCottagePoem1 : Tracks Poem 1 quest in cottage. (finished = 5)
//= Deleted once no longer needed.
//= KHCottagePoem2 : Tracks Poem 2 quest in cottage. (finished = 3)
//= Deleted once no longer needed.
//= .KHKilled : Tracks how many monsters have been killed.
//= Used with "Receiver", "Robots", and "Kiehl" NPCs
//= .KHDoor1Open : 0/1 Depending on if the first door is opened.
//= .KHDoor2Open : 0/1 Depending on if the second door is opened.
//= .KHDoor3Open : 0/1 Depending on if the third door is opened.
//= .KHDoor4Open : 0/1 Depending on if the fourth door is opened.
//= .KHDoor5Open : 0/1 Depending on if the fifth door is opened.
//= .KHKilledBoss : 0/1 depending on if the boss has been killed.
//= $@KHQuestBusy : 0/1 depending on if the boss room has been set in
//= motion.
//=========================================================================
//== Affiliated NPCs =======================================
//- Juno Pub Master/Starting point -
yuno_in01,35,179,4 script Pub Master#kh 1_ETC_01,5,5,{
if (checkweight(Tavern_Wine,1) == 0) {
mes "[Vandt]";
mes "Just a second! You're";
mes "carrying too many items";
mes "right now. You'd better";
mes "put your stuff in Kafra";
mes "Storage or you won't be";
mes "able to pick up anything new...";
close;
}
if (KielHyreQuest == 0) {
mes "[Vandt]";
mes "Hi there, welcome";
mes "to my pub. So what";
mes "would you like to have?";
next;
switch(select("Beer, please.","A cocktail, please.","Soju, please.","Maybe later.")) {
case 1:
mes "[Vandt]";
mes "Alright, let me get";
mes "you a glass of beer on";
mes "tap. There you are, this";
mes "is out special Schwaltz Beer.";
next;
mes "^3355FF*Gulp gulp gulp*^000000";
percentheal 5,-5;
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "Ahhh, it's really";
mes "good! That really";
mes "hits the spot!";
close;
case 2:
mes "[Vandt]";
mes "I'm sorry, but I have to";
mes "deliver all of our cocktail";
mes "ingredients to other customers.";
mes "Maybe I'll have enough to make";
mes "you something next time, okay?";
close;
case 3:
mes "[Vandt]";
mes "S-soju? I'm sorry,";
mes "but we don't serve that";
mes "here. It's too much of";
mes "a tough guy drink for me...";
close;
case 4:
mes "[Vandt]";
mes "Sure, just take";
mes "your time, relax,";
mes "and order something";
mes "when you're ready.";
close;
}
}
if (KielHyreQuest == 1) {
mes "[Vandt]";
mes "Hi there, welcome";
mes "to my pub. So what";
mes "would you like to have?";
next;
switch(select("Beer, please", "A cocktail, please", "Soju, please.", "You look worried, what's up?", "Cancel")) {
case 1:
mes "[Vandt]";
mes "Alright, let me get";
mes "you a glass of beer on";
mes "tap. There you are, this";
mes "is out special Schwaltz Beer.";
next;
mes "^3355FF*Gulp gulp gulp*^000000";
percentheal 5,-5;
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "Ahhh, it's really";
mes "good! That really";
mes "hits the spot!";
close;
case 2:
mes "[Vandt]";
mes "I'm sorry, but I have to";
mes "deliver all of our cocktail";
mes "ingredients to other customers.";
mes "Maybe I'll have enough to make";
mes "you something next time, okay?";
close;
case 3:
mes "[Vandt]";
mes "S-soju? I'm sorry,";
mes "but we don't serve that";
mes "here. It's too much of";
mes "a tough guy drink for me...";
close;
case 4:
mes "[Vandt]";
mes "Oh, did you overhear?";
mes "I'm sorry, it's just that one";
mes "of my employees had an";
mes "accident and was pretty hurt,";
mes "so I have nodoby that can";
mes "deliver this merchandise.";
next;
mes "[Vandt]";
mes "I have an urgent order";
mes "that I need to send to";
mes "the Kiel Hyre Academy,";
mes "but I can't find anyone";
mes "that's available for this";
mes "kind of temporary job.";
next;
switch(select("I'm sorry to hear that", "Do you want me to help you?")) {
case 1:
mes "[Vandt]";
mes "Well, I'm sure that I'll";
mes "figure something out.";
mes "Do you know anyone";
mes "that'd be interested in";
mes "some part time work?";
close;
case 2:
mes "[Vandt]";
mes "Really? That's great!";
mes "But first, I think it's fair to";
mes "tell you that this job may not";
mes "be as simple as you'd think.";
mes "I expect you to complete the";
mes "delivery, no matter what.";
next;
switch(select("Sure I'll do it", "Wait, let me think about it...")) {
case 1:
mes "[Vandt]";
mes "I'm glad to hear that.";
mes "Well then, please take this";
mes "bottle of Culinary Wine to";
mes "Mrs. ^ff0000Lecollane^000000 in the Kiel";
mes "Hyre Academy. I'll pay you";
mes "once you finish the job, okay?";
getitem Tavern_Wine,1;
KielHyreQuest = 2;
close;
case 2:
mes "[Vandt]";
mes "Sure thing. I really need";
mes "to get this done, so if you";
mes "can't do it, but know any";
mes "capable, responsible";
mes "people that can, then please";
mes "tell them about my situation.";
close;
}
}
case 5:
mes "[Vandt]";
mes "Sure, just take";
mes "your time, relax,";
mes "and order something";
mes "when you're ready.";
close;
}
}
else if ((KielHyreQuest >= 2) && (KielHyreQuest < 6)) {
mes "[Vandt]";
mes "Please deliver that bottle";
mes "of Wine I gave you to Mrs.";
mes "Mrs. ^ff0000Lecollane^000000, who should be";
mes "inside the Kiel Hyre Academy.";
mes "Hurry and get it to her before she";
mes "can complain about the delivery.";
close;
}
else if (KielHyreQuest == 6) {
if (countitem(Tavern_Wine) == 0) {
mes "[Vandt]";
mes "Oh, you're back.";
mes "Thanks for making that";
mes "delivery. Just give me";
mes "a moment, and then I can";
mes "pay you in zeny, okay?";
next;
select("I need more wine...");
mes "[Vandt]";
mes "Oh, you need to deliver";
mes "another bottle? Alright,";
mes "let me look around, and";
mes "I'll give you the wine";
mes "and your payment.";
next;
mes "^3355FFRummage Rummage^000000";
mes "^3355FFRummage Rummage^000000";
next;
mes "[Vandt]";
mes "There you go!";
mes "Thank you so much";
mes "for helping me out~";
getitem Tavern_Wine,1;
Zeny += 1000;
close;
}
else {
mes "[Vandt]";
mes "Hey, thanks a lot";
mes "for helping me out that";
mes "last time. I knew I asked";
mes "you out of the blue, but";
mes "you ended up being a life";
mes "saver! I really appreciate it!";
close;
}
}
else {
mes "[Vandt]";
mes "You're a really good";
mes "worker, you know that?";
mes "Dependable, responsible,";
mes "willing to help others, and";
mes "proactive too! I think you'll";
mes "go far in life, kid, I really do~";
close;
}
OnTouch:
if (KielHyreQuest < 1) {
mes "[Vandt]";
mes "Arrrggghhh...";
mes "This can't be good...";
mes "This isn't good at all!";
mes "What am I suposed to do?";
KielHyreQuest = 1;
close;
}
}
//- Juno Toast Sales Girl -
yuno,217,114,6 script Little Kid#kh 4W_KID,{
mes "[Cezu]";
if (KielHyreQuest < 6) {
mes "Fresh, crunchy toast!";
mes "If you want some, come";
mes "and get some tooooast~";
close;
}
else if (KielHyreQuest == 6) {
if (KHToastGirlEnd < 1) {
mes "Fresh, crunchy toast!";
mes "If you want some, come";
mes "and get some tooooast~";
mes "Oh! Hi hi~ Did you want";
mes "to buy some yummy toast?";
next;
switch(select("I'm here for Elly", "No, thanks")) {
case 1:
mes "[Cezu]";
mes "Oh, I see. Elly must have";
mes "wasted another batch of";
mes "ingredients again. Well,";
mes "she's a regular customer,";
mes "so I really want to help, but";
mes "I can't really do anything.";
next;
mes "[Cezu]";
mes "You see, I just ran";
mes "out of ingredients too!";
mes "But I can't really leave";
mes "to get some more. What if";
mes "people need to buy toast?";
mes "Listen, can you help me out?";
next;
mes "[Cezu]";
mes "Would you please go get";
mes "some flour and eggs for me";
mes "from the ^3355FFLighthalzen Windmill^000000";
mes "Then, when you come back, I can";
mes "divide the ingredients, and you";
mes "can deliver some to Elly.";
next;
mes "[Cezu]";
mes "I know that I'm basically";
mes "making you do everything";
mes "on your own, but please try";
mes "to understand that my hands";
mes "are tied. D-don't ask me";
mes "why, they just are!";
KHToastGirlEnd = 1;
close;
case 2:
mes "[Cezu]";
mes "Okay okay~";
mes "Please come again!";
close;
}
}
else if (KHToastGirlEnd == 1) {
mes "Would you please go to";
mes "the Lighthalzen Windmill";
mes "and tell them that Cezu needs";
mes "lots of flour and lots of eggs!";
mes "Then, bring all the stuff over";
mes "to me as soon as you can~";
close;
}
else if (KHToastGirlEnd == 2) {
mes "Hey, you're back with the";
mes "ingredients! Thank you so";
mes "much, I really needed these!";
mes "Now please give this flour";
mes "and these eggs to Elly, and";
mes "send her my regards. See you~";
delitem Delivery_Box,1; //Delivery_Package
getitem Delivery_Box,1; //Delivery_Package
KHToastGirlEnd = 3;
close;
}
}
//KHToastGirlEnd no longer needed-- deleting.
if (KielHyreQuest > 6) KHToastGirlEnd = 0;
mes "Hot, fresh and";
mes "cruuuunchy toast!";
mes "Come and get some!";
close;
}
//- Lighthalzen WindMill Owner -
lighthalzen,366,299,4 script Windmill Owner#kh 1_ETC_01,{
if (checkweight(Delivery_Box,1) == 0) {
mes "[Mills]";
mes "Hey, you've got too much";
mes "stuff on you right now. ";
mes "Put your junk in Kafra Storage";
mes "if you expect me to give you";
mes "anything. That's why you came";
mes "here to the miss, didn't you?";
close;
}
if (KHToastGirlEnd < 1) {
mes "[Mills]";
mes "Hey, whaddya want?";
mes "I'm pretty busy right";
mes "now, so you mind coming";
mes "back later? Then we'll talk.";
close;
}
else if (KHToastGirlEnd == 1) {
mes "[Mills]";
mes "Hey, whaddya want?";
mes "You just happened to";
mes "catch me at a good time,";
mes "but if you need anything,";
mes "you'd better spit it out quick";
mes "before things get hectic again.";
next;
switch(select("I'm here for Cezu", "......")) {
case 1:
mes "[Mills]";
mes "Oh, Cezu from the";
mes "toast stand? Okay,";
mes "I've got everything";
mes "that kid needs right";
mes "here. There's eggs inside,";
mes "so be really careful with it.";
mes "It's ready for you...";
next;
mes "[Mills]";
mes "Kid's one of my regular";
mes "customers, so you don't";
mes "have to pay me, or run any";
mes "extra errands on my end. Yeah,";
mes "I know how other people treat";
mes "you adventurers. Well, see ya.";
getitem Delivery_Box,1; //Delivery_Package
KHToastGirlEnd = 2;
close;
case 2:
mes "[Mills]";
mes "......";
mes "Um, okay, well, if";
mes "you need something,";
mes "just hollar, I guess.";
mes "Cuts, Cutz where are you?";
mes "You'd better not be goofing off!";
close;
}
}
else if (KHToastGirlEnd >= 2) {
mes "[Mills]";
mes "That Cutz is such";
mes "a lazy rascal. The guy";
mes "thinks he can fool around";
mes "when he's on the clock...!";
mes "Ah well, he knows I can't find";
mes "a better assistant. He'll learn...";
close;
}
}
lighthalzen,366,289,2 script Windmill Owner's Helper 4W_M_01,{
if (KHToastGirlEnd < 1) {
mes "[Cutz]";
mes "Man, why are we";
mes "always so busy?";
mes "Why does Mills have";
mes "to work me to the bone?";
mes "Eh, it's a living, I suppose...";
close;
}
else if (KHToastGirlEnd >= 2) {
mes "[Cutz]";
mes "Wh-what makes you";
mes "think I'm goofing off,";
mes "Mills? L-look, look,";
mes "my hands are moving,";
mes "I'm busy, I'm working!";
close;
}
else {
mes "[Cutz]";
mes "Hey, you're from";
mes "Cezu's toast stand,";
mes "right? How is cute";
mes "little Cezu doing?";
close;
}
}
//== Kiel Hyre Academy NPCs ================================
//- Girl (Talks about the academy) -
yuno_fild08,196,196,5 script Hanie#kh1 8_F,{
mes "[Hanie]";
mes "Oh, I wish I could study";
mes "at the Kiel Hyre Academy...";
mes "All of the graduates get";
mes "really nice jobs! I'm almost";
mes "jealous of the students!";
next;
select("Kiel Hyre Academy?");
mes "[Hanie]";
mes "Oh, the Kiel Hyre Academy";
mes "is a school founded by Kiel";
mes "Hyre, an inventor that became";
mes "rich from his strange machines.";
mes "He decided to give back to society";
mes "by building this private academy.";
next;
mes "[Hanie]";
mes "However, the school will";
mes "only accept orphans that are";
mes "too poor to enroll in any other";
mes "schools. Sometimes, it makes";
mes "me wish that I was an orphan too!";
mes "Well, not really, but you know...";
close;
}
//- Academy Security Guards -
yuno_fild08,158,194,6 script Security Guard#1::KHAGuard 4_M_EIN_SOLDIER,{
if ((KielHyreQuest < 2) || (KielHyreQuest > 31)) {
mes "[Security Guard]";
mes "I'm sorry, but if you aren't";
mes "associated with this institution,";
mes "then you're not authorized to";
mes "enter the ^FF0000Kiel Hyre Academy^000000.";
mes "Please leave if you don't have";
mes "an appointment with the staff.";
close;
}
else if (KielHyreQuest == 2) {
mes "[Security Guard]";
mes "I'm sorry, but if you aren't";
mes "associated with this institution,";
mes "then you're not authorized to";
mes "enter the ^FF0000Kiel Hyre Academy^000000.";
mes "Please leave if you don't have";
mes "an appointment with the staff.";
next;
switch(select("I'm here for a delivery.", "......")) {
case 1:
mes "[Security Guard]";
mes "You're here to deliver";
mes "something? Okay, just give";
mes "me the recipient's ^FF0000name^000000,";
mes "followed by the ^FF0000item^000000 being";
mes "delivered, and I'll verify it";
mes "before letting you inside.";
next;
input(.@KHDelivery$);
if (.@KHDelivery$ != "Lecollane") {
mes "[Security Guard]";
mes "You're here to deliver some";
mes "Wine to...to who? What was";
mes "the name? I...I don't think";
mes "we have anybody in the";
mes "academy named "+.@KHDelivery$+"";
close;
}
input(.@KHDelivery$);
if (.@KHDelivery$ != "Culinary Wine") {
mes "[Security Guard]";
mes "So you're here to make";
mes "a delivery to Mrs. Lecollane?";
mes "What is it you've brought for";
mes "her? Some ^3355FF"+.@KHDelivery$+"^000000?";
next;
mes "[Security Guard]";
mes "Let me buzz her first,";
mes "and check to make sure";
mes "that she's been expecting";
mes "you. Let's see now...";
next;
mes "......";
mes ".........";
mes "............";
next;
mes "[Security Guard]";
mes "Huh. Mrs Lecollane";
mes "is expecting a delivery,";
mes "but not the item that you";
mes "say that you've brought for";
mes "her. You might want to check";
mes "to see if there's been a mixup...";
close;
}
mes "[Security Guard]";
mes "Alright....";
mes "So you're here to";
mes "deliver a bottle of";
mes "Wine to Mrs. Lecollane?";
mes "Let me buzz her, and get";
mes "this confirmed real quickly.";
next;
mes "......";
mes ".........";
mes "............";
next;
mes "[Security Guard]";
mes "Okay, everything looks";
mes "good. Mrs. Lecollane";
mes "has been expecting you.";
mes "I guess you can enter.";
close2;
warp "kh_school",71,155;
end;
case 2:
mes "[Security Guard]";
mes "If you don't have";
mes "an appoointment, then";
mes "don't loiter around in";
mes "front of the academy!";
close;
}
}
else if (KielHyreQuest < 32) {
mes "[Security Guard]";
mes "Oh, did you have";
mes "other business inside";
mes "the academy? I remember";
mes "you from before, so there";
mes "shouldn't be any problems";
mes "letting you back inside...";
close2;
warp "kh_school",71,155;
end;
}
}
yuno_fild08,158,183,7 duplicate(KHAGuard) Security Guard#2 4_M_EIN_SOLDIER
//- Gossiping Teenagers/Story NPCs -
kh_school,57,142,6 script Student#kha 4_F_HUWOMAN,3,3,{
mes "[Laci]";
mes "Oh, wow! We usually";
mes "don't get visitors on";
mes "campus! Um, you're not";
mes "a new faculty member, are you?";
close;
OnTouch:
mes "[Laci]";
mes "Hey, Nesha...!";
mes "have you heard why";
mes "Aaci hasn't been coming";
mes "to class for awhile?";
next;
mes "[Gui Nesha]";
mes "That's right, I haven't";
mes "seen Aaci in awhile.";
mes "Did something happen?";
next;
mes "[Laci]";
mes "It's because....";
mes "Aaci saw a freakin' ghost!";
mes "It's one hundred percent";
mes "true! I heard about it from,";
mes "well, you know, my sources.";
next;
mes "[Gui Nesha]";
mes "...Wha...?";
mes "Oh, come on,";
mes "get outta town.";
close;
}
kh_school,57,139,0 script Student#khb 4_F_HUWOMAN,{
mes "[Gui Nesha]";
mes "Aren't we a little";
mes "old to be talking about";
mes "this kind of stuff? You";
mes "know, rumors and ghost";
mes "stories that make no sense?";
mes "C'mon, Laci, knock it off!";
emotion e_swt2;
close;
}
//- Mrs. Lecollane -
kh_school,176,60,4 script Lady#kh 4W_F_01,{
if (KielHyreQuest < 2) {
mes "[Mrs. Lecollane]";
mes "Is there a problem?";
mes "Outsiders are not allowed to come";
mes "in here, please leave.";
close;
}
else if (KielHyreQuest == 2) {
mes "[Mrs. Lecollane]";
mes "Oh, hello. Ah!";
mes "have you come to";
mes "deliver my wine? The";
mes "security guard called and";
mes "mentioned you were coming.";
next;
switch(select("Yes, that's right!", "Er, s-sorry!")) {
case 1:
mes "[Mrs. Lecollane]";
mes "Well, you've come a little";
mes "later than I thought, but";
mes "I suppose it can't be helped.";
mes "I guess the waiting has just";
mes "heightened my anticipation";
mes "for this bottle of wi--";
next;
mes "^3355FF*Cling! Crrrack!*^000000";
next;
mes "[Mrs. Lecollane]";
mes "Elly? Elly did you";
mes "break something again?!";
mes "You've got to be more careful!";
mes "If you don't finish baking those";
mes "cookies by the end of today, your";
mes "semester grades will suffer!";
next;
mes "[Elly]";
mes "B-but I just...";
next;
mes "[Mrs. Lecollane]";
mes "^FF0000Elly^000000!!";
next;
mes "[Elly]";
mes "......";
mes "Yes, Mrs. Lecollane.";
next;
mes "[Mrs. Lecollane]";
mes "*Ahem* Excuse me.";
mes "Would you please leave";
mes "the wine over there? You";
mes "may go now, and please";
mes "don't wander needlessly";
mes "around the academy.";
delitem Tavern_Wine,1;
KielHyreQuest = 4;
close;
case 2:
mes "[Mrs. Lecollane]";
mes "Hm...?";
mes "I guess I must";
mes "be mistaken. I'm";
mes "sorry, I thought you";
mes "were somebody else.";
close;
}
}
else if (KielHyreQuest == 4) {
mes "[Mrs Lecollane]";
mes "Well, our business is";
mes "completed, so would you";
mes "please leave the campus";
mes "as soon as you can? *Sigh*";
mes "I can't believe our future";
mes "is in these girls' hands...";
close;
}
}
//- Elly (In school) -
kh_school,179,39,0 script Cute Student#kh 4_F_KHELLY,{
if (checkweight(Spawn,200) == 0) {
mes "[Elly]";
mes "I'm sorry, but would you";
mes "put some of your things in";
mes "your Kafra Storage first or";
mes "something? I can't really";
mes "help you when you're ";
mes "carrying so much stuff.";
close;
}
cutin "kh_elly01",2;
if (KielHyreQuest < 4) {
cutin "kh_elly03",2;
mes "[Elly]";
mes "W-wah! Oh...!";
mes "^333333*Phew*^000000 That was close,";
mes "I almost dropped them ";
mes "again! Why do I have so much";
mes "trouble handling ingredients?";
}
else if (KielHyreQuest == 4) {
cutin "kh_elly03",2;
mes "[Elly]";
mes "Oh no, what should";
mes "I do? ^333333*Sob*^000000 Wh-what";
mes "am I going to do? ^333333*Sniff*^000000";
next;
switch(select("What happened?", "......")) {
case 1:
mes "[Elly]";
mes "I... I have to finish baking";
mes "this batch of cookies by the";
mes "end of today, but then I spilled";
mes "all of the ingredients on the";
mes "floor. I don't know how I can";
mes "bake those cookies now...";
next;
switch(select("What can I do to help you?", "Oh, I'm so sorry.")) {
case 1:
cutin "kh_elly02",2;
mes "[Elly]";
mes "What was that...?";
mes "You'll really help";
mes "me? That's wonderful!";
mes "Thank you! Thanks so much!";
next;
break;
case 2:
mes "[Elly]";
mes "Wait, you don't go";
mes "to this school, don't";
mes "you? Y-you're one of";
mes "those adventurers, right?";
next;
select("Yeah, that's right.");
mes "Listen, I know you";
mes "probably have your own";
mes "plans, but do you think";
mes "you can help me with this";
mes "huge problem that I have?";
next;
switch(select("Accept", "Decline")) {
case 1:
cutin "kh_elly02",2;
mes "How Wonderful!";
mes "Thank you! Thank you";
mes "so much! I'm supposed to";
mes "finish baking this batch of";
mes "cookies soon, but I spilled";
mes "all of the ingredients...";
next;
break;
case 2:
mes "["+strcharinfo(PC_NAME)+"]";
mes "I'm outta here.";
next;
cutin "kh_elly04",2;
mes "[Elly]";
mes "W-wait...!";
mes "Come back, you";
mes "d-don't...! I really";
mes "need some help!";
emotion e_sob;
close2;
cutin "",255;
end;
}
}
cutin "kh_elly01",2;
mes "[Elly]";
mes "Well, I guess the only way";
mes "I can bake these cookies is";
mes "to get some new ingredients.";
mes "I'm sorry to be such a burden,";
mes "but if you didn't offer to help";
mes "me, then I'd have no one to ask!";
next;
cutin "kh_elly04",2;
mes "[Elly]";
mes "You don't understand how";
mes "important it is that I bake";
mes "these cookies... If I don't";
mes "finish this assignment, then";
mes "Mrs. Crank will fail me for";
mes "the entire semester!";
next;
mes "[Elly]";
cutin "kh_elly01",2;
mes "Okay, I need to calm";
mes "down. I think I can do";
mes "this with your help.";
mes "Would you please do me";
mes "this huge favor and bring";
mes "all of these ingredients?";
next;
mes "[Elly]";
mes "^3355FF1 Wine^000000,";
mes "^3355FF7 Milks^000000,";
mes "^3355FF5 Cacaos^000000,";
mes "^3355FF2 Cheeses^000000,";
mes "^3355FF1 Egg^000000, and";
mes "^3355FF1 Bag of Flour^000000.";
next;
mes "[Elly]";
mes "Let's see... You can";
mes "get Wine from a pub in";
mes "Juno, Cacaos from hunting";
mes "Yoyos, and you can get flour";
mes "and Eggs from the girl that";
mes "runs the Toast Stand in Juno.";
next;
mes "[Elly]";
mes "Good luck, getting";
mes "everything, and I hope";
mes "you hurry back here with";
mes "those cookie ingredients";
mes "as quickly as you can, okay?";
KielHyreQuest = 6;
break;
case 2:
mes "[Elly]";
mes "*Sob*...";
break;
}
}
else if (KielHyreQuest == 6) {
if ((countitem(Milk) < 7) || (countitem(Cheese) < 2) || (countitem(Cacao) < 5) || (countitem(Tavern_Wine) < 1) || (countitem(Delivery_Box) < 1)) {
mes "[Elly]";
mes "Let's see, would you";
mes "like me to remind you";
mes "which ingredients I need?";
mes "Please bring these things as";
mes "soon as you can so that I can";
mes "quickly bake some cookies~";
next;
mes "[Elly]";
mes "^3355FF1 Wine^000000,";
mes "^3355FF7 Milks^000000,";
mes "^3355FF5 Cacaos^000000,";
mes "^3355FF2 Cheeses^000000,";
mes "^3355FF1 Egg^000000, and";
mes "^3355FF1 Bag of Flour^000000.";
next;
cutin "kh_elly01",2;
mes "[Elly]";
mes "Let's see... You can";
mes "get Wine from a pub in";
mes "Juno, Cacaos from hunting";
mes "Yoyos, and you can get flour";
mes "and Eggs from the girl that";
mes "runs the Toast Stand in Juno.";
}
else {
cutin "kh_elly02",2;
mes "[Elly]";
mes "Hooray! Finally, I have";
mes "everything I need! This is";
mes "great! Oh, would you please";
mes "give me a moment while I bake";
mes "these cookies? It shouldn't take";
mes "long, so hold on just a bit.";
delitem Milk,7;
delitem Cheese,2;
delitem Cacao,5;
delitem Tavern_Wine,1;
delitem Delivery_Box,1; //Delivery_Package
KielHyreQuest = 8;
//KHPubMasterEnd no longer needed-- deleting.
KHPubMasterEnd = 0;
KHToastGirlEnd = 0;
emotion e_ho;
}
}
else if (KielHyreQuest == 8) {
mes "[Elly]";
mes "Tadah! I did it!";
mes "They're finally done!";
mes "Elly's special cookies.";
mes "I'd like you to have some";
mes "as thanks for helping me out.";
next;
mes "[Elly]";
mes "I'm sorry, but I was so";
mes "preoccupied with baking";
mes "these cookies that I didn't";
mes "even ask for your name. I'm";
mes "^FF0000Ellyja^000000, but everybody calls me,";
mes "''Elly.'' What's your name?";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "^3355FF"+strcharinfo(PC_NAME)+"^000000.";
mes "It's ^3355FF"+strcharinfo(PC_NAME)+"^000000.";
next;
cutin "kh_elly02",2;
mes "[Elly]";
mes ""+strcharinfo(PC_NAME)+"?";
mes "...that name! It's wonderful!";
getitem Well_Baked_Cookie,5;
KielHyreQuest = 10;
}
else if (KielHyreQuest == 10) {
mes "[Elly]";
mes "I'm sorry, but I have";
mes "another favor to ask you";
mes "if you don't mind helping";
mes "me out again. Don't worry,";
mes "you won't have to hurry as";
mes "quickly as you did last time.";
next;
switch(select("What do you need?", "Sorry, but I'm pretty busy...")) {
case 1:
mes "[Elly]";
mes "You know how you helped";
mes "me bake those cookies?";
mes "It's the first time I was able";
mes "to do it without burning them!";
mes "I just know Grandfather'd";
mes "be so proud of me!";
next;
mes "[Elly]";
mes "I really want Grandfather";
mes "to taste the cookies I baked,";
mes "but the cookies will be stale";
mes "by the time I'm able to leave";
mes "campus. Would you deliver these";
mes "cookies to my grandfather for me?";
next;
switch(select("Sure", "I'm busy.")) {
case 1:
cutin "kh_elly02",2;
mes "[Elly]";
mes "Oh, "+strcharinfo(PC_NAME)+"!";
mes "Thank you so much, I knew";
mes "you'd understand! Would you";
mes "please bring the cookies to";
mes "him at ^FF0000Kiel Hyre's cottage^000000?";
next;
mes "[Elly]";
mes "Oh, right! They're really";
mes "careful about visitors and";
mes "keeping strangers off the";
mes "property, but if you mention";
mes "my name, they'll let you in.";
mes "Alright then, see you~";
KielHyreQuest = 12;
break;
case 2:
cutin "kh_elly03",2;
mes "[Elly]";
mes "Oh, um...";
mes "Okay, I'm sorry to";
mes "have bothered you...";
break;
}
break;
case 2:
cutin "kh_elly03",2;
mes "[Elly]";
mes "Oh, um...";
mes "Okay, I'm sorry to";
mes "have bothered you...";
break;
}
}
else if (KielHyreQuest == 12) {
mes "[Elly]";
mes "Oh, you don't know where";
mes "to find Kiel Hyre's cottage?";
mes "It's just north from this";
mes "academy. Please deliver my";
mes "cookies to Grandfather, and";
mes "let him know I really miss him.";
}
else if (KielHyreQuest == 14) {
cutin "kh_elly03",2;
mes "[Elly]";
mes "Hm? Grandfather's not";
mes "home? That's strange, he";
mes "didn't mention anything about";
mes "any business trips. I thought";
mes "he'd be at home all day...";
next;
cutin "kh_elly04",2;
mes "[Elly]";
mes "Would you go back to his";
mes "cottage one more time? Here,";
mes "you can use this Cottage Key.";
mes "That way, you can just go";
mes "inside and talk to him~";
getitem Villa_Spare_Key,1;
KielHyreQuest = 16;
}
else if ((KielHyreQuest >= 14) && (KielHyreQuest < 20)) {
mes "[Elly]";
mes "That's so weird...";
mes "I thought Grandfather";
mes "said that he'd be at";
mes "home all day today...";
}
else if (KielHyreQuest == 20) {
mes "[Elly]";
mes "Hmm...?";
mes "What's this,";
mes "a letter for me?";
next;
mes "^3355FFElly opened the envelope";
mes "and started reading the letter.^000000";
next;
mes "^333333Dearest Elly,";
mes " ";
mes "I have something to discuss";
mes "with my son Kiehl, so I am";
mes "leaving to meet with him.";
mes "If you don't hear from me";
mes "after 7 days after I've written";
mes "this letter, then you must";
mes "escape the academy as soon";
mes "as possible, and retrieve";
mes "something inside our ";
mes "cottage's study.";
mes " ";
mes "If you have a friend you";
mes "can trust, please ask him";
mes "to follow my traces in the";
mes "cottage. I might be in danger,";
mes "and in dire need of rescue.";
mes " ";
mes "Elly, don't trust anyone";
mes "in the academy, even your";
mes "classmates, since they may";
mes "be influenced by Kiehl.";
mes " ";
mes "Be careful, and I love you.";
mes " ";
mes "--Grandpa^000000";
next;
cutin "kh_elly03",2;
mes "[Elly]";
mes "What? Oh no, it's been";
mes "ten days since he wrote";
mes "this letter! Ah, does this";
mes "mean that he's in danger?!";
mes "Oh no, what should I do?";
delitem Kyll_Hire_Letter,1; //Letter_to_Elly
KielHyreQuest = 22;
}
else if (KielHyreQuest == 22) {
cutin "kh_elly03",2;
mes "[Elly]";
mes "......";
mes ".........";
mes "............";
next;
switch(select("About your grandpa", "Tell me about Kiehl", "What's with this academy?")) {
case 1:
mes "[Elly]";
mes "Oh! My grandfather is";
mes "Kiel Hyre, founder and";
mes "CEO of the Kiel Hyre";
mes "foundation. He looks";
mes "strict and cold hearted,";
mes "but he's actually very nice!";
next;
mes "[Elly]";
mes "We're not related by";
mes "blood, but he's taken";
mes "care of me ever since";
mes "I lost my parents. Oh,";
mes "Grandapa, where are you?";
mes "I'm getting so worried!";
break;
case 2:
mes "[Elly]";
mes "Kiehl? That's my";
mes "grandfather's son...";
mes "I don't know him that";
mes "well, and only saw him";
mes "once at an academy event.";
next;
mes "[Elly]";
mes "Mmm, he's a good looking";
mes "guy with pale skin, silver";
mes "hair, and this cold, fierce";
mes "stare. A lot of my classmates";
mes "worship Kiehl because he's";
mes "also a business genius~";
next;
mes "[Elly]";
mes "It's weird though...";
mes "I have no idea why my";
mes "grandpa and Kiehl don't";
mes "get along. They're both";
mes "really good at what they do...";
break;
case 3:
mes "[Elly]";
mes "Well, I know the security";
mes "here is really tight, but";
mes "that's because everything";
mes "here is so luxurious and";
mes "expensive, you know~";
next;
mes "[Elly]";
mes "We also have a very";
mes "special curriculum where";
mes "you learn more of what you";
mes "want. Personally, I want to";
mes "become a great career woman";
mes "like ^0000FFMs. Allysia^000000. Heh heh~";
next;
mes "[Elly]";
mes "This place certainly";
mes "isn't like other schools.";
//mes "You already know that only";
mes "Yeah, everything is made to";
mes "fit each of the student's needs.";
next;
mes "[Elly]";
mes "Recently, though?";
mes "Some really weird stuff";
mes "has been happening. All of";
mes "my classmates are afraid of";
mes "going out alone by themselves.";
next;
cutin "kh_elly02",2;
mes "[Elly]";
mes "But I'll be okay!";
mes "You'll be there to";
mes "rescue me from danger,";
mes "right, "+strcharinfo(PC_NAME)+"?";
next;
switch(select("Who is Ms. Allysia?", "Strange incidents?")) {
case 1:
mes "[Elly]";
mes "Oh, Ms. Allysia is";
mes "Grandfather's secretary~";
mes "She's so beautiful, and";
mes "my grandfather really";
mes "trusts her with everything!";
break;
case 2:
cutin "kh_elly04",2;
mes "[Elly]";
mes "Well, "+strcharinfo(PC_NAME)+"...";
mes "I'm not supposed to tell";
mes "anyone outside of the school,";
mes "but I can trust you! You see...";
mes "We're haunted by a ghost!";
next;
mes "[Elly]";
mes "I know it sounds crazy,";
mes "but this ghost wanders the";
mes "campus, and curses its victims,";
mes "making them so cold and lifeless.";
mes "It happened to my roommate,";
mes "Mayo. It's like she's a statue...";
next;
mes "[Elly]";
mes "I snuck into the medical";
mes "office to see her, and she...";
mes "She couldn't do anything!";
mes "What would happen if the";
mes "ghost decided to curse me?!";
next;
cutin "kh_elly02",2;
mes "[Elly]";
mes "You know what...?";
mes "If I ever got cursed";
mes "by that ghost, just yell";
mes "''^FF0000Wake up, Elly!^000000''";
mes "That'll wake me up for sure!";
KielHyreQuest = 24;
break;
}
}
}
else if (KielHyreQuest >= 24 && KielHyreQuest <= 26) {
cutin "kh_elly04",2;
mes "[Elly]";
mes "Argh, I'm in a fix!";
mes "I have to finish my";
mes "homework before it's due!";
mes "Yeah, I've got to go see";
mes "Mrs. Lecollane now.";
next;
mes "[Elly]";
mes "Say, "+strcharinfo(PC_NAME)+",";
mes "if it's okay, would you";
mes "please go find what my";
mes "grandpa left for me in";
mes "the ^FF0000cottage study^000000? You're";
mes "the only one I can trust!";
next;
mes "[Elly]";
mes "Anyway, I'll see you later";
mes "in the evening! Please come";
mes "by my ^FF0000dorm room^000000. Um, the";
mes "dorms are in the church just";
mes "behind the academy, okay?";
next;
mes "[Elly]";
mes "My room is in the back,";
mes "and it's on the ^FF0000second floor^000000";
mes "^FF0000on the left side^000000. Please use";
mes "a ladder to come up, okay?";
mes "I'll leave my window open";
mes "for you, so just come, okay?";
next;
mes "[Elly]";
mes "Hurry, hurry, the";
mes "teacher's coming!";
KielHyreQuest = 26;
}
else {
mes "[Elly]";
mes "Hurry, hurry, the";
mes "teacher's coming!";
}
close2;
cutin "",255;
end;
}
//- Elly's Window -
yuno_fild08,69,185,0 script Window#kh HIDDEN_NPC,{
if (KielHyreQuest < 29) {
mes "^3355FFYou can see a curtain";
mes "decorated with a cute";
mes "design through the";
mes "window of this room,";
mes "which is probably";
mes "used by a young girl.^000000";
close;
}
else if (KielHyreQuest== 29) {
mes "^3355FFThis must be Elly's room.";
mes "It doesn't sound like anyone";
mes "is inside, so she probably";
mes "isn't back yet. For now, you";
mes "should try to find what her";
mes "grandfather left for her";
mes "in their cottage's Study.^000000";
close;
}
else if ((KielHyreQuest >= 30) && (KielHyreQuest <= 45)) {
mes "^3355FFThis slightly open window";
mes "must lead into Elly's room.";
mes "Although she asked you to";
mes "find a ladder to enter her";
mes "window, you probably won't";
mes "find one. You might be able";
mes "to climb up that water pipe...^000000";
next;
switch(select("Climb Water Pipe", "Find Another Way")) {
case 1:
if (rand(1,3) == 2) {
mes "^3355FFYou climbed up the";
mes "water pipe, and sneaked";
mes "into Elly's room successfully.^000000";
close2;
warp "kh_school",185,185;
end;
}
else {
mes "^3355FFYou tried to climb";
mes "the water pipe, but";
mes "you ended up falling";
mes "and bumping your head.^000000";
percentheal -10,0;
close;
}
case 2:
mes "^3355FFThere must be some";
mes "other way to get into";
mes "Elly's room, aside from";
mes "climbing up this water pipe...^000000";
close;
}
}
else {
mes "^3355FFYou can't go up into";
mes "that open window.^000000";
close;
}
}
//- Elly (In Dormitory) -
kh_school,178,180,4 script Elly 4_F_KHELLY,{
if (checkweight(Spawn,200) == 0) {
mes "^3355FFJust a second...";
mes "You're carrying too";
mes "many items with you";
mes "right now, so you'll";
mes "need to free up more";
mes "Inventory space first...^000000";
close;
}
if (KielHyreQuest < 30) {
mes "[Elly]";
mes "Who the heck are you?";
mes "Y-you're not supposed";
mes "to be able to get inside!";
mes "Get out of here right now!";
close2;
percentheal -99,0;
warp "yuno_fild08",100,100;
end;
}
else if (KielHyreQuest < 32) {
mes "[Elly]";
mes "......";
mes ".........";
mes "............";
close;
}
else if (KielHyreQuest == 32) {
mes "[Elly]";
mes "......";
mes ".........";
mes "............";
next;
mes "^3355FFElly seems to have";
mes "been cursed, and is";
mes "completely still and";
mes "lifeless. You've got to";
mes "try something, but what?^000000";
next;
switch(select("Wake her up by shaking.", "Wake her up by yelling.", "Ignore")) {
case 1:
mes "^3355FFYou grab Elly by the";
mes "shoulders, and try to get";
mes "her to respond by violently";
mes "shaking her entire body.^000000";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "Elly? Elly! No!";
mes "Come back to us!";
next;
mes "^3355FFElly's not responding...^000000";
close;
case 2:
input(.@KHInput$);
if (.@KHInput$ == "Wake up, Elly!") {
mes "[Elly]";
mes ".............";
next;
mes "^3355FFAs soon as you said those";
mes "words, a ^000000Small Golden Key^3355FF";
mes "and a ^000000Button^3355FF drop from Elly's";
mes "hands. It looks like she woke";
mes "up, but only for an instant.^000000";
getitem Golden_Key,1;
getitem Kiel_Button,1;
KielHyreQuest = 34;
close;
}
mes "[Elly]";
mes "......";
mes ".........";
mes "............";
next;
mes "^3355FFElly's not responding...^000000";
close;
case 3:
mes "^3355FFAlright...";
mes "But sooner or later,";
mes "you should try to break";
mes "the curse placed on Elly.^000000";
close;
}
}
else if (KielHyreQuest == 34) {
if (countitem(Iron_Box) < 1) {
//Missing text, needs another run through.
mes "^3355FFMaybe the golden key^000000";
mes "unlocks something in the^000000";
mes "Cottage. Let's take another look.^000000";
close;
}
else {
mes "^3355FFIt looks like Elly's";
mes "Golden Key might fit";
mes "into the keyhole on the";
mes "Grey Box you found inside";
mes "Kiel Hyre's Cottage.^000000";
next;
mes "^3355FFYou successfully open the";
mes "Grey Box with the Golden Key,";
mes "and find a Blue Keycard, along";
mes "with a folded note, inside the";
mes "Grey Box. You quickly read";
mes "the note's contents...^000000";
next;
mes "Dearest Elly,";
mes "Kiehl finally broke the taboo,";
mes "and tried to transform you guys";
mes "into something horrible.";
mes "^FFFFFF_^000000";
mes "By the time you read this,";
mes "my life is probably in danger.";
mes "Whether I live depends on you.";
mes "^FFFFFF_^000000";
mes "You'll already learn if you";
mes "meet Puppet, but I want to tell";
mes "you myself: you're not human.";
mes "You'll learn the details if you";
mes "enter the factory by using the";
mes "entrance near the grave next";
mes "to the church. Then, I want";
mes "you to find Allysia inside";
mes "the factory's secret room.";
mes "I've registered your name in";
mes "her security system, so don't";
mes "worry. Hopefully, Allysia will";
mes "then come to save me...";
mes "^FFFFFF_^000000";
mes "Sorry about that,";
mes "Grandpa";
getitem Blue_Key_Card,1;
delitem Iron_Box,1;
KielHyreQuest = 36;
close;
}
}
else if (KielHyreQuest >= 36) {
mes "^3355FFThis is where you";
mes "discovered the note";
mes "locked inside the Grey Box.";
mes "The following message was";
mes "written in the note by Elly's";
mes "grandfather, Kiel Hyre.^000000";
next;
mes "Dearest Elly,";
mes "Kiehl finally broke the taboo,";
mes "and tried to transform you guys";
mes "into something horrible.";
mes "^FFFFFF_^000000";
mes "By the time you read this,";
mes "my life is probably in danger.";
mes "Whether I live depends on you.";
mes "^FFFFFF_^000000";
mes "You'll already learn if you";
mes "meet Puppet, but I want to tell";
mes "you myself: you're not human.";
mes "You'll learn the details if you";
mes "enter the factory by using the";
mes "entrance near the grave next";
mes "to the church. Then, I want";
mes "you to find Allysia inside";
mes "the factory's secret room.";
mes "I've registered your name in";
mes "her security system, so don't";
mes "worry. Hopefully, Allysia will";
mes "then come to save me...";
mes "^FFFFFF_^000000";
mes "Sorry about that,";
mes "Grandpa";
close;
}
}
//- Cookie Basket -
kh_school,175,176,0 script Cookie Basket#kh HIDDEN_NPC,{
if (KielHyreQuest < 30) {
mes "^3355FFIt's a cookie";
mes "basket filled with";
mes "delicious cookies.^000000";
close;
}
else if (KielHyreQuest == 30) {
mes "^3355FFThis must be";
mes "Elly's cookie basket.";
mes "There appears to be";
mes "a folded note wedged";
mes "between the cookies.^000000";
next;
switch(select("Read Note", "Ignore")) {
case 1:
mes ""+strcharinfo(PC_NAME)+", help!";
mes "There's this guy dressed in";
mes "black who's walking around,";
mes "and casting this weird spell!";
mes "He's the one that's been making";
mes "people cold and lifeless as";
mes "puppets! I'm getting scared!";
mes "^FFFFFF_^000000";
mes "I hope you get this note...";
mes "He ran after me, but I locked";
mes "myself in my room. I'm going";
mes "to leave my window open so that";
mes "you can still find me. I hope he";
mes "doesn't cast his curse on me!";
KielHyreQuest = 32;
close;
case 2:
mes "^3355FFThat note probably";
mes "wasn't written just";
mes "for you, anyway.^000000";
close;
}
}
else if (KielHyreQuest < 108) {
mes "^3355FFThese cookies aren't";
mes "stale yet, but they're no";
mes "longer warm. If they're";
mes "not at room temperature,";
mes "then they're a little cold.^000000";
close;
}
else if (KielHyreQuest == 108) {
mes "^3355FFAs you stare at the";
mes "cookie basket, the wind";
mes "from the window jostles";
mes "it, revealing a letter that";
mes "was placed underneath.";
mes "It was probably written";
mes "by Elly for you to read.^000000";
next;
mes "^333333Dearest "+strcharinfo(PC_NAME)+",";
mes " ";
mes "My teachers usually yell at me";
mes "since I make so many mistakes,";
mes "but today Mrs. Lecollane gave me";
mes "praise for my yummy cookies!";
mes "It's all thanks to you, my friend.";
mes "I'm very happy we've met:";
mes "you've taught me that there";
mes "are good people in the world.";
mes "And I know Grandpa will like";
mes "you, though, I don't know";
mes "where he could be...";
mes " ";
mes "Someday, I hope to become";
mes "as nice a person as you are.";
mes "Let's keep in touch and be";
mes "really good friends, okay?";
mes " ";
mes "Yours, Elly^000000";
next;
mes "^3355FFIt feels like you can";
mes "still sense Elly's warmth";
mes "and kindness from her";
mes "cookie basket. You picked";
mes "out a cookie, and put it";
mes "in your mouth. It was";
mes "deliciously bittersweet.";
KielHyreQuest = 109;
next;
input(.@input$);
mes "["+strcharinfo(PC_NAME)+"]";
mes ""+.@input$+"";
mes "It's time to go back. I can't";
mes "stay here much longer.";
close2;
warp "yuno_fild08",69,183;
end;
}
else {
mes "^3355FFAll the cookies";
mes "in this basket are";
mes "stale! Well, it shouldn't";
mes "come as a surprise.";
mes "It's been a long time";
mes "since they were baked.^000000";
close;
}
end;
}
//- Elly's Window (In Dormitory) -
kh_school,188,185,0 script Window#kh2 HIDDEN_NPC,{
warp "yuno_fild08",69,183;
end;
}
//- Grave/Kiel Hyre dungeon entry -
yuno_fild08,71,170,0 script Grave#kh HIDDEN_NPC,{
if (KielHyreQuest < 36) {
mes "^3355FFIt's just a grave.";
mes "It might be important";
mes "to you later, but now";
mes "it's not really all that";
mes "helpful to you.^000000";
close;
}
else if (KielHyreQuest == 36) {
if (countitem(Yellow_Key_Card) < 1) {
mes "^3355FFIt's just a grave.";
mes "It might be important";
mes "to you later, but now";
mes "it's not really all that";
mes "helpful to you.^000000";
close;
}
else {
mes "^3355FFThere's a secret door";
mes "near this grave. It looks";
mes "like there's some kind of";
mes "slot and a number pad";
mes "installed on the door.^000000";
next;
mes "^3355FFWhat should you";
mes "insert into the slot?^000000";
next;
input(.@KHInput$);
if (.@KHInput$ == "Yellow Keycard") {
mes "^3355FFAn electronic confirmation";
mes "chime sounds once you insert";
mes "the Yellow Keycard, followed by";
mes "an automated voice that asks:^000000";
next;
mes "[Security System]";
mes "Please enter the password.";
next;
input(.@KHInput$);
next;
if (.@KHInput$ == "4772961") {
mes "[Security System]";
mes "Password confirmed.";
mes "Welcome, Kiel Hyre.";
next;
mes "^3355FFYou hear another ";
mes "pleasant beep, and";
mes "a secret path opens.^000000";
KielHyreQuest = 38;
close;
}
mes "[Security System]";
mes "Incorrect password.";
mes "Please try again.";
close;
}
mes "^3355FFWhatever you're trying";
mes "to insert into the slot";
mes "isn't working at all...^000000";
close;
}
}
else if ((KielHyreQuest >= 38) && (KielHyreQuest < 106)) {
mes "^3355FFThe door to the";
mes "factory is wide open.^000000";
next;
switch(select("Enter", "Cancel")) {
case 1:
warp "kh_dun01",3,230;
end;
case 2:
mes "......";
mes ".........";
mes "............";
close;
}
}
else if (KielHyreQuest >= 106) {
if (countitem(Fancy_Key_Card) < 1) {
mes "^3355FFThe secret entrance";
mes "has now been sealed.^000000";
close;
}
else {
mes "As you approach the";
mes "grave, it begins to";
mes "emit flashes of light.^000000";
next;
switch(select("Use the ^0000FFLuxurious Keycard^000000", "Ignore")) {
case 1:
mes "Once you use the";
mes "Luxurious Keycard,";
mes "a secret path opens^000000";
next;
switch(select("Enter", "cancel")) {
case 1:
warp "kh_dun01",3,230;
end;
case 2:
mes "......";
mes ".........";
mes "............";
close;
}
case 2:
mes "......";
mes ".........";
mes "............";
close;
}
}
}
}
//== Kiel Hyre Cottage NPCs ================================
//- Cottage Keeper -
yuno_fild02,93,210,4 script Cottage Keeper#kh 4_M_03,{
if ((KielHyreQuest < 12) || (KielHyreQuest > 12)) {
mes "[Cottage Keeper]";
mes "This is private property,";
mes "so please do not enter this";
mes "area unless you're authorized.";
close;
}
else if (KielHyreQuest == 12) {
mes "[Cottage Keeper]";
mes "This is private property,";
mes "so please do not enter this";
mes "area unless you're authorized.";
next;
switch(select("I have an appointment with Kiel Hyre.", "Alright.")) {
case 1:
mes "[Cottage Keeper]";
mes "You have an";
mes "appointment with";
mes "Master Kiel Hyre?";
mes "Um, are you sure?";
next;
switch(select("Yes", "No")) {
case 1:
mes "[Cottage Keeper]";
mes "There must be some sort";
mes "of mistake. Mister Hyre";
mes "wouldn't have left if he";
mes "was supposed to keep";
mes "an appointment...";
KielHyreQuest = 14;
close;
case 2:
mes "[Cottage Keeper]";
mes "Well unless you have";
mes "an appointment, I don't";
mes "think you'll be able to";
mes "meet with Mister Hyre.";
close;
}
case 2:
mes "[Cottage Keeper]";
mes "Goodbye.";
close;
}
}
}
//- Cottage Door (left) -
yuno_fild02,75,218,0 script Door#kh2 HIDDEN_NPC,{
if (KielHyreQuest < 16) {
mes "^3355FFThis door is locked.";
mes "If someone inside won't";
mes "open it for you, then you'll";
mes "need the right key to unlock it.";
close;
}
if (KielHyreQuest == 16) {
mes "^3355FFThis door is locked.";
mes "If someone inside won't";
mes "open it for you, then you'll";
mes "need the right key to unlock it.";
next;
switch(select("Unlock", "Cancel")) {
case 1:
mes "^3355FFYou unlock the door with the";
mes "key that Elly gave you, and";
mes "as you push it open, a folded";
mes "note dropped from top of the";
mes "door. The following words";
mes "are written on this crude note.";
next;
mes "6 Forward,";
mes "3 Left,";
mes "3 Forward,";
mes "4 Left";
close2;
KielHyreQuest = 18;
warp "kh_vila",188,18;
end;
case 2:
mes "......";
mes ".........";
mes "............";
close;
}
}
else {
mes "^3355FFThe door is open.^000000";
next;
switch(select("Enter", "Cancel")) {
case 1:
warp "kh_vila",188,18;
end;
case 2:
close;
}
}
}
//- Cottage Door (Right) -
yuno_fild02,109,218,0 script Door#kh1 HIDDEN_NPC,{
if (KielHyreQuest != 16) {
mes "^3355FFThis door is locked.";
mes "If someone inside won't";
mes "open it for you, then you'll";
mes "need the right key to unlock it.";
close;
}
if (KielHyreQuest == 16) {
mes "^3355FFThis door is locked.";
mes "If someone inside won't";
mes "open it for you, then you'll";
mes "need the right key to unlock it.";
next;
switch(select("Open", "Cancel")) {
case 1:
mes "^3355FFYou don't have";
mes "the key that can";
mes "unlock this door.^000000";
close;
case 2:
mes "......";
mes ".........";
mes "............";
close;
}
}
}
//- Store room interior; Wall -
kh_vila,191,14,0 script Wall#kh HIDDEN_WARP_NPC,1,1,{
if (KielHyreQuest < 28) {
mes "^3355FFIt's just a wall.";
mes "It's not particularly";
mes "standing in your way.^000000";
close;
}
if (KielHyreQuest >= 28) {
mes "^3355FFThe wall is now";
mes "open, revealing";
mes "a secret path.^000000";
next;
switch(select("Enter", "Cancel")) {
case 1:
warp "kh_vila",17,177;
end;
case 2:
close;
}
}
}
//- Store room interior; books -
kh_vila,184,20,0 script Book#kh1::BookKHQ1 HIDDEN_NPC,{
if (KielHyreQuest != 26) {
mes "^3355FFThis bookshelf is^000000";
mes "^3355FFcrammed with many^000000";
mes "^3355FFlarge, hardcover books^000000";
close;
}
else if (KielHyreQuest == 26) {
if (rand(1,10) == 8) {
mes "^3355FFWithout thinking, you";
mes "reach for a book from";
mes "the bookshelf. As you";
mes "pull it towards you, the";
mes "wall slides opens open";
mes "to reveal a secret path.^000000";
KielHyreQuest = 28;
specialeffect(EF_READYPORTAL2, AREA, getnpcid("Wall#kh"));
close;
}
else {
mes "^3355FFThis bookshelf is";
mes "crammed with many";
mes "large, hardcover books.^000000";
close;
}
}
}
kh_vila,181,20,0 duplicate(BookKHQ1) Book#kh2 HIDDEN_NPC
kh_vila,178,20,0 duplicate(BookKHQ1) Book#kh3 HIDDEN_NPC
kh_vila,175,19,0 duplicate(BookKHQ1) Book#kh4 HIDDEN_NPC
//- Store room interior; Letter to Elly on the floor. -
kh_vila,179,11,0 script Letter#kh FAKE_NPC,1,1,{
OnTouch:
if (KielHyreQuest == 18) {
if (checkweight(Kyll_Hire_Letter,1) == 0) {
mes "^3355FFJust a minute...!";
mes "There's something on";
mes "the floor here, but you";
mes "can't pick it up since";
mes "you're carrying too";
mes "many items now.^000000";
close;
}
mes "^3355FFYou've found a letter";
mes "on the floor. Naturally,";
mes "you pick it up, despite";
mes "the fact that it's not";
mes "addressed to you.^000000";
getitem Kyll_Hire_Letter,1;
KielHyreQuest = 20;
close;
} else {
mes "^3355FFYou entered the room.^000000";
close;
}
end;
}
//- Cottage interior, kitchen; Box (Pet Food vending machine) -
kh_vila,16,175,0 script Box#khp1 HIDDEN_NPC,{
mes "^FFFFFF##^000000*Tasty-Nutricious-Delicious*";
mes "*Cute Pet Doof Vending Machine*";
mes "The best food for your Cute Pets";
mes "that is superior to the Pet Food";
mes "you can buy in the market!";
mes "^FFFFFF_^000000";
mes "Price: 1,100 zeny (cheap!)";
next;
switch(select("Buy!", "Cancel")) {
case 1:
if (Zeny < 1100) {
mes "^3355FFUnfortunately, you";
mes "don't have enough";
mes "zeny to insert into";
mes "the vending machine.^000000";
close;
}
else {
mes "^3355FFOh no...!^000000";
mes "^3355FF1,100 zeny seems kind";
mes "of expensive for Pet Food,";
mes "but if it's better than the";
mes "normal stuff, it might";
mes "be worth a shot.^000000";
next;
mes "^3355FFOh no...!";
mes "There's nothing";
mes "special about it";
mes "at all! It's just";
mes "normal Pet Food!";
Zeny -= 1100;
getitem Pet_Food,1;
close;
}
case 2:
mes "^3355FFThis vending machine";
mes "seems really shady and";
mes "suspicious for some reason.^000000";
close;
}
}
//- Cottage interior, kitchen; Apple Box (Useless?) -
kh_vila,30,184,0 script Apple Box#khp1 HIDDEN_NPC,{
mes "^3355FFYou find a box filled with";
mes "ripe, delicious apples.^000000";
next;
switch(select("Take the box", "Leave it")) {
case 1:
mes "^3355FFNo...! Wait!";
mes "Something's wrong!";
mes "Whatever you do,";
mes "don't take this box!^000000";
next;
mes "^3355FFAnd so, your inner";
mes "voice, your Jungian";
mes "shadow if you will,";
mes "prevented you from";
mes "taking the box.^000000";
close;
case 2:
mes "^3355FFSomething is wrong";
mes "with this box of apples.^000000";
close;
}
}
//- Cottage interior, dining room; Map -
kh_vila,44,126,0 script Map#khp1 HIDDEN_NPC,{
if ((KHCottagePoem1 < 2) && (KielHyreQuest < 30)) {
mes "^3355FFA magnificent world map,";
mes "detailing the Rune-Midgarts";
mes "Kingdom, Schwaltzvalt Republic,";
mes "as well as another country to the";
mes "west whose name is unfamiliar";
mes "to you, is pasted to this wall.^000000";
next;
mes "^3355FFAs you examine the";
mes "world map more closely,";
mes "you find that something has";
mes "been hidden underneath it.^000000";
switch(select("Ignore", "Examine")) {
case 1:
mes "^3355FFWhatever might be";
mes "hidden beneath this";
mes "map probably isn't";
mes "important enough for";
mes "you to investigate.^000000";
close;
case 2:
mes "^3355FFUnfortunately, you can't";
mes "see what's under the map";
mes "since it's pasted to the wall.";
mes "You'll need to find some";
mes "way to loosen the glue";
mes "without damaging the map...^000000";
KHCottagePoem1 = 1;
close;
}
}
else if ((KHCottagePoem1 == 2) && (KielHyreQuest < 30)) {
mes "^3355FFYou bring the pot of";
mes "steaming hot liquid";
mes "close to the world map.";
mes "As the paste on the wall";
mes "moistens, the map slowly";
mes "begins to peel back.^000000";
next;
mes "^3355FFThe peeling map reveals";
mes "a folded piece of paper";
mes "hidden beneath it. You";
mes "take the paper, and smooth";
mes "the map out to adhere it to the";
mes "wall once again. A message is";
mes "written on the piece of paper.^000000";
next;
mes "^0000FFShe will be in a place";
mes "as cold as the poles.";
mes "When the well is dried";
mes "and the earth is cracked,";
mes "the path to her heart, a";
mes "heart as transparent as";
mes "crystal, will be open.^000000";
next;
mes "^3355FFI'll have to fight four";
mes "snakes with four swords";
mes "to find her. The first sword";
mes "is love. The second sword";
mes "is despair. The third sword";
mes "is rage. The fourth sword is";
mes "hope. To find her, to rescue her.^000000";
next;
mes "^3355FF...............................";
mes "The deeper meaning";
mes "of this poem, if it even";
mes "exists, eludes you.^000000";
KHCottagePoem1 = 3;
close;
}
else if ((KHCottagePoem1 > 2) || (KielHyreQuest >= 30)) {
mes "^3355FFThis is were you found";
mes "the paper on which the";
mes "poem was written. Perhaps";
mes "it would be a good idea to";
mes "refresh your memory and";
mes "read that poem again.^000000";
next;
switch(select("Read", "Cancel")) {
case 1:
mes "^0000FFShe will be in a place";
mes "as cold as the poles.";
mes "When the well is dried";
mes "and the earth is cracked,";
mes "the path to her heart, a";
mes "heart as transparent as";
mes "crystal, will be open.^000000";
next;
mes "^3355FFI'll have to fight four";
mes "snakes with four swords";
mes "to find her. The first sword";
mes "is love. The second sword";
mes "is despair. The third sword";
mes "is rage. The fourth sword is";
mes "hope. To find her, to rescue her.^000000";
next;
mes "^3355FF...............................";
mes "The deeper meaning";
mes "of this poem, if it even";
mes "exists, eludes you.^000000";
close;
case 2:
mes "^3355FFThere's no need for";
mes "you to reread this poem.";
mes "You're a freakin' genius!^000000";
close;
}
}
}
//- Cottage interior, kitchen; Pot -
kh_vila,33,184,0 script Pot#khp1 HIDDEN_NPC,{
if (KHCottagePoem1 < 1) {
mes "^3355FFYou've found a pot";
mes "filled with boiling,";
mes "steaming liquid.^000000";
close;
}
else if (KHCottagePoem1 == 1) {
mes "^3355FFYou've found a pot";
mes "filled with boiling,";
mes "steaming liquid.";
mes "Steam... That you could";
mes "use to loosen the glue on";
mes "the map... You're a genius!^000000";
next;
switch(select("Try it.", "That? That won't work!")) {
case 1:
mes "^3355FFYou picked up the";
mes "boiling pot, but";
mes "slightly burned your";
mes "hands by accident.";
KHCottagePoem1 = 2;
close;
case 2:
mes "^3355FFNo, no...";
mes "We'd better try";
mes "something else.^000000";
close;
}
}
else if ((KHCottagePoem1 > 1) || (KielHyreQuest >= 30)){
mes "^3355FFThis is where you";
mes "picked up the pot filled";
mes "with steaming hot liquid.^000000";
close;
}
}
//- Cottage interior, fire place; Calabash -
kh_vila,14,55,0 script Calabash#khp1 HIDDEN_NPC,{
if ((countitem(Old_Copper_Key) < 1) && (countitem(Green_Key_Card) < 1) && (countitem(Iron_Box) < 1) && (KielHyreQuest < 38)) {
if (checkweight(Old_Copper_Key,1) == 0) {
mes "^3355FFThat's a nice looking";
mes "calabash. You might even";
mes "get something from it...";
mes "But first you better get";
mes "rid of all your extra weight.";
mes "And by weight, I mean items.^000000";
close;
}
mes "^3355FFIt's an expensive";
mes "looking calabash--";
mes "or in less fancy";
mes "words, a ''gourd.''";
mes "Would do you do?^000000";
next;
switch(select("Break Open Calabash", "Look Inside Calabash", "Ignore")) {
case 1:
mes "^3355FFYou can't break";
mes "open that calabash...";
mes "You're a hero, not a vandal.";
mes "Now, if this act of vandalism";
mes "can be considered an act of";
mes "heroism, then it'd be okay.^000000";
close;
case 2:
mes "^3355FFYou tenderly place";
mes "your hand into the";
mes "calabash, and gently";
mes "feel around with your";
mes "fingers until you retrieve";
mes "an Old Bronze Key.^000000";
getitem Old_Copper_Key,1; //Old_Bronze_Key
close;
case 3:
mes "^3355FFThere's probably";
mes "nothing inside anyway.^000000";
close;
}
}
else {
mes "^3355FFThis is the expensive";
mes "looking calabash from";
mes "which you've obtained";
mes "the Old Bronze Key.";
mes "It's useless to you now.^000000";
close;
}
}
//- Cottage interior, garden; Pool -
kh_vila,39,41,0 script Pool#khp1 HIDDEN_NPC,{
if ((KHCottagePoem1 < 3) && (KielHyreQuest < 30)) {
mes "^3355FFYou find a fancy pool";
mes "filled with fresh water.^000000";
close;
}
else if ((KHCottagePoem1 == 3) && (KielHyreQuest < 30)) {
mes "^3355FFYou find a fancy pool";
mes "filled with fresh water,";
mes "along with a conscpicuous";
mes "lion statue with two handles.^000000";
next;
switch(select("Pull Handles", "Cancel")) {
case 1:
mes "Which handle would";
mes "you like to pull first?";
next;
switch(select("Right Handle", "Left Handle")) {
case 1:
mes "^3355FFYou pull the right";
mes "handle, causing water";
mes "to gush out of the lion's";
mes "mouth. It looks pretty cool~^000000";
close;
case 2:
mes "^3355FFAs soon as you pull the";
mes "left handle, the water in";
mes "the pool drains away. The";
mes "pool empties, and you can";
mes "see a layer of green moss";
mes "covering the pool's bottom.^000000";
next;
switch(select("Ignore", "Investigate")) {
case 1:
mes "^3355FFYou decide that";
mes "a pool is little more";
mes "than a hole without";
mes "any water to fill it.^000000";
close;
case 2:
mes "^3355FFAs you look through";
mes "the wet moss at the";
mes "bottom of the pool,";
mes "you stumble upon a";
mes "small, peculiar button.^000000";
next;
switch(select("Press button", "Don't Press Button")) {
case 1:
mes "^3355FFYou press the button,";
mes "which seems to trigger";
mes "a strange sound coming";
mes "from the stairs at the hallway.^000000";
KHCottagePoem1 = 4;
close;
case 2:
mes "^3355FFYou'd better not push";
mes "this button. Your enemies";
mes "must have hidden it carefully";
mes "for you to find: it must be";
mes "some sort of nefarious trap.^000000";
close;
}
}
}
case 2:
mes "^3355FFYou decided not";
mes "to pull any handles.^000000";
close;
}
}
else if ((KHCottagePoem1 > 3) || (KielHyreQuest >= 30)) {
mes "^3355FFThis is where you pressed";
mes "the small button that caused";
mes "some strange sound to come";
mes "from the stairs near the hallway.";
close;
}
}
//- Cottage interior, upstairs; Vicious Dog -
kh_vila,181,178,4 script Vicious Dog#khp1 4_DOG01,7,3,{
OnTouch:
mes "*Grrr~*";
next;
mes "^3355FFAn extremely vicious";
mes "looking dog is glaring";
mes "at you. Can you really";
mes "pass by this creature";
mes "without getting hurt?^000000";
next;
switch(select("March forward", "Run away")) {
case 1:
if (countitem(Pet_Food) >= 1) {
mes "^3355FFWait! Perhaps you can";
mes "use food to soothe the";
mes "savage beast. Why don't";
mes "you feed it some of your Pet";
mes "Food and see what happens?^000000";
next;
switch(select("Give Pet Food", "It won't work!")) {
case 1:
mes "^3355FFYou gingerly throw the";
mes "Pet Food towards the dog.";
mes "Its tail shakes violently as";
mes "it devours the food. You'd";
mes "better pass this dog now";
mes "while you have the chance!^000000";
delitem Pet_Food,1;
close2;
warp "kh_vila",173,182;
end;
case 2:
break;
}
}
mes "^3355FFYou slowly approach";
mes "the dog, but it won't";
mes "stop snarling at you.";
mes "You try to run past the";
mes "dog, but it blocks all of";
mes "your moves. What to do?^000000";
next;
mes "[Vicious Dog]";
mes "BOW WOW!";
mes "BOW WOW!";
mes "BOW WOW WOW!";
next;
mes "^3355FFThe dog chased you";
mes "downstairs like the";
mes "suckah chump you are.^000000";
close2;
warp "kh_vila",126,70;
end;
case 2:
mes "^3355FFLet's get out of here!^000000";
close2;
warp "kh_vila",126,70;
end;
}
}
//- Cottage interior, upstairs; Drawer, first room nightstand -
kh_vila,115,186,0 script Drawer#khp1 HIDDEN_NPC,{
if (checkweight(Yellow_Key_Card,1) == 0) {
mes "^3355FFThere's something inside";
mes "this drawer, but you can't";
mes "take it since you're carrying";
mes "to many items with you. Maybe";
mes "you should pay a visit to your";
mes "trusty Kafra Storage first.^000000";
close;
}
if ((countitem(Yellow_Key_Card) < 1) && (KielHyreQuest <= 36)) {
mes "^3355FFYou find an old drawer";
mes "^that has been closed.";
mes "^If you open it, then you";
mes "^might find something";
mes "^inside. Or could it be";
mes "^empty. Who knows?^000000";
next;
switch(select("Open Drawer", "Ignore")) {
case 1:
mes "^3355FFYou obtain a Yellow";
mes "Keycard from inside the";
mes "drawer. Opening that drawer";
mes "turned out to be worthwhile.^000000";
getitem Yellow_Key_Card,1;
close;
case 2:
mes "^3355FFForget opening that";
mes "drawer. I mean, come on,";
mes "what would be the point?^000000";
close;
}
}
else {
mes "^3355FFThis is where you";
mes "found the Yellow Keycard.";
mes "This drawer is now empty.^000000";
close;
}
}
//- Cottage interior, upstairs; Box -
kh_vila,107,126,0 script Box#khp2 HIDDEN_NPC,{
if ((countitem(Old_Copper_Key) < 1) && (countitem(Green_Key_Card) < 1) && (countitem(Iron_Box) < 1) && (KielHyreQuest < 38)) {
mes "^3355FFA solid box is laid";
mes "on the floor in which";
mes "a smaller, locked box";
mes "has been placed inside.^000000";
close;
}
else if ((countitem(Old_Copper_Key) >= 1) && (countitem(Green_Key_Card) < 1) && (countitem(Iron_Box) < 1) && (KielHyreQuest < 38)) {
mes "^3355FFA solid box is laid";
mes "on the floor in which";
mes "a smaller, locked box";
mes "has been placed inside.";
mes "Perhaps you can use your";
mes "Old Bronze Key to unlock it.^000000";
next;
switch(select("Use Old Bronze Key", "No, it'll never work.")) {
case 1:
mes "^3355FFYour hunch paid off!";
mes "The Old Bronze Key really";
mes "did unlock that box! You";
mes "open the inner box and";
mes "obtain the Green Keycard";
mes "that was locked inside.";
getitem Green_Key_Card,1;
delitem Old_Copper_Key,1; //Old_Bronze_Key
close;
case 2:
mes "^3355FFWhat...?";
mes "What? Using a key";
mes "to unlock a lock?";
mes "Come on, that's";
mes "freakin' crazy talk!^000000";
close;
}
}
else {
mes "^3355FFThis is the box from";
mes "which you've obtained";
mes "the Green Keycard.^000000";
close;
}
}
//- Cottage interior, upstairs; Bookshelf -
kh_vila,181,138,0 script Bookshelf#khp1 HIDDEN_NPC,{
if ((countitem(Iron_Box) < 1) && (countitem(Old_Copper_Key) >= 1) || (countitem(Green_Key_Card) >= 1)) {
mes "^3355FFOne of the books on";
mes "this crammed bookshelf";
mes "is labeled with the note,";
mes "''To Elly.'' It must have been";
mes "left behind by her grandfather.^000000";
next;
switch(select("Examine Book", "Ignore")) {
case 1:
mes "^3355FFYou skim through the";
mes "book's pages, and don't";
mes "find anything particularly";
mes "interesting. However, you";
mes "notice a steel surface behind the";
mes "shelf as you place the book back.^000000";
next;
switch(select("Examine the steel surface", "Ignore")) {
case 1:
mes "^3355FFYou remove more of the";
mes "shelf's books to reveal";
mes "that the steel surface is";
mes "part of a safe hidden behind";
mes "the bookshelf. There are two";
mes "keyholes on the steel safe.^000000";
next;
switch(select("Try all your keys", "Cancel")) {
case 1:
mes "^3355FFWhich key will";
mes "you insert into";
mes "the first keyhole?^000000";
next;
if (countitem(Old_Copper_Key) >= 1) {
select("Old Bronze Key", "Cottage Key");
mes "^3355FFWhich key will";
mes "you insert into";
mes "the second keyhole?^000000";
next;
select("Old Bronze Key", "Cottage Key");
}
else if (countitem(Green_Key_Card) >= 1) {
switch(select("Green Keycard", "Cottage Key")) {
case 1:
.@KHFirstKeyhole = 1;
break;
case 2:
.@KHFirstKeyhole = 2;
break;
}
mes "^3355FFWhich key will";
mes "you insert into";
mes "the second keyhole?^000000";
next;
switch(select("Green Keycard", "Cottage Key")) {
case 1:
.@KHSecondKeyhole = 1;
break;
case 2:
.@KHSecondKeyhole = 2;
break;
}
if (.@KHFirstKeyhole == 2) && (.@KHSecondKeyhole == 1) {
mes "^3355FFThe safe opens with";
mes "a click, and you see";
mes "a Grey Box inside.";
mes "You take the Grey Box";
mes "with you, hoping that it";
mes "will come in handy later.^000000";
delitem Villa_Spare_Key,1;
delitem Green_Key_Card,1;
getitem Iron_Box,1;
close;
}
}
mes "^3355FFThe safe won't open.^000000";
close;
case 2:
mes "^3355FFIt's probably a better";
mes "idea to investigate the";
mes "cottage for the keys that";
mes "will open up this safe...^000000";
close;
}
case 2:
mes "^3355FFYou place the books";
mes "back on the bookshelf.^000000";
close;
}
case 2:
mes "^3355FFYou can probably";
mes "find better clues";
mes "somewhere else";
mes "around here.^000000";
close;
}
}
else {
mes "^3355FFYou've found a";
mes "bookshelf that's";
mes "crammed with books.^000000";
close;
}
}
//- Cottage interior, upstairs; Desk -
kh_vila,118,144,0 script Desk#khp1 HIDDEN_NPC,{
if (KHCottagePoem2 < 1) {
mes "^3355FFThere are piles of papers";
mes "and books stacked on top";
mes "of the desk covering topics";
mes "like artificial power, Sage";
mes "Varmundt's research, factory";
mes "robotization, and magic scrolls...^000000";
next;
mes "^3355FFWhile rummaging through";
mes "the books and papers, you";
mes "find a piece of paper with";
mes "the Kiel Hyre Foundation's";
mes "official seal. You decide that";
mes "it might come in handy someday.^000000";
next;
mes "^3355FFYou've obtained";
mes "a blank piece of";
mes "paper with the Kiel";
mes "Hyre Foundation seal.^000000";
KHCottagePoem2 = 1;
close;
}
else if (KHCottagePoem2 >= 1) {
mes "^3355FFThere are piles of papers";
mes "and books, covering various";
mes "scientific and magic topics,";
mes "stacked on top of this desk.^000000";
close;
}
}
//- Cottage interior, upstairs; Medicine Chest -
kh_vila,123,170,0 script Medicine Chest#khp1 HIDDEN_NPC,{
if ((KHCottagePoem2 < 1) && (KielHyreQuest < 30)) {
mes "^3355FFThis medicine cabinet";
mes "is filled with bottles of";
mes "various colors. What kind";
mes "of medicine can be found here?^000000";
close;
}
else if ((KHCottagePoem2 == 1) && (KielHyreQuest < 30)) {
mes "^3355FFThis medicine cabinet";
mes "is filled with bottles of";
mes "various colors. What kind";
mes "of medicine can be found here?^000000";
next;
mes "^3355FFWait, you have a blank piece";
mes "of paper with the Kiel Hyre";
mes "Foundation seal! It's strange";
mes "that the seal was put on a blank";
mes "piece of paper. Maybe something";
mes "is written on it with special ink?^000000";
next;
mes "^3355FFIt's a crazy hunch, but";
mes "maybe, just maybe, you can";
mes "use something inside this";
mes "medicine cabinet that will";
mes "reveal any invisible ink";
mes "written on this document!^000000";
next;
switch(select("What? That's crazy!", "Of course! Let's try it!")) {
case 1:
mes "^3355FFSorry.";
mes "I thought it";
mes "was a good idea...^000000";
close;
case 2:
switch(select("Try Red Liquid", "Try Blue Liquid", "Try Yellow Liquid", "Try Green Liquid", "Cancel")) {
case 1:
.@KHPotionColor$ = "red";
break;
case 2:
mes "^3355FFIt works!";
mes "The blue liquid is";
mes "revealing small text";
mes "written on the paper.";
mes "It looks like some";
mes "kind of long poem...^000000";
next;
mes "[Poem]";
mes "The first snake is made of";
mes "steel, but I used my rage";
mes "to destroy it. The second";
mes "snake is made of magic,";
mes "but my love pierced its heart.";
next;
mes "[Poem]";
mes "The third snake is flesh";
mes "and blood, but my hope";
mes "defeated it in the end.";
mes "However, the fourth and";
mes "final snake is formless, and";
mes "no one knows its appearance.";
next;
mes "[Poem]";
mes "I cast my despair to the air,";
mes "but nobody knows if it killed";
mes "the snake. I am merely ^0000FFa little";
mes "lost devil^000000 with four swords and";
mes "four snakes, searching for that";
mes "girl in the darkness.";
next;
mes "^3355FFThis is a very";
mes "strange poem. What";
mes "could it possibly mean?^000000";
KHCottagePoem2 = 2;
close;
case 3:
.@KHPotionColor$ = "yellow";
break;
case 4:
.@KHPotionColor$ = "green";
break;
case 5:
mes "^3355FFNever mind.";
mes "This idea sounds";
mes "too crazy to work...";
mes "like puttting a man";
mes "on the moon. Can you";
mes "believe that hogwash?^000000";
close;
}
mes "^3355FFYou tried sprinkling";
mes "the "+.@KHPotionColor$+" liquid from the";
mes "medicine cabinet onto";
mes "the blank paper with the";
mes "Kiel Hyre Foundation seal.";
mes "However, nothing happened...^000000";
close;
}
}
else if ((KHCottagePoem2 >= 2) || (KielHyreQuest >= 30)) {
mes "^3355FFThis is where you poured";
mes "some blue liquid to read";
mes "a poem written in invisible";
mes "ink on the blank piece of paper";
mes "with the Kiel Hyre Foundation";
mes "seal. Would you like read it?^000000";
next;
switch(select("No time!", "Read")) {
case 1:
mes "^3355FFYou're running out of";
mes "time! For now, it would";
mes "be best for you to search";
mes "every inch of this cottage.^000000";
close;
case 2:
mes "[Poem]";
mes "The first snake is made of";
mes "steel, but I used my rage";
mes "to destroy it. The second";
mes "snake is made of magic,";
mes "but my love pierced its heart.";
next;
mes "[Poem]";
mes "The third snake is flesh";
mes "and blood, but my hope";
mes "defeated it in the end.";
mes "However, the fourth and";
mes "final snake is formless, and";
mes "no one knows it's appearance.";
next;
mes "[Poem]";
mes "I cast my despair to the air,";
mes "but nobody knows if it killed";
mes "the snake. I am merely a ^3355FFlittle^000000";
mes "^3355FFlost devil^000000 with four swords and";
mes "four snakes, searching for that";
mes "girl in the darkness.";
close;
}
}
}
//- Cottage interior, stair case; Sword hilt -
kh_vila,136,68,0 script Sword Hilt#kh HIDDEN_NPC,{
if ((KHCottagePoem1 < 3) || (KHCottagePoem2 < 2) && (KielHyreQuest < 30)) {
mes "^3355FFThere are four elaborately";
mes "designed swords positioned";
mes "next to four creepy looking";
mes "snake sculptures.^000000";
close;
}
else if ((KHCottagePoem1 <= 4) || (KHCottagePoem2 <= 2) && (KielHyreQuest < 30)) {
mes "^3355FFThere are four elaborately";
mes "designed swords positioned";
mes "next to four creepy looking";
mes "snake sculptures. Wait!";
mes "Perhaps they're related to";
mes "that poem you read earlier...";
next;
switch(select("No way!", "Of course!")) {
case 1:
mes "^3355FFImpossible...";
mes "It must be some";
mes "kind of coincidence...^000000";
close;
case 2:
mes "^3355FFOf course! And look!";
mes "There's a hole on top";
mes "of the head of each snake";
mes "sculpture. These holes seem";
mes "big enough to insert each of";
mes "the ornamental swords nearby...^000000";
next;
switch(select("Ignore", "Insert Ornamental Swords")) {
case 1:
mes "^3355FFImposible...^000000";
mes "^3355FFIt must be some^000000";
mes "^3355FFkind of coincidence...^000000";
close;
case 2:
if (KHCottagePoem1 != 4) {
mes "^3355FFCan't... Pull out...";
mes "Sword! It must be";
mes "locked into place";
mes "somehow, or sealed";
mes "by some strange force!^000000";
close;
}
else {
mes "^3355FFYou should probably";
mes "try to insert each sword";
mes "into the correct snake.";
mes "First, please select the";
mes "snake in which you will";
mes "insert the first sword.^000000";
next;
switch(select("First Snake", "Second Snake", "Third Snake", "Fourth Snake")) {
default:
break;
case 2:
++.@KHSwords;
break;
}
next;
mes "^3355FFNow, please choose";
mes "the snake in which you";
mes "will insert the second sword.^000000";
next;
switch(select("First Snake", "Second Snake", "Third Snake", "Fourth Snake")) {
default:
break;
case 4:
++.@KHSwords;
break;
}
next;
mes "^3355FFNext, please select";
mes "the snake in which you";
mes "will insert the third sword.^000000";
next;
switch(select("First Snake", "Second Snake", "Third Snake", "Fourth Snake")) {
case 1:
++.@KHSwords;
break;
default:
break;
}
next;
mes "^3355FFLastly, please select";
mes "the snake in which you";
mes "will insert the fourth sword.^000000";
next;
switch(select("First Snake", "Second Snake", "Third Snake", "Fourth Snake")) {
default:
break;
case 3:
++.@KHSwords;
break;
}
if (.@KHSwords == 4) {
mes "^3355FFYour ears are suddenly";
mes "filled with a low buzzing";
mes "noise, and your mind";
mes "and body feel as if they";
mes "are being swept away...^000000";
KHCottagePoem1 = 5;
KHCottagePoem2 = 3;
close2;
warp "kh_vila",178,72;
end;
}
else {
mes "^3355FFNothing happened...";
mes "You probably didn't";
mes "insert the swords into";
mes "the correct snakes. For now,";
mes "you should return the swords,";
mes "and then try this again later.^000000";
close;
}
}
}
}
}
else if ((KHCottagePoem1 == 5) && (KHCottagePoem2 == 3) || (KielHyreQuest >= 30)) {
mes "^3355FFHere is a hidden";
mes "path that leads to";
mes "the secret laboratory.^000000";
next;
switch(select("Enter", "Cancel")) {
case 1:
warp "kh_vila",178,72;
end;
case 2:
close;
}
}
}
//- Cottage interior, Secret Room; left test tube -
kh_vila,179,68,0 script Test Tube#khp2 HIDDEN_NPC,{
mes "^3355FFThis test tube contains";
mes "a young man dressed in";
mes "a Kiel Hyre Academy";
mes "uniform. Somehow, you";
mes "get the feeling that you've";
mes "seen him somewhere before.^000000";
close;
}
//- Cottage interior, Secret Room; Right test tube -
kh_vila,185,68,0 script Test Tube::TestTubeKHQ2 HIDDEN_NPC,{
if (KielHyreQuest > 28) {
mes "^3355FFA strange looking,";
mes "wizened old man is";
mes "held within this test tube.^000000";
close;
}
else if (KielHyreQuest == 28) {
mes "^3355FFA strange looking,";
mes "wizened old man is";
mes "held within this test tube.";
mes "There is a small red button";
mes "right underneath the test tube.^000000";
next;
switch(select("Press Button", "Investigate Further")) {
case 1:
mes "[???]";
mes "H-hello...? C-can you";
mes "hear me? I don't recognize";
mes "you... But... Maybe I forgot?";
mes "Wait, wait. If you're my friend,";
mes "then you know what to call me,";
mes "right? Do you know what I am?";
next;
input(.@KHInput$);
if (.@KHInput$ == "little lost devil") {
mes "[???]";
mes "Heh... Heh heh...";
mes "He knows... Hey, you";
mes "have to remember these";
mes "numbers, okay? D-don't";
mes "forget, they'll be important...";
mes "^FF00004^000000, ^FF00007^000000, ^FF00007^000000, ^FF00002^000000, ^FF00009^000000, ^FF00006^000000, ^FF00001^000000. That's all...";
next;
mes "^3355FF4772961^000000";
mes "^3355FFWhat could^000000";
mes "^3355FFthose numbers^000000";
mes "^3355FFpossibly mean?^000000";
//KHCottagePoem1 and KHCottagePoem2 no longer needed-- deleting
KHCottagePoem1 = 0;
KHCottagePoem2 = 0;
KielHyreQuest = 30;
close;
}
mes "[???]";
mes "No... No...";
mes "That's not right.";
mes "I don't think we";
mes "were friends. No...";
close;
case 2:
mes "^3355FFLet's investigate";
mes "this area a little";
mes "more first.^000000";
close;
}
}
else if (KielHyreQuest >= 30) {
if ((countitem(Iron_Box) > 0) && (countitem(Yellow_Key_Card) > 0)){
mes "^3355FFWhat could the";
mes "number 4772961";
mes "mean? For now, you've";
mes "found everything that";
mes "you need from this place,";
mes "so you should return to Elly.^000000";
close;
}
else {
mes "^3355FFWhat could the";
mes "number 4772961";
mes "mean? For now, you'd";
mes "better search this cottage";
mes "for any clues you can find...^000000";
close;
}
}
end;
}
//== Robot Factory NPCs ====================================
//- Robotic's Factory; Heavy Door -
kh_dun01,235,48,0 script Heavy Door#kh1::HeavyDoorKHQ1 HIDDEN_NPC,{
if (KielHyreQuest < 38) {
mes "^3355FFThere is a large, heavy";
mes "door infront of you.^000000";
next;
switch(select("Open Door", "Cancel")) {
case 1:
input(.@KHInput$);
mes "^3355FFYou try to push the";
mes "door open with all";
mes "your might, but fail";
mes "to make it budge.^000000";
close;
case 2:
mes "^3355FFyou decided to leave";
mes "this door alone until";
mes "you can figure out";
mes "how to open it^000000";
close;
}
}
else if ((KielHyreQuest >= 38) && (KielHyreQuest < 46)) {
mes "^3355FFThere is a large, heavy";
mes "door in front of you.^000000";
next;
switch(select("Open Door", "Cancel")) {
case 1:
input(.@KHInput$);
if (.@KHInput$ == "Blue Keycard") {
mes "^3355FFYou've successfully";
mes "opened the door.";
close2;
warp "kh_school",119,144;
end;
}
mes "^3355FFYou try to push the";
mes "door open with all";
mes "your might, but fail";
mes "to make it budge.^000000";
close;
case 2:
mes "^3355FFYou decided to leave";
mes "this door alone until";
mes "you can figure out";
mes "how you can open it.^000000";
close;
}
}
else {
mes "^3355FFThis is an incredibly";
mes "heavy door that is tightly";
mes "closed. You won't be able to";
mes "open it through brute force.^000000";
close;
}
}
//- Robotic's Factory; Heavy Door (These doors don't seem to serve any purpose) -
kh_dun01,76,233,0 script Heavy Door::HeavyDoorKHQ2 HIDDEN_NPC,{
if ((KielHyreQuest >= 38) && (KielHyreQuest < 46)) {
mes "^3355FFThere is a large, heavy";
mes "door infront of you.^000000";
next;
switch(select("Open Door", "Cancel")) {
case 1:
input(.@KHInput$);
mes "^3355FFYou try to push the";
mes "door open with all";
mes "your might, but fail";
mes "to make it budge.^000000";
close;
case 2:
mes "^3355FFyou decided to leave";
mes "this door alone until";
mes "you can figure out";
mes "how to open it^000000";
close;
}
}
else {
mes "^3355FFThere is a large, heavy";
mes "door infront of you^000000";
close;
}
}
kh_dun01,106,233,0 duplicate(HeavyDoorKHQ2) Heavy Door#kh3 HIDDEN_NPC
kh_dun01,6,164,0 duplicate(HeavyDoorKHQ2) Heavy Door#kh4 HIDDEN_NPC
kh_dun01,6,133,0 duplicate(HeavyDoorKHQ2) Heavy Door#kh5 HIDDEN_NPC
kh_dun01,6,60,0 duplicate(HeavyDoorKHQ2) Heavy Door#kh6 HIDDEN_NPC
kh_dun01,6,30,0 duplicate(HeavyDoorKHQ2) Heavy Door#kh7 HIDDEN_NPC
kh_dun01,6,18,0 duplicate(HeavyDoorKHQ2) Heavy Door#kh8 HIDDEN_NPC
kh_dun01,235,70,0 duplicate(HeavyDoorKHQ2) Heavy Door#kh9 HIDDEN_NPC
kh_dun01,235,92,0 duplicate(HeavyDoorKHQ2) Heavy Door#kh10 HIDDEN_NPC
kh_dun01,235,114,0 duplicate(HeavyDoorKHQ2) Heavy Door#kh11 HIDDEN_NPC
//- Beautiful Lady and Beautiful Lady copies -
kh_school,119,149,4 script Beautiful Lady#kh1::BeatifulLadyKHQ1 4_F_KHELLISIA,{
cutin "kh_ellisia",2;
if (KielHyreQuest < 40) {
mes "[Allysia]";
mes "Hm? I don't think";
mes "I know you. Kiel Hyre";
mes "has only authorized Elly,";
mes "and a trusted friend that";
mes "may be helping her, to";
mes "be admitted to this area.";
next;
mes "[Allysia]";
mes "I cannot see ^FF0000Elly^000000.";
mes "Has she been attacked as well?";
mes "Are you ^FF0000Elly's friend^000000?";
next;
mes "[Allysia]";
mes "I don't see Elly anywhere";
mes "around here. I can only let";
mes "you enter if you can identify";
mes "yourself as Elly's friend.";
mes "Is there anything that you";
mes "can present to me as proof?";
next;
switch(select("Yellow Keycard", "Blue Keycard", "Golden Key", "Carved Button", "...?")) {
default:
break;
case 3:
mes "[Allysia]";
mes "Ah, isn't this the";
mes "key that Kiel Hyre gave";
mes "to Elly? Yes, I'm convinced";
mes "that you've been helping her.";
mes "I've been waiting for you, so";
mes "let me guide you to my room.";
close2;
cutin "",255;
warp "kh_school",120,180;
end;
case 4:
mes "[Allysia]";
mes "Th-that's Kiehl's";
mes "seal! Did he send you";
mes "here to get me?! I'm";
mes "not taking any chances!";
close2;
cutin "",255;
monster "kh_school",117,144,"Bomb",1745,1;
monster "kh_school",117,144,"Bomb",1745,1;
monster "kh_school",117,144,"Bomb",1745,1;
monster "kh_school",117,144,"Bomb",1745,1;
end;
case 5:
mes "[Allysia]";
mes "......";
mes "........";
mes "...........";
close2;
cutin "",255;
end;
}
mes "[Allysia]";
mes "Hm? This doesn't prove";
mes "that Elly really trusts you...";
close2;
cutin "",255;
end;
}
else if (KielHyreQuest >= 40) {
mes "[Allysia]";
mes "Please follow me.";
close2;
cutin "",255;
warp "kh_school",120,180;
end;
}
}
kh_school,117,149,4 script Beautiful lady#kh2::BeatifulLadyKHQ2 4_F_KHELLISIA,{
end;
}
kh_school,118,149,4 duplicate(BeatifulLadyKHQ2) Beautiful lady#kh3 4_F_KHELLISIA
kh_school,120,149,4 duplicate(BeatifulLadyKHQ2) Beautiful lady#kh4 4_F_KHELLISIA
kh_school,121,149,4 duplicate(BeatifulLadyKHQ1) Beautiful lady#kh5 4_F_KHELLISIA
//- Beautiful Lady "Allysia" -
kh_school,122,186,4 script Beautiful Lady#kh6 4_F_KHELLISIA,{
if (checkweight(Red_Key_Card,1) == 0) {
mes "^3355FFJust a second...";
mes "You're carrying too";
mes "many items with you";
mes "right now, so you'll";
mes "need to free up more";
mes "Inventory space first...^000000";
close;
}
cutin "kh_ellisia",2;
if (KielHyreQuest < 38) {
mes "[??????]";
mes "This is private property.";
mes "Please leave immediately!";
close2;
cutin "kh_ellisia",255;
warp "yuno_fild08",73,172;
end;
}
else if (KielHyreQuest <= 38) {
mes "[Allysia]";
mes "Friend of prototype Elly,";
mes "I welcome you. As you may";
mes "have figured out, I need your";
mes "help. Kiel Hyre is being held";
mes "somewhere inside this factory.";
next;
mes "[Allysia]";
mes "It is imperative that";
mes "you search for Kiel Hyre";
mes "and rescue him as soon";
mes "as you possibly can!";
next;
switch(select("What is this factory?", "What happened to ^FF0000Kiel Hyre^000000?")) {
case 1:
mes "[Allysia]";
mes "This factory is part of";
mes "the Kiel Hyre Foundation's";
mes "secret business where humanoid";
mes "robots are manufactured. Myself,";
mes "and all of the academy's students";
mes "are actually robots, not humans.";
next;
mes "[Allysia]";
mes "The Kiel Hyre Foundation's";
mes "ultimate goal is to develop";
mes "superior robots that will help";
mes "human society. As robots, we";
mes "can handle tasks that are too";
mes "dangerous or difficult for humans.";
break;
case 2:
mes "[Allysia]";
mes "^3355FFKiehl^000000 has proceeded to";
mes "perform abnormal modifications";
mes "to the humanoid robots. This";
mes "has been reported to Kiel Hyre,";
mes "who has left to stop Kiehl.";
mes "However, Hyre hasn't returned.";
next;
mes "[Allysia]";
mes "Fearing that Kiehl would";
mes "break me, Kiel Hyre brought";
mes "a copy of me instead. I can still";
mes "detect Kiel Hyre's heartbeat,";
mes "so he should be alright, but his";
mes "own son might harm him soon.";
next;
mes "[Allysia]";
mes "Take this Keycard";
mes "which will enable you";
mes "to enter the secret areas";
mes "inside this factory. If you";
mes "locate Kiel Hyre, please";
mes "let me know right away.";
getitem Red_Key_Card,1;
KielHyreQuest = 40;
break;
}
close2;
cutin "",255;
end;
}
else if (KielHyreQuest == 40) {
mes "[Allysia]";
mes "I can still detect";
mes "Kiel Hyre's heartbeat,";
mes "but his sone Kiehl might";
mes "do something desperate to";
mes "him soon. Please locate Kiel";
mes "Hyre before that can happen!";
close2;
cutin "",255;
warp "kh_dun01",22,216;
end;
}
else if (KielHyreQuest == 42) {
mes "[Allysia]";
mes "Have you already";
mes "located Kiel Hyre?";
next;
mes "^3355FFYou tell Allysia where^000000";
mes "^3355FFKiel Hyre has been locked^000000";
mes "^3355FFup, and give her the metal^000000";
mes "^3355FFfragment that Kiel Hyre handed^000000";
mes "^3355FFto you. She took fragment^000000";
mes "^3355FFand wore it around her wrist.^000000";
next;
mes "[Allysia]";
mes "...Kiel Hyre's secret code";
mes "confirmed. B_2_3 area.";
mes "Vital signs are normal.";
mes "Envelope received. Sending";
mes "modified Puppet Designs...";
next;
mes "[Allysia]";
mes "Alright, I've recieved";
mes "Kiel Hyre's orders, and";
mes "must carry them out...";
delitem Steel_Piece,1;
KielHyreQuest = 44;
close2;
cutin "",255;
end;
}
else if (KielHyreQuest == 44) {
mes "[Allysia]";
mes "Alright, I have a mission";
mes "to carry out for Kiel Hyre,";
mes "and I don't have much time.";
mes "Let me give you some specific";
mes "instructions very quickly.";
next;
mes "[Allysia]";
mes "Firstly, I need to take your";
mes "keycards for security reasons.";
mes "Secondly, meet me at the Kiel";
mes "Hyre Mansion in Lighthalzen.";
mes "Present the Golden Key to";
mes "be admitted to the premises.";
delitem Yellow_Key_Card,1;
delitem Blue_Key_Card,1;
delitem Red_Key_Card,1;
KielHyreQuest = 46;
next;
mes "[Allysia]";
mes "I understand that this";
mes "is sudden, and I'm not";
mes "giving you a thorough";
mes "explanation, but something";
mes "horrible will happen if I don't";
mes "hurry as quickly as possible.";
close2;
warp "yuno_fild08",73,172;
cutin "",255;
end;
}
else if (KielHyreQuest >= 44) {
mes "[Allysia]";
mes "I understand that this";
mes "is sudden, and I'm not";
mes "giving you a thorough";
mes "explanation, but something";
mes "horrible will happen if i don't";
mes "hurry as quickly as possible.";
close2;
warp "yuno_fild08",73,172;
cutin "",255;
end;
}
}
//- Signboard (another useless NPC?) -
kh_dun01,163,223,4 script Signboard#kh 4_BOARD3,{
mes "[Notice]";
mes "Cute Pets are prohibited";
mes "in this area. (Cute Pets that";
mes "provide special assistance";
mes "to the visually impaired are";
mes "exempt from this rule.)";
close;
}
//- Mechanical Devices for accessing restricted area -
kh_dun01,166,223,0 script Mechanical Device#kh::KHKeyardReader HIDDEN_NPC,{
if ((KielHyreQuest <= 38) || (KielHyreQuest >= 44)) {
mes "^3355FFYou encounter";
mes "a mechanical device.";
mes "It looks like it can be";
mes "operated by inserting the";
mes "correct keycard into the slot.^000000";
close;
}
else if ((KielHyreQuest == 40) && (countitem(Red_Key_Card) >= 1)) {
mes "^3355FFYou encounter";
mes "a mechanical device.";
mes "It looks like it can be";
mes "operated by inserting the";
mes "correct keycard into the slot.^000000";
next;
input(.@KHInput$);
if (.@KHInput$ == "Red Keycard") {
mes "^3355FFThe door opens once";
mes "you insert the Red Keycard.^000000";
close2;
warp "kh_dun01",170,227;
end;
}
mes "^3355FFNothing happened.^000000";
close;
}
}
kh_dun01,162,206,0 duplicate(KHKeyardReader) Mechanical Device HIDDEN_NPC
//- Keep monsters out of the quest area -
// Silly really since the rest of it's a dungeon
//kh_dun01,180,220,0 script Monster Warp#kh1::KHMobWarp FAKE_NPC,5,20,{
//OnTouchNPC:
// warp "kh_dun01",178,138;
// end;
//}
//kh_dun01,190,220,0 duplicate(KHMobWarp) Monster Warp#kh2 FAKE_NPC,5,20
//kh_dun01,200,250,0 duplicate(KHMobWarp) Monster Warp#kh3 FAKE_NPC,5,20
//kh_dun01,210,220,0 duplicate(KHMobWarp) Monster Warp#kh4 FAKE_NPC,5,20
//kh_dun01,220,220,0 duplicate(KHMobWarp) Monster Warp#kh5 FAKE_NPC,5,10
//- Kiel Hyre - OnTouch -
kh_dun01,224,233,0 script Factory B Area Door FAKE_NPC,5,5,{
OnTouch:
if (KielHyreQuest == 40) {
if (checkweight(Steel_Piece,1) == 0) {
mes "^3355FFJust a second...";
mes "You're carrying too";
mes "many items with you";
mes "right now, so you'll";
mes "need to free up more";
mes "Inventory space first...^000000";
close;
}
mes "^3355FFYou can faintly hear";
mes "a voice from the other";
mes "side of this door.^000000";
next;
mes "[????]";
mes "^333333...Kiehl...";
mes "...How dare you...!^000000";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "Mister Kiel Hyre?";
mes "Is that you in there?";
next;
mes "[Kiel Hyre]";
mes "Wh-who's there?";
mes "Identify yourself!";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "I'm... I'm...";
next;
mes "^3355FFYou explain your story";
mes "to the voice behind the";
mes "door, and tell him what";
mes "happened to Elly and Allysia.^000000";
next;
mes "[Kiel Hyre]";
mes "^333333...Yes... It's me.";
mes "I'm Kiel Hyre, trapped";
mes "in here. He went so far";
mes "as to modify Elly, eh?";
mes "...............................^000000";
next;
mes "[Kiel Hyre]";
mes "^333333Hurry, take this";
mes "module to Allysia!";
mes "She'll know what to do";
mes "with it. If you're really";
mes "helping us, then she'll have";
mes "some instructions for you too.^000000 ";
next;
mes "^3355FFKiel Hyre slid";
mes "a strange metal";
mes "fragment through";
mes "the gap between the";
mes "door and the floor.^000000";
getitem Steel_Piece,1;
KielHyreQuest = 42;
close;
}
else if (KielHyreQuest >= 42) {
mes "[Kiel Hyre]";
mes "......";
close;
}
}
//- Robot Factory Second Floor Entrances -
kh_dun01,44,203,0 script Entrance Device#khd2::KHAccess HIDDEN_NPC,{
if (countitem(Fancy_Key_Card) < 1) {
mes "^3355FFYou encounter";
mes "a mechanical device.";
mes "It looks like it can be";
mes "operated by inserting the";
mes "correct keycard into the slot.^000000";
close;
}
mes "^3355FFYou encounter";
mes "a mechanical device.";
mes "It looks like it can be";
mes "operated by inserting the";
mes "correct keycard into the slot.^000000";
next;
input(.@KHInput$);
if (.@KHInput$ == "Luxurious Keycard") {
mes "^3355FFAs you insert the";
mes "Luxurious Keycard";
mes "into the keycard slot,";
mes "the door swings open";
mes "to reveal a long flight";
mes "of descending stairs.^000000";
next;
switch(select("Descend Stairs", "Cancel")) {
case 1:
warp "kh_dun02",41,198;
end;
case 2:
mes "^3355FFIt looks like this door";
mes "has automatically closed";
mes "after the preprogrammed";
mes "time limit has elapsed.^000000";
close;
}
}
mes "^3355FFYou try to push the";
mes "door open with all";
mes "your might, but fail";
mes "to make it budge.^000000";
close;
}
kh_dun01,36,195,0 duplicate(KHAccess) Entrance Device#khd1 HIDDEN_NPC
//== Kiel Hyre Mansion NPCs, and Kiehl's Room NPCs =========
//- Kiel's Steward -
kh_mansion,78,55,5 script Steward#kh 4_M_MANAGER,{
if (KielHyreQuest < 46) {
mes "[Steward]";
mes "This is a private residence,";
mes "please leave.";
close2;
warp "lighthalzen",188,201;
end;
}
if ((KielHyreQuest >= 46) && (KielHyreQuest < 50)) {
mes "[Steward]";
mes "Greetings.";
mes "Have you been invited";
mes "by the master of";
mes "this mansion?";
next;
switch(select("Present Golden Key", "????")) {
case 1:
mes "[Steward]";
mes "Ah, Master "+strcharinfo(PC_NAME)+".";
mes "I've been expecting your";
mes "arrival. Please, this way.";
close2;
warp "kh_mansion",21,14;
end;
case 2:
mes "[Steward]";
mes "If you have not been";
mes "invited by the master of";
mes "this mansion, then I'm";
mes "afraid that I must insist on";
mes "your immediate departure!";
close2;
warp "lighthalzen",188,201;
end;
}
}
if ((KielHyreQuest >= 50) && (KielHyreQuest < 64) || (KielHyreQuest >= 70)) {
mes "[Steward]";
mes "Ah, Master "+strcharinfo(PC_NAME)+".";
mes "It is a pleasure to";
mes "receive your company";
mes "once again. Would you";
mes "like to see my master?";
next;
switch(select("Yes", "No")) {
case 1:
mes "[Steward]";
mes "Very well.";
mes "Right this way~";
close2;
warp "kh_mansion",21,14;
end;
case 2:
mes "[Steward]";
mes "Very well.";
mes "Please make";
mes "yourself at home.";
close;
}
}
if ((KielHyreQuest == 52) || (KielHyreQuest == 54) || (KielHyreQuest >= 64) && (KielHyreQuest <= 70)) {
mes "[Steward]";
mes "Ah, Master "+strcharinfo(PC_NAME)+".";
mes "It is a pleasure to";
mes "receive your company";
mes "once again. Would you";
mes "like to see my master, or...?";
next;
switch(select("^FF0000Kiel Hyre^000000", "^3355FFMitchell^000000")) {
case 1:
mes "[Steward]";
mes "Very well.";
mes "Right this way~";
close2;
warp "kh_mansion",21,14;
end;
case 2:
mes "[Steward]";
mes "Oh...? You must.";
mes "be here to deliver";
mes "good news. Excuse me...";
next;
mes "^3355FFThe Steward furtively^000000";
mes "^3355FFlooked around to check^000000";
mes "^3355FFif anyone is watching him.^000000";
next;
mes "[Steward]";
mes "I believe it should";
mes "be safe enough to let";
mes "you go see him now...";
mes "Please, hurry this way.";
close2;
warp "kh_mansion",20,87;
end;
}
}
}
//- Kiel Hyre -
kh_mansion,22,28,4 script Kiel Hyre#kh 4_M_KHKYEL,{
if (checkweight(Spawn,200) == 0) {
mes "^3355FFJust a second...";
mes "You're carrying too";
mes "many items with you";
mes "right now, so you'll";
mes "need to free up more";
mes "inventory space first...^000000";
close;
}
cutin "kh_kyel01",2;
if (KielHyreQuest < 46) {
mes "[Kiel Hyre]";
mes ".........";
mes ".........";
mes "............";
close2;
cutin "",255;
end;
}
else if (KielHyreQuest == 46) {
cutin "kh_kyel01",2;
mes "[Kiel Hyre]";
mes "Ah, you must be "+strcharinfo(PC_NAME)+".";
mes "I'd like to thank you for saving";
mes "my life. You must have many";
mes "questions to ask me, so I'll";
mes "do my best to give you answers.";
next;
while(1) {
switch(select("Robots?", "^3355FFKiehl^000000?", "^FF0000Elly^000000's button?")) {
case 1:
mes "[Kiel Hyre]";
mes "I've been researching";
mes "robotics for thirty-two";
mes "years now. I'm proud to";
mes "say that I've succeeded";
mes "where the great Sage";
mes "Varmundt did not.";
next;
mes "[Kiel Hyre]";
mes "It's been my dream to";
mes "develop humanoid robots";
mes "from humans. Those Guardians";
mes "might be robots too, but they";
mes "don't operate using free will.";
next;
mes "[Kiel Hyre]";
mes "If you'd like to know more";
mes "of the specifics concerning";
mes "robotics, why don't you speak";
mes "with ^3355FFAllysia^000000? She can explain";
mes "everything much more succinctly";
mes "than I can. I tend to ramble...";
++.@KHQRead;
next;
break;
case 2:
mes "[Kiel Hyre]";
mes "^3355FFKiehl^000000 is my only son,";
mes "but the love of my life";
mes "died after giving birth to";
mes "him. I'll admit that he's";
mes "a genius in mechanical";
mes "design and development.";
next;
mes "[Kiel Hyre]";
mes "He's largely responsible";
mes "for the creation of Third";
mes "Generation robots like Elly.";
mes "Unfortunately, he's trying to";
mes "modify his creations for";
mes "some sinister purpose.";
next;
mes "[Kiel Hyre]";
mes "I tried to stop him,";
mes "but I ended up getting";
mes "locked inside the factory.";
mes "I don't know why he wants";
mes "to do this. I still have";
mes "absolutely no clue...";
++.@KHQRead;
next;
break;
case 3:
mes "[Kiel Hyre]";
mes "That button Elly was";
mes "holding has ^3355FFKiehl's emblem^000000";
mes "engraved on it. Ah, and that";
mes "man in black menacing the";
mes "students? That was probably";
mes "^3355FFKaiser^000000, Kiehl's bodyguard.";
next;
mes "[Kiel Hyre]";
mes "Kaiser...";
mes "I don't know";
mes "anything about him.";
mes "I've never even seen";
mes "his face! Kiehl just hired";
mes "him without letting me know...";
++.@KHQRead;
next;
break;
}
if (.@KHQRead == 3) {
mes "[Kiel Hyre]";
mes "If you don't have";
mes "anymore questions for me,";
mes "then would you please";
mes "let me rest?? I'm still not";
mes "feeling well from the time";
mes "I was locked up in the factory.";
delitem Golden_Key,1;
delitem Kiel_Button,1;
KielHyreQuest = 48;
break;
}
}
}
else if (KielHyreQuest == 48) {
mes "[Kiel Hyre]";
mes "Ah, I almost forgot.";
mes "Please, take this as";
mes "a little reward for";
mes "saving my life.";
getitem Set_Of_Taiming_Item,1; //Taming_Gift_Set
getexp RENEWAL_EXP?70000:700000,0;
KielHyreQuest = 50;
}
else if ((KielHyreQuest >= 50) && (KielHyreQuest < 64)) {
mes "[Kiel Hyre]";
mes "If you don't have";
mes "anymore questions for me,";
mes "then would you please";
mes "let me rest?? I'm still not";
mes "feeling well from the time";
mes "I was locked up in the factory.";
}
else if (KielHyreQuest == 64) {
cutin "kh_kyel01",2;
mes "[Kiel Hyre]";
mes "Hm? Did you";
mes "have something";
mes "that you wanted";
mes "to ask me?";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "I don't have enough";
mes "concrete evidence yet,";
mes "but I might have some";
mes "questions soon enough.";
}
else if (KielHyreQuest == 68) {
cutin "kh_kyel02",2;
mes "[Kiel Hyre]";
mes "Ah, "+strcharinfo(PC_NAME)+".";
mes "It's you. So how can";
mes "I help you today?";
next;
select("About ^3355FFAllysia^000000...");
mes "["+strcharinfo(PC_NAME)+"]";
mes "You know, I was looking";
mes "through this deserted house";
mes "in Juno, and discovered";
mes "an old portrait of a woman";
mes "that looks just like Allysia.";
next;
cutin "kh_kyel02",2;
mes "[Kiel Hyre]";
mes "Oh...";
mes "Is that all?";
mes "I thought you had";
mes "a robotics question.";
next;
cutin "kh_Kyel03",2;
mes "[Kiel Hyre]";
mes "Anyway, that's a";
mes "strange coincidence.";
mes "Well, I suppose it's";
mes "not so strange to find";
mes "look-a-likes for other people...";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "I don't think it's just";
mes "a coincidence. The woman";
mes "in that thirty year old portrait";
mes "was also named Allysia, and she";
mes "worked at Orsimier street";
mes "in Juno. Does that ring a bell?";
next;
cutin "kh_kyel02",2;
mes "[Kiel Hyre]";
mes "......";
mes ".........";
mes "............";
next;
cutin "kh_kyel01",2;
mes "["+strcharinfo(PC_NAME)+"]";
mes "Then I thought that this";
mes "Allysia must have been the";
mes "woman that you loved, and";
mes "that you based your robot's";
mes "appearance on her.";
next;
cutin "kh_kyel02",2;
mes "[Kiel Hyre]";
mes "............";
next;
cutin "kh_kyel01",2;
mes "["+strcharinfo(PC_NAME)+"]";
mes "I think this is what happened:";
mes "when you were a young, poor";
mes "man, you fell in love with";
mes "Allysia. However, she was";
mes "in love with Rosimier, who";
mes "was rich and powerful.";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "However, Rosimier was";
mes "betrothed to some other";
mes "woman, and he ended up";
mes "marrying his fiancee, thus";
mes "breaking Allysia's heart.";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "Feeling betrayed, her";
mes "heart broken, Allysia jumped";
mes "into a river. Then, you decided";
mes "to get revenge on Rosimier, so";
mes "you ended up joining";
mes "Rekenber Corporation!";
next;
cutin "kh_Kyel03",2;
mes "[Kiel Hyre]";
mes "Hahahahahahaha!";
mes "Oh, what an imagination~";
mes "That's very ridiculous...";
mes "Though, I admit, maybe";
mes "I did design Allysia after";
mes "seeing that woman long ago.";
next;
mes "[Kiel Hyre]";
mes "I'd almost forgotten";
mes "about her! I think we";
mes "were friends... Though,";
mes "where did you get the idea";
mes "that I might have";
mes "been in love with her?";
next;
select("Reveal Kiel's Portrait from Hut");
cutin "kh_kyel02",2;
mes "[Kiel Hyre]";
mes "Wh-what...";
mes "How did...";
mes "Where did you...?";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "Kiel Hyre, I found this";
mes "portrait of you as a young";
mes "man from the house of the";
mes "man that bought Allysia's ring.";
mes "I even spoke to the fisherman";
mes "that discovered Allysia's body.";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "You paid an awful lot";
mes "of money to buy Allysia's";
mes "ring. How can you not tell";
mes "me that you didn't love her?";
next;
cutin "kh_Kyel03",2;
mes "[Kiel Hyre]";
mes "*Sigh...*";
mes "You got me, you got me.";
mes "I didn't want you to learn";
mes "the truth. You are correct.";
mes "I loved Allysia, and designed";
mes "my robot to look just like her.";
next;
mes "[Kiel Hyre]";
mes "I could never forget her.";
mes "Ever. But I would never";
mes "do anything to harm the";
mes "Rosimiers! I'm a scientist!";
mes "I hated him when I was young,";
mes "but things are different now!";
next;
mes "[Kiel Hyre]";
mes "I shed no tears when the";
mes "Rosimiers fell, but I wasn't";
mes "responsible. Besides, I didn't";
mes "have the resources or the";
mes "capability to cause it...";
next;
cutin "kh_kyel02",2;
mes "["+strcharinfo(PC_NAME)+"]";
mes "I'm afraid that the";
mes "evidence shows otherwise.";
next;
select("Reveal Portrait of Rosimiers");
mes "["+strcharinfo(PC_NAME)+"]";
mes "Take a good look";
mes "at this portrait that";
mes "I found at the Rosimiers'";
mes "old house. Do you see";
mes "anything... incriminating?";
next;
cutin "kh_Kyel03",2;
mes "[Kiel Hyre]";
mes "Aside from that";
mes "James Rosimier, you";
mes "mean? No! I don't see";
mes "anything wrong with";
mes "this picture at all.";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "Take a good look";
mes "at the pocketwatch";
mes "in the portrait. That's";
mes "the pocketwatch you";
mes "wear today, isn't it?";
next;
cutin "kh_kyel02",2;
mes "[Kiel Hyre]";
mes "...!!!";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "You might not have caused";
mes "the downfall of the Rosimiers";
mes "yourself, but with the aid of";
mes "the Rekenber Corporation, I'd";
mes "say it was entirely possible!";
next;
cutin "kh_Kyel03",2;
mes "[Kiel Hyre]";
mes "Well played, adventurer.";
mes "Well played. I don't regret";
mes "what I did: they killed my";
mes "Allysia! If James didn't betray";
mes "her, if only he didn't drive";
mes "her to commit suicide...";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "That's where you're wrong!";
mes "Allysia was killed, she didn't";
mes "commit suicide. Take a good";
mes "look at this note right here!";
next;
mes "[Kiel Hyre]";
mes "What?!";
next;
select("Show James's Note");
mes "[Kiel Hyre]";
mes "What does this prove?";
mes "This doesn't show that";
mes "James didn't betray Allysia.";
mes "How does this change anything?";
mes "She's dead, nothing I can do";
mes "will bring her back to me!";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "I never said James didn't";
mes "betray her. Look at the date";
mes "on the note. James made plans";
mes "to run away with her on August";
mes "20th. However, her body was";
mes "found on the same day.";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "Ergo, Allysia must have";
mes "died on August 19th. If she";
mes "was planning to run away with";
mes "her love on the next day, then";
mes "she had no reason to kill herself!";
next;
mes "[Kiel Hyre]";
mes "No, that's not right!";
mes "She probably couldn't";
mes "trust me! She must have";
mes "realized she was nothing";
mes "but another toy to him!";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "Oh yeah? I say she jumped";
mes "into the river because you";
mes "met her on that day. Now,";
mes "take a good look at this!";
next;
select("Show K.H.'s note");
mes "["+strcharinfo(PC_NAME)+"]";
mes "This note was written by";
mes "a man with your initials,";
mes "K.H. These initials were also";
mes "signed on her portrait. You";
mes "must have written this note:";
mes "there's too many coincidences!";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "According to this note,";
mes "you told Allysia that you";
mes "wanted to see her again";
mes "at the place you first met.";
mes "I think you did see her again...";
mes "on August 19th, the day she died!";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "I'm assuming the place you";
mes "two first met was near the";
mes "river. No more of your lies:";
mes "Tell me what really happened!";
next;
cutin "kh_kyel02",2;
mes "[Kiel Hyre]";
mes "............";
mes ".........";
mes "......";
next;
cutin "kh_Kyel03",2;
mes "[Kiel Hyre]";
mes "Hah... Ha ha ha...";
mes "Yes... That's right...";
mes "That horrible night.";
mes "I remember it well...";
mes ".....................";
next;
cutin "kh_kyel02",2;
mes "[Kiel Hyre]";
mes "That night, when she came";
mes "to the river to meet me as";
mes "I had asked, I begged her to";
mes "run away with me, instead";
mes "of waiting for that James.";
next;
mes "[Kiel Hyre]";
mes "She insisted that James";
mes "never betrayed her, and he";
mes "promised to take her away";
mes "with him the next day. Can";
mes "you imagine how that made";
mes "me feel? I was nothing to her.";
next;
mes "[Kiel Hyre]";
mes "My feelings didn't matter to";
mes "her at all! She kept fidgeting";
mes "with that ring...I lost control";
mes "and tried to take that damned";
mes "thing away from her, and";
mes "throw it into the river...";
next;
mes "[Kiel Hyre]";
mes "But you know what?";
mes "She struggled, she actually";
mes "fought me! It was just a small";
mes "fight, but then, before I knew";
mes "it, the ground underneath us";
mes "collapsed and... the rains...";
next;
select(".........");
mes "[Kiel Hyre]";
mes "I'm not sure what it";
mes "was. The rain weakened";
mes "the ground, something went";
mes "wrong... and she just... just...";
mes "The river swallowed her...";
mes "I felt empty. She was gone. ";
delitem Family_Portrait,1;
delitem Elysia_Portrait,1;
delitem Kyll_Hire_Letter2,1; //Kyll_Hyre_Letter2
delitem Piece_Memo_Of_James,1;
delitem Man_Portrait,1;
KielHyreQuest = 70;
close2;
cutin "",255;
end;
}
else if (KielHyreQuest <= 70) {
cutin "kh_kyel01",2;
mes "[Kiel Hyre]";
mes "You already know that";
mes "she was found dead the";
mes "next day. But what really";
mes "broke my heart was that";
mes "she held that ring so tightly";
mes "in her hand, even in death...";
next;
cutin "kh_kyel03",2;
mes "[Kiel Hyre]";
mes "His family had everything";
mes "while I had nothing. And";
mes "he had the audacity to take";
mes "Allysia away from me?!";
mes "How could that be right?";
next;
mes "[Kiel Hyre]";
mes "Even though she had passed";
mes "away, I still wanted to prove";
mes "to Allysia what kind of ugly";
mes "person James really was.";
mes "That was when I joined the";
mes "Rekenber Corporation.";
next;
mes "[Kiel Hyre]";
mes "I designed the very first";
mes "First Generation Robot, which";
mes "I named Allysia, and sold the";
mes "designs to Rekenber. I gave them";
mes "robots, and they gave me money,";
mes "power, obedient subordinates.";
next;
mes "[Kiel Hyre]";
mes "Of course I knew they'd use";
mes "my robots for spying and killing!";
mes "But you know what? It didn't";
mes "matter so long as they gave me";
mes "the means to my revenge. It was";
mes "the perfect partnership, really.";
next;
mes "[Kiel Hyre]";
mes "You've got me right";
mes "where you want me.";
mes "Who are you working";
mes "for, and what exactly";
mes "do you want? My designs?";
mes "My death? Everything...?";
next;
cutin "kh_kyel01",2;
mes "["+strcharinfo(PC_NAME)+"]";
mes "Actually, I just want";
mes "to ask about the nature";
mes "of your professional";
mes "relationship with the";
mes "Rekenber Corporation.";
mes "And about Kiehl.";
next;
mes "[Kiel Hyre]";
mes "Kiehl, eh? After hearing";
mes "my crazy story, I'm guessing";
mes "that you already suspect the";
mes "truth about him... He's also";
mes "a robot, specifically the first";
mes "of the Second Generation models.";
next;
mes "[Kiel Hyre]";
mes "His mind was developed using.";
mes "an experimental, and unstable,";
mes "form of the Condensed Magic";
mes "Spell Scrolls. He was the only";
mes "Second Generation robot that";
mes "I was allowed to keep.";
next;
mes "[Kiel Hyre]";
mes "I've become very attached";
mes "to Kiehl. It's not surprising,";
mes "seeing that robotics have";
mes "become my life. I even raised";
mes "him as my own son, and taught";
mes "him everything about robotics";
next;
mes "[Kiel Hyre]";
mes "Kiehl is now a genius,";
mes "and has even developed the";
mes "Third Generation of robots.";
mes "Unfortunately, I failed to";
mes "properly raise him with";
mes "human morals and ethics.";
next;
select("......");
mes "[Kiel Hyre]";
mes "He's been transforming";
mes "the Third Generation robots";
mes "into killing machines. That's";
mes "why I tried to put them all";
mes "into the academy, so they";
mes "could learn human behavior.";
next;
mes "[Kiel Hyre]";
mes "Although the academy";
mes "has delayed Kiehl's plans,";
mes "he has succeeded into";
mes "converting all of the robots";
mes "into uncontrollable engines";
mes "of mass destruction.";
next;
mes "[Kiel Hyre]";
mes "Yes, he's been working";
mes "closely with Rekenber.";
mes "Their true objective is to";
mes "create killing machines";
mes "for Rekenber's use.";
next;
mes "[Kiel Hyre]";
mes "You know all the secrets";
mes "of my past now. I'm not";
mes "upset with you or anything,";
mes "but I do have something";
mes "that I want to ask of you.";
next;
mes "[Kiel Hyre]";
mes "Please! Stop Kiehl!";
mes "I don't want his madness";
mes "to destroy any more robots!";
mes "I see each and every one";
mes "of them as one of my children!";
next;
mes "[Kiel Hyre]";
mes "I know that I must take";
mes "full responsibility for all";
mes "that has happened. I promise";
mes "to take any punishment for";
mes "my actions once everything";
mes "has been resolved.";
next;
select("Accept", "Okay", "Nod");
mes "[Kiel Hyre]";
mes "Thank you so much!";
mes "You can find Kiehl";
mes "in the underground";
mes "level in this mansion.";
next;
mes "[Kiel Hyre]";
mes "He stays in the old room";
mes "where he was created, but";
mes "he reconstructed it as some";
mes "kind of cave to keep everyone";
mes "out, including me. Yes, he";
mes "doesn't trust anyone anymore...";
next;
mes "[Kiel Hyre]";
mes "When you find him, I want";
mes "you to take Allysia's ring";
mes "out of his heart. If you";
mes "remove it, that should stop";
mes "him from going berserk.";
next;
select("Allysia's Ring?");
mes "[Kiel Hyre]";
mes "Yes... Her ring is the";
mes "beginning of everything";
mes "I put that in his heart so";
mes "that I'd never forget what";
mes "the Rosimiers did to me.";
next;
mes "[Kiel Hyre]";
mes "I think Kiehl's grown";
mes "so powerful that normal";
mes "weapons might not work";
mes "on him anymore. Use this";
mes "device that will cause his";
mes "power supply to fluctuate.";
getitem Toy_Motor,1;
next;
cutin "kh_kyel03",2;
mes "[Kiel Hyre]";
mes "If you successfully attach";
mes "this to Kiehl's body, then";
mes "he won't be able to use his";
mes "body's full power. While he's";
mes "weakened, open up his chest";
mes "and get the ring from his heart.";
next;
mes "[Kiel Hyre]";
mes "Let me know once";
mes "you're ready. Then, I'll";
mes "guide you Kiehl's room.";
KielHyreQuest = 74;
}
else if ((KielHyreQuest >= 74) && (KielHyreQuest <= 104)) {
mes "[Kiel Hyre]";
mes "Are you ready";
mes "to confront";
mes "Kiehl now?";
next;
switch(select("Yes", "No")) {
case 1:
mes "[Kiel Hyre]";
mes "There... the secret";
mes "passage is open now.";
mes "Just go to the right of";
mes "me, but be careful. Kiehl";
mes "is extremely dangerous.";
close2;
enablenpc "Kiehl_Room_Warp";
donpcevent "Kiehl_Room_Warp::OnEnable";
cutin "",255;
end;
break;
case 2:
mes "[Kiel Hyre]";
mes "Please take your";
mes "time. I imagine that";
mes "it won't be easy.";
break;
}
}
else if ((KielHyreQuest >= 74) && (KielHyreQuest <= 106)) {
cutin "kh_kyel01",2;
mes "[Kiel Hyre]";
mes "You're back...!";
mes "So were you able";
mes "to retrieve Allysia's";
mes "Ring from Kiehl's heart?";
next;
if (countitem(Elysia_Ring) < 1) {
mes "[Kiel Hyre]";
mes "You mean... You don't have it?";
mes "Please, retrieve Allysia's Ring";
mes "from Kiehl's heart!";
next;
enablenpc "Kiehl_Room_Warp";
donpcevent "Kiehl_Room_Warp::OnEnable";
close2;
cutin "",255;
end;
}
mes "[Kiel Hyre]";
mes "Wh-what happened...?";
mes "Kiehl developed a new";
mes "body for himself? Th-that";
mes "would make him a Fourth";
mes "Generation robot. I had";
mes "no idea he was this smart.";
next;
mes "[Kiel Hyre]";
mes "Wait, now that I think about";
mes "it, I did see robot bodies that";
mes "looked like Kiehl when I was";
mes "locked in the factory. So he";
mes "was using those copies to";
mes "develop personal upgrades.";
next;
mes "[Kiel Hyre]";
mes "Here, please take this";
mes "Keycard which will let you";
mes "enter and investigate the";
mes "deepest levels of the factory.";
mes "I'll investigate Kiehl's room.";
getitem Fancy_Key_Card,1;
KielHyreQuest = 108;
next;
if (Sex == SEX_FEMALE) {
if (getpartnerid() == 0) .@KHTitle$ = "Miss";
else .@KHSTitle$ = "Mrs";
}
else .@KHTitle$ = "Mr";
mes "[Kiel Hyre]";
mes "Kiehl is my responsibility...";
mes "No matter what the cost may";
mes "be, I've got to stop him! Oh,";
mes "and here, please take this";
mes "with my thanks for all of";
mes "your help, "+.@KHTitle$+" "+strcharinfo(PC_NAME)+".";
getitem Old_Card_Album,1; //Old Card Album
delitem Elysia_Ring,1;
getexp RENEWAL_EXP?100000:1000000,0;
}
else if (KielHyreQuest >= 108) {
mes "[Kiel Hyre]";
mes "......";
mes ".........";
mes "............";
}
close2;
cutin "",255;
end;
}
//- Allysia -
kh_mansion,18,30,4 script Allysia 4_F_KHELLISIA,{
if (KielHyreQuest < 46) {
mes "[Allysia]";
mes "Who are you?";
mes "How did you get here?";
mes "Go away";
close;
}
cutin "kh_ellisia",2;
if (KielHyreQuest < 70) {
mes "[Allysia]";
mes "You must be surprised";
mes "by everything that's been";
mes "happening. Maybe everything";
mes "would be easier to understand";
mes "if I explained about robots?";
next;
switch(select("Yes", "No")) {
case 1:
mes "[Allysia]";
mes "The robots you've been";
mes "encountering are automated";
mes "mechanical puppets that can";
mes "independantly think and operate.";
mes "Many sages have tried to develop";
mes "their own robots, but have failed.";
next;
mes "[Allysia]";
mes "My master, Kiel Hyre, has";
mes "been studying robotics since";
mes "he was twenty years old, and";
mes "has developed three different";
mes "generations of robots, the first,";
mes "second, and third generations.";
next;
switch(select("First Generation", "Second Generation", "Third Generation")) {
case 1:
mes "[Allysia]";
mes "I am a good example of one";
mes "of Kiel Hyre's First Generation";
mes "robots. I was constructed using";
mes "a heavy mechanical framework,";
mes "a robotic heart, and chemically";
mes "synthesized skin covering.";
next;
mes "[Allysia]";
mes "My central processing unit,";
mes "equivalent to your brain, is";
mes "essentially a Memory Scroll";
mes "based on the design of the";
mes "Magic Spell Scrolls that you";
mes "adventurers use in battle.";
next;
mes "[Allysia]";
mes "I'm the oldest type of";
mes "humanoid robot, so I weigh";
mes "a lot, and my mind can only";
mes "process a limited amount of";
mes "data. Therefore, I can't express";
mes "emotion similarly to a human.";
next;
break;
case 2:
mes "[Allysia]";
mes "The First Generation robots";
mes "were developed from mostly";
mes "mechanical parts, but the";
mes "Second Generation robots";
mes "incorporated Homunculus";
mes "science and technology.";
next;
mes "[Allysia]";
mes "Second Generation robots";
mes "are more life-like since they";
mes "have artifically created skin";
mes "and flesh, although they still";
mes "are constructed from a heavy";
mes "mechanical framework.";
next;
mes "[Allysia]";
mes "Sage elemental scroll";
mes "technology was also used";
mes "to develop the Condensed";
mes "Memory Scroll, a central";
mes "processing unit superior to that";
mes "used in First Generation robots.";
next;
mes "[Allysia]";
mes "Although Condensed Memory";
mes "Scrolls were 100,000 times";
mes "more powerful than ordinary";
mes "Memory Scrolls, they were";
mes "problematic and were prone";
mes "to too many error problems.";
next;
mes "[Allysia]";
mes "Second Generation robots";
mes "were capable of expressing";
mes "human-like emotion, but their";
mes "production halted after six";
mes "years because they were";
mes "considered faulty.";
next;
break;
case 3:
mes "[Allysia]";
mes "Third Generation robots";
mes "were mostly designed by";
mes "Kiel Hyre's son, Kiehl,";
mes "and don't use a mechanical";
mes "framework at all: the entire";
mes "body is basically a homunculus.";
next;
mes "[Allysia]";
mes "With their organic bodies";
mes "and advanced artificial hearts";
mes "made from imitation Ymir Heart";
mes "Pieces, they can experience";
mes "physiologic phenomena";
mes "just like ordinary humans.";
next;
mes "[Allysia]";
mes "Kiehl was able to develop";
mes "a more stable form of the";
mes "Condensed Memory Scroll";
mes "which does not suffer from";
mes "critical errors, and can be";
mes "cheaply mass processed.";
next;
mes "[Allysia]";
mes "Elly is actually a Third";
mes "Generation prototype. Once";
mes "we optimize the prototypes,";
mes "we will begin mass production.";
mes "In fact, the academy is our";
mes "prototype testing ground.";
next;
mes "[Allysia]";
mes "The fact that out prototype";
mes "robots can interact just like";
mes "real humans is proof of our";
mes "success in robotics.";
next;
break;
}
case 2:
mes "[Allysia]";
mes "Please let me know if";
mes "you'd like to learn more";
mes "about Kiel Hyre's robots.";
break;
}
}
else {
mes "[Allysia]";
mes "......";
mes ".........";
mes "............";
}
close2;
cutin "",255;
end;
}
//- Abduction triggering NPC -
lighthalzen,188,200,0 script Abduction_trigger FAKE_NPC,3,1,{
OnTouch:
if (KielHyreQuest == 50) {
mes "^3355FFAs you walked out of";
mes "the mansion, something";
mes "smashed the top of your";
mes "head, and you instantly";
mes "lose consciousness...";
close2;
percentheal -99,0;
warp "kh_mansion",30,75;
}
end;
}
//- Mysterious Woman "Mitchell Layla" -
kh_mansion,25,79,4 script Mysterious Woman#kh 4_F_JOB_HUNTER,3,3,{
OnTouch:
if (KielHyreQuest == 50) {
mes "^3355FFYou awaken with your";
mes "head painfully throbbing,";
mes "and a mysterious woman";
mes "standing in front of you.^000000";
next;
mes "[??????]";
mes "Hm? Oh, you're awake";
mes "earlier than I thought.";
mes "You must feel confused,";
mes "but listen carefully. If you";
mes "don't, then I can't guarantee";
mes "your safety, okay? Alright.";
next;
mes "[??????]";
mes "All you need to know it";
mes "that I'm a secret agent for";
mes "the Schwaltzvalt Republic";
mes "government. We're investigating";
mes "abnormal activity between Kiel";
mes "Hyre and the Rekenber Corporation.";
next;
mes "[??????]";
mes "We saw you enter the";
mes "mansion and speak to";
mes "Kiel Hyre, so basically";
mes "you're here for questioning.";
mes "Now tell me the truth. How";
mes "do you know Kiel Hyre?";
next;
switch(select("I'll tell you everything!", "I don't know nuthin'!")) {
case 2:
mes "[??????]";
mes "Don't...know...nuthin'?";
mes "You sure about that? Only";
mes "a select few can even speak";
mes "with Kiel Hyre in person. You";
mes "must have some connection";
mes "to him. I'm right, aren't it?";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "......";
mes ".........";
mes "............";
next;
mes "[??????]";
mes "Are you trying to protect";
mes "him? I think that you might";
mes "not understand what kind of";
mes "person you're really dealing";
mes "with here. I'll tell you what";
mes "I've learned about him...";
next;
mes "[??????]";
mes "Kiel Hyre. CEO of the";
mes "Kiel Hyre Foundation,";
mes "manufacturer of various";
mes "machinery. His company started";
mes "as a small Einbroch store whose";
mes "technology slowly grew famous.";
next;
mes "[??????]";
mes "Rekenber Corperation offered";
mes "a merger with the Kiel Hyre";
mes "Foundation. We're still not";
mes "sure why they wanted Kiel";
mes "Hyre in particular to repair";
mes "and develop their Guardians...";
next;
mes "[??????]";
mes "We're also not sure why";
mes "they wanted to suddenly";
mes "focus more on Guardian";
mes "development. Then, all";
mes "of a sudden, Kiel Hyre's son";
mes "appears from out of nowehre.";
next;
mes "[??????]";
mes "It's very suspicious.";
mes "There's no records of his";
mes "birth or anything. Still, maybe";
mes "Kiel Hyre really did have him";
mes "with his secretary, Allysia.";
mes "Well, no one is really sure.";
next;
mes "[??????]";
mes "In any case, Kiel Hyre's";
mes "son and heir, Kiehl, helped";
mes "his father establish this";
mes "special academy as their";
mes "way of giving back to society.";
next;
mes "[??????]";
mes "Almost every corporation and";
mes "organization tried to get their";
mes "spies to enter this academy,";
mes "but all of them were rejected.";
mes "it's strange. At least one of";
mes "them should have made it in.";
next;
mes "[??????]";
mes "And recently, Kiehl Hyre";
mes "has held a secret meeting with";
mes "Rekenber executives to announce";
mes "his new project. He intends to";
mes "create advanced humanoid robots";
mes "that will replace guardians!";
next;
mes "[??????]";
mes "Our spies reported that";
mes "Kiel Hyre was nowhere to";
mes "be seen at that meeting,";
mes "as well as his trusted";
mes "secretary, Allysia. He...";
mes "He just disappeared!";
next;
mes "[??????]";
mes "Then, Kiel Hyre pops back";
mes "in his mansion after all";
mes "this time as if nothing";
mes "happened! At the same time,";
mes "Kiehl disappears, under the";
mes "excuse of conducting research.";
next;
mes "[??????]";
mes "Rekenber is sponsoring";
mes "both Kiehl and Kiel, but";
mes "there's some kind of conflict";
mes "going on between father and";
mes "son, I just know it! Now tell";
mes "me, what's going on?";
next;
mes "[??????]";
mes "I'm not sure how well you";
mes "know this country, but the";
mes "fact that Rekenber is invoved";
mes "must tell you that these aren't";
mes "good people. Tell me what";
mes "you know about them!";
next;
case 1:
mes "^3355FFYou tell the woman^000000";
mes "^3355FFeverything you know^000000";
mes "^3355FFabout Kiel Hyre. Your^000000";
mes "^3355FFvoice quivers with sadness^000000";
mes "^3355FFwhenever you mention Elly.^000000";
next;
mes "[??????]";
mes "I see, I see...";
mes "That poor girl... So...";
mes "Your involvement in this";
mes "is a coincidence? In that";
mes "case, I want your help";
mes "in our investigation.";
next;
switch(select("Okay", "......")) {
case 2:
mes "[??????]";
mes "If you don't cooperate,";
mes "then I can't guarantee";
mes "your safety, adventurer";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "Huh? What...?";
mes "What does that mean?";
mes "Are you threatening me?";
next;
select("Just do what she says.");
case 1:
mes "[??????]";
mes "Great.";
mes "I'm Agent Mitchell Layla.";
mes "From here on, you're working";
mes "for the Schwaltzvalt Republic!";
KielHyreQuest = 52;
close;
}
}
}
else if (KielHyreQuest == 52) {
mes "[Mitchell]";
mes "I've got some new";
mes "information for you.";
mes "There's an old lady in";
mes "Juno that knew a woman";
mes "named Allysia 30 years ago.";
next;
mes "[Mitchell]";
mes "The clincher is that this";
mes "Allysia from 30 years ago";
mes "commited suicide, and is";
mes "identical to Kiel Hyre's";
mes "secretary, who is also";
mes "named Allysia.";
next;
mes "[Mitchell]";
mes "This is too much of a";
mes "coincidence. I want you to";
mes "go to Juno and investigate.";
mes "When you're done, talk to";
mes "Kiel Hyre's steward, and";
mes "he'll send you over to me.";
next;
mes "[Mitchell]";
mes "Yeah, I know.";
mes "That guy actually";
mes "works for me. Anyway,";
mes "when you're ready to go";
mes "to Juno, let me know, and you";
mes "can board the federal airship.";
KielHyreQuest = 54;
close;
}
else if (KielHyreQuest == 54) {
mes "[Mitchell]";
mes "Are you ready?";
mes "I'll let you board";
mes "the federal Airship so";
mes "you can get to Juno, and";
mes "finish your mission quickly.";
next;
switch(select("Yes", "No")) {
case 1:
mes "[Mitchell]";
mes "Good luck. Once you";
mes "complete your mission,";
mes "make sure that you report";
mes "to Kiel Hyre's steward so";
mes "that he can send you to me.";
close2;
warp "yuno",54,209;
end;
case 2:
mes "[Mitchell]";
mes "Take your time...";
mes "But keep in mind that";
mes "I'm not a patient woman!";
close;
}
}
else if (KielHyreQuest == 64) {
mes "[Mitchell]";
mes "Ah, you're back.";
mes "What do you have";
mes "to report from your";
mes "investigation?";
next;
mes "[Mitchell]";
mes ".....................";
mes "Ah, I see. Good work.";
mes "Why don't you go speak to Kiel";
mes "Hyre and confront him with";
mes "what you've learned about";
mes "his past? Yeah, grill him.";
next;
mes "[Mitchell]";
mes "Wear this hidden mic,";
mes "so we can send help if";
mes "you're endangered. I want";
mes "you to find out who Kiel";
mes "really is, and what's his";
mes "relationship to Rekenber.";
KielHyreQuest = 68;
next;
warp "kh_mansion",83,50;
end;
}
else if (KielHyreQuest >= 68) {
mes "[Mitchell]";
mes "Shouldn't you be";
mes "leaving about now?";
next;
warp "kh_mansion",83,50;
end;
}
}
//- Warp portal into Kiehl's 'Room' -
// Anyone can enter
// After 30-40 seonds this NPC should be disabled.
kh_mansion,29,27,0 script Kiehl_Room_Warp WARPNPC,2,2,{
OnTouch:
warp "kh_kiehl01",10,31;
end;
OnEnable:
initnpctimer;
specialeffect EF_SUMMONSLAVE;
end;
OnTimer30000:
stopnpctimer;
specialeffect EF_SUMMONSLAVE;
disablenpc "Kiehl_Room_Warp";
end;
OnInit:
disablenpc "Kiehl_Room_Warp";
end;
}
//== Rosimier NPCs and other Related NPCs ==================
//- Odd Grandma -
yuno,257,140,4 script Odd Grandma 4_F_EINOLD,{
if (KielHyreQuest < 54) {
mes "[Grandma]";
mes "Where did you go,";
mes "my darling? Where";
mes "are you, my little dear?";
close;
}
else if (KielHyreQuest == 54) {
mes "[Grandma]";
mes "Lullabye...";
mes "Say goodnight...";
mes "Hush little baby...";
mes "Go to sleeeeep~";
next;
switch(select("What are you doing?", "Um, I don't see a baby...")) {
case 1:
mes "[Grandma]";
mes "Oh? My baby won't stop";
mes "crying and can't seem";
mes "to sleep. She needs to";
mes "rest, so I can go to work.";
mes "The house is so messy,";
mes "and the boss is unhappy...";
KielHyreQuest = 56;
next;
select("Um, I don't see a baby...");
mes "[Grandma]";
mes "What, she's right--";
mes "Well. Darling, what";
mes "are you doing? Don't";
mes "misbehave in front of";
mes "our friend! Shhh, be";
mes "good, my little girl.";
//GetHEALTHSTATE VAR_CURSE 30
close;
case 2:
mes "[Grandma]";
mes "What are you...?";
mes "Oh, look at that.";
mes "You made my little";
mes "darling cry! Shhh,";
mes "hush, little ^0000FFAllysia^000000.";
mes "Go to sleeeeeeep~";
close;
}
}
else if ((KielHyreQuest >= 56) && (KielHyreQuest < 60)) {
mes "[Grandma]";
mes "Allysia...?!";
mes "Allysia, where did";
mes "you go? You were";
mes "supposed to come";
mes "home a while ago!";
if (countitem(Elysia_Portrait) < 1)
close;
next;
select("Allysia? Isn't she...");
cutin "kh_ellisia_port",1;
mes "^3355FFYou show Allysia's";
mes "portrait to the old woman.^000000";
next;
cutin "",255;
mes "[Grandma]";
mes "Oh, do you know";
mes "Allysia? She's been";
mes "missing! She left home";
mes "yesterday and hasn't";
mes "come back! C-can you";
mes "tell me where she is?!";
close;
}
else if (KielHyreQuest >= 60) {
mes "[Grandma]";
mes "Don't worry, Allysia...";
mes "Mommy will always be";
mes "here for you. There's no";
mes "need to be sad...";
close;
}
}
//- Old Lady; gives you the key to the Rosimier Mansion -
yuno,250,132,0 script Old Lady#kh 4_F_05,{
if (KielHyreQuest < 56) {
mes "[Old Lady]";
mes "Oooh, my legs and back";
mes "are so sore. These old";
mes "bones ache all over...";
close;
}
else if (KielHyreQuest == 56) {
if (checkweight(Rosimier_Key,1) == 0) {
mes "^3355FFJust a second...";
mes "You're carrying too";
mes "many items with you";
mes "right now, so you'll";
mes "need to free up more";
mes "Inventory space first...^000000";
close;
}
mes "[Old Lady]";
mes "Goodness, I hate this";
mes "weather! Reminds me";
mes "of how old I've gotten!";
mes "It chills my bones, it does!";
next;
switch(select("......", "Do you know that grandma?")) {
case 1:
mes "[Old Lady]";
mes "Damn it! If only I didn't";
mes "have all those adventures";
mes "in my youth! Then maybe";
mes "I wouldn't suffer so in";
mes "my advanced age!";
close;
case 2:
mes "[Old Lady]";
mes "Oh... Yes. She was";
mes "the mother of my best";
mes "friend, ^3355FFAllysia^000000. Ever since";
mes "she commited suicide, things";
mes "haven't been the same. Her";
mes "mother lost her sanity...";
next;
select("Was ^3355FFAllysia^000000...?");
mes "[Old Lady]";
mes "Oh, Allysia was such";
mes "a beautiful girl. So many";
mes "men wanted her, especially";
mes "that dashing James Rosimier.";
mes "I remember hearing that they";
mes "were going to get married...";
next;
mes "[Old Lady]";
mes "I was so happy for her!";
mes "But then, all of a sudden,";
mes "she killed herself. Well,";
mes "that's what they all say.";
mes "Even today, I'm still not";
mes "sure what happened.";
next;
select("Wait, who's James Rosimier?");
mes "[Old Lady]";
mes "Oh, James belonged to";
mes "one of the oldest and richest";
mes "families in Juno. Everything";
mes "was going great for them, but";
mes "some time after Allysia died,";
mes "the family went bankrupt.";
next;
mes "[Old Lady]";
mes "The city manages their";
mes "old residence now. For";
mes "some reason, they decided";
mes "to entrust me with the master";
mes "key to the Rosimier Mansion.";
next;
select("May I borrow the Master Key?");
mes "[Old Lady]";
mes "Well, I'm really not";
mes "supposed to give it to just";
mes "anyone, but I can tell that";
mes "you're working with Allysia's";
mes "best interests at heart.";
next;
mes "[Old Lady]";
mes "However, you've got to";
mes "make sure that you return";
mes "it to me before the people";
mes "from City Hall ask me for it.";
mes "Alright then, I hope you find";
mes "what you're looking for.";
getitem Rosimier_Key,1;
KielHyreQuest = 58;
close;
}
}
else if ((KielHyreQuest == 58) &&
(countitem(Family_Portrait) < 1) ||
(countitem(Elysia_Portrait) < 1) ||
(countitem(Kyll_Hire_Letter2) < 1) ||
(countitem(Piece_Memo_Of_James) < 1)) {
mes "[Old Lady]";
mes "Please hurry and find";
mes "whatever you're searching";
mes "for in the Rosimier Mansion.";
mes "I might get in trouble if";
mes "the people from City Hall";
mes "come and ask me for the key...";
close;
}
else if ((KielHyreQuest == 58) &&
(countitem(Family_Portrait) == 1) &&
(countitem(Elysia_Portrait) == 1) &&
(countitem(Kyll_Hire_Letter2) == 1) &&
(countitem(Piece_Memo_Of_James) == 1)) {
mes "[Old Lady]";
mes "Oh, you're finished";
mes "searching the mansion?";
mes "Depressing, isn't it?";
mes "The creditors basically";
mes "ransacked everything";
mes "a very long time ago.";
next;
select("Why did ^3355FFAllysia^000000...?");
mes "[Old Lady]";
mes "Well, I know that James";
mes "and Allysia were in love,";
mes "and he promised to marry";
mes "her. Now, supposedly his";
mes "family already betrothed";
mes "him to another woman.";
next;
mes "[Old Lady]";
mes "Time went by, and he";
mes "was forced to marry his";
mes "fiancee. Allysia was pretty";
mes "devastated. I think maybe";
mes "that's what she... you know...";
next;
mes "[Old Lady]";
mes "Listen, if you want to learn";
mes "more about what happened,";
mes "then I think you should talk";
mes "to the ^3355FFfisherman that lives^000000";
mes "^3355FFsouth of the Kiel Hyre Academy.^000000";
next;
mes "[Old Lady]";
mes "He's the one that found";
mes "Allysia's body in the river,";
mes "so he might have a better";
mes "idea of what had happened.";
delitem Rosimier_Key,1;
KielHyreQuest = 60;
close;
}
else if (KielHyreQuest >= 60) {
mes "[Old Lady]";
mes "Yep, Rain's coming.";
mes "Can feel it in my bones.";
close;
}
}
//- Warp portal into Rosimier Mansion -
yuno,273,141,0 script Rosimmir_Entrance WARPNPC,2,2,{
OnTouch:
if (countitem(Rosimier_Key) < 1) {
mes "That mansion seems to have";
mes "been destroyed by the time.";
mes "However, the door looks like";
mes "it'd be still operational if";
mes "you had the right key.";
close;
}
else {
warp "kh_rossi",20,92;
}
end;
}
//- Rosimier Mansion, first floor; Table -
kh_rossi,23,23,0 script Table#khr2 HIDDEN_NPC,{
if (checkweight(Family_Portrait,1) == 0) {
mes "^3355FFJust a second...";
mes "You're carrying too";
mes "many items with you";
mes "right now, so you'll";
mes "need to free up more";
mes "Inventory space first...^000000";
close;
}
if (KielHyreQuest < 58) {
mes "^3355FFThere's nothing here";
mes "of importance to you.^000000";
close;
}
else if (KielHyreQuest < 60) {
if (countitem(Family_Portrait) < 1) {
cutin "kh_family_port",1;
mes "^3355FFYou examine the table,";
mes "and find a framed portrait";
mes "inside the open drawer.^000000";
getitem Family_Portrait,1;
}
else {
mes "^3355FFThe open drawer of";
mes "this desk is now empty.^000000";
}
}
else{
mes "^3355FFThis was the desk in";
mes "which you obtained the";
mes "Rosimier family portrait.";
mes "Its drawers are empty now.^000000";
close;
}
close2;
cutin "",255;
end;
}
//- Rosimier Mansion, first floor; Shelf -
kh_rossi,92,40,0 script Shelf#khr HIDDEN_NPC,{
if (checkweight(Elysia_Portrait,1) == 0) {
mes "^3355FFJust a second...";
mes "You're carrying too";
mes "many items with you";
mes "right now, so you'll";
mes "need to free up more";
mes "Inventory space first...^000000";
close;
}
if (KielHyreQuest < 58) {
mes "^3355FFThere's nothing here";
mes "of importance to you.^000000";
close;
}
else if (KielHyreQuest < 60) {
if (countitem(Elysia_Portrait) < 1) {
mes "^3355FFThere are locked";
mes "boxes on these bookshelves.";
mes "Perhaps if you used this";
mes "mansions's Master Key, you";
mes "might be able to open them.^000000";
next;
switch(select("Use Key", "Pass")) {
case 1:
mes "^3355FFWhich box do you";
mes "want to try to open?^000000";
next;
switch(select("First Box", "Second Box")) {
case 1:
mes "^3355FFYou use the Master Key to";
mes "unlock the box, and obtain";
mes "a portait of a woman that";
mes "looks just like Kiel Hyre's";
mes "assistant, Allysia.^000000";
next;
cutin "kh_ellisia_port",2;
mes "^3355FFThe message, ''To my love,";
mes "Allysia. From James.'' is";
mes "written on the back.^000000";
getitem Elysia_Portrait,1;
close2;
cutin "",255;
end;
case 2:
mes "^3355FFThis box is empty.^000000";
close;
}
case 2:
mes "^3355FFThis box is empty.^000000";
close;
}
}
else {
mes "^3355FFYou've found a woman's";
mes "portrait in one of the";
mes "boxes on this shelf.^000000";
close;
}
}
else {
mes "^3355FFYou've found a woman's";
mes "portrait in one of the";
mes "boxes on this shelf.";
mes "This box is now empty.^000000";
close;
}
}
//- Rosimier Mansion, top floor; Desk -
kh_rossi,144,286,0 script Desk#khr3 HIDDEN_NPC,{
if (checkweight(Kyll_Hire_Letter2,1) == 0) {
mes "^3355FFJust a second...";
mes "You're carrying too";
mes "many items with you";
mes "right now, so you'll";
mes "need to free up more";
mes "Inventory space first...^000000";
close;
}
if (KielHyreQuest < 58) {
mes "^3355FFIt's just a desk.^000000";
close;
}
else if (KielHyreQuest < 60) {
mes "^3355FFThe desk has";
mes "three drawers.^000000";
next;
switch(select("First Drawer", "Second Drawer", "Third Drawer", "Cancel")) {
case 1:
mes "^3355FFThe first drawer is locked.^000000";
close;
case 2:
if (countitem(Kyll_Hire_Letter2) < 1) {
mes "^3355FFThere is a letter inside";
mes "this second drawer. It";
mes "was sent by a person";
mes "with the initials, K.H.,";
mes "and addressed to Allysia.^000000";
getitem Kyll_Hire_Letter2,1; //Kyll_Hyre_Letter2
close;
}
else {
mes "^3355FFThis drawer is now empty.^000000";
close;
}
case 3:
mes "^3355FFThere is a small note";
mes "inside this third drawer.";
mes "It's written by James, and";
mes "mentions that he wants to";
mes "marry Allysia, and that she";
mes "received an engagement ring.^000000";
close;
case 4:
mes "......";
mes ".........";
mes "............";
close;
}
}
else{
mes "^3355FFThis is the desk where";
mes "you found a letter written";
mes "by K.H., and a note scribbled";
mes "by James Rosimier. Both of";
mes "these are addressed to";
mes "the same woman, Allysia.^000000";
close;
}
}
//- Rosimier Mansion, top floor; Bookshelf -
kh_rossi,148,288,0 script Bookshelf#khr HIDDEN_NPC,{
if (checkweight(Piece_Memo_Of_James,1) == 0) {
mes "^3355FFJust a second...";
mes "You're carrying too";
mes "many items with you";
mes "right now, so you'll";
mes "need to free up more";
mes "Inventory space first...^000000";
close;
}
if (KielHyreQuest < 58) {
mes "^3355FFYou encounter a dusty";
mes "bookshelf filled with";
mes "numerous books.^000000";
close;
}
else if (KielHyreQuest < 60) {
if (countitem(Piece_Memo_Of_James) < 1) {
mes "^3355FFYou encounter a dusty";
mes "bookshelf filled with";
mes "numerous books. You";
mes "find a folded note between";
mes "the books as you examine them.^000000";
getitem Piece_Memo_Of_James,1;
close;
}
else {
mes "^3355FFYou encounter a dusty";
mes "bookshelf filled with";
mes "numerous books.^000000";
close;
}
}
else{
mes "^3355FFYou encounter a dusty";
mes "bookshelf filled with";
mes "numerous books.^000000";
close;
}
}
//- Rosimier Mansion, top floor; Bed -
kh_rossi,154,286,0 script Bed#khr HIDDEN_NPC,{
if (KielHyreQuest < 58) {
mes "^3355FFYou found a well made";
mes "bed that has collected";
mes "a thick layer of dust";
mes "after years of disuse.^000000";
close;
}
else if (KielHyreQuest < 60) {
mes "^3355FFYou found a well made";
mes "bed that has collected";
mes "a thick layer of dust";
mes "after years of disuse.^000000";
next;
switch(select("Check Bedsheets", "Check Under Bed")) {
case 1:
mes "^3355FFYou brush the bed's";
mes "surface with your hand,";
mes "causing a cloud of nasty";
mes "dust to irritate your nose";
mes "and throat. Eww, yucky!^000000";
percentheal -10,0;
close;
case 2:
mes "^3355FFYou search underneath";
mes "the bed, and find an empty";
mes "engagement ring box.^000000";
close;
}
}
else {
mes "^3355FFThis is a dirty bed.^000000";
close;
}
}
//- Fisherman -
yuno_fild12,232,222,0 script Old Fisherman 4_M_SEAMAN,{
if (KielHyreQuest < 60) {
mes "[Fisherman]";
mes "These days, it's much";
mes "harder to catch and fish.";
mes "Ever since they built";
mes "this factory, the fish";
mes "have started to change,";
mes "and they look different too...";
close;
}
else if (KielHyreQuest == 60) {
mes "[Fisherman]";
mes "Eh? You want something?";
mes "Heh, youngsters! I know";
mes "how much you love handouts,";
mes "but you're not getting any.";
mes "Now, if you bring me some";
mes "Raw Fish, I'd be more friendly~";
if (countitem(Fish_Slice) >= 10) {
next;
mes "[Fisherman]";
mes "Oh, is all this fish";
mes "for me? Heh, how very";
mes "generous of you. If you're";
mes "going to be so kind, then";
mes "I suppose I have to repay";
mes "the favor. Ask me anything~";
next;
select("30 years ago, a woman killed herself...");
mes "[Fisherman]";
mes "Oh? Ohh. Oh yeah.";
mes "I remember that. Yeah.";
mes "it was August 20th, my";
mes "wife's birthday. That day,";
mes "instead of catching fish,";
mes "I caught a dead woman.";
next;
mes "[Fisherman]";
mes "Of course, I reported it";
mes "to the Juno Police! They told";
mes "me she killed herself since";
mes "she was betrayed by her lover,";
mes "who also happened to be her";
mes "employer. Really tragic stuff.";
next;
mes "[Fisherman]";
mes "Anyway, when they were";
mes "moving her body out of the";
mes "river, her hand dropped";
mes "some ring. I picked it up,";
mes "hoping to sell it later for";
mes "some zeny. I know, I know...";
next;
mes "[Fisherman]";
mes "I was pretty lucky the";
mes "police didn't see me take";
mes "it. Later that day, some guy";
mes "came up to me and offered";
mes "me a lot of money for it.";
mes "I guess it was my lucky day!";
next;
mes "[Fisherman]";
mes "I found out later that he was";
mes "some mechanical repairman--";
mes "something. He sold everything";
mes "to buy that ring, so I guess";
mes "he wanted it desperately.";
mes "Then he just dissapeared.";
next;
select("Do you remember his name?");
mes "[Fisherman]";
mes "His name...?";
mes "It was something like...";
mes "Heil? Hyre? Anyway, it";
mes "was a long time ago. Oh,";
mes "his old house is still around.";
next;
mes "[Fisherman]";
mes "If you're going to be";
mes "that curious, you might";
mes "as well check it out.";
mes "Let's see, he lived in";
mes "a hut near the northeast";
mes "forest guard camp.";
delitem Fish_Slice,10;
KielHyreQuest = 62;
close;
}
else {
close;
}
}
else if (KielHyreQuest >= 62) {
mes "[Fisherman]";
mes "Don't you remember";
mes "what I told you? That";
mes "guy lived in a hut near";
mes "the northeast forest";
mes "guard camp! Why don't";
mes "you check that place out?";
close;
}
}
//- Kiel Hyre's hut; Wooden Board -
yuno_fild09,158,217,0 script Wooden Board#kh HIDDEN_NPC,{
if (checkweight(Man_Portrait,1) == 0) {
mes "^3355FFJust a second...";
mes "You're carrying too";
mes "many items with you";
mes "right now, so you'll";
mes "need to free up more";
mes "Inventory space first...^000000";
close;
}
if ((KielHyreQuest < 62) || (KielHyreQuest >= 64)) {
mes "^3355FFIt's a useless";
mes "wooden board";
mes "in the bushes.^000000";
close;
}
else if (KielHyreQuest == 62) {
mes "^3355FFYou found a long";
mes "wooden board carved";
mes "with the initials, ''K.H.''^000000";
next;
cutin "kh_kyel_port",2;
mes "^3355FFYou find a portrait of";
mes "a young man, that looks";
mes "like a younger version";
mes "of Kiel Hyre, in a broken";
mes "picture frame underneath";
mes "the old wooden board.^000000";
getitem Man_Portrait,1;
KielHyreQuest = 64;
next;
cutin "",255;
mes "^3355FFYou have enough";
mes "information by now,";
mes "so you should report";
mes "back to Mitchell.^000000";
close;
}
}
//== Kiehl Hyre's Room and Boss NPCs =======================
// Beyond here the NPC for the final areas. Now, this area is not someplace
// you wanna slow down so you can pick up dialog. I used packet logging to pull
// what I could and for the sake of the two people with me, did not bother
// doing all the proper NPC positioning or some of the 'error/wrong option'
// dialogs.
// All the doors are kind of weird.
//- Kiehl's Room; Receiver (Gives black keycards upon killing mobs) -
kh_kiehl01,17,39,0 script Receiver#kh HIDDEN_NPC,{
if (mobcount("kh_kiehl01","Receiver#kh::OnMyMobDead") < 1) {
mes "^333333*BBBZZZ*^000000";
if (KielHyreQuest == 74) {
next;
mes "[????]";
mes "^333333*Bzzzz...*";
mes "I've never seen you";
mes "before. Did Father send";
mes "you to kill me? We'll just";
mes "see about that! Go ahead,";
mes "try to find me, adventurer.^000000.";
KielHyreQuest = 76;
}
close2;
monster "kh_kiehl01",16,32,"Alicel",1739,1,"Receiver#kh::OnMyMobDead";
monster "kh_kiehl01",18,31,"Aliot",1740,1,"Receiver#kh::OnMyMobDead";
end;
}
else {
end;
}
OnMyMobDead:
if (mobcount("kh_kiehl01","Receiver#kh::OnMyMobDead") <1) {
makeitem 7506,1,"this",19,36;
}
end;
}
//- Kiehl's Room; Flower Vase (Gives...password...for Box) -
kh_kiehl01,13,40,0 script Flower Vase#kh1 HIDDEN_NPC,{
if (KielHyreQuest < 74) {
mes "^3355FFYou found";
mes "a flower vase.^000000";
close;
}
if (KielHyreQuest >= 74) {
mes "^3355FFYou found";
mes "a flower vase.^000000";
next;
switch(select("Pick Up Vase", "Break Vase", "Turn Vase Upside-down")) {
case 1:
mes "^3355FFThe vase is empty.^000000";
close;
case 2:
mes "^3355FFYou can't destroy";
mes "this vase, even by";
mes "striking it with all your";
mes "might. It must have been";
mes "specially manufactured by";
mes "the Rekenber Corporation.^000000";
close;
case 3:
mes "^3355FFThe following words";
mes "are written at the";
mes "bottom of the vase.^000000";
next;
mes "[Vase Message]";
mes "''The rabbit often";
mes "observes the door";
mes "The night eats the";
mes "pickled orange.''";
close;
}
}
else{
mes "^3355FFThe following words";
mes "are written at the";
mes "bottom of the vase.^000000";
next;
mes "[Vase Message]";
mes "''The rabbit often";
mes "observes the door.";
mes "The night eats the";
mes "pickled orange.''";
close;
}
}
//- Kiehl's Room; Box -
kh_kiehl01,19,25,0 script Box#kh1 HIDDEN_NPC,{
if (checkweight(Toy_Key,1) == 0) {
mes "^3355FFJust a second...";
mes "You're carrying too";
mes "many items with you";
mes "right now, so you'll";
mes "need to free up more";
mes "Inventory space first...^000000";
close;
}
if (KielHyreQuest < 74) {
mes "^3355FFYou found a box with";
mes "a button for each letter";
mes "of the alphabet on top of it.^000000";
next;
input(.@KHInput$);
mes "^3355FFNothing happened.^000000";
close;
}
if (KielHyreQuest >= 74) {
if (countitem(Toy_Key) < 1) {
mes "^3355FFYou found a box with";
mes "a button for each letter";
mes "of the alphabet on top of it.^000000";
next;
input(.@KHInput$);
if (.@KHInput$ == "open the door") {
mes "^3355FFAs soon as you enter the";
mes "password, the nearby door";
mes "emits a pleasant chiming";
mes "sound, and the box pops";
mes "open to reveal a small key.^000000";
getitem Toy_Key,1;
close;
}
mes "^3355FFNothing happened.^000000";
close;
}
mes "^3355FFThis is where you";
mes "found the Toy key^000000";
close;
}
mes "^3355FFThe box is wide";
mes "open, and there";
mes "is nothing in it.^000000";
close;
}
//- Kiehl's Room; Big Door, (First) -
// - Anyone can pass through this door
// - Consume one Black KeyCard when opened.
// - Only one person actually needs to open it.
kh_kiehl01,44,33,0 script Big Door#BigDoorKHQ1 HIDDEN_NPC,{
if (.KHDoor1Opened == 0) {
mes "^3355FFThe door is locked,";
mes "but there is a narrow";
mes "slot next to the doorknob.^000000";
next;
input(.@KHInput$);
if (.@KHInput$ == "Black Keycard") {
if (countitem(Black_Key_Card) >= 1) {
mes "^3355FFYou insert the";
mes "Black Keycard into the";
mes "slot, and successfully";
mes "unlock and open the door.^000000";
delitem Black_Key_Card,1;
donpcevent "Big_Door_1_Warp::OnEnable";
enablenpc "Big_Door_1_Warp";
.KHDoor1Opened = 1;
close;
}
}
mes "^3355FFYou try to push the";
mes "door open with all";
mes "your might, but fail";
mes "to make it budge.^000000";
close;
}
else {
mes "^3355FFThe door is open.^000000";
close;
}
}
kh_kiehl01,43,33,0 script Big_Door_1_Warp WARPNPC,1,1,{
OnEnable:
initnpctimer;
specialeffect EF_SUMMONSLAVE;
end;
OnInit:
disablenpc "Big_Door_1_Warp";
end;
OnTimer30000:
stopnpctimer;
specialeffect EF_SUMMONSLAVE;
disablenpc "Big_Door_1_Warp";
set getvariableofnpc(.KHDoor1Opened,"Big Door#BigDoorKHQ1"),0;
end;
OnTouch:
warp "kh_kiehl01",55,33;
end;
}
//- Kiehl's Room; Big Door, (second) -
// - Consume Toy Key when opened.
// - Only one person actually needs to open it.
kh_kiehl01,174,40,0 script Big Door#BigDoorKHQ2 HIDDEN_NPC,{
if (.KHDoor2Opened == 0) {
mes "^3355FFThe door is locked,";
mes "but there is a small";
mes "keyhole next to the knob.^000000";
next;
input(.@KHInput$);
if (.@KHInput$ == "Toy Key") {
if (countitem(Toy_Key) >= 1) {
mes "^3355FFYou insert the key into";
mes "the keyhole, and the door";
mes "unlocks with a click as";
mes "you turn the key.^000000";
delitem Toy_Key,1;
donpcevent "Big_Door_2_Warp::OnEnable";
enablenpc "Big_Door_2_Warp";
.KHDoor2Opened = 1;
close;
}
}
mes "^3355FFYou try to push the";
mes "door open with all";
mes "your might, but fail";
mes "to make it budge.^000000";
close;
}
mes "^3355FFThe door is open.^000000";
close;
}
kh_kiehl01,174,39,0 script Big_Door_2_Warp WARPNPC,1,1,{
OnEnable:
initnpctimer;
specialeffect EF_SUMMONSLAVE;
end;
OnInit:
disablenpc "Big_Door_2_Warp";
end;
OnTimer30000:
stopnpctimer;
specialeffect EF_SUMMONSLAVE;
disablenpc "Big_Door_2_Warp";
set getvariableofnpc(.KHDoor2Opened,"Big Door#BigDoorKHQ2"),0;
end;
OnTouch:
warp "kh_kiehl01",173,52;
end;
}
//- Kiehl's Room; Big Door, (Third) -
// - Consume one Black KeyCard when opened.
// - Only one person actually needs to open it.
kh_kiehl01,77,108,0 script Big Door#BigDoorKHQ3 HIDDEN_NPC,{
if (.KHDoor3Opened == 0) {
mes "^3355FFThe door is locked,";
mes "but there is a narrow";
mes "slot next to the doorknob.^000000";
next;
input(.@KHInput$);
if (.@KHInput$ == "Black Keycard") {
if (countitem(Black_Key_Card) >= 1) {
mes "^3355FFYou insert the";
mes "Black Keycard into the";
mes "slot, and successfully";
mes "unlock and open the door.^000000";
delitem Black_Key_Card,1;
donpcevent "Big_Door_3_Warp::OnEnable";
enablenpc "Big_Door_3_Warp";
.KHDoor3Opened = 1;
close;
}
}
mes "^3355FFYou try to push the";
mes "door open with all";
mes "your might, but fail";
mes "to make it budge.^000000";
close;
}
else {
mes "^3355FFThe door is open.^000000";
close;
}
}
kh_kiehl01,78,108,0 script Big_Door_3_Warp WARPNPC,1,1,{
OnEnable:
initnpctimer;
specialeffect EF_SUMMONSLAVE;
end;
OnInit:
disablenpc "Big_Door_3_Warp";
end;
OnTimer30000:
stopnpctimer;
specialeffect EF_SUMMONSLAVE;
disablenpc "Big_Door_3_Warp";
set getvariableofnpc(.KHDoor3Opened,"Big Door#BigDoorKHQ3"),0;
end;
OnTouch:
warp "kh_kiehl01",68,108;
end;
}
//- Kiehl's Room; Big Door, (Fourth) -
// - Consume TWO Black KeyCard when opened.
// - Only one person actually needs to open it.
kh_kiehl01,42,177,0 script Big Door#BigDoorKHQ4 HIDDEN_NPC,{
if (.KHDoor4Opened == 0) {
mes "^3355FFThe door is locked,";
mes "but there is a narrow";
mes "slot next to the doorknob.^000000";
next;
input(.@KHInput$);
if (.@KHInput$ == "Black Keycard") {
if (countitem(Black_Key_Card) >= 2) {
mes "^3355FFYou insert the";
mes "Black Keycard into the";
mes "slot, and successfully";
mes "unlock and open the door.^000000";
delitem Black_Key_Card,2;
donpcevent "Big_Door_4_Warp::OnEnable";
enablenpc "Big_Door_4_Warp";
.KHDoor4Opened = 1;
close;
}
}
mes "^3355FFYou try to push the";
mes "door open with all";
mes "your might, but fail";
mes "to make it budge.^000000";
close;
}
mes "^3355FFThe door is open.^000000";
close;
}
kh_kiehl01,41,177,0 script Big_Door_4_Warp WARPNPC,1,1,{
OnEnable:
initnpctimer;
specialeffect EF_SUMMONSLAVE;
end;
OnInit:
disablenpc "Big_Door_4_Warp";
end;
OnTimer30000:
stopnpctimer;
specialeffect EF_SUMMONSLAVE;
disablenpc "Big_Door_4_Warp";
set getvariableofnpc(.KHDoor4Opened,"Big Door#BigDoorKHQ4"),0;
end;
OnTouch:
warp "kh_kiehl01",49,177;
end;
}
//- Kiehl's Room; Robots -
kh_kiehl01,15,179,0 script Robots#kh1 HIDDEN_NPC,{
if (mobcount("kh_kiehl01","Robots#kh1::OnMyMobDead") < 1) {
mes "^3355FFAs soon as you";
mes "touch the test tube,";
mes "a bunch of robots";
mes "suddenly appeared.^000000.";
close2;
monster "kh_kiehl01",18,181,"Aliot",1740,1,"Robots#kh1::OnMyMobDead";
monster "kh_kiehl01",18,180,"Alicel",1739,1,"Robots#kh1::OnMyMobDead";
monster "kh_kiehl01",18,179,"Aliot",1740,1,"Robots#kh1::OnMyMobDead";
monster "kh_kiehl01",18,178,"Alicel",1739,1,"Robots#kh1::OnMyMobDead";
end;
}
else {
end;
}
OnMyMobDead:
if (mobcount("kh_kiehl01","Robots#kh1::OnMyMobDead") < 1) {
makeitem 7506,1,"this",18,180;
}
end;
}
//- Kiehl's Room; Dummy Robots -
kh_kiehl01,15,177,0 script Robots#kh2::RobotsKHQ HIDDEN_NPC,{
end;
}
kh_kiehl01,15,180,0 duplicate(RobotsKHQ) Robots#kh3 HIDDEN_NPC
kh_kiehl01,15,182,0 duplicate(RobotsKHQ) Robots#kh4 HIDDEN_NPC
kh_kiehl01,35,187,0 duplicate(RobotsKHQ) Robots#kh5 HIDDEN_NPC
kh_kiehl01,37,187,0 duplicate(RobotsKHQ) Robots#kh6 HIDDEN_NPC
kh_kiehl01,39,187,0 duplicate(RobotsKHQ) Robots#kh7 HIDDEN_NPC
kh_kiehl01,41,187,0 duplicate(RobotsKHQ) Robots#kh8 HIDDEN_NPC
//- Kiehl's Room; Big Door, (Fifth, and final) -
// - Anyone can pass through this door
// - Consumes 4 Solid Iron Pieces
kh_kiehl01,166,187,0 script Big Door#BigDoorKHQ5 HIDDEN_NPC,{
if (($@KHQuestBusy == 0) && (KielHyreQuest >= 74) && (KielHyreQuest <= 106)) {
if (KielHyreQuest < 86) {
mes "^3355FFThis large door..";
mes "is closed shut.";
mes "If you listen carefully,";
mes "you can hear the door";
mes "hinges slightly squeak.^000000";
next;
select("Push Door", "Kick Door", "Shake Door", "Pull Door", "Lift Door");
mes "^3355FFA group of monsters";
mes "suddenly appeared as";
mes "soon as you applied";
mes "pressure to the door.";
mes "This must be some";
mes "kind of security device.^000000";
close2;
++@KHDoorPushAttempt;
monster "kh_kiehl01",163,183,"Alicel",1739,1;
monster "kh_kiehl01",163,179,"Aliot",1740,1;
monster "kh_kiehl01",169,183,"Alicel",1739,1;
monster "kh_kiehl01",169,179,"Aliot",1740,1;
if (@KHDoorPushAttempt >= 3) {
KielHyreQuest = 86;
}
end;
}
else if ((KielHyreQuest > 84) && (KielHyreQuest < 94)) {
mes "^3355FFYou apply some";
mes "pressure to the door,";
mes "and find that you can";
mes "budge it slightly, but";
mes "you can't fully open it.^000000";
next;
mes "^3355FFIf you wedged something";
mes "into the gap between the";
mes "door and its frame, and";
mes "fully leveraged it, then you";
mes "should be able to open it.^000000";
next;
switch(select("Steel", "Rusty Iron Piece", "Solid Iron Piece", "Iron Piece", "Screw", "Cancel")) {
case 1:
.@KHPryingItem$ = "Steel";
break;
case 2:
.@KHPryingItem$ = "Rusty Iron Piece";
break;
case 3:
if (countitem(Sturdy_Iron_Piece) >= 1) {
if (KielHyreQuest < 92) {
mes "^3355FFYou insert one end of";
mes "a Solid Iron Piece into the";
mes "door's gap in a strenuous";
mes "effort to pry the door open";
mes "The gap widens a little bit,";
mes "but you break one of your";
mes "Solid Iron Pieces.^000000";
delitem Sturdy_Iron_Piece,1; //Hard_Piece_of_Steel
KielHyreQuest += 2;
close;
}
else if (KielHyreQuest == 92) {
mes "^3355FFWith a mighty heave,";
mes "you pry a Solid Iron";
mes "Piece into the door jamb,";
mes "and fling the door wide open";
mes "Unable the withstand the";
mes "awesome force, this Solid";
mes "Iron Piece shatters into dust.^000000";
delitem Sturdy_Iron_Piece,1; //Hard_Piece_of_Steel
KielHyreQuest = 94;
close;
}
}
else {
mes "^3355FFIf only you had a Solid";
mes "Iron Piece you could use to";
mes "pry open this door.^000000";
close;
}
case 4:
.@KHPryingItem$ = "Iron Piece";
break;
case 5:
.@KHPryingItem$ = "Screw";
break;
case 6:
mes "^3355FFLet's look for something";
mes "heavy we can use to pry";
mes "open this door.^000000";
close;
}
mes "^3355FFThis "+.@KHPryingItem$+" is far";
mes "to weak for what you're using it for";
mes "and breaks.^000000";
close;
}
else if ((KielHyreQuest >= 94) && (KielHyreQuest <= 104)) {
if (.KHDoor5Opened == 0) {
mes "^3355FFThe large door";
mes "is wide open, and.";
mes "you may now enter.^000000";
next;
switch(select("Yes", "No")) {
case 1:
close2;
donpcevent "Big_Door_5_Warp::OnEnable";
enablenpc "Big_Door_5_Warp";
.KHDoor5Opened = 1;
end;
case 2:
mes "^3355FFWho knows what is on the";
mes "other side of this door. Let's";
mes "think about it before barging in..^000000";
close;
}
}
else {
mes "^3355FFThe door is open.^000000";
close;
}
}
else {
mes "^3355FFThis large door..";
mes "is closed shut.";
mes "If you listen carefully,";
mes "you can hear the door";
mes "hinges slightly squeak.^000000";
close;
}
}
else {
mes "^3355FFThis large door..";
mes "is closed shut.";
mes "If you listen carefully,";
mes "you can hear the door";
mes "hinges slightly squeak.^000000";
close;
}
}
kh_kiehl01,166,186,0 script Big_Door_5_Warp WARPNPC,1,1,{
end;
OnEnable:
initnpctimer;
specialeffect EF_SUMMONSLAVE;
end;
OnTimer30000:
stopnpctimer;
specialeffect EF_SUMMONSLAVE;
disablenpc "Big_Door_5_Warp";
set getvariableofnpc(.KHDoor5Opened,"Big Door#BigDoorKHQ5"),0;
end;
OnInit:
disablenpc "Big_Door_5_Warp";
end;
OnTouch:
if (KielHyreQuest >= 46)
warp "kh_kiehl02",50,7;
else
warp "kh_kiehl01",166,183;
end;
}
//- Kiehl's Room; Kiehl_Room_Trap (Entry way trap) -
kh_kiehl02,49,10,0 script Kiehl_Room_Trap FAKE_NPC,5,3,{
end;
OnTouch:
if (.KHTrapSprung < 1) {
.KHTrapSprung = 1;
$@KHQuestBusy = 1;
initnpctimer;
monster "kh_kiehl02",47,13,"Aliot",1740,1;
monster "kh_kiehl02",45,13,"Alicel",1739,1;
monster "kh_kiehl02",49,13,"Constant",1745,1;
monster "kh_kiehl02",51,13,"Aliot",1740,1;
monster "kh_kiehl02",53,13,"Alicel",1739,1;
monster "kh_kiehl02",49,13,"Constant",1745,1;
}
end;
OnTimer300000:
OnTimer600000:
OnTimer900000:
if (getmapusers("kh_kiehl02") == 0) {
donpcevent "KiehlRoom::OnReset";
stopnpctimer;
}
end;
OnTimer1200000:
donpcevent "KiehlRoom::OnReset";
stopnpctimer;
end;
OnGlobalTimerOff:
stopnpctimer;
end;
}
//- Kiehl's Room; Kiehl -
// - Timer will drop to 3 minutes once Kiehl is defeated.
kh_kiehl02,50,52,4 script Kiehl#Original 4_M_KHKIEL,{
if (checkweight(Spawn,200) == 0) {
mes "^3355FFJust a second...";
mes "You're carrying too";
mes "many items with you";
mes "right now, so you'll";
mes "need to free up more";
mes "Inventory space first...^000000";
close;
}
cutin "kh_kiel01",2;
if ((KielHyreQuest < 94) || (KielHyreQuest >= 106)) {
mes "[Kiehl]";
mes "......";
mes ".........";
mes "............";
close2;
cutin "",255;
end;
}
if ((KielHyreQuest == 94) && (getvariableofnpc(.KHKilled,"KiehlRoom") < 5)) {
mes "[Kiehl]";
mes "I'm surprised you made";
mes "it this far, adventurer~";
mes "I bid you welcome to my";
mes "humble room. I assume that";
mes "you've come for the Condensed";
mes "Memory Scroll... my mind.";
next;
mes "[Kiehl]";
mes "You can understand";
mes "why I can't let you have it,";
mes "so if you really want the";
mes "Condensed Memory Scroll,";
mes "then show me what you've got!";
close2;
cutin "",255;
set getvariableofnpc(.KHKilled,"KiehlRoom"),0;
monster "kh_kiehl02",50,52,"Aliot",1740,1,"KiehlRoom::OnKiehlMobDead";
monster "kh_kiehl02",50,52,"Alicel",1739,1,"KiehlRoom::OnKiehlMobDead";
monster "kh_kiehl02",50,52,"Constant",1745,1,"KiehlRoom::OnKiehlMobDead";
monster "kh_kiehl02",50,52,"Aliot",1740,1,"KiehlRoom::OnKiehlMobDead";
monster "kh_kiehl02",50,52,"Alicel",1739,1,"KiehlRoom::OnKiehlMobDead";
monster "kh_kiehl02",50,52,"Constant",1745,1,"KiehlRoom::OnKiehlMobDead";
monster "kh_kiehl02",50,52,"Aliot",1740,1,"KiehlRoom::OnKiehlMobDead";
hideonnpc "Kiehl#Original";
end;
}
else if ((KielHyreQuest == 94) && (getvariableofnpc(.KHKilled,"KiehlRoom") >= 5)) {
cutin "kh_kiel03",2;
mes "[Kiehl]";
mes "Hmpf! You're pretty good.";
mes "Father must have spent";
mes "a lot of money to hire";
mes "you. So has he sent";
mes "you to kill me?";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "Kiel Hyre sent me to ask";
mes "you to stop turning all of";
mes "the Third Generation robots";
mes "into killing machines! How";
mes "can you do something like that";
mes "to other robots like you?";
next;
cutin "kh_kiel01",2;
mes "[Kiehl]";
mes "Why not? It's said that man";
mes "was made in the image of God.";
mes "Well, robots were made in the";
mes "image of man. You humans kill";
mes "each other as much as you";
mes "like, as far as I can tell.";
next;
mes "[Kiehl]";
mes "It might not be ethical";
mes "for me to provide weapons";
mes "to humans that need them...";
mes "But that's what they are.";
mes "Weapons. It's more humane";
mes "for robots to fight than humans.";
next;
mes "[Kiehl]";
mes "Robots don't naturally";
mes "feel pain or emotions...";
mes "Not unless they're specially";
mes "programmed. Sorry, but I don't";
mes "plan to stop what I'm doing.";
next;
cutin "kh_kiel04",2;
mes "[Kiehl]";
mes "I am sorry, but I don't have a plan to stop what I am doing.";
mes "Aside from that, my father showed me a great example of";
mes "how far a human could go for his own selfinishness by destroying a family.";
mes "And therefore I don't think that he could create better robots than mine.";
next;
mes "["+strcharinfo(PC_NAME)+"]";
mes "Humankind may not be";
mes "perfect, but think about";
mes "who you're working with!";
mes "Rekenber is the epitome of";
mes "human evil! How can you";
mes "support them like this?";
next;
cutin "kh_kiel02",2;
mes "[Kiehl]";
mes "I've had a long relationship";
mes "with Rekenber. I'm fully aware";
mes "of their capabilities. Do you";
mes "remember the first room you";
mes "passed on your way here, the";
mes "one with all the toys?";
next;
mes "[Kiehl]";
mes "I bet you didn't know that there";
mes "were 5 Second Generation";
mes "robots. Me, and my four other";
mes "brothers and sisters. Father";
mes "built that room so that all";
mes "five of us could live together.";
next;
cutin "kh_kiel03",2;
mes "[Kiehl]";
mes "I was the only one to";
mes "survive. I returned to";
mes "Father and even got a";
mes "name. But yes, I know";
mes "how bad Rekenber really is...";
next;
mes "[Kiehl]";
mes "I don't... I don't want";
mes "to talk about this any more.";
mes "You've made me... Just leave.";
mes "I think I will let you live.";
next;
cutin "",255;
mes "[Mitchell]";
mes "Freeze!";
mes "Kiehl Hyre, you're";
mes "under arrest for creating";
mes "and trading illegal weapons!";
KielHyreQuest = 100;
hideoffnpc "Mitchell#KiehlRoom";
hideoffnpc "Agent#KHAgent1";
hideoffnpc "Agent#KHAgent2";
hideoffnpc "Agent#KHAgent3";
hideoffnpc "Agent#KHAgent4";
next;
}
if ((KielHyreQuest == 100) && (getvariableofnpc(.KHKilledBoss,"KiehlRoom") < 1)) {
set getvariableofnpc(.KHKilledBoss,"KiehlRoom"),0;
cutin "kh_kiel01",2;
mes "[Kiehl]";
mes "Ah, Schwaltzvalt Republic";
mes "agents. Heh. I haven't had";
mes "this many guests before.";
mes "Well, I guess this means";
mes "we'll have to fight after";
mes "all, you and I. *Sigh* Pity.";
next;
mes "[Kiehl]";
mes "First, in all fairness,";
mes "let me take care of these";
mes "nuisances. They're just";
mes "mindlessly doing their";
mes "jobs--sort of like robots-- but";
mes "don't worry, they won't be hurt.";
next;
mes "[Mitchell]";
mes "Nooooo!";
specialeffect(PF_FOGWALL, AREA, getnpcid("Mitchell#KiehlRoom"));
specialeffect(PF_FOGWALL, AREA, getnpcid("Agent#KHAgent1"));
specialeffect(PF_FOGWALL, AREA, getnpcid("Agent#KHAgent2"));
specialeffect(PF_FOGWALL, AREA, getnpcid("Agent#KHAgent3"));
specialeffect(PF_FOGWALL, AREA, getnpcid("Agent#KHAgent4"));
next;
cutin "kh_kiel03",2;
mes "[Kiehl]";
mes "And now, you and I can";
mes "have a proper duel, human.";
mes "I'm interested in seeing just";
mes "how strong you really are~";
close2;
cutin "",255;
monster "kh_kiehl02",50,52,"Kiehl",1733,1,"KiehlRoom::OnKiehlDead";
hideonnpc "Kiehl#Original";
end;
}
else if ((KielHyreQuest == 100) && (getvariableofnpc(.KHKilledBoss,"KiehlRoom") == 1)) {
cutin "kh_kiel02",2;
mes "[Kiehl]";
mes "D-damn...!";
mes "Well played, adventurer.";
mes "Well played. I should have";
mes "known that Father would send";
mes "the very best after me. Still,";
mes "you've failed to truly defeat me.";
next;
cutin "kh_kiel03",2;
mes "[Kiehl]";
mes "I still have a few";
mes "trump cards left";
mes "I think... I'll take you";
mes "to hell with me... Well,";
mes "if robots can go there~";
next;
mapannounce "kh_kiehl02","*Jeeeezzzgggg~ Geezzz~ Grrrr~ Clank~*",bc_map,"0xFF0000";
mes "[Mitchell]";
mes "No...! We're locked";
mes "in the room! We're...";
mes "We're trapped in here!";
next;
mes "[Kiehl]";
mes "Yay~ Let's burn";
mes "everything down~";
next;
mes "[Mitchell]";
mes "Quick, "+strcharinfo(PC_NAME)+",";
mes "use Kiel Hyre's power";
mes "device, the one that's";
mes "supposed to mess with";
mes "Kiehl's power supply!";
mes "Hurry, use it right now!";
next;
mapannounce "kh_kiehl02","*Gzzzz~ Gzzzz~*",bc_map,"0xFF0000";
mes "[Kiehl]";
mes "Wh-what? I c-can't";
mes "move! This day is just";
mes "full of surprises. Oh, well.";
mes "I guess it's time for me to";
mes "use my other trump card.";
next;
mes "[Mitchell]";
mes "What...?";
mes "How many trump";
mes "cards do you have?";
next;
mes "[????]";
mes "I'm so disappointed...";
mes "I can't believe none";
mes "of you thought of this.";
next;
mes "[Mitchell]";
mes "Who are you...?";
mes "Show yourself!";
next;
mes "[????]";
mes "Please.";
mes "Don't insult me.";
mes "You know this voice.";
mes "It's been talking to";
mes "you this entire time~";
next;
mes "[Mitchell]";
mes "Impossible...";
mes "How can there";
mes "be two of you...?!";
next;
hideoffnpc "Kiehl#Copy";
next;
cutin "kh_kiel01",0;
mes "[Kiehl]";
mes "Hahahahaha!";
mes "I'm a robot!";
mes "I can make extra";
mes "bodies, switch brains";
mes "with them. It's awfully";
mes "convenient, let me tell you.";
next;
cutin "kh_kiel03",2;
mes "[Kiehl]";
mes "Anyway, I don't mean to show";
mes "off, but I suppose I better";
mes "reveal to you my final trump";
mes "card. First of all, I know all";
mes "about you, Ms. Mitchell Layla~";
next;
mes "[Mitchell]";
mes "What? How do you";
mes "know my name?";
next;
mes "[Kiehl]";
mes "Well, I have a few";
mes "spies of my own...";
mes "I'll allow him to explain...";
next;
mes "[Masked Man]";
mes "Mitchell...";
mes "I'm sorry that";
mes "you had to get";
mes "involved in all this...";
next;
mes "[Mitchell]";
mes "Wolkeus? Wolkeus Kaiser?!";
mes "You're the spy?! But you risked";
mes "your life to save our president!";
mes "No! Oh, God! How can this be";
mes "happening?! Everything's just...";
mes "This is all crazy! All of it!";
next;
mes "[Wolkeus]";
mes "This is just the result";
mes "of elaborate plans that";
mes "were made years ago. I didn't";
mes "expect you to be this surprised,";
mes "Mitchell. It's the way the game";
mes "is played. You know that.";
next;
mes "[Mitchell]";
mes "Mister President...";
mes "I failed you... I'm sorry...";
next;
mes "[Kiehl]";
mes "Well, Kaiser, she took";
mes "it pretty badly, but at least";
mes "you're being gentlemanly";
mes "about it. Well, I'd like for";
mes "all of us to get better";
mes "acquainted, but...";
next;
cutin "kh_kiel01",2;
mes "[Kiehl]";
mes "We'd better say our";
mes "farewells here. This";
mes "place will be gone in";
mes "five minutes. Ah, and";
mes "Ms. Layla, you're coming";
mes "with us. We have questions~";
next;
mes "[Kiehl]";
mes "I'm curious as to what";
mes "the president's plans are.";
mes "Mister Kaiser, if you'll";
mes "escort Ms. Layla, please...";
next;
mes "[Wolkeus Kaiser]";
mes "...............................";
mes "Sorry, Mitchell.";
mes "I gotta do it.";
next;
mes "[Mitchell]";
mes "No, get away! Let me go!";
mes "Let go of me, Wolkeus!";
hideonnpc "Mitchell#KiehlRoom";
hideonnpc "Agent#KHAgent1";
hideonnpc "Agent#KHAgent2";
hideonnpc "Agent#KHAgent3";
hideonnpc "Agent#KHAgent4";
next;
cutin "kh_kiel02",2;
mes "[Kiehl]";
mes "Great, we're done with";
mes "that ugly business. Now,";
mes "where was I? Ah, right.";
mes "Yes. I'm sorry. We don't";
mes "have any more time to play.";
next;
mes "[Kiehl]";
mes "Here, adventurer.";
mes "I'm aware that my father";
mes "sent you here to get this.";
mes "Consider it my final gift";
mes "to him. I'm surprised he left";
mes "this ring inside me, though...";
next;
cutin "kh_kiel04",2;
mes "[Kiehl]";
mes "I imagine that it must";
mes "be precious to him. But";
mes "I wonder why he placed";
mes "it inside me? Well, anyway,";
mes "I have a message I'd like";
mes "for you to deliver to him.";
next;
cutin "kh_kiel01",2;
mes "[Kiehl]";
mes "First... I guess we";
mes "should get rid of this";
mes "old thing. It was a good";
mes "body, and it's served me";
mes "well for 23 years. I'll miss";
mes "it. Rest well, old Kiehl.";
next;
specialeffect EF_DEVIL;
next;
mes "[Kiehl]";
mes "Now, this was the body";
mes "that my father made.";
mes "Please tell him that";
mes "this means that we're";
mes "no longer related to";
mes "each other at all.";
next;
mes "[Kiehl]";
mes "The body I'm using right now?";
mes "I made it myself with the most";
mes "advanced technology. Consider";
mes "it... a Fourth Generation robot";
mes "body if you will. Father will";
mes "understand what I mean.";
next;
mes "[Kiehl]";
mes "Anyway, please tell him";
mes "that, and get his old ring";
mes "out of my old robot body,";
mes "and then give it to him. For";
mes "now, let's get out of here: we";
mes "just have 3 minutes to evacuate.";
next;
mes "[Kiehl]";
mes "You're a worthy opponent,";
mes "and a human I respect.";
mes "I don't know if we'll meet";
mes "again, but who knows?";
mes "Anyway, I'll open up the";
mes "exit for you. Farewell~";
delitem Toy_Motor,1;
KielHyreQuest = 104;
hideonnpc "Kiehl#Copy";
donpcevent "Kiehl_Room_Exit::OnEnable";
enablenpc "Kiehl_Room_Exit";
initnpctimer;
cutin "",255;
close;
}
if (KielHyreQuest == 104) {
cutin "kh_kiel02",2;
mes "^3355FFYou retrieve the";
mes "ring from the heart of";
mes "Kiehl's old robotic body.^000000";
getitem Elysia_Ring,1;
KielHyreQuest = 106;
close2;
cutin "",255;
end;
}
else{
cutin "kh_kiel02",2;
mes "^3355FFKiehl's old";
mes "robotic body";
mes "stands alone,";
mes "lifeless and silent.^000000";
close2;
cutin "",255;
end;
}
OnTimer180000:
stopnpctimer;
mapannounce "kh_kiehl02","Beeeeeeeeeeeeep~",bc_npc,0xFF0000;
donpcevent "KiehlRoom::OnReset";
end;
OnTimer179000:
mapannounce "kh_kiehl02","1 second remaining until detonation",bc_npc,0xFF0000;
end;
OnTimer178000:
mapannounce "kh_kiehl02","2 seconds remaining until detonation",bc_npc,0xFF0000;
end;
OnTimer177000:
mapannounce "kh_kiehl02","3 seconds remaining until detonation",bc_npc,0xFF0000;
end;
OnTimer176000:
mapannounce "kh_kiehl02","4 seconds remaining until detonation",bc_npc,0xFF0000;
end;
OnTimer175000:
mapannounce "kh_kiehl02","5 seconds remaining until detonation",bc_npc,0xFF0000;
end;
OnTimer170000:
mapannounce "kh_kiehl02","10 seconds remaining until detonation",bc_npc,0xFF0000;
end;
OnTimer160000:
mapannounce "kh_kiehl02","20 seconds remaining until detonation",bc_npc,0xFF0000;
end;
OnTimer150000:
mapannounce "kh_kiehl02","30 seconds remaining until detonation",bc_npc,0xFF0000;
end;
OnTimer120000:
mapannounce "kh_kiehl02","1 minute remaining until detonation.",bc_npc,0xFF0000;
end;
OnTimer60000:
mapannounce "kh_kiehl02","2 minutes remaining until detonation.",bc_npc,0xFF0000;
end;
OnTimer1000:
mapannounce "kh_kiehl02","3 minutes remaining until detonation.",bc_npc,0xFF0000;
end;
}
//- Kiehl's Room; NPC for mob control, timers, and other junk. -
kh_kiehl02,1,1,0 script KiehlRoom FAKE_NPC,{
end;
OnKiehlMobDead:
++.KHKilled;
if (.KHKilled == 5) {
hideoffnpc "Kiehl#Original";
}
end;
OnKiehlDead:
.KHKilledBoss = 1;
hideoffnpc "Kiehl#Original";
end;
OnReset:
donpcevent "Kiehl_Room_Trap::OnGlobalTimerOff";
if (getmapusers("kh_kiehl02") > 0)
mapwarp "kh_kiehl02","lighthalzen",192,200;
killmonsterall "kh_kiehl02";
disablenpc "Kiehl_Room_Exit";
hideonnpc "Mitchell#KiehlRoom";
hideonnpc "Agent#KHAgent1";
hideonnpc "Agent#KHAgent2";
hideonnpc "Agent#KHAgent3";
hideonnpc "Agent#KHAgent4";
hideonnpc "Kiehl#Copy";
hideoffnpc "Kiehl#Original";
.KHKilledBoss = 0;
.KHKilled = 0;
set getvariableofnpc(.KHTrapSprung,"Kiehl_Room_Trap"),0;
$@KHQuestBusy = 0;
end;
}
//- Kiehl's Room; Mitchell and Agents. -
kh_kiehl02,49,55,6 script Mitchell#KiehlRoom 4_F_JOB_HUNTER,{
end;
OnInit:
hideonnpc strnpcinfo(NPC_NAME);
end;
}
kh_kiehl02,53,52,4 duplicate(Mitchell#KiehlRoom) Agent#KHAgent1 4_M_MASKMAN
kh_kiehl02,51,49,1 duplicate(Mitchell#KiehlRoom) Agent#KHAgent2 4_M_MASKMAN
kh_kiehl02,47,50,0 duplicate(Mitchell#KiehlRoom) Agent#KHAgent3 4_M_MASKMAN
kh_kiehl02,46,53,6 duplicate(Mitchell#KiehlRoom) Agent#KHAgent4 4_M_MASKMAN
//- Kiehl's Room; Copy of Kiehl. -
kh_kiehl02,48,53,6 script Kiehl#Copy 4_M_KHKIEL,{
end;
OnInit:
hideonnpc "Kiehl#Copy";
end;
}
//- Kiehl's Room; Kiehl_Room_Exit -
kh_kiehl02,50,59,0 script Kiehl_Room_Exit WARPNPC,1,1,{
OnTouch:
if (getmapusers("kh_kiehl02") < 1)
donpcevent "KiehlRoom::OnReset";
warp "lighthalzen",193,202;
end;
OnEnable:
specialeffect EF_SUMMONSLAVE;
end;
OnInit:
disablenpc "Kiehl_Room_Exit";
end;
}
|