summaryrefslogtreecommitdiff
path: root/npc/quests/thana_quest.txt
blob: ab3307c5fa9b05c7644bfa2ce0428c9336b2c371 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
//===== rAthena Script =======================================
//= Thanatos Tower Quest
//===== By: ==================================================
//= [Ishizu-chan]
//===== Current Version: =====================================
//= 2.5a
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= It's the Thanatos Tower Quest...
//===== Additional Comments: =================================
//= 1.0 First Release [Ishizu-chan]
//= 1.1 Updated Thanatos Tower Quest to official. [SinSloth]
//= 1.2 Fixed a bug where Reward NPC didn't give you Zeny and Exp. [SinSloth]
//= 1.3 Added a checking in boss map to reset event if there's no player. [SinSloth]
//= 1.4 Changed the way the Thanatos Portal works to allow people to enter
//= as long as Thanatos is alive. [SinSloth]
//= 1.4a You may enter either "Charmstone" or "Charm Stone" [Lupus]
//= 1.5 Fixed a bug in the number part of the quest. [SinSloth]
//= 1.6 Fixed experience gains to match upcoming rate adjustments. [SinSloth]
//= 1.7 Fixed a minor bug with prevented code part from reseting properly. [SinSloth]
//= 1.8 Corrected NPC names to fall within proper restrictions. [L0ne_W0lf]
//= 1.9 Fixed a bug in the last event which allowed an exploit after the first summoning. [SinSloth]
//= 2.0 Cleaned up the trans-only check, and added expanded classes. [L0ne_W0lf]
//= 2.1 Replaced effect numerics with constants. [Samuray22]
//= 2.2 Updated the whole Script to match with latest available official file. [Masao]
//= 2.3 Added continue and break in switch case. [JayPee]
//= 2.4 Fixed a minor bug with Arch Bishop checks. [Euphy]
//= 2.5 Cleaning. [Euphy]
//= 2.5a Fixed an incorrect variable. [Euphy]
//============================================================

hu_fild01,140,163,5	script	Tower Keeper	852,3,3,{

	mes "[Gatei]";
	mes "Greetings, adventurer.";
	mes "I am Gatei Knumm, keeper";
	mes "of this Thanatos Tower.";
	mes "How may I help you?";
	next;
	switch (select("Thanatos Tower?:Entrance Fee?:Enter the tower:Cancel")) {
	case 1:
		mes "[Gatei]";
		mes "Yes, the tower in front";
		mes "of you was an ancient ruins";
		mes "that got its name from a word";
		mes "written on a stone plate found";
		mes "inside. Today, this place is";
		mes "a popular tourist attraction.";
		next;
		mes "[Gatei]";
		mes "This tower grew in popularity";
		mes "for adventurers when the";
		mes "Rekenber Corporation began";
		mes "tower reconstruction efforts.";
		mes "The 1st and 2nd floors are now";
		mes "repaired and free of monsters.";
		next;
		mes "[Gatei]";
		mes "However, reconstruction of";
		mes "the 3rd and higher floors is";
		mes "incomplete. Those levels are";
		mes "still infested with monsters, so we're contracting temp workers";
		mes "to exterminate all of them.";
		next;
		mes "[Gatei]";
		mes "If you're interested in";
		mes "temporary contract work,";
		mes "or would like to know about";
		mes "this place in detail, please";
		mes "ask one of the guides inside.";
		mes "Thank you and enjoy your visit~";
		close;
	case 2:
		mes "[Gatei]";
		mes "Everyone is welcome to";
		mes "enjoy Thanatos Tower.";
		mes "Only the 1st and 2nd floors";
		mes "are open to the public at";
		mes "this time. The entrance fee";
		mes "is 5,000 zeny per person.";
		next;
		mes "[Gatei]";
		mes "5,000 zeny may seem a little";
		mes "steep for a tourist attraction,";
		mes "but trust me, this tower provides a very unique experience. Also,";
		mes "our loyal customers and contract workers get a special discount~";
		close;
	case 3:
		mes "[Gatei]";
		mes "Would you like to";
		mes "enter Thanatos Tower?";
		mes "The entry fee is ^FF00005,000 zeny^000000.";
		next;
		switch (select("Enter:Maybe next time.")) {
		case 1:
			if (thana_tower > 0) {
				mes "[Gatei]";
				mes "Oh, "+strcharinfo(0)+"!";
				mes "Welcome back! Since you've";
				mes "got a temporary Rekenber";
				mes "work contract, your entrance";
				mes "fee is only 3,000 zeny.";
				next;
				switch (select("Enter:No, thanks.")) {
				case 1:
					if (Zeny > 2999) {
						mes "[Gatei]";
						mes "Thank you, and";
						mes "please keep up the";
						mes "good work. Ah, and don't";
						mes "forget: safety first when";
						mes "you fight those monsters!";
						set Zeny, Zeny - 3000;
						close2;
						warp "tha_scene01",131,220;
						end;
					}
					mes "[Gatei]";
					mes "Oh, I'm sorry...";
					mes "But you don't seem to";
					mes "have enough zeny. Oh well,";
					mes "just come back again later~";
					close;
				case 2:
					mes "[Gatei]";
					mes "You must be busy, then.";
					mes "Well, not to worry, we'll";
					mes "always be here. Farewell~";
					close;
				}
			}
			if (Zeny > 4999) {
				mes "[Gatei]";
				mes "Ah, I've received your";
				mes "entrance fee. Thank you";
				mes "very much. Now, I hope";
				mes "you enjoy your visit";
				mes "to Thanatos Tower~";
				set Zeny, Zeny - 5000;
				close2;
				warp "tha_scene01",131,220;
				end;
			}
			mes "[Gatei]";
			mes "Well...";
			mes "Hm. I'm sorry, but you";
			mes "don't seem to have enough";
			mes "zeny for the entrance fee.";
			mes "Please come back later...";
			close;
		case 2:
			mes "[Gatei]";
			mes "Very well. Please come";
			mes "and visit us again here";
			mes "in Thanatos Tower.";
			close;
		}
	case 4:
		mes "[Gatei]";
		mes "Hmm? Very well.";
		mes "But if you wish to visit";
		mes "this Thanatos Tower, please";
		mes "do not hesitate to ask me.";
		mes "Thank you and have a nice day.";
		close;
	}

OnTouch:
	mes "[Tower Keeper]";
	mes "Excuse me, but you cannot";
	mes "enter. This place is under";
	mes "the Rekenber Corporation's";
	mes "administration, and this area";
	mes "is restricted to all those";
	mes "without authorization.";
	close;
}

tha_t01,149,78,4	script	Guide	90,{

	if (thana_tower == 0) {
		mes "[Ditze]";
		mes "Welcome to Thanatos Tower.";
		mes "The tower's reconstruction is";
		mes "a Rekenber Corporation project,";
		mes "and the 1st and 2nd floors are";
		mes "now open to the public. So";
		mes "how may I help you today?";
		next;
		switch (select("Tower Information:Temporary Work Contract:Cancel")) {
		case 1:
			mes "[Ditze]";
			mes "When this tower was built,";
			mes "who built it, and its purpose";
			mes "are all mysteries. There are";
			mes "many rumors about it being a";
			mes "Mage lab, a hero's momunent,";
			mes "or a demon fortress...";
			next;
			mes "[Ditze]";
			mes "The Rekenber Corporation has";
			mes "been researching the origin of";
			mes "this tower, but has not yet been able to confirm anything. Although";
			mes "we've lost many researchers to the tower monsters, we won't give up!";
			next;
			mes "[Ditze]";
			mes "Rekenber is convinced that this";
			mes "tower holds many secrets, and";
			mes "successfully reconstructed the";
			mes "first 2 floors of this tower in";
			mes "the pursuit of this knowledge.";
			next;
			mes "[Ditze]";
			mes "Currently, we are focused on";
			mes "reconstructing the tower's 3rd";
			mes "and 4th floors. Luckily, many";
			mes "adventurers are exterminating";
			mes "the monsters on those floors, working under temporary contracts.";
			next;
			mes "[Ditze]";
			mes "At this rate, we expect";
			mes "to complete reconstruction";
			mes "of the 3rd and 4th floors in";
			mes "the near future, bringing us";
			mes "closer to our goal of opening all 12 floors of Thanatos Tower.";
			next;
			switch (select("Tower Monsters?:Temp Contract Work?:......")) {
				case 1:
					mes "[Ditze]";
					mes "Yes, when we began";
					mes "reconstruction of the";
					mes "Thanatos Tower, these";
					mes "monsters that look like angels";
					mes "just appeared out of nowhere";
					mes "to attack all the workers.";
					next;
					mes "[Ditze]";
					mes "At first, witnesses thought";
					mes "that these monsters might";
					mes "be, you know, actual angels.";
					mes "But if they were, why were they";
					mes "attacking for no reason?";
					next;
					mes "[Ditze]";
					mes "Anyway, we asked the Juno ";
					mes "Sage Academy to investigate";
					mes "them, and they confirmed that";
					mes "these angelic creatures are true monsters--their resemblance to";
					mes "angels is merely coincidence.";
					close;
				case 2:
					mes "[Ditze]";
					mes "You may have already heard";
					mes "from the Tower Keeper, but";
					mes "we're contracting adventurers to exterminate the tower monsters";
					mes "in the 3rd and higher levels on";
					mes "a temporary employee basis.";
					next;
					mes "[Ditze]";
					mes "I'm in charge of hiring";
					mes "temp contract workers, so";
					mes "talk to me if you're interested. Only temp workers are allowed";
					mes "to access the higher levels";
					mes "here in Thanatos Tower.";
					next;
					break;
				case 3:
					mes "[Ditze]";
					mes "To develop the floors above";
					mes "the 2nd floor, we're going to";
					mes "need as many temp contract";
					mes "workers as we can hire. Why";
					mes "don't you consider working";
					mes "for us under a temp contract?";
					close;
			}
			switch (select("Maybe next time:Sure, I'd like to work for you.")) {
			case 1:
				mes "[Ditze]";
				mes "Well, alright.";
				mes "But come and talk to";
				mes "me as soon as you decide";
				mes "that you want to help with";
				mes "the tower reconstruction by";
				mes "working for Rekenber.";
				close;
			case 2:
				mes "[Ditze]";
				mes "That's great!";
				mes "Would you please fill";
				mes "out this employment";
				mes "agreement first? Let's";
				mes "see. Your name is...";
				mes ""+strcharinfo(0)+", right?";
				next;
				menu "Yes",-;
				mes "[Ditze]";
				mes "Alright, please read";
				mes "this agreement carefully.";
				mes "If you agree with all of";
				mes "the conditions, go ahead";
				mes "and just sign the bottom.";
				next;
				mes "^3355FFDitze hands you the";
				mes "Employment Agreement";
				mes "document for you to read.^000000";
				next;
				mes "- Employment Agreement -";
				mes " ";
				mes "1. This employment agreement";
				mes "is effective between Rekenber";
				mes "Corporation (''Employer'') and "+strcharinfo(0)+"(''Employee'').";
				mes "1-1. This employment agreement";
				mes "is classified as a Mercernary";
				mes "contract between both parties.";
				mes "2. The terms of this contract";
				mes "immediately take effect once";
				mes "it is signed by both parties";
				mes "(Employer and Employee).";
				mes "3. When the Employee performs";
				mes "a mission, the mission results";
				mes "must be verified with acceptible physical proof that must be";
				mes "presented to the Employer.";
				mes "3-1. Please refer to Section";
				mes "7A for examples of acceptible";
				mes "proof of monster extermination.";
				mes "3-2. Acceptible proof is";
				mes "determined and defined by a";
				mes "representative of the Employer.";
				mes "4. Employer will allot rewards";
				mes "to Employees after receiving";
				mes "extermination proof.";
				mes "4-1. Possible rewards for";
				mes "monster exterminations may";
				mes "include the following.";
				mes ".................................................";
				mes ".................................................";
				mes ".................................................";
				mes ".................................................";
				mes ".................................................";
				mes "13. This contract's terms are";
				mes "only applicable witin Thanatos";
				mes "Tower.";
				mes "14. Employees will receive";
				mes "a discount on the Entry Fee";
				mes "to the Thanatos Tower.";
				mes " ";
				mes " ";
				mes " ";
				mes "Employer Signature____________";
				mes "Employee Signature____________";
				next;
				switch (select("Sign:Don't Sign")) {
				case 1:
					mes "^3355FFYou sign two copies of the";
					mes "Employment Agreement.^000000";
					next;
					mes "[Ditze]";
					mes "Thank you. Now, you are";
					mes "an official employee of the";
					mes "Rekenber Corporation! Well,";
					mes "within the limits of this tower";
					mes "anyway. This contract doesn't";
					mes "apply outside of this place.";
					next;
					mes "[Ditze]";
					mes "From now on, you can talk";
					mes "to the 2nd Floor Guide to";
					mes "enter the 3rd Floor. If you";
					mes "have any mission reward";
					mes "questions, please ask ^3355FFLiei^000000.";
					next;
					mes "[Ditze]";
					mes "If you want to check";
					mes "more information about";
					mes "your work, please talk";
					mes "to the 2nd Floor Guide.";
					mes "Thank you, and welcome";
					mes "to the Rekenber Corporation~";
					set thana_tower,1;
					close;
				case 2:
					mes "[Ditze]";
					mes "Oh? Was there an article";
					mes "within the contract that you";
					mes "disagreed with? Hm. Well,";
					mes "that's fine. But if you change";
					mes "your mind, please come back";
					mes "and ask me anytime. Thank you~";
					close;
				}
			}
		case 2:
			mes "[Ditze]";
			mes "You may have already heard";
			mes "from the Tower Keeper, but";
			mes "we're contracting adventurers to exterminate the tower monsters";
			mes "in the 3rd and higher levels on";
			mes "a temporary employee basis.";
			next;
			mes "[Ditze]";
			mes "I'm in charge of hiring";
			mes "temp contract workers, so";
			mes "talk to me if you're interested. Only temp workers are allowed";
			mes "to access the higher levels";
			mes "here in Thanatos Tower.";
			next;
			switch (select("Maybe next time:Sure, I'd like to work for you.")) {
			case 1:
				mes "[Ditze]";
				mes "Well, alright.";
				mes "But come and talk to";
				mes "me as soon as you decide";
				mes "that you want to help with";
				mes "the tower reconstruction by";
				mes "working for Rekenber.";
				close;
			case 2:
				mes "[Ditze]";
				mes "That's great!";
				mes "Would you please fill";
				mes "out this employment";
				mes "agreement first? Let's";
				mes "see. Your name is...";
				mes ""+strcharinfo(0)+", right?";
				next;
				menu "Yes",-;
				mes "[Ditze]";
				mes "Alright, please read";
				mes "this agreement carefully.";
				mes "If you agree with all of";
				mes "the conditions, go ahead";
				mes "and just sign the bottom.";
				next;
				mes "^3355FFDitze hands you the";
				mes "Employment Agreement";
				mes "document for you to read.^000000";
				next;
				mes "- Employment Agreement -";
				mes " ";
				mes "1. This employment agreement";
				mes "is effective between Rekenber";
				mes "Corporation (''Employer'') and "+strcharinfo(0)+"(''Employee'').";
				mes "1-1. This employment agreement";
				mes "is classified as a Mercernary";
				mes "contract between both parties.";
				mes "2. The terms of this contract";
				mes "immediately take effect once";
				mes "it is signed by both parties";
				mes "(Employer and Employee).";
				mes "3. When the Employee performs";
				mes "a mission, the mission results";
				mes "must be verified with acceptible physical proof that must be";
				mes "presented to the Employer.";
				mes "3-1. Please refer to Section";
				mes "7A for examples of acceptible";
				mes "proof of monster extermination.";
				mes "3-2. Acceptible proof is";
				mes "determined and defined by a";
				mes "representative of the Employer.";
				mes "4. Employer will allot rewards";
				mes "to Employees after receiving";
				mes "extermination proof.";
				mes "4-1. Possible rewards for";
				mes "monster exterminations may";
				mes "include the following. ";
				mes ".................................................";
				mes ".................................................";
				mes ".................................................";
				mes ".................................................";
				mes ".................................................";
				mes "13. This contract's terms are";
				mes "only applicable witin Thanatos";
				mes "Tower.";
				mes "14. Employees will receive";
				mes "a discount on the Entry Fee";
				mes "to the Thanatos Tower.";
				mes " ";
				mes " ";
				mes " ";
				mes "Employer Signature_____________";
				mes "Employee Signature____________";
				next;
				switch (select("Sign:Don't Sign")) {
				case 1:
					mes "^3355FFYou sign two copies of the";
					mes "Employment Agreement.^000000";
					next;
					mes "[Ditze]";
					mes "Thank you. Now, you are";
					mes "an official employee of the";
					mes "Rekenber Corporation! Well,";
					mes "within the limits of this tower";
					mes "anyway. This contract doesn't";
					mes "apply outside of this place.";
					next;
					mes "[Ditze]";
					mes "From now on, you can talk";
					mes "to the 2nd Floor Guide to";
					mes "enter the 3rd Floor. If you";
					mes "have any mission reward";
					mes "questions, please ask ^3355FFLiei^000000.";
					next;
					mes "[Ditze]";
					mes "If you want to check";
					mes "more information about";
					mes "your work, please talk";
					mes "to the 2nd Floor Guide.";
					mes "Thank you, and welcome";
					mes "to the Rekenber Corporation~";
					set thana_tower,1;
					close;
				case 2:
					mes "[Ditze]";
					mes "Oh? Was there an article";
					mes "within the contract that you";
					mes "disagreed with? Hm. Well,";
					mes "that's fine. But if you change";
					mes "your mind, please come back";
					mes "and ask me anytime. Thank you~";
					close;
				}
			}
		case 3:
			mes "[Ditze]";
			mes "Well, if you have any";
			mes "questions, feel free to";
			mes "ask me later. My name is";
			mes "Ditze Lappa. Have a good day!";
			close;
		}
	}
	mes "[Ditze]";
	mes "For more detailed information";
	mes "about monster exterminations,";
	mes "please ask the 2nd Floor Guide";
	mes "and the Guide next to me. Well,";
	mes "we hope you enjoy your experience working with Rekenber Corporation~";
	close;
}

tha_t01,140,78,4	script	Guide#reward	831,{
	
	mes "[Liei]";
	if (thana_tower == 0) {
		mes "Good day, I'm";
		mes "Liei Kuniziet of the";
		mes "Employee Mission";
		mes "Reward Department";
		mes "here in Thanatos Tower.";
		next;
		switch (select("Employee's mission reward?:Keep up the good work.")) {
		case 1:
			mes "[Liei]";
			mes "Currently, Rekenber Corporation";
			mes "is contracting temp employees";
			mes "to develop the higher levels";
			mes "of Thanatos Tower. If you'd";
			mes "like to apply, please ask";
			mes "Ditze right next to me.";
			close;
		case 2:
			mes "[Liei]";
			mes "Thank you. Ah, and I hope";
			mes "that you enjoy your visit";
			mes "here to Thanatos Tower.";
			close;
		}
	}
	mes "Ah, hello~";
	mes "How may I help you?";
	next;
	if(select("Reward:Nothing")==2) {
		mes "[Liei]";
		mes "Alright, then.";
		mes "Please do your best";
		mes "to exterminate the";
		mes "monsters that infest";
		mes "the higher floors of";
		mes "the Thanatos Tower~";
		close; }
	mes "[Liei]";
	mes "You're "+strcharinfo(0)+", yes?";
	mes "Let me check our temp";
	mes "employee records for--ah.";
	mes "Here it is. Alright, so would";
	mes "you please tell me what kind";
	mes "of mission proof you brought?";
	next;
	setarray .@Items[1],7435,7440,7441,7442;
	set .@i, select("Golden Ornament:Red Feather:Blue Feather:Cursed Seal");
	mes "[Liei]";
	if (!countitem(.@Items[.@i])) {
		mes "I'm sorry, but you are not";
		mes "carrying any "+getitemname(.@Items[.@i])+"s.";
		mes "Please check your inventory";
		mes "one more time, and then come";
		mes "to me to redeem your items";
		mes "for a reward later, alright?";
		close;
	}
	mes "The reward for each";
	mes getitemname(.@Items[.@i])+" is...";
	mes " ";
	mes "1,000 zeny";
	mes "2,000 EXP";
	next;
	set .@zeny_tt,(countitem(.@Items[.@i]) * 1000);
	set .@exp_tt,(countitem(.@Items[.@i]) * 2000);
	mes "[Liei]";
	mes "If you turn in your";
	mes countitem(.@Items[.@i])+" "+getitemname(.@Items[.@i])+"s, then";
	mes "you will receive a total of...";
	mes " ";
	mes ""+.@zeny_tt+" zeny";
	mes ""+.@exp_tt+" EXP";
	next;
	mes "[Liei]";
	mes "Would you like to exchange";
	mes "all of your "+getitemname(.@Items[.@i])+"s";
	mes "for your reward right now?";
	next;
	switch(select("Yes:No")) {
		case 1:
			mes "[Liei]";
			mes "Great! Here is your";
			mes ""+.@zeny_tt+" zeny and";
			mes ""+.@exp_tt+" EXP. Thank you,";
			mes "and please keep up";
			mes "the good work~";
			delitem .@Items[.@i], countitem(.@Items[.@i]);
			set Zeny, Zeny + .@zeny_tt;
			getexp .@exp_tt,0;
			close;
		case 2:
			mes "[Liei]";
			mes "Sure, no problem.";
			mes "Just come back and";
			mes "talk to me whenever";
			mes "you want to receive";
			mes "your reward, alright?";
			close;
	}
}

tha_t02,231,161,5	script	Entrance Guide	874,{

	mes "[Burled]";
	if (thana_tower == 0) {
		mes "You are in front of the entrance to the 3rd Floor. Only contracted";
		mes "temp employees are authorized";
		mes "to enter that area. For Rekenber temp contract information, please";
		mes "speak to the 2nd Floor Guide.";
		close;
	}
	mes "......";
	mes ".........";
	mes "............";
	next;
	switch (select("Excuse me...:.........")) {
	case 1:
		mes "[Burled]";
		mes "Oh...";
		mes "I'm sorry, how";
		mes "can I help you?";
		next;
		if (thana_tower < 2) {
			switch (select("Enter the 3rd Floor:Gate Information")) {
			case 1:
				mes "[Burled]";
				mes "Oh, alright. Let me";
				mes "check and see if you're";
				mes "on our temp list. Hmmm...";
				mes "Ah, you're "+strcharinfo(0)+", right?";
				next;
				if (getareausers("tha_t02",226,156,236,166) < 5) {
					mes "[Burled]";
					mes "First, we need to wait until";
					mes "at least 5 temps are gathered";
					mes "to form a work group. Right";
					mes "now, there are a total of";
					mes "" +getareausers("tha_t02",226,156,236,166)+ " temp workers waiting to";
					mes "enter the 3rd Floor.";
					next;
					mes "[Burled]";
					mes "If you can, try to get";
					mes "your friends to help you";
					mes "by coming near me. Please";
					mes "understand that we have this";
					mes "temp worker group requirement";
					mes "for various safety reasons.";
					close2;
				}
				mes "[Burled]";
				mes "Great, you're just";
				mes "in time. We just met";
				mes "the minimum 5 temp group";
				mes "requirement, so we'll open";
				mes "the gate to the 3rd Floor soon.";
				next;
				mes "[Burled]";
				mes "The gate to the 3rd Floor";
				mes "will close shortly, so enter it";
				mes "as soon as you can. We have";
				mes "to close it quickly because we";
				mes "can't have the tower monsters";
				mes "entering the lower floors...";
				close2;
				donpcevent "3rdf_warp#tt::OnEnable";
				end;
			case 2:
				mes "[Burled]";
				mes "This gate is the only passage";
				mes "that connects to the 3rd Floor.";
				mes "After the 4th Floor, passages";
				mes "between floors only travel one";
				mes "way, meaning you can't exit the";
				mes "same way you that you entered.";
				next;
				mes "[Burled]";
				mes "You see, there's a strange";
				mes "power that affects the 5th";
				mes "Floor, and all floors above,";
				mes "which doesn't allow people to";
				mes "backtrack through the passage in which they entered the floor.";
				next;
				mes "[Burled]";
				mes "So if you ascend past the";
				mes "4th Floor, please be careful";
				mes "and make sure that you find";
				mes "a way to get back. Also, the";
				mes "monsters grow more powerful";
				mes "as you ascend the tower...";
				next;
				mes "[Burled]";
				mes "Because the higher levels are";
				mes "too dangerous, we only open the";
				mes "3rd Floor Gate when 5 or more";
				mes "are gathered here. Therefore,";
				mes "you may need to wait if less";
				mes "than 5 temps have gathered.";
				close;
			}
		}
		switch (select("Enter the 3rd Floor:Gate Information:About Satan Morroc...")) {
		case 1:
			mes "[Burled]";
			mes "Oh, alright. Let me";
			mes "check and see if you're";
			mes "on our temp list. Hmmm...";
			mes "Ah, you're "+strcharinfo(0)+", right?";
			next;
			if (getareausers("tha_t02",226,156,236,166) < 5) {
				mes "[Burled]";
				mes "First, we need to wait until";
				mes "at least 5 temps are gathered";
				mes "to form a work group. Right";
				mes "now, there are a total of";
				mes ""+getareausers("tha_t02",226,156,236,166)+" temp workers waiting to";
				mes "enter the 3rd Floor.";
				next;
				mes "[Burled]";
				mes "If you can, try to get";
				mes "your friends to help you";
				mes "by coming near me. Please";
				mes "understand that we have this";
				mes "temp worker group requirement";
				mes "for various safety reasons.";
				close;
			}
			mes "[Burled]";
			mes "Great, you're just";
			mes "in time. We just met";
			mes "the minimum 5 temp group";
			mes "requirement, so we'll open";
			mes "the gate to the 3rd Floor soon.";
			next;
			mes "[Burled]";
			mes "The gate to the 3rd Floor";
			mes "will close shortly, so enter it";
			mes "as soon as you can. We have";
			mes "to close it quickly because we";
			mes "can't have the tower monsters";
			mes "entering the lower floors...";
			close2;
			donpcevent "3rdf_warp#tt::OnEnable";
			end;
		case 2:
			mes "[Burled]";
			mes "This gate is the only passage";
			mes "that connects to the 3rd Floor.";
			mes "After the 4th Floor, passages";
			mes "between floors only travel one";
			mes "way, meaning you can't exit the";
			mes "same way you that you entered.";
			next;
			mes "[Burled]";
			mes "You see, there's a strange";
			mes "power that affects the 5th";
			mes "Floor, and all floors above,";
			mes "which doesn't allow people to";
			mes "backtrack through the passage in which they entered the floor.";
			next;
			mes "[Burled]";
			mes "So if you ascend past the";
			mes "4th Floor, please be careful";
			mes "and make sure that you find";
			mes "a way to get back. Also, the";
			mes "monsters grow more powerful";
			mes "as you ascend the tower...";
			next;
			mes "[Burled]";
			mes "Because the higher levels are";
			mes "too dangerous, we only open the";
			mes "3rd Floor Gate when 5 or more";
			mes "are gathered here. Therefore,";
			mes "you may need to wait if less";
			mes "than 5 temps have gathered.";
			close;
		case 3:
			mes "[Burled]";
			mes "Satan Morroc...?";
			mes "Ummm... Isn't talking";
			mes "about that a little taboo?";
			mes "I mean, people get angry";
			mes "or scared just hearing";
			mes "that name, you know?";
			next;
			switch (select("It's important that I know more.:I'm sorry, I didn't know...")) {
			case 1:
				mes "[Burled]";
				mes "When the Rekenber Corporation";
				mes "started reconstruction of the";
				mes "Thanatos Tower, the Cool Event";
				mes "Corporation was their biggest";
				mes "business partner in the tower";
				mes "reconstruction project.";
				next;
				mes "[Burled]";
				mes "Yeah, I remember that Cool";
				mes "Event Corp. invested huge";
				mes "amounts of zeny and manpower";
				mes "to rebuild to tower, and expand";
				mes "their business relationship";
				mes "with Rekenber Corporation...";
				next;
				mes "[Burled]";
				mes "But then, there was some";
				mes "kind of accident. An explosion";
				mes "happened in the upper floors";
				mes "of Thanatos Tower. Some say";
				mes "it might have been Satan Morroc, but I wouldn't know for sure.";
				next;
				mes "[Burled]";
				mes "Because of that explosion,";
				mes "Cool Event Corporation withdrew";
				mes "their investment into the tower";
				mes "reconstruction project. They";
				mes "basically abandoned Rekenber Corporation in the tower effort.";
				next;
				mes "[Burled]";
				mes "But well...";
				mes "Shortly after that happened,";
				mes "Rekenber Corporation took over";
				mes "Cool Event Corporation. I mean,";
				mes "the company retains its name, but it's a Rekenber company now.";
				next;
				mes "[Burled]";
				mes "I know, I know...";
				mes "It all sounds awfully";
				mes "shady. Please do me a favor";
				mes "and don't tell anyone that";
				mes "I told you this rumor, okay?";
				close;
			case 2:
				close;
			}
		}
		case 2:
			mes "["+strcharinfo(0)+"]";
			mes ".............";
			close;
	}
}

tha_t02,227,163,0	script	3rdf_warp#tt	45,1,1,{
	end;

OnInit:
	hideonnpc "3rdf_warp#tt";
	end;
	
OnTouch:
	if (thana_tower == 0) warp "tha_t02",227,158;
	else warp "tha_t03",219,159;
	end;

OnEnable:
	hideoffnpc "3rdf_warp#tt";
	initnpctimer;
	end;

OnTimer30000:
	stopnpctimer;
	hideonnpc "3rdf_warp#tt";
	end;
}

tha_t03,67,70,0	script	Machine Device#tt1	111,{

	if ((countitem(7421) == 0) && (countitem(7426) == 0)) {
		mes "^3355FFA mysterious field of";
		mes "energy seems to surround";
		mes "the mechanical device and";
		mes "its power prevents you from";
		mes "approaching the machine.^000000";
		next;
		switch (select("Smash the Energy Field:Retreat")) {
		case 1:
			if (getequipweaponlv(4) == 4){
				mes "^3355FFWith your "+getequipname(4)+" in";
				mes "hand, you smash the energy";
				mes "field with all of your strength. After absorbing the impact, the";
				mes "field fizzles out with a soft,";
				mes "gentle ''pzzzzzh'' sound.^000000";
				next;
				switch (select("Investigate Device:Retreat")) {
				case 1:
					mes "^3355FFAs you investigate the";
					mes "device, you accidentally";
					mes "press a button, resulting";
					mes "in a loud beeping noise";
					mes "and the activation of";
					mes "the monitor screen.^000000";
					next;
					switch (select("Read the Screen:Ignore the Screen")) {
					case 1:
						mes "^426F42I've used the Gate Seal";
						mes "technology to seal the gate";
						mes "and the charm stones. Although";
						mes "the seals are in place, I can't";
						mes "stop worrying that they might";
						mes "break in the future.^000000";
						next;
						mes "^426F42I can't relax when a, shall";
						mes "I say, particular group covets";
						mes "the charm stones and can easily";
						mes "break the seals. To deter them,";
						mes "I've changed the Gate destination before sealing the Gate.^000000";
						next;
						mes "^426F42I didn't check the exact";
						mes "destination coordinates for";
						mes "the Gate after I changed them,";
						mes "but the destination gives me";
						mes "a warm, comforting feeling,";
						mes "so it's definitely not hell.^000000";
						next;
						mes "^3355FFYou've read all the";
						mes "text displayed on the";
						mes "screen. Judging from the";
						mes "content, there is probably";
						mes "more text before and after the";
						mes "section shown on the screen.^000000";
						next;
						switch (select("Further Investigate Machine:Finish Investigation")) {
						case 1:
							mes "^3355FFYou have found";
							mes "a small key on the";
							mes "corner of the machine.";
							mes "Just touching this key";
							mes "gives you a strange feeling.^000000";
							getitem 7421,1; //Key_Red
							close;
						case 2:
							close;
						}
					case 2:
						mes "^3355FFYou decide to ignore the";
						mes "text displayed on the screen,";
						mes "and immediately discover a";
						mes "small key laid on the corner";
						mes "of the machine. Just touching";
						mes "it gives you a strange feeling.^000000";
						getitem 7421,1; //Key_Red
						close;
					}
				case 2:
					mes "^3355FFYou decide to leave";
					mes "the machine alone.^000000";
					close;
				}
			}
			mes "^3355FFYou smash the energy";
			mes "field with your weapon";
			mes "using all of your strength,";
			mes "but you weren't able to";
			mes "break down the barrier.";
			mes "You probably need a more";
			mes "powerful weapon...^000000";
			close;
		case 2:
			mes "^3355FFYou decide to leave";
			mes "the machine alone.^000000";
			close;
		}
	}
	mes "^3355FFIt's a peculiar machine";
	mes "that emits a strange buzzing";
	mes "hum. After looking closer,";
	mes "you can faintly perceive an";
	mes "energy barrier surrounding";
	mes "the machine.^000000";
	close;
}

tha_t04,195,195,0	script	Machine Device#tt2	111,{

	if ((countitem(7422) == 0) && (countitem(7427) == 0)) {
		mes "^3355FFYou find a number pad";
		mes "underneath the monitor.";
		mes "As you press one of the";
		mes "number keys, you hear a";
		mes "beep as the screen activates.^000000";
		next;
		mes "[Screen]";
		mes "Please enter a 3 digit";
		mes "number. Do not use a";
		mes "single number more than";
		mes "once or use the number 0.";
		set @retry,0;
		next;
		while (1) {
			set @yagu100,rand(1,9);
			set @yagu10,rand(1,9);
			set @yagu1,rand(1,9);
			if (((@yagu100 != @yagu10) && (@yagu100 != @yagu1)) && (@yagu10 != @yagu1)) {
				break;
			}
		}
		while (1) {
			while (1) {
L_Retry:
				next;
				input @input;
				if (@input < 100 || @input > 999) {
					mes "[Screen]";
					mes "Number input";
					mes "requirement has";
					mes "not been fulfilled.";
					mes "Please enter a";
					mes "3 digit number.";
					close;
				}
				set @input100,@input / 100;
				set @input10,(@input % 100) / 10;
				if (((@input100 > 0) && (@input10 > 0)) && ((@input % 10) > 0)) {
					if ((@input100 != @input10) && (@input100 != (@input % 10)) && (@input10 != (@input % 10))) {
						break;
					}
					mes "[Screen]";
					mes "Violation of number";
					mes "input parameter. The";
					mes "number 0 has been input,";
					mes "or a number has been";
					mes "input more than once.";
					next;
				}
			}
			set @retry,@retry+1;
			mes "[Screen]";
			mes "You have input...";
			mes "^0000ff"+@input100+"^000000, ^0000ff"+@input10+"^000000, ^0000ff"+(@input % 10)+"^000000";
			mes " ";
			mes "Calculating Results...";
			mes "Please wait a moment...";
			next;
			set @strike,0;
			set @ball,0;
			if (@yagu100 == @input100) set @strike,@strike+1;
			if (@yagu10 == @input10) set @strike,@strike+1;
			if (@yagu1 == (@input % 10)) set @strike,@strike+1;
			if ((@yagu100 == @input10) || (@yagu100 == (@input % 10))) set .@ball,.@ball+1;
			if ((@yagu10 == @input100) || (@yagu10 == (@input % 10))) set @ball,@ball+1;
			if ((@yagu1 == @input100) || (@yagu1 == @input10)) set @ball,@ball+1;
			if (@strike == 3) {
				mes "[Screen]";
				mes "Input number accepted.";
				mes "Access authorized.";
				next;
				mes "^3355FFAfter the screen displays";
				mes "the access authorization";
				mes "notice, some new text is";
				mes "displayed on the screen,";
				mes "and a storage unit slides";
				mes "open beneath the monitor.^000000";
				next;
				switch (select("Read the Screen's Text:Investigate Monitor Storage:Cancel")) {
				case 1:
					mes "[Log Entry]";
					mes "^426F42That could only mean she";
					mes "came here for Satan Morroc.";
					mes "After I investigated the area,";
					mes "I found traces of a battle that";
					mes "involved several human sized creatures and one giant monster.^000000";
					next;
					mes "[Log Entry]";
					mes "^426F42I'm guessing that her group";
					mes "actually fought Satan Morroc";
					mes "and managed to wound it";
					mes "severely. It looks like Satan";
					mes "Morroc retreated to the south";
					mes "and her group followed it.^000000";
					next;
					mes "[Log Entry]";
					mes "^426F42Strangely, I haven't found";
					mes "any traces of her, which is";
					mes "especially suspicious since";
					mes "other evidence in the area has";
					mes "remained for hundreds of years.";
					mes "But I can't figure out why...^000000";
					next;
					mes "^3355FFYou've finished";
					mes "reading the Log Entry.^000000";
					next;
					switch (select("Investigate Monitor Storage:Cancel")) {
					case 1:
						mes "^3355FFYou find a small, shining";
						mes "key in an empty corner of the";
						mes "Monitor's Storage receptacle.";
						mes "Merely holding it makes you";
						mes "feel some strange sensation.^000000";
						if (thana_tower == 1) set thana_tower,2;
						getitem 7422,1; //Key_Yellow
						close;
					case 2:
						close;
					}
				case 2:
					mes "^3355FFYou find a small, shining";
					mes "key in an empty corner of the";
					mes "Monitor's Storage receptacle.";
					mes "Merely holding it makes you";
					mes "feel some strange sensation.^000000";
					getitem 7422,1; //Key_Yellow
					close;
				case 3:
					mes "^3355FFAfter a short while,";
					mes "you hear a low pitched";
					mes "beep. The screen's text";
					mes "disappears, and the storage";
					mes "receptable under the monitor";
					mes "slides shut, concealing itself.^000000";
					close;
				}
			}
			if ((@retry > 0) && (@retry < 5)) {
				mes "[Screen]";
				mes "*Beeeeep*";
				mes "Unauthorized";
				mes "numerical sequence.";
				next;
				mes "[Screen]";
				mes "Correct number";
				mes "in correct place";
				mes "in sequence total: ^FF0000"+@strike+"^000000";
				mes " ";
				mes "Correct number total: ^FF0000"+@ball+"^000000";
				goto L_Retry;
			}
			mes "[Screen]";
			mes "*Beeeeep*";
			mes "Unauthorized";
			mes "numerical sequence.";
			next;
			mes "[Screen]";
			mes "Correct number";
			mes "in correct place";
			mes "in sequence total: ^FF0000"+@strike+"^000000";
			mes " ";
			mes "Correct number total: ^FF0000"+@ball+"^000000";
			next;
			mes "[Screen]";
			mes "Correct number";
			mes "authorization";
			mes "sequence was...";
			mes "^ff0000"+@yagu100+"^000000, ^ff0000"+@yagu10+"^000000, ^ff0000"+@yagu1+"^000000";
			mes "Authorization number";
			mes "will change upon retry.";
			close;
		}
	}
	mes "^3355FFThis device is currently";
	mes "inactivated and not in";
	mes "operation. However, you";
	mes "may have use for it later...^000000";
	close;
}

tha_t05,101,37,0	script	Machine Device#tt3	111,{

	if ((countitem(7423) == 0) && (countitem(7428) == 0)) {
		if (getareausers("tha_t05",98,34,104,40) < 4) {
			mes "^3355FFYou are inexplicably drawn";
			mes "to this mechanical device.";
			mes "Aside from the green screen";
			mes "in the middle, there are no";
			mes "buttons and switches.^000000";
			if (rand(1,3) == 2) {
				next;
				mes "^3355FFYou perceive small text at the";
				mes "bottom of the green screen";
				mes "that reads, ''Operation of this";
				mes "device requires presense of";
				mes "four or more personnel detected";
				mes "by pressure plate system.''^000000";
				close;
			}
			close;
		}
		mes "^3355FFAs you approach the device, the";
		mes "floor around it begins to glow.";
		mes "Text appears on the device's";
		mes "screen, and a storage receptacle beneath the monitor slides open.^000000";
		next;
		switch (select("Read the Screen's Text:Investigate Monitor Storage:Cancel")) {
		case 1:
			mes "[Log Entry]";
			mes "^426F42After the whole ordeal,";
			mes "I decided to leave. But";
			mes "before I could do that,";
			mes "I had to seal the Gate";
			mes "that led to that place.^000000";
			next;
			mes "[Log Entry]";
			mes "^426F42If someone were to find";
			mes "this tower and use the Gate";
			mes "for evil ends, the world will be plagued with an era of chaos.";
			mes "Of course, they'd stop me if they knew I was sealing the Gate...^000000";
			next;
			mes "[Log Entry]";
			mes "^426F42It took me a very long time,";
			mes "but I managed to secretly";
			mes "seal the Gate. But before";
			mes "I began sealing the Gate,";
			mes "I decided to examine it";
			mes "further, just in case.^000000";
			next;
			mes "[Log Entry]";
			mes "^426F42In my studies of the Gate,";
			mes "I discovered that it derives";
			mes "its power from the Charm";
			mes "Stones. So to prevent anyone";
			mes "from misusing its power, I've separately sealed the stones...^000000";
			next;
			mes "^3355FFYou've finished";
			mes "reading the text";
			mes "that was displayed";
			mes "on the screen.^000000";
			close;
		case 2:
			mes "^3355FFYou've found a small";
			mes "shining key inside the";
			mes "storage receptacle located";
			mes "underneath the monitor.^000000";
			getitem 7423,1; //Key_Blue
			close;
		case 3:
			close;
		}
	}
	mes "^3355FFYou find nothing here,";
	mes "aside from the faded";
	mes "patterns that mark the floor.^000000";
	close;
}

tha_t06,43,152,0	script	Machine Devicett4	111,{

	if ((countitem(7424) == 0) && (countitem(7429) == 0)) {
		mes "^3355FFYou find a mechanical";
		mes "device that has many";
		mes "wheels. A black screen";
		mes "is mounted on the side";
		mes "of the machine.^000000";
		next;
		switch (select("Investigate:Cancel")) {
		case 1:
			if ((countitem(7421) >= 1) || (countitem(7422) >= 1) || (countitem(7423) >= 1)) {
				mes "^3355FFAs you scrutinize the";
				mes "wheels, they respond to";
				mes "the key in your inventory by";
				mes "emitting light and strange";
				mes "noises. After a while, they";
				mes "stop and become silent.^000000";
				next;
				switch (select("Investigate the Machine Chasis:Investigate the Wheels:Cancel")) {
				case 1:
					mes "^3355FFThe key in your inventory";
					mes "does not seem to be affecting";
					mes "the machine's chasis. The";
					mes "screen mounted on the side";
					mes "is still blank and deactivated.^000000";
					close;
				case 2:
					set @small_1,0;
					set @small_2,0;
					set @big_1,0;
					set @big_2,0;
					set @big_3,0;
					mes "^3355FFYou touch the wheels and";
					mes "find that they are actually";
					mes "moving very slowly. You note";
					mes "that there are 2 small wheels";
					mes "and 3 larger wheels, totaling";
					mes "5 wheels on this machine.^000000";
					next;
					mes "^3355FFThe big wheels are moving";
					mes "vertically, up and down, as";
					mes "they press against the smaller";
					mes "wheels to make them rotate.^000000";
					next;
					mes "^3355FFJudging from the machine's";
					mes "shaking and jittery noises, the";
					mes "wheels may be misaligned.";
					mes "You might be able to activate";
					mes "the machine by properly ";
					mes "aligning all the wheels.^000000";
					while (1) {
						next;
						mes "^3355FFWhich wheel would";
						mes "you want to shift?^000000";
						next;
						switch (select("1st Small Wheel:2nd Small Wheel:1st Big Wheel:2nd Big Wheel:3rd Big Wheel:Check Current Wheel Configuration:Reset Wheels to Default Configuration")) {
						case 1:
							switch (select("Raise Wheel:Lower Wheel:Press Wheel")) {
							case 1:
								mes "^EE0000*Choom*^000000";
								set @small_1,2;
								if ((@small_1 == 2) && (@small_2 == 2) && (@big_1 == 2) && (@big_2 == 2) && (@big_3 == 2)) break;
								continue;
							case 2:
								mes "^00B2EE*Sneeeep*^000000";
								set @small_1,1;
								if ((@small_1 == 1) && (@small_2 == 1) && (@big_1 == 1) && (@big_2 == 1) && (@big_3 == 1)) break;
								continue;
							case 3:
								mes "^5C246E*Mrreeem*^000000";
								set @small_1,3;
								if ((@small_1 == 3) && (@small_2 == 3) && (@big_1 == 3) && (@big_2 == 3) && (@big_3 == 3)) break;
								continue;
							}
							break;
						case 2:
							switch (select("Raise Wheel:Lower Wheel:Press Wheel")) {
							case 1:
								mes "^5C246E*Mrreeem*^000000";
								set @small_2,3;
								if ((@small_1 == 3) && (@small_2 == 3) && (@big_1 == 3) && (@big_2 == 3) && (@big_3 == 3)) break;
								continue;
							case 2:
								mes "^EE0000*Choom*^000000";
								set @small_2,2;
								if ((@small_1 == 2) && (@small_2 == 2) && (@big_1 == 2) && (@big_2 == 2) && (@big_3 == 2)) break;
								continue;
							case 3:
								mes "^00B2EE*Sneeeep*^000000";
								set @small_2,1;
								if ((@small_1 == 1) && (@small_2 == 1) && (@big_1 == 1) && (@big_2 == 1) && (@big_3 == 1)) break;
								continue;
							}
							break;
						case 3:
							switch (select("Raise Wheel:Lower Wheel:Vertically Shift Wheel")) {
							case 1:
								mes "^00B2EE*Sneeeep*^000000";
								set @big_1,1;
								if ((@small_1 == 1) && (@small_2 == 1) && (@big_1 == 1) && (@big_2 == 1) && (@big_3 == 1)) break;
								continue;
							case 2:
								mes "^5C246E*Mrreeem*^000000";
								set @big_1,3;
								if ((@small_1 == 3) && (@small_2 == 3) && (@big_1 == 3) && (@big_2 == 3) && (@big_3 == 3)) break;
								continue;
							case 3:
								mes "^EE0000*Choom*^000000";
								set @big_1,2;
								if ((@small_1 == 2) && (@small_2 == 2) && (@big_1 == 2) && (@big_2 == 2) && (@big_3 == 2)) break;
								continue;
							}
							break;
						case 4:
							switch (select("Raise Wheel:Lower Wheel:Vertically Shift Wheel")) {
							case 1:
								mes "^EE0000*Choom*^000000";
								set @big_2,2;
								if ((@small_1 == 2) && (@small_2 == 2) && (@big_1 == 2) && (@big_2 == 2) && (@big_3 == 2)) break;
								continue;
							case 2:
								mes "^5C246E*Mrreeem*^000000";
								set @big_2,3;
								if ((@small_1 == 3) && (@small_2 == 3) && (@big_1 == 3) && (@big_2 == 3) && (@big_3 == 3)) break;
								continue;
							case 3:
								mes "^00B2EE*Sneeeep*^000000";
								set @big_2,1;
								if ((@small_1 == 1) && (@small_2 == 1) && (@big_1 == 1) && (@big_2 == 1) && (@big_3 == 1)) break;
								continue;
							}
							break;
						case 5:
							switch (select("Raise Wheel:Lower Wheel:Vertically Shift Wheel")) {
							case 1:
								mes "^EE0000*Choom*^000000";
								set @big_3,2;
								if ((@small_1 == 2) && (@small_2 == 2) && (@big_1 == 2) && (@big_2 == 2) && (@big_3 == 2)) break;
								continue;
							case 2:
								mes "^00B2EE*Sneeeep*^000000";
								set @big_3,1;
								if ((@small_1 == 1) && (@small_2 == 1) && (@big_1 == 1) && (@big_2 == 1) && (@big_3 == 1)) break;
								continue;
							case 3:
								mes "^5C246E*Mrreeem*^000000";
								set @big_3,3;
								if ((@small_1 == 3) && (@small_2 == 3) && (@big_1 == 3) && (@big_2 == 3) && (@big_3 == 3)) break;
								continue;
							}
							break;
						case 6:
							mes "---Wheel Position---";
							if (@small_1 == 0) mes "1st Small Wheel: No Change";
							else if (@small_1 == 1) mes "1st Small Wheel: Down";
							else if (@small_1 == 2) mes "1st Small Wheel: Up";
							else mes "1st Small Wheel: Pressed";

							if (@small_2 == 0) mes "2nd Small Wheel: No Change";
							else if (@small_2 == 1) mes "2nd Small Wheel: Pressed";
							else if (@small_2 == 2) mes "2nd Small Wheel: Down";
							else mes "2nd Small Wheel: Up";

							if (@big_1 == 0) mes "1st Big Wheel: No Change";
							else if (@big_1 == 1) mes "1st Big Wheel: Up";
							else if (@big_1 == 2) mes "1st Big Wheel: Moved";
							else mes "1st Big Wheel: Down";

							if (@big_2 == 0) mes "2nd Big Wheel: No Change";
							else if (@big_2 == 1) mes "2nd Big Wheel: Moved";
							else if (@big_2 == 2) mes "2nd Big Wheel: Up";
							else mes "2nd Big Wheel: Down";

							if (@big_3 == 0) mes "3rd Big Wheel: No Change";
							else if (@big_3 == 1) mes "3rd Big Wheel: Down";
							else if (@big_3 == 2) mes "3rd Big Wheel: Up";
							else mes "3rd Big Wheel: Moved";

							next;
							mes "---Wheel Sound---";
							if (@small_1 == 0) mes "1st Small Wheel: *Br-brak!*";
							else if (@small_1 == 1) mes "1st Small Wheel: *Sneeeep*";
							else if (@small_1 == 2) mes "1st Small Wheel: *Choom*";
							else mes "1st Small Wheel: *Mrreeem*";

							if (@small_2 == 0) mes "2nd Small Wheel: *Br-brak!*";
							else if (@small_2 == 1) mes "2nd Small Wheel: *Sneeeep*";
							else if (@small_2 == 2) mes "2nd Small Wheel: *Choom*";
							else mes "2nd Small Wheel: *Mrreeem*";

							if (@big_1 == 0) mes "1st Big Wheel: *Br-brak!*";
							else if (@big_1 == 1) mes "1st Big Wheel: *Sneeeep*";
							else if (@big_1 == 2) mes "1st Big Wheel: *Choom*";
							else mes "1st Big Wheel: *Mrreeem*";

							if (@big_2 == 0) mes "2nd Big Wheel: *Br-brak!*";
							else if (@big_2 == 1) mes "2nd Big Wheel: *Sneeeep*";
							else if (@big_2 == 2) mes "2nd Big Wheel: *Choom*";
							else mes "2nd Big Wheel: *Mrreeem*";

							if (@big_3 == 0) mes "3rd Big Wheel: *Br-brak!*";
							else if (@big_3 == 1) mes "3rd Big Wheel: *Sneeeep*";
							else if (@big_3 == 2) mes "3rd Big Wheel: *Choom*";
							else mes "3rd Big Wheel: *Mrreeem*";

							continue;
						case 7:
							set @small_1,0;
							set @small_2,0;
							set @big_1,0;
							set @big_2,0;
							set @big_3,0;
							close;
						}
						break;
					}
					mes "^3355FFAs you adjust the wheels,";
					mes "they suddenly immobilize with";
					mes "a firm click. Then, the device's screen activates and displays";
					mes "some text while a storage";
					mes "compartment underneath";
					mes "the monitor slides open.^000000";
					next;
					switch (select("Read the Screen's Text:Investigate Monitor Storage:Cancel")) {
					case 1:
						mes "[Log Entry]";
						mes "^426F42It was never the humans";
						mes "or the gods that built this";
						mes "tower: it was the demons.";
						mes "Intrigued by this information,";
						mes "I decided to try to learn why they had constructed Thanatos Tower.^000000";
						next;
						mes "[Log Entry]";
						mes "^426F42In my research, I learned";
						mes "that this tower was used as a";
						mes "gate to summon demons from hell during the thousand year war,";
						mes "and that the infamous Satan Morroc was one of those summoned here.^000000";
						next;
						mes "[Log Entry]";
						mes "^426F42Satan Morroc... I admit";
						mes "that I'm interested in learning";
						mes "more about his appearance since";
						mes "that occurred at around the same time as when she came to";
						mes "Thanatos Tower...^000000";
						next;
						mes "^3355FFYou've finished";
						mes "reading the text";
						mes "that was displayed";
						mes "on the screen.^000000";
						close;
					case 2:
						mes "^3355FFInside the monitor";
						mes "storage compartment,";
						mes "you find a small, shining";
						mes "key that you decide to take.^000000";
						getitem 7424,1; //Key_Green
						close;
					case 3:
						close;
					}
				case 3:
					close;
				}
			}
			mes "^3355FFThis mechanical device is";
			mes "activated, as evidenced by";
			mes "its gleaming, moving wheels.^000000";
			close;
		case 2:
			mes "^3355FFYou don't see the need to";
			mes "investigate if nothing seems";
			mes "peculiar or out of place...^000000";
			close;
		}
	}
	mes "^3355FFYou found a deactivated";
	mes "mechanical device with an";
	mes "interesting series of wheels.^000000";
	close;
}

tha_t09,19,158,0	script	Machine Device#tt5	111,{

	if ((countitem(7425) == 0) && (countitem(7430) == 0)) {
		if (((countitem(7421) >= 1) || (countitem(7426) >= 1)) && ((countitem(7422) >= 1) || (countitem(7427) >= 1)) && ((countitem(7423) >= 1) || (countitem(7428) >= 1)) && ((countitem(7424) >= 1) || (countitem(7429) >= 1))) {
			mes "^3355FFYou find a machine that";
			mes "emits a soft light and weak";
			mes "hum. There is a monitor, with";
			mes "several different colored";
			mes "keyholes beneath it, in";
			mes "front of the machine.^000000";
			next;
			mes "^3355FFYou also notice that there";
			mes "are several slots that seem";
			mes "to be the perfect size for";
			mes "your keys and Charm Stones.";
			next;
			input .@inputstr$;
			if (.@inputstr$ == "Key" || .@inputstr$ == "Charmstone") {
				mes "^3355FFYou insert the keys into the";
				mes "keyholes, matching them by";
				mes "corresponding color, and place";
				mes "the Charm Stones in the machine slots. The stones begin to glow,";
				mes "text appears on the screen, and the monitor's storage slides open.^000000";
				next;
				switch (select("Read the Screen's Text:Investigate Monitor Storage:Cancel")) {
				case 1:
					mes "[Log Entry]";
					mes "^426F42As I followed her trail to";
					mes "the north, I passed many";
					mes "deserted places. Finally,";
					mes "I dropped by a small village";
					mes "where I learned about a tower";
					mes "that refuses entry to humans.^000000";
					next;
					mes "[Log Entry]";
					mes "^426F42I instantly realized that she";
					mes "must have gone to the tower.";
					mes "I headed over there and when";
					mes "I arrived, I was shocked: it was grotesque and didn't resemble";
					mes "a human building at all.^000000";
					next;
					mes "^426F42I was also amazed--";
					mes "advanced technology was";
					mes "probably necessary to build the tower's intricate structures.";
					mes "I then learned an interesting fact while searching the tower...^000000";
					next;
					mes "^3355FFYou've finished";
					mes "reading the text";
					mes "that was displayed";
					mes "on the screen.^000000";
					close;
				case 2:
					mes "^3355FFYou search the storage";
					mes "compartment beneath the";
					mes "screen and find a strange";
					mes "key. As soon as you take it,";
					mes "the machine's activity halts.";
					mes "You then retrieve the Charm";
					mes "Stones and your other keys.^000000";
					getitem 7425,1; //Key_Black
					close;
				case 3:
					mes "^3355FFYou retrieve the Charm";
					mes "Stones and keys that you";
					mes "inserted into the machine.^000000";
					close;
				}
			}
			mes "You attempt to";
			mes .@inputstr$+",";
			mes "but nothing happened.";
			close;
		}
		mes "^3355FFYou find a machine that";
		mes "emits a soft light and weak";
		mes "hum. There is a monitor, with";
		mes "several different colored";
		mes "keyholes beneath it, in";
		mes "front of the machine.^000000";
		close;
	}
	mes "^3355FFYou find a peculiar";
	mes "mechanical device that";
	mes "is not in operation.^000000";
	close;
}

tha_t04,150,44,0	script	Seal#tt1	111,{

	if (countitem(7423) >= 1) {
		mes "^3355FFThis area is protected by";
		mes "some mysterious power.";
		mes "You try to touch the seal,";
		mes "but then it buzzes loudly";
		mes "and pushes your hand away.";
		mes "with a burst of blue light.^000000";
		next;
		switch (select("Investigate:There's no way I can break this seal!")) {
		case 1:
			input .@inputstr$;
			if (.@inputstr$ == "Blue Key") {
				mes "^3355FFYou gently hold the blue";
				mes "key and bring it towards";
				mes "the seal. Strangely, your";
				mes "hand isn't pushed away this";
				mes "time, and the seal begins to";
				mes "emit a mysterious light.^000000";
				next;
				mes "^3355FFYou find a small keyhole";
				mes "in the seal, insert the blue";
				mes "key, and slowly turn it. The";
				mes "seal's light fades, revealing a";
				mes "Charm Stone. Once you grasp";
				mes "the stone, someone's memory";
				mes "is injected into your mind.^000000";
				next;
				mes "^333333Thanatos! We've got a";
				mes "message from the guild.";
				mes "They want us to stop what";
				mes "we're doing and return now!^000000";
				mes " ";
				mes "^333333W-We better hurry...^000000";
				next;
				mes "......";
				mes ".........";
				mes "............";
				next;
				mes "^3355FFThe images faded from";
				mes "your mind as quickly as";
				mes "they appeared. What could";
				mes "have happened in the past?^000000";
				delitem 7423,1; //Key_Blue
				getitem 7428,1; //Magic_Gem_Blue
				close;
			}
			mes "^3355FFYou'll need to try";
			mes "something else in ";
			mes "order to break this";
			mes "seal. What could";
			mes "you possibly need?^000000";
			close;
		case 2:
			mes "^3355FFYou stepped away from";
			mes "the seal, unwilling to deal";
			mes "with the power that keeps";
			mes "repulsing your advance.^000000";
			close;
		}
	}
	mes "^3355FFThis area is protected by";
	mes "some mysterious power.";
	mes "You try to touch the seal,";
	mes "but then it buzzes loudly";
	mes "and pushes your hand away.^000000";
	percentheal -10,0;
	close;
}

tha_t05,218,116,0	script	Seal#tt2	111,{

	if (countitem(7421) >= 1) {
		mes "^3355FFThis area is protected by";
		mes "some mysterious power.";
		mes "You try to touch the seal,";
		mes "but then it buzzes loudly";
		mes "and pushes your hand away.";
		mes "with a burst of red light.^000000";
		next;
		switch (select("Investigate:There's no way I can break this seal!")) {
		case 1:
			input .@inputstr$;
			if (.@inputstr$ == "Red Key") {
				mes "^3355FFYou gently hold the red";
				mes "key and bring it towards";
				mes "the seal. Strangely, your";
				mes "hand isn't pushed away this";
				mes "time, and the seal begins to";
				mes "emit a mysterious light.^000000";
				next;
				mes "^3355FFYou find a small keyhole";
				mes "in the seal, insert the red";
				mes "key, and slowly turn it. The";
				mes "seal's light fades, revealing a";
				mes "Charm Stone. Once you grasp";
				mes "the stone, someone's memory";
				mes "is injected into your mind.^000000";
				next;
				mes "...So then we decided";
				mes "to dispatch some Assassin";
				mes "Crosses to defeat Satan Morroc.";
				mes "But honestly, the chances of ";
				mes "success are about 1 percent.";
				mes "It's better than nothing, but... It's freakin' Satan Morroc...^000000";
				next;
				mes "......";
				mes ".........";
				mes "............";
				next;
				mes "^3355FFThe images faded from";
				mes "your mind as quickly as";
				mes "they appeared. What could";
				mes "have happened in the past?^000000";
				delitem 7421,1; //Key_Red
				getitem 7426,1; //Magic_Gem_Red
				close;
			}
			mes "^3355FFYou'll need to try";
			mes "something else in ";
			mes "order to break this";
			mes "seal. What could";
			mes "you possibly need?^000000";
			close;
		case 2:
			mes "^3355FFYou stepped away from";
			mes "the seal, unwilling to deal";
			mes "with the power that keeps";
			mes "repulsing your advance.^000000";
			close;
		}
	}
	mes "^3355FFThis area is protected by";
	mes "some mysterious power.";
	mes "You try to touch the seal,";
	mes "but then it buzzes loudly";
	mes "and pushes your hand away.^000000";
	percentheal -10,0;
	close;
}

tha_t06,226,230,0	script	Seal#tt3	111,{

	if (countitem(7425) >= 1) {
		mes "^3355FFThis area is protected by";
		mes "some mysterious power.";
		mes "You try to touch the seal,";
		mes "but then it buzzes loudly";
		mes "and pushes your hand away";
		mes "with a burst of black light.^000000";
		next;
		switch (select("Investigate:There's no way I can break this seal!")) {
		case 1:
			input .@inputstr$;
			if (.@inputstr$ == "Black Key") {
				mes "^3355FFYou gently hold the black";
				mes "key and bring it towards";
				mes "the seal. Strangely, your";
				mes "hand isn't pushed away this";
				mes "time, and the seal begins to";
				mes "emit a mysterious light.^000000";
				next;
				mes "^3355FFYou find a small keyhole";
				mes "in the seal, insert the black";
				mes "key, and slowly turn it. The";
				mes "seal's light fades, revealing a";
				mes "Charm Stone. Once you grasp";
				mes "the stone, someone's memory";
				mes "is injected into your mind.^000000";
				next;
				mes "^333333We found it! So this";
				mes "must be the tower where";
				mes "Satan Morroc is gathering";
				mes "his minions... Dear God,";
				mes "there's... There's thousands";
				mes "of them... Is there any hope";
				mes "at all for us? For mankind?^000000";
				next;
				mes "......";
				mes ".........";
				mes "............";
				next;
				mes "^3355FFThe images faded from";
				mes "your mind as quickly as";
				mes "they appeared. What could";
				mes "have happened in the past?^000000";
				delitem 7425,1; //Key_Black
				getitem 7430,1; //Magic_Gem_Black
				close;
			}
			mes "^3355FFYou'll need to try";
			mes "something else in ";
			mes "order to break this";
			mes "seal. What could";
			mes "you possibly need?^000000";
			close;
		case 2:
			mes "^3355FFYou stepped away from";
			mes "the seal, unwilling to deal";
			mes "with the power that keeps";
			mes "repulsing your advance.^000000";
			close;
		}
	}
	mes "^3355FFThis area is protected by";
	mes "some mysterious power.";
	mes "You try to touch the seal,";
	mes "but then it buzzes loudly";
	mes "and pushes your hand away.^000000";
	percentheal -10,0;
	close;
}

tha_t07,113,129,0	script	Seal#tt4	111,{

	if (countitem(7422) >= 1) {
		mes "^3355FFThis area is protected by";
		mes "some mysterious power.";
		mes "You try to touch the seal,";
		mes "but then it buzzes loudly";
		mes "and pushes your hand away";
		mes "with a burst of yellow light.^000000";
		next;
		switch (select("Investigate:There's no way I can break this seal!")) {
		case 1:
			input .@inputstr$;
			if (.@inputstr$ == "Yellow Key") {
				mes "^3355FFYou gently hold the yellow";
				mes "key and bring it towards";
				mes "the seal. Strangely, your";
				mes "hand isn't pushed away this";
				mes "time, and the seal begins to";
				mes "emit a mysterious light.^000000";
				next;
				mes "^3355FFYou find a small keyhole";
				mes "in the seal, insert the yellow";
				mes "key, and slowly turn it. The";
				mes "seal's light fades, revealing a";
				mes "Charm Stone. Once you grasp";
				mes "the stone, someone's memory";
				mes "is injected into your mind.^000000";
				next;
				mes "^333333Hi, I'm Lucil. Sorry,";
				mes "I'm late, but I was far ";
				mes "away on another mission...^000000";
				mes " ";
				mes "^333333I am Thanatos...^000000";
				next;
				mes "^333333Why does she make me";
				mes "feel so strange inside?";
				mes "I feel everything I was";
				mes "missing before, all the";
				mes "things I want and want";
				mes "to be, she brings, she";
				mes "completes. How... funny...^000000";
				mes "'She make me feel strange...as if I found my lost half...'";
				next;
				mes "......";
				mes ".........";
				mes "............";
				next;
				mes "^3355FFThe images faded from";
				mes "your mind as quickly as";
				mes "they appeared. What could";
				mes "have happened in the past?^000000";
				delitem 7422,1; //Key_Yellow
				getitem 7427,1; //Magic_Gem_Yellow
				close;
			}
			mes "^3355FFYou'll need to try";
			mes "something else in ";
			mes "order to break this";
			mes "seal. What could";
			mes "you possibly need?^000000";
			close;
		case 2:
			mes "^3355FFYou stepped away from";
			mes "the seal, unwilling to deal";
			mes "with the power that keeps";
			mes "repulsing your advance.^000000";
			close;
		}
	}
	mes "^3355FFThis area is protected by";
	mes "some mysterious power.";
	mes "You try to touch the seal,";
	mes "but then it buzzes loudly";
	mes "and pushes your hand away.^000000";
	percentheal -10,0;
	close;
}

tha_t10,129,159,0	script	Seal#tt5	111,{

	if (countitem(7424) >= 1) {
		mes "^3355FFThis area is protected by";
		mes "some mysterious power.";
		mes "You try to touch the seal,";
		mes "but then it buzzes loudly";
		mes "and pushes your hand away";
		mes "with a burst of green light.^000000";
		next;
		switch (select("Investigate:There's no way I can break this seal!")) {
		case 1:
			input .@inputstr$;
			if (.@inputstr$ == "Green Key") {
				mes "^3355FFYou gently hold the green";
				mes "key and bring it towards";
				mes "the seal. Strangely, your";
				mes "hand isn't pushed away this";
				mes "time, and the seal begins to";
				mes "emit a mysterious light.^000000";
				next;
				mes "^3355FFYou find a small keyhole";
				mes "in the seal, insert the green";
				mes "key, and slowly turn it. The";
				mes "seal's light fades, revealing a";
				mes "Charm Stone. Once you grasp";
				mes "the stone, someone's memory";
				mes "is injected into your mind.^000000";
				next;
				mes "^333333This battle will determine";
				mes "the fate of mankind. We must";
				mes "defeat Satan Morroc. There is";
				mes "no alternative. Who's with me?! ";
				mes "^333333*Cough Cough* The demon";
				mes "is too strong! We c-can't...^000000";
				next;
				mes "^333333Foolish weakling humans.";
				mes "You should have known better.";
				mes "...This cannot be! Isn't this--? ";
				mes "^333333GGGRRRRAH! H-HOW DARE YOU";
				mes "HUMANS! HOW DARE YOOOOOOOU....! ";
				next;
				mes "......";
				mes ".........";
				mes "............";
				next;
				mes "^3355FFThe images faded from";
				mes "your mind as quickly as";
				mes "they appeared. What could";
				mes "have happened in the past?^000000";
				delitem 7424,1; //Key_Green
				getitem 7429,1; //Magic_Gem_Green
				close;
			}
			mes "^3355FFYou'll need to try";
			mes "something else in ";
			mes "order to break this";
			mes "seal. What could";
			mes "you possibly need?^000000";
			close;
		case 2:
			mes "^3355FFYou stepped away from";
			mes "the seal, unwilling to deal";
			mes "with the power that keeps";
			mes "repulsing your advance.^000000";
			close;
		}
	}
	mes "^3355FFThis area is protected by";
	mes "some mysterious power.";
	mes "You try to touch the seal,";
	mes "but then it buzzes loudly";
	mes "and pushes your hand away.^000000";
	percentheal -10,0;
	close;
}

tha_t12,96,58,0	script	Stone Statue#1	111,{

	if (!$@thana_summon) {
		mes "^3355FFYou've found a ";
		mes "stone statue with";
		mes "a conspicuous hole";
		mes "in the chest area.^000000";
		if ((countitem(7426) >= 1) && (countitem(7427) >= 1) && (countitem(7428) >= 1) && (countitem(7429) >= 1) && (countitem(7430) >= 1)) {
			next;
			mes "^3355FFAs you approach the statue,";
			mes "your Red Charm Stone and";
			mes "the statue begin to glow with";
			mes "a glimmering red light.^000000";
			next;
			switch (select("Insert Charm Stone into Statue:Cancel")) {
			case 1:
				mes "^3355FFOnce you insert the";
				mes "Red Charm Stone, the";
				mes "statue glows even brighter";
				mes "with a mysterious light.^000000";
				delitem 7426,1; //Magic_Gem_Red
				specialeffect EF_BEGINSPELL3;
				set $@thana_summon,1;
				donpcevent "tt_effect2::OnEnable";
				close;
			case 2:
				mes "^3355FFYou decided not to";
				mes "insert the Charm Stone,";
				mes "opting to investigate this";
				mes "area a little further.^000000";
				close;
			}
		}
		else if ((countitem(7426) >= 1) || (countitem(7427) >= 1) || (countitem(7428) >= 1) || (countitem(7429) >= 1) || (countitem(7430) >= 1)) {
			mes "^3355FFAs you approach this statue, one^FFFFFF ^3355FF of your Charm Stones begins to";
			mes "glow. However, the statue itself is not responding. You probably";
			mes "need all the Charm Stones in";
			mes "order to fully activate it.^000000";
			close;
		}
		close;
	}
	else if ($@thana_summon == 6) {
		mes "^3355FFThe statue is emanating an";
		mes "intense light, making it so hot";
		mes "that you cannot approach it.^000000";
		close;
	}
	mes "^3355FFThis status is glowing";
	mes "with a mysterious light.";
	mes "Some strange force keeps";
	mes "you from approaching it.^000000";
	close;
}

tha_t12,104,18,0	script	Stone Statue#tt2	111,{

	if ($@thana_summon == 2) {
		mes "^3355FFYou've found a ";
		mes "stone statue with";
		mes "a conspicuous hole";
		mes "in the chest area.^000000";
		if (countitem(7428) >= 1) {
			next;
			mes "^3355FFAs you approach the statue,";
			mes "your Blue Charm Stone begins";
			mes "to glow with a glimmering blue";
			mes "light, and the statue responds";
			mes "by shimmering with a red glow.^000000";
			next;
			switch (select("Insert Charm Stone into Statue:Cancel")) {
			case 1:
				mes "^3355FFOnce you insert the";
				mes "Blue Charm Stone, the";
				mes "statue glows even brighter";
				mes "with a mysterious light.^000000";
				delitem 7428,1; //Magic_Gem_Blue
				specialeffect EF_BEGINSPELL2;
				donpcevent "tt_effect5::OnEnable";
				set $@thana_summon,3;
				close;
			case 2:
				mes "^3355FFYou decided not to";
				mes "insert the Charm Stone,";
				mes "opting to investigate this";
				mes "area a little further.^000000";
				close;
			}
		}
		close;
	}
	else if ($@thana_summon == 6) {
		mes "^3355FFThe statue is emanating an";
		mes "intense light, making it so hot";
		mes "that you cannot approach it.^000000";
		close;
	}
	mes "^3355FFThis status is glowing";
	mes "with a mysterious light.";
	mes "Some strange force keeps";
	mes "you from approaching it.^000000";
	close;
}

tha_t12,128,86,0	script	Stone Statue#3	111,{

	if ($@thana_summon == 3) {
		mes "^3355FFYou've found a ";
		mes "stone statue with";
		mes "a conspicuous hole";
		mes "in the chest area.^000000";
		if (countitem(7430) >= 1) {
			next;
			mes "^3355FFAs you approach the statue,";
			mes "your Black Charm Stone begins";
			mes "to emanate an eerie darkness.";
			mes "In response, the statue starts glowing with a sinister red light.^000000";
			next;
			switch (select("Insert Charm Stone into Statue:Cancel")) {
			case 1:
				mes "^3355FFOnce you insert the";
				mes "Black Charm Stone, the";
				mes "statue glows even brighter";
				mes "with a mysterious light.^000000";
				delitem 7430,1; //Magic_Gem_Black
				specialeffect EF_BEGINSPELL7;
				donpcevent "tt_effect1::OnEnable";
				set $@thana_summon,4;
				close;
			case 2:
				mes "^3355FFYou decided not to";
				mes "insert the Charm Stone,";
				mes "opting to investigate this";
				mes "area a little further.^000000";
				close;
			}
		}
		close;
	}
	else if ($@thana_summon == 6) {
		mes "^3355FFThe statue is emanating an";
		mes "intense light, making it so hot";
		mes "that you cannot approach it.^000000";
		close;
	}
	mes "^3355FFThis status is glowing";
	mes "with a mysterious light.";
	mes "Some strange force keeps";
	mes "you from approaching it.^000000";
	close;
}

tha_t12,161,58,0	script	Stone Statue#tt4	111,{

	if ($@thana_summon == 1) {
		mes "^3355FFYou've found a ";
		mes "stone statue with";
		mes "a conspicuous hole";
		mes "in the chest area.^000000";
		if (countitem(7427) >= 1) {
			next;
			mes "^3355FFAs you approach the statue,";
			mes "your Yellow Charm Stone";
			mes "starts shining a bright yellow";
			mes "light, and the statue emits";
			mes "a glimmering red glow.^000000";
			next;
			switch (select("Insert Charm Stone into Statue:Cancel")) {
			case 1:
				mes "^3355FFOnce you insert the";
				mes "Yellow Charm Stone, the";
				mes "statue glows even brighter";
				mes "with a mysterious light.^000000";
				delitem 7427,1; //Magic_Gem_Yellow
				specialeffect EF_BEGINSPELL5;
				donpcevent "tt_effect3::OnEnable";
				set $@thana_summon,2;
				close;
			case 2:
				mes "^3355FFYou decided not to";
				mes "insert the Charm Stone,";
				mes "opting to investigate this";
				mes "area a little further.^000000";
				close;
			}
		}
		close;
	}
	else if ($@thana_summon == 6) {
		mes "^3355FFThe statue is emanating an";
		mes "intense light, making it so hot";
		mes "that you cannot approach it.^000000";
		close;
	}
	mes "^3355FFThis status is glowing";
	mes "with a mysterious light.";
	mes "Some strange force keeps";
	mes "you from approaching it.^000000";
	close;
}

tha_t12,154,18,0	script	Stone Statue#tt5	111,{

	if ($@thana_summon == 4) {
		mes "^3355FFYou've found a ";
		mes "stone statue with";
		mes "a conspicuous hole";
		mes "in the chest area.^000000";
		if (countitem(7429) >= 1) {
			next;
			mes "^3355FFAs you approach the statue,";
			mes "your Green Charm Stone begins";
			mes "radiating soft green light, and";
			mes "and the statue starts to shine";
			mes "with a bright red glow.^000000";
			next;
			switch (select("Insert Charm Stone into Statue:Cancel")) {
			case 1:
				mes "^3355FFOnce you insert the";
				mes "Green Charm Stone, the";
				mes "statue glows even brighter";
				mes "with a mysterious light.^000000";
				specialeffect EF_BEGINSPELL4;
				next;
				mes "^3355FFThe crest on the ground";
				mes "surrounded by the five";
				mes "glowing statues has now";
				mes "activated, and is emitting";
				mes "a fearsome, powerful energy.^000000";
				delitem 7429,1; //Magic_Gem_Green
				set $@thana_summon2,0;
				set $@thana_summon,5;
				donpcevent "tt_effect4::OnEnable";
				hideoffnpc "to_the_boss_room_tt";
				close;
			case 2:
				mes "^3355FFYou decided not to";
				mes "insert the Charm Stone,";
				mes "opting to investigate this";
				mes "area a little further.^000000";
				close;
			}
		}
		close;
	}
	else if ($@thana_summon == 6) {
		mes "^3355FFThe statue is emanating an";
		mes "intense light, making it so hot";
		mes "that you cannot approach it.^000000";
		close;
	}
	mes "^3355FFThis status is glowing";
	mes "with a mysterious light.";
	mes "Some strange force keeps";
	mes "you from approaching it.^000000";
	close;
}

tha_t12,129,56,0	script	tt_effect1	139,{
	end;

OnEnable:
	initnpctimer;
	end;

OnTimer500:
	specialeffect EF_BEGINSPELL7;
	end;

OnTimer1000:
	specialeffect EF_BEGINSPELL7;
	end;

OnTimer1500:
	specialeffect EF_BEGINSPELL7;
	end;

OnTimer2000:
	specialeffect EF_BEGINSPELL7;
	end;

OnTimer2500:
	specialeffect EF_BEGINSPELL7;
	end;

OnTimer3000:
	specialeffect EF_BEGINSPELL7;
	if ($@thana_summon == 6) {
		stopnpctimer;
	}
	else {
		stopnpctimer;
		initnpctimer;
	}
	end;

OnDisable:
	stopnpctimer;
	end;
}

tha_t12,125,52,0	script	tt_effect2	139,{
	end;

OnEnable:
	initnpctimer;
	end;

OnTimer500:
	specialeffect EF_BEGINSPELL3;
	end;

OnTimer1000:
	specialeffect EF_BEGINSPELL3;
	end;

OnTimer1500:
	specialeffect EF_BEGINSPELL3;
	end;

OnTimer2000:
	specialeffect EF_BEGINSPELL3;
	end;

OnTimer2500:
	specialeffect EF_BEGINSPELL3;
	end;

OnTimer3000:
	specialeffect EF_BEGINSPELL3;
	if ($@thana_summon == 6) {
		stopnpctimer;
	}
	else {
		stopnpctimer;
		initnpctimer;
	}
	end;

OnDisable:
	stopnpctimer;
	end;
}

tha_t12,134,52,0	script	tt_effect3	139,{
	end;
OnEnable:
	initnpctimer;
	end;

OnTimer500:
	specialeffect EF_BEGINSPELL5;
	end;

OnTimer1000:
	specialeffect EF_BEGINSPELL5;
	end;

OnTimer1500:
	specialeffect EF_BEGINSPELL5;
	end;

OnTimer2000:
	specialeffect EF_BEGINSPELL5;
	end;

OnTimer2500:
	specialeffect EF_BEGINSPELL5;
	end;

OnTimer3000:
	specialeffect EF_BEGINSPELL5;
	if ($@thana_summon == 6) {
		stopnpctimer;
	}
	else {
		stopnpctimer;
		initnpctimer;
	}
	end;

OnDisable:
	stopnpctimer;
	end;
}

tha_t12,132,47,0	script	tt_effect4	139,{
	end;

OnEnable:
	initnpctimer;
	end;

OnTimer500:
	specialeffect EF_BEGINSPELL4;
	end;

OnTimer1000:
	specialeffect EF_BEGINSPELL4;
	end;

OnTimer1500:
	specialeffect EF_BEGINSPELL4;
	end;

OnTimer2000:
	specialeffect EF_BEGINSPELL4;
	end;

OnTimer2500:
	specialeffect EF_BEGINSPELL4;
	end;

OnTimer3000:
	specialeffect EF_BEGINSPELL4;
	if ($@thana_summon == 6) {
		stopnpctimer;
	}
	else {
		stopnpctimer;
		initnpctimer;
	}
	end;

OnDisable:
	stopnpctimer;
	end;
}

tha_t12,127,47,0	script	tt_effect5	139,{
	end;
	
OnEnable:
	initnpctimer;
	end;

OnTimer500:
	specialeffect EF_BEGINSPELL2;
	end;

OnTimer1000:
	specialeffect EF_BEGINSPELL2;
	end;

OnTimer1500:
	specialeffect EF_BEGINSPELL2;
	end;

OnTimer2000:
	specialeffect EF_BEGINSPELL2;
	end;

OnTimer2500:
	specialeffect EF_BEGINSPELL2;
	end;

OnTimer3000:
	specialeffect EF_BEGINSPELL2;
	if ($@thana_summon == 6) {
		stopnpctimer;
	}
	else {
		stopnpctimer;
		initnpctimer;
	}
	end;

OnDisable:
	stopnpctimer;
	end;
}

tha_t12,130,52,0	script	to_the_boss_room_tt	45,1,1,{
	end;

OnInit:
	hideonnpc "to_the_boss_room_tt";
	end;

OnTouch:
	if ($@thana_summon == 0 || $@thana_summon == 6) {
		donpcevent "tt_effect1::OnDisable";
		donpcevent "tt_effect2::OnDisable";
		donpcevent "tt_effect3::OnDisable";
		donpcevent "tt_effect4::OnDisable";
		donpcevent "tt_effect5::OnDisable";
		hideonnpc "to_the_boss_room_tt";
	}
	else {
		warp "thana_boss",136,116;
	}
	end;
}

thana_boss,217,167,0	script	Crest#tt1	111,3,3,{
	end;

OnTouch:
	if ($@thana_summon2 == 6 || $@thana_summon != 5) {
		mes "^3355FFYou cannot approach";
		mes "the crest because it is";
		mes "generating intense heat.^000000";
		close;
	}
	mes "^3355FFThere is a strangely";
	mes "shaped hole in the";
	mes "middle of this purple crest.^000000";
	if (countitem(7437) > 0) {
		mes "^3355FFIt seems like a Fragment";
		mes "of Misery would fit perfectly";
		mes "if you placed it inside.^000000";
	}
	next;
	input .@inputstr$;
	if (countitem(7437) > 0) {
		if (.@inputstr$ == "Fragment of Misery") {
			mes "^3355FFYou insert the";
			mes "Fragment of Misery";
			mes "into the crest, causing";
			mes "its glow to intensify.^000000";
			delitem 7437,1; //Piece_Of_Memory_Purple
			close2;
			monster "thana_boss",217,167,"Misery",1711,1,"Crest#tt1::OnMyMobDead";
			hideonnpc "Crest#tt1";
			end;
		}
		mes "^3355FFThat action had no";
		mes "effect. You'll have to";
		mes "try something else.^000000";
		close;
	}
	mes "^3355FFThat action had no";
	mes "effect. You'll have to";
	mes "try something else.^000000";
	close2;
	end;

OnMyMobDead:
	set $@thana_summon2,$@thana_summon2 + 1;
	end;
}

thana_boss,202,75,0	script	Crest#tt2	111,3,3,{
	end;

OnTouch:
	if (($@thana_summon2 == 6) || ($@thana_summon != 5)) {
		mes "^3355FFYou cannot approach";
		mes "the crest because it is";
		mes "generating intense heat.^000000";
		close;
	}
	mes "^3355FFThere is a strangely";
	mes "shaped hole in the";
	mes "middle of this green crest.^000000";
	if (countitem(7436) > 0) {
		mes "^3355FFIt seems like a Fragment";
		mes "of Agony would fit perfectly";
		mes "if you placed it inside.^000000";
	}
	next;
	input .@inputstr$;
	if (countitem(7436) > 0) {
		if (.@inputstr$ == "Fragment of Agony") {
			mes "^3355FFYou insert the";
			mes "Fragment of Agony";
			mes "into the crest, causing";
			mes "its glow to intensify.^000000";
			delitem 7436,1; //Piece_Of_Memory_Green
			close2;
			monster "thana_boss",202,75,"Agony",1712,1,"Crest#tt2::OnMyMobDead";
			hideonnpc "Crest#tt2";
			end;
		}
		mes "^3355FFThat action had no";
		mes "effect. You'll have to";
		mes "try something else.^000000";
		close;
	}
	mes "^3355FFThat action had no";
	mes "effect. You'll have to";
	mes "try something else.^000000";
	close2;
	end;

OnMyMobDead:
	set $@thana_summon2,$@thana_summon2 + 1;
	end;
}

thana_boss,80,76,0	script	Crest#tt3	111,3,3,{
	end;

OnTouch:
	if (($@thana_summon2 == 6) || ($@thana_summon != 5)) {
		mes "^3355FFYou cannot approach";
		mes "the crest because it is";
		mes "generating intense heat.^000000";
		close;
	}
	mes "^3355FFThere is a strangely";
	mes "shaped hole in the";
	mes "middle of this blue crest.^000000";
	if (countitem(7438) > 0) {
		mes "^3355FFIt seems like a Fragment";
		mes "of Hatred would fit perfectly";
		mes "if you placed it inside.^000000";
	}
	next;
	input .@inputstr$;
	if (countitem(7438) > 0) {
		if (.@inputstr$ == "Fragment of Hatred") {
			mes "^3355FFYou insert the";
			mes "Fragment of Hatred";
			mes "into the crest, causing";
			mes "its glow to intensify.^000000";
			delitem 7438,1; //Piece_Of_Memory_Blue
			close2;
			monster "thana_boss",80,76,"Hatred",1709,1,"Crest#tt3::OnMyMobDead";
			hideonnpc "Crest#tt3";
			end;
		}
		mes "^3355FFThat action had no";
		mes "effect. You'll have to";
		mes "try something else.^000000";
		close;
	}
	mes "^3355FFThat action had no";
	mes "effect. You'll have to";
	mes "try something else.^000000";
	close2;
	end;

OnMyMobDead:
	set $@thana_summon2,$@thana_summon2 + 1;
	end;
}

thana_boss,62,171,0	script	Crest#tt4	111,3,3,{
	end;

OnTouch:
	if (($@thana_summon2 == 6) || ($@thana_summon != 5)) {
		mes "^3355FFYou cannot approach";
		mes "the crest because it is";
		mes "generating intense heat.^000000";
		close;
	}
	mes "^3355FFThere is a strangely";
	mes "shaped hole in the";
	mes "middle of this red crest.^000000";
	if (countitem(7439) > 0) {
		mes "^3355FFIt seems like a Fragment";
		mes "of Despair would fit perfectly";
		mes "if you placed it inside.^000000";
	}
	next;
	input .@inputstr$;
	if (countitem(7439) > 0) {
		if (.@inputstr$ == "Fragment of Despair") {
			mes "^3355FFYou insert the";
			mes "Fragment of Despair";
			mes "into the crest, causing";
			mes "its glow to intensify.^000000";
			delitem 7439,1; //Piece_Of_Memory_Red
			close2;
			monster "thana_boss",62,171,"Despair",1710,1,"Crest#tt4::OnMyMobDead";
			hideonnpc "Crest#tt4";
			end;
		}
		mes "^3355FFThat action had no";
		mes "effect. You'll have to";
		mes "try something else.^000000";
		close;
	}
	mes "^3355FFThat action had no";
	mes "effect. You'll have to";
	mes "try something else.^000000";
	close2;
	end;

OnMyMobDead:
	set $@thana_summon2,$@thana_summon2 + 1;
	end;
}

thana_boss,141,218,0	script	Crest#tt5	111,3,3,{
	end;

OnTouch:
	if ($@thana_summon2 == 4) {
		mes "^3355FFAs you approach the";
		mes "crest, it begins shining";
		mes "brighter and brighter until its";
		mes "illumination becomes blinding.^000000";
		close2;
		monster "thana_boss",140,217,"Despair",1710,1,"Crest#tt5::OnMyMobDead";
		monster "thana_boss",140,216,"Hatred",1709,1,"Crest#tt5::OnMyMobDead";
		monster "thana_boss",141,217,"Misery",1711,1,"Crest#tt5::OnMyMobDead";
		monster "thana_boss",141,216,"Agony",1712,1,"Crest#tt5::OnMyMobDead";
		hideonnpc "Crest#tt5";
		end;
	}
	if ($@thana_summon < 5) {
		mapwarp "thana_boss","tha_t12",130,47;
		end;
	}
	mes "^3355FFYou find a strange";
	mes "crest engraved";
	mes "on the floor.^000000";
	next;
	input .@inputstr$;
	mes "^3355FFNothing happened.^000000";
	close2;
	end;

OnMyMobDead:
	if (mobcount("thana_boss","Crest#tt5::OnMyMobDead") < 1) {
		set $@thana_summon,5;
		set $@thana_summon2,6;
		donpcevent "boss_summon#tt::OnEnable";
	}
	end;
}

thana_boss,5,5,0	script	boss_summon#tt	139,{
	end;
	
OnEnable:
	monster "thana_boss",136,129,"Thanatos Phantom",1708,1,"boss_summon#tt::OnMyMobDead";
	initnpctimer;
	end;

OnTimer1000:
	mapannounce "thana_boss","Thanatos : RAWWWWWWWWWWWWWWWWR!",bc_map,"0x00CC00"; //FW_NORMAL 12 0 0
	set $@thana_summon,6;
	end;

OnTimer3000:
	mapannounce "thana_boss","Thanatos : I live again to fulfill my ambition!",bc_map,"0x00CC00"; //FW_NORMAL 12 0 0
	end;

OnTimer30000:
	mapannounce "thana_boss","Thanatos : Come, be the first to fall before my might!",bc_map,"0x00CC00"; //FW_NORMAL 12 0 0
	end;

OnTimer900000:
	set $@thana_summon,5;
	donpcevent "tt_effect1::OnEnable";
	donpcevent "tt_effect2::OnEnable";
	donpcevent "tt_effect3::OnEnable";
	donpcevent "tt_effect4::OnEnable";
	donpcevent "tt_effect5::OnEnable";
	hideoffnpc "to_the_boss_room_tt";
	stopnpctimer;
	end;

OnMyMobDead:
	if (mobcount("thana_boss","boss_summon#tt::OnMyMobDead") < 1) {
		stopnpctimer;
		donpcevent "#timer_t::OnEnable";
	}
	end;
}

thana_boss,3,3,0	script	#timer_t	139,{
	end;

OnInit:
	set $@thana_summon,0;
	set $@thana_summon2,0;
	end;

OnEnable:
	initnpctimer;
	end;

OnTimer1000:
	mapannounce "thana_boss","GGGGRRRRRRR!",bc_map,"0xFF0000"; //FW_NORMAL 12 0 0
	set $@thana_summon,6;
	end;

OnTimer2000:
	mapannounce "thana_boss","*Rumble Rumble*",bc_map,"0xFF0000"; //FW_NORMAL 12 0 0
	end;

OnTimer3000:
	mapannounce "thana_boss","*Crik Crik*",bc_map,"0xFF0000"; //FW_NORMAL 12 0 0
	end;

OnTimer4000:
	mapannounce "thana_boss","*Zzzzrt Zzzzrt*",bc_map,"0xFF0000"; //FW_NORMAL 12 0 0
	end;

OnTimer5000:
	mapannounce "thana_boss","*Crik Crik*",bc_map,"0xFF0000"; //FW_NORMAL 12 0 0
	end;

OnTimer60000:
	mapwarp "thana_boss","tha_t12",130,47;
	end;

OnTimer1000000:
	mapwarp "thana_boss","tha_t12",130,47;
	end;

OnTimer2000000:
	mapwarp "thana_boss","tha_t12",130,47;
	end;

OnTimer3000000:
	mapwarp "thana_boss","tha_t12",130,47;
	end;

OnTimer4000000:
	mapwarp "thana_boss","tha_t12",130,47;
	end;

OnTimer5000000:
	mapwarp "thana_boss","tha_t12",130,47;
	end;

OnTimer6000000:
	mapwarp "thana_boss","tha_t12",130,47;
	end;

OnTimer7200000:
	set $@thana_summon,0;
	hideoffnpc "Crest#tt1";
	hideoffnpc "Crest#tt2";
	hideoffnpc "Crest#tt3";
	hideoffnpc "Crest#tt4";
	hideoffnpc "Crest#tt5";
	stopnpctimer;
	end;
}

tha_t06,119,120,0	script	to the 7th floor	45,1,1,{
	end;

OnTouch:
	if (eaclass()&(EAJL_2|EAJL_UPPER) || eaclass()&EAJL_THIRD) {
		warp "thana_step",69,369;
		end;
	}
	if ((Class == Job_SuperNovice || Class == Job_Taekwon || Class == Job_Star_Gladiator || Class == Job_Soul_Linker || Class == Job_Ninja || Class == Job_Gunslinger) && BaseLevel > 94) {
		warp "thana_step",69,369;
		end;
	}
	mes "^3355FFAn overwhelming force";
	mes "acts against you, preventing";
	mes "you from proceeding this way...^000000";
	close;
}