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



















































































































                                                                                                                                                         
                                                                                    














































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































                                                                                                                                                                                                                                   
//===== eAthena Script ======================================= 
//= Nidhoggr's Nest
//===== By: ================================================== 
//= L0ne_W0lf, various sources
//===== Current Version: ===================================== 
//= 1.2
//===== Compatible With: ===================================== 
//= eAthena SVN
//===== Description: ========================================= 
//= [Aegis Conversion]
//= Nidhoggr's Nest Instance
//===== Additional Comments: ================================= 
//= 1.0 First version.
//= 1.1 Minor dialog updates.
//= 1.2 No longer glitches when anyone but party leader talks to the first NPC.
//============================================================ 

nyd_dun02,100,201,3	script	Yggdrasil Gatekeeper	111,8,8,{
	if (ins_nyd == 0) {
		mes "A great stone gate stands before you. The sculpture of a terrible dragon spreads its powerful looking wings.";
		next;
		mes "Near the bottom of the gate, Laphine tribeswomen have been turned to stone and now look like they are part of the great door.";
		next;
		switch(select("Move closer to look more carefully.:Step back.")) {
		case 1:
			if (ep13_1_edq == 14) {
				specialeffect2 EF_HOLYHIT;
				PushPC 3,3;
				set ep13_1_edq,15;
				mes "A mysterious power prevents you from getting too close. It looks like there is something strong beyond the door...";
				next;
				mes "Perhaps there's a great hidden secret beyond the gate, beyond expectation.";
				next;
				mes "It would be better to go back to camp and inform the others and ask for help.";
				set ins_nyd,1;
				close;
			}
			else if (ep13_1_edq == 15) {
				specialeffect2 EF_HOLYHIT;
				PushPC 3,3;
				mes "A mysterious power prevents you from getting too close. It looks like there is something strong beyond the door...";
				next;
				mes "Perhaps there's a great hidden secret beyond the gate, beyond expectation.";
				next;
				mes "It would be better to go back to camp and inform the others and ask for help.";
				set ins_nyd,1;
				close;
			}
			else {
				specialeffect2 EF_HOLYHIT;
				PushPC 3,3;
				mes "A mysterious power prevents you from getting too close. It looks like there is something strong beyond the door...";
				next;
				mes "Perhaps there's a great hidden secret beyond the gate, beyond expectation.";
				next;
				mes "It would be better to go back to camp and inform the others and ask for help.";
				next;
				mes "You'll have to obtain the others trust in the expendition camp by working hard.";
				set ins_nyd,1;
				close;
			}
		case 2:
			close;
		}
	}
	else if (ins_nyd == 1) {
		if ((ep13_1_edq == 14) || (ep13_1_edq == 15)) {
			mes "A mysterious power prevents you from getting too close. It looks like there is something strong beyond the door...";
			next;
			mes "Perhaps there's a great hidden secret beyond the gate, beyond expectation.";
			next;
			mes "It would be better to go back to camp and inform the others and ask for help.";
			set ep13_1_edq,15;
			close;
		}
		else {
			mes "A mysterious power prevents you from getting too close. It looks like there is something strong beyond the door...";
			next;
			mes "Perhaps there's a great hidden secret beyond the gate, beyond expectation.";
			next;
			mes "It would be better to go back to camp and inform the others and ask for help.";
			next;
			mes "You'll have to obtain the others trust in the expendition camp by working hard.";
			close;
		}
	}
	else if ((ins_nyd == 111) || (ins_nyd == 112)) {
		specialeffect2 EF_CHANGECOLD;
		mes "The strange sensation surrounding your body has disappeared";
		next;
		mes "When you touch the stone gate, you hear a commanding voice.";
		next;
		mes "[??????]";
		mes "Wingless one... Our promised words...";
		next;
		switch(select("'Guardian's spell'!:Take a step back.")) {
		case 1:
			mes "[??????]";
			mes "Promised words... Guardian's spell... proof of their existence.";
			next;
			mes "[Yggdrasil Gatekeeper]";
			mes "In the name of Yggdrasiliad, I will accept you as a servant of the Guardian.";
			next;
			specialeffect2 EF_CHANGECOLD;
			set ins_nyd,200;
			mes "[Yggdrasil Gatekeeper]";
			mes "I accept your entrance through the Guardian's gate. You are now considered a faithful servant of the Guardian Nidhoggur.";
			next;
			mes "The voice has disappeared, and the dark power is calming down from behind the stone gate.";
			close;
		case 2:
			close;
		}
	}
	else if ((ins_nyd == 131) || (ins_nyd == 132) || (ins_nyd > 199)) {
		set .@ins_nyd_check,checkquest(3135,PLAYTIME); // 3 Day cooldown
		set .@ins_nyd_check2,checkquest(3136,PLAYTIME); // 4 Hour play limit
		if (.@ins_nyd_check == -1) {
			mes "As I put my hands on the stone gate, a voice sounded from the depth of my heart.";
			next;
			mes "[Yggdrasil Gatekeeper]";
			mes "The loyal servants of the Guardian... what can I do for you?";
			next;
			switch(select("Please allow me to enter.:I want to go in.:I want to leave.")) {
			case 1:
				set .@party,getcharid(1);
				set .@leader,getpartyleader(.@party,2);
				set .@md_name$,"Nidhoggur's Nest";

				getpartymember(.@party);
				set .@partymembercount,$@partymembercount;
				copyarray .@partymembername$[0],$@partymembername$[0],.@partymembercount;

				if ((.@party > 0) && ((.@partymembercount > 1)) && (.@leader == getcharid(0))) {
					set .@instance, instance_create(.@md_name$, .@party);
					if (.@instance < 0) {
						mes "[Yggdrasil Gatekeeper]";
						mes "The Guardian seems to wish to be alone. I will go in and check, please wait out here.";
						close;
					}
					else {
						for( set .@i, 1; .@i <= 2; set .@i, .@i + 1 ) {
							if( instance_attachmap(.@i + "@nyd", .@instance) == "" )
								break;
						}
						if( .@i < 2 ) {
							instance_destroy(.@instance);
							close;
						}
						instance_attach(.@instance);
						instance_set_timeout 144000,300,.@instance;
						instance_init(.@instance);

						// Spawn standard mobs
						donpcevent instance_npcname("ins_nyd1_spawn_mobs", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("ins_nyd2_spawn_mobs", instance_id())+"::OnInstanceInit";
						// Activate Floor 1
						donpcevent instance_npcname("nyd_call_mon_1", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("ins_nyd_1f_timer", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_to2f_warp", instance_id())+"::OnInstanceInit";
						// Active Floor 2
						donpcevent instance_npcname("nyd_2f_enter_broad", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_2f_boss_enter", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_2f_boss_enter_call", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_2f_boss_enter_logic", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("World Tree Yggdrasil#2F", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_2f_red_c", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_2f_red_warp1", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_2f_red_warp2", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_2f_red_warp3", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_2f_white_c", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_2f_white_warp1", instance_id())+"::OnInstanceInit";;
						donpcevent instance_npcname("nyd_2f_white_warp2", instance_id())+"::OnInstanceInit";;
						donpcevent instance_npcname("nyd_2f_white_warp3", instance_id())+"::OnInstanceInit";;
						donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_2f_yellow_c", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_2f_yellow_warp1", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_2f_yellow_warp2", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_2f_yellow_warp3", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_2f_green_c", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_2f_green_warp1", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_2f_green_warp2", instance_id())+"::OnInstanceInit";
						donpcevent instance_npcname("nyd_2f_green_warp3", instance_id())+"::OnInstanceInit";

						mes "[Yggdrasil Gatekeeper]";
						mes "I've recorded your request, are you ready to go inside?";
						next;
						mes "[Yggdrasil Gatekeeper]";
						mes "If you are ready, I will allow you to enter.";
						close;
					}
				}
				else {
					mes "[Yggdrasil Gatekeeper]";
					mes "When you touch the stone gate, you can hear the voice in your heart.";
					next;
					mes "[Yggdrasil Gatekeeper]";
					mes "Where are the other servants, so you can work together? Each servant cannot be admitted here individually...";
					next;
					mes "[Yggdrasil Gatekeeper]";
					mes "Come with at least 1 more servant... Only party leaders can accept admission to Nidhoggur's Nest.";
					next;
					mes "[Yggdrasil Gatekeeper]";
					mes "And only 1 representative of you needs to talk to me, so don't annoy me...";
					close;
				}
			case 2:
				if (.@ins_nyd_check2 < 2) { // Added check to avoid people from re-partting up.
					set .@party,getcharid(1);
					set .@leader,getpartyleader(.@party,2);
					set .@p_name$,getpartyname(.@party);
					set .@p_name2$,strcharinfo(0);
					set .@md_name$,"Nidhoggur's Nest";

					getpartymember(.@party);
					set .@partymembercount,$@partymembercount;
					copyarray .@partymembername$[0],$@partymembername$[0],.@partymembercount;

					if (has_instance("1@nyd") == "") {
						mes "[Yggdrasil Gatekeeper]";
						mes "You did not request for entrance. Please let your leader request entrance.";
						close;
					}
					else if ((has_instance("1@nyd") != "") && (.@partymembercount < 2)) {
						mes "[Yggdrasil Gatekeeper]";
						mes "Where are the other servants with you? We do not allow individuals to enter alone.";
						next;
						mes "[Yggdrasil Gatekeeper]";
						mes "You must be accompanied by one servant to be able to enter.";
						close;
					}
					else {
						mapannounce "nyd_dun02", .@p_name$ + "'s Party member " + .@p_name2$ + " has entered " + .@md_name$,bc_map,"0x00ff99";
						if (checkquest(3135) == -1) setquest 3135;
						if (checkquest(3136) == -1) setquest 3136;
						warp "1@nyd",32,37;
						close;
					}
				}
				else {
					//Custom
					mes "[Yggdrasil Gatekeeper]";
					mes "You are no longer able to enter Nidhogger's Nest, as your instance has expired.";
					next;
					mes "[Yggdrasil Gatekeeper]";
					mes "After Nidhoggur's Shadow disappears, at least 3 days is needed for stabilizing.";
					close;
				}
			case 3:
				close;
			}
		}
		else if ((.@ins_nyd_check == 0) || (.@ins_nyd_check == 1)) {
			mes "[Yggdrasil Gatekeeper]";
			mes "With the defeat of Nidhoggur's Shadow, the roots of the World Tree Yggdrasil are also affected.";
			next;
			mes "[Yggdrasil Gatekeeper]";
			mes "After Nidhoggur's Shadow disappears, at least 3 days is needed for stabilizing.";
			close;
		}
		else if (.@ins_nyd_check == 2) {
			mes "[Yggdrasil Gatekeeper]";
			mes "The World Tree Yggdrasil has stabilized. Would you like to enter Nidhoggur's Nest again?";
			next;
			mes "[Yggdrasil Gatekeeper]";
			mes "If you would like to enter again, please register with me.";
			erasequest 3135;
			erasequest 3136;
			set 'ins_nyd2,0;
			close;
		}
		else {
			close;
		}
	}
	else {
		mes "A great stone gate stands before you. The sculpture of a terrible dragon spreads its powerful looking wings.";
		next;
		mes "Near the bottom of the gate, Laphine tribeswomen have been turned to stone and now look like they are part of the great door.";
		next;
		switch(select("Move closer to look more carefully.:Step back.")) {
		case 1:
			specialeffect2 EF_HOLYHIT;
			PushPC 3,3;
			mes "A mysterious power prevents you from getting too close. It looks like there is something strong beyond the door...";
			next;
			mes "Perhaps there's a great hidden secret beyond the gate, beyond expectation.";
			close;
		case 2:
			close;
		}
	}
	close;

OnTouch_:
	if (ins_nyd == 0) {
		specialeffect2 EF_CHANGECOLD;
		specialeffect EF_CHANGECOLD,"Yggdrasil Gatekeeper";
	}
	end;
}

mid_camp,271,299,3	script	Historian Magnifier#edq	755,3,3,{
	if (ins_nyd == 1) {
		mes "[Historian Magniffer]";
		mes "Sure, the mainland also has lots of interesting adventures... Hello, I am Magnifier, a historian dispatched from the Prontera royal court.";
		next;
		mes "[Historian Magniffer]";
		mes "Finding another line of work might make for a really worthy job, but only a historian gets to know the world over..";
		next;
		mes "[Historian Magniffer]";
		mes "How this world is organized... and the way of the future! With our studies of the past and present we can predict what is to come.";
		next;
		mes "[Historian Magniffer]";
		mes "We are expecting a lot from you, expert adventurer. So, if you find anything... just tell me.";
		close;
	}
	else if (ins_nyd == 2) {
		mes "[Historian Magniffer]";
		mes "Does Commander Agip want to talk to me? Let's listen to his story.";
		next;
		mes "[Historian Magniffer]";
		mes "Did you find the cave that the fairy tribes treat as a holy place? You are a really tough cookie. What did you find?";
		next;
		mes "[Historian Magnifier]";
		mes "...";
		next;
		mes "... ...";
		next;
		mes "[Historian Magnifier]";
		mes "Wait a second... I have a brilliant idea.";
		next;
		mes "[Historian Magnifier]";
		mes "Let's see... This book... No... this one...? Hmm... Maybe this...";
		next;
		mes "[Historian Magnifier]";
		mes "...";
		next;
		mes "[Historian Magnifier]";
		mes "... ...";
		next;
		mes "[Historian Magnifier]";
		mes "Oh, here it is! World Tree Yggdrasil and God's tribes... This is their book!";
		next;
		mes "[Historian Magnifier]";
		mes "Maybe you found the central line to enter into the World Tree Yggdrasil!";
		next;
		mes "[Historian Magnifier]";
		mes "If that's true, you've found the greatest discovery since the harnessing of mana. Isn't this exciting?";
		next;
		mes "[Historian Magnifier]";
		mes "But we need a lot more information... Are they refusing you admission?";
		next;
		mes "[Historian Magnifier]";
		mes "I will send a message to my assistant who is in the Prontera Library. So, help her find more information.";
		next;
		mes "[Historian Magnifier]";
		mes "I will definitely help you find a way to enter the World Tree directly so, just believe in me! Okay~!!";
		set ins_nyd,3;
		close;
	}
	else if (ins_nyd == 3) {
		mes "[Historian Magnifier]";
		mes "Why are you standing there? Go to my assistant in the Prontera Library!";
		close;
	}
	else if (ins_nyd == 4) {
		mes "[Historian Magnifier]";
		mes "You've come back... Good, how's Naomi? Actually, I don't need to worry about her. She is always cheerful. Haha.";
		next;
		mes "[Historian Magnifier]";
		mes "You look like you have a lot on your mind... Your face is full of curiosity and questions.";
		next;
		mes "[Historian Magnifier]";
		mes "So, did you read the whole story that I have prepared?";
		next;
		switch(select("Not yet.:I read all the stories.")) {
		case 1:
			mes "[Historian Magnifier]";
			mes "Sheesh~ I prepared these stories for you carefully, but you didn't bother to check anything out did you?";
			next;
			mes "[Historian Magnifier]";
			mes "It would be better if you returned after reading all of them. That's very basic data of what we should do for the future.";
			close;
		case 2:
			mes "[Historian Magnifier]";
			mes "Hm, good job. Maybe I don't need to check anything else, right?";
			next;
			mes "[Historian Magnifier]";
			mes "I sent you to figure out which basic materials will be needed for the jobs ahead of us. You should bring research reports...";
			next;
			mes "[Historian Magnifier]";
			mes "You might complain about why I didn't bring any myself... That's because I trust your abilities, don't ever take anything for granted.";
			next;
			mes "[Historian Magnifier]";
			mes "But a while ago, while you were tranferring reports from Commander Agip to the mainland, you lost those reports... remember?";
			next;
			mes "[Historian Magnifier]";
			mes "So far, nothing's come up... Was it that somebody attacked you?";
			next;
			mes "[Historian Magnifier]";
			mes "Somehow, the truth will come out, but we should be careful of shocking the natives if we go there unannounced and they're not prepared for our arrival.";
			next;
			mes "[Historian Magnifier]";
			mes "I've talked too much... Anyway, as you know through my report, you've found a great thing!";
			next;
			mes "[Historian Magnifier]";
			mes "Firstly, we should find out more about the place. I expect we can, but... we can't do much without help from others.";
			next;
			mes "[Historian Magnifier]";
			mes "I have heard about recent expeditions of adventurers that have tried to contact the tribes... Have you heard anything about this?";
			next;
			mes "[Historian Magnifier]";
			mes "Anyway, let's try to contact them first, to be clear about any caves or treasures.";
			next;
			mes "[Historian Magnifier]";
			mes "For now, you try to contact the Sapha and Laphine tribes, and try to extract information from them.";
			next;
			mes "[Historian Magnifier]";
			mes "I'll also keep searching here. If you find anything, come back and let me know.";
			set ins_nyd,5;
			close;
		}
	}
	else if ((ins_nyd == 5) || (ins_nyd == 51) || (ins_nyd == 52)) {
		mes "[Historian Magnifier]";
		mes "Okay, let's try to contact them first, to be clear about any caves or treasures.";
		next;
		mes "[Historian Magnifier]";
		mes "For now, you try to contact the Sapha and Laphine tribes, and try to extract more information.";
		next;
		mes "[Historian Magnifier]";
		mes "I'll also keep searching here. If you find anything, come back and let me know.";
		close;
	}
	else if ((ins_nyd == 61) || (ins_nyd == 62)) {
		mes "[Historian Magnifier]";
		mes "Ah, you've come at a proper time. I found a curious thing while looking for reports from Arunafeltz.";
		next;
		mes "[Historian Magnifier]";
		mes "Right now, we are standing on part of one of the roots of the World Tree Yggdrasil.";
		next;
		mes "[Historian Magnifier]";
		mes "This spot is connected to World Tree by the root. I think we can expect confrontations between the Sapha and Laphine here eventually, don't you think?";
		next;
		mes "[Historian Magnifier]";
		mes "As I expected, the cave is the entrance to go to one of Yggdrasil's roots...";
		next;
		mes "[Historian Magnifier]";
		mes "Did you find anything about the Sapha and Laphine?";
		next;
		mes "...";
		next;
		mes "... ...";
		next;
		mes "[Historian Magnifier]";
		mes "Both sides act ambiguously, so... I'm getting worried...";
		next;
		mes "[Historian Magnifier]";
		mes "The two tribes have some trouble amongst their top leaders. It's not anything official, but...";
		next;
		mes "[Historian Magnifier]";
		mes "Let's report to Commander Agip about the situation so far. Then, we wait on his decision.";
		set ins_nyd,7;
		close;
	}
	else if ((ins_nyd == 7) || (ins_nyd == 8)) {
		mes "[Historian Magnifier]";
		mes "Report to Commander Hibba Agip about what we have discovered, since time is dependent on his decision.";
		close;
	}
	else if ((ins_nyd == 121) || (ins_nyd == 122) || (ins_nyd == 131) || (ins_nyd == 132) || (ins_nyd ==14)) {
		mes "[Historian Magnifier]";
		mes "So that's how it is... we were right about some parts of it... it's called the Guardian's Nest.";
		next;
		mes "[Historian Magnifier]";
		mes "We have gained a large amount of knowledge today, but...";
		next;
		mes "[Historian Magnifier]";
		mes "What we have figured out... how is it going to influence mankind? It's so unpredictable...";
		next;
		mes "[Historian Magnifier]";
		mes "This is only the beginning...we will be quite busy from now on.";
		next;
		mes "[Historian Magnifier]";
		mes "First, report to Commander Agip, then act according to the situation. Let me organize my research findings...";
		close;
	}
	else {
		mes "[Historian Magnifier]";
		mes "Sure, the mainland also has lots of interesting adventures... Hello, I am Magnifier, a historian dispatched from the Prontera royal court.";
		next;
		mes "[Historian Magnifier]";
		mes "Finding another line of work might make for a really worthy job, but only a historian gets to know the world over..";
		next;
		mes "[Historian Magnifier]";
		mes "How this world is organized... and the way of the future! With our studies of the past and present we can predict what is to come.";
		next;
		mes "[Historian Magnifier]";
		mes "We are expecting a lot from you, expert adventurer. So, if you find anything... just tell me.";
		close;
	}
}

prt_in,171,94,3	script	Assistant Naomi#edq	893,3,3,{
	set name,PcName;
	if (ins_nyd == 3) {
		mes "[Assistant Naomi]";
		mes "The doctor never ever tries to come back, and there're too many things to do... How can I do it all...";
		next;
		mes "[Assistant Naomi]";
		mes "Hey, you. Please move these books. Put them into shelf 3 row B.";
		next;
		mes "[" +strcharinfo(0)+ "]";
		mes "Ah...um..I...am...";
		next;
		mes "[Assistant Naomi]";
		mes "Don't you see I am too busy? Don't hesitate. Just do it.";
		next;
		switch(select("Look busy, and take a step back.:Help her just this once.")) {
		case 1:
			mes "[Assistant Naomi]";
			mes "Gosh! Where is-? Where did-? Ugh! It's so difficult!";
			close;
		case 2:
			mes "[Assistant Naomi]";
			mes "Ah... if you're done moving those, then these should go in shelf 3 row B.";
			next;
			mes "[" +strcharinfo(0)+ "]";
			mes "Ah...I...see...";
			next;
			mes "[Assistant Naomi]";
			mes "Now, I am almost done... Who are you? Are you a new assistant to Dr. Magnifier?";
			next;
			mes "[" +strcharinfo(0)+ "]";
			mes "He asked me to bring some reports. Didn't he say anything?";
			next;
			mes "[Assistant Naomi]";
			mes "Hmm... I haven't seen him in over a year! What's he doing now?";
			next;
			mes "[" +strcharinfo(0)+ "]";
			mes "He said that he would send a message to you... didn't you get it?";
			next;
			mes "[Assistant Naomi]";
			mes "Message? ...Let's see... I never expected him to write a message...";
			next;
			mes "[Assistant Naomi]";
			mes "I will check the mailbox, wait a minute. If you get bored read those books.";
			next;
			mes "...";
			next;
			mes "... ...";
			next;
			mes "It's too messy due to lots of stacked books and files. Dr. Magnifier looks like he has a ton of reports.";
			next;
			mes "[" +strcharinfo(0)+ "]";
			mes "'Birth of the World', 'The Fiction of Odin's Myth', 'God's Battle Then After', 'Dreams of the Tribes'. There are a variety of books...";
			next;
			mes "...";
			next;
			mes "[Assistant Naomi]";
			mes "Oh, sorry I took so long. There was too much mail, so it took me a while to find stuff.";
			next;
			mes "[Assistant Naomi]";
			mes "He has sent me mail over 20 times. I did not know that...";
			next;
			mes "[Assistant Naomi]";
			mes "Ah, here's the message about you. He's said to share the information on research and reports.";
			next;
			mes "[" +strcharinfo(0)+ "]";
			mes "What is the Doctor's area of expertise?";
			next;
			mes "[Assistant Naomi]";
			mes "Ever since 5 years ago, he has been curious about how the world started, and so he began his search for the God of creation.";
			next;
			mes "[Assistant Naomi]";
			mes "He researches combat between Odin and the Gods, and about the Gods' origins and life.";
			next;
			mes "[" +strcharinfo(0)+ "]";
			mes "So, did he already know that the Rebirth of Satan Morocc has occured before?";
			next;
			mes "[Assistant Naomi]";
			mes "I can't be sure, but he thought someday it would occur. It broke out earlier than he expected though.";
			next;
			mes "[" +strcharinfo(0)+ "]";
			mes "But Rune-Midgarts approved this research?";
			next;
			mes "[Assistant Naomi]";
			mes "Our academics are not a religion. And they too have curiosity about this world's history.";
			next;
			mes "[Assistant Naomi]";
			mes "The combat of Odin vs. the Gods, and the God's sons and their purpose... The Doctor has researched this his whole life.";
			next;
			mes "[" +strcharinfo(0)+ "]";
			mes "But those reports haven't come out yet. Have they?";
			next;
			mes "[Assistant Naomi]";
			mes "That's why he sent you here. By the way, this isn't the first time I've heard this.";
			next;
			mes "[Assistant Naomi]";
			mes "After the establishment of the Rune-Midgarts Kingdom and Arunafeltz, the rumors have spread in secret about their tribes, myths, etc.";
			next;
			mes "[Assistant Naomi]";
			mes "Anyway, I should make sure that you read all these books, and I'll just keep doing my work.";
			next;
			mes "[" +strcharinfo(0)+ "]";
			mes "Shouldn't I have filed the books?";
			next;
			mes "[Assistant Naomi]";
			mes "The Doctor said he will pick up the books through another person. Besides, don't you need the basic information on what to do?";
			next;
			mes "[Assistant Naomi]";
			mes "Before you go back to the Doctor, you had better read these books. So, I will go back to work.";
			set ins_nyd,4;
			close;
		}
	}
	else if (ins_nyd == 4) {
		mes "[Assistant Naomi]";
		mes "Browse around, to take a look at the books.";
		next;
		switch(select("Discovery of Heterogeneity:Report of Indigenous Tribes")) {
		case 1:
			mes "Satan Morocc has known that he didn't resurrect normally or by himself.";
			next;
			mes "Continuously, adventurers from Rune-Midgarts have attacked him and he is slowly losing his power. He would need more time to resurrect completely.";
			next;
			mes "Satan Morroc stopped to destroy the city of Morroc, turning it into a ruined desert, then started to rip the world apart.";
			next;
			mes "Satan Morroc was worried about those who would give chase, so he created Morocc clones to keep watch behind him.";
			next;
			mes "Modeled after Morocc, their appearance made it difficult to go around the time-space gap.";
			next;
			mes "Still the adventurers gave chase. They came from all over the world, trying to approach the Dimensional Gorge.";
			next;
			mes "The reports of these adventurers have been sent to representatives of all kingdoms, and an expedition team has been created to find out more information.";
			next;
			mes "The scientists of Schwartzwalt created a combination metal, using fragments of metals found in the dimensional gorge.";
			next;
			mes "The Schwaltzvalt Republic requested approval to find the source of the new metal, and since Rune-Midgart couldn't complete the test themselves, they finally accepted.";
			next;
			mes "They associated together to gather volunteers. The Assassin Guild was the first to volunteer.";
			next;
			mes "The Assassins have a terrible past with Satan Morroc, so they gathered 18 members to chase him down.";
			next;
			mes "About 3 hours later, all 18 members returned without any problem, and each man and woman shared the information that they had collected.";
			next;
			mes "They had discovered another world with a definitively different nature and environment. And indeed, people could also live there.";
			next;
			mes "The most surprising thing is the flow of time. The 18 assassins had stayed for about 2 weeks in there, yet they returned within 3 hours after departing.";
			next;
			mes "The last thing to be tested... was to send adventurers who volunteered to explore the new world.";
			next;
			mes "There was a flood of adventurer applications. Lots of volunteers disappeared over the dimensional gorge, and they brought back new data.";
			next;
			mes "The new world could support 3 completely different eco-systems dependant upon the race of people that lived there.";
			next;
			mes "The heterogenous phenomenon needed to be studied thoroughly and carefully in order to under the relationship between thair world and ours.";
			next;
			mes "Just when it was expected to be impossible to travel into a different world, the first page of a new chapter was opened.";
			close;
		case 2:
			mes "Long ago, there wasn't a sun, moon, or stars; just empty earth... and Ymir was born. Then, by making sons, Ymir grew.";
			next;
			mes "But, his sons grew as well and he was killed by Odin, Vili, and Ve; 3 brothers, Gods, that attacked from different sides.";
			next;
			mes "At that time of Ymir's fall his blood flooded the world... killing all in it's path.";
			next;
			mes "Only Hvergelmir of the Sapha tribe escaped from this flooding of blood. And he swore vengeance in Jotunheim, which is covered with foggy snow.";
			next;
			mes "Currently, one of the Sapha tribe has been discovered from beyond the Dimensional Gorge.";
			next;
			mes "Other than the Sapha tribe, there was another tribe beyond the time-space gap, known as the Laphine.";
			next;
			mes "The Laphine tribes gathered as well for an expedition to explore the time-space gap and figure out the World Tree's strange symptoms and perharps a cure method.";
			next;
			mes "The Laphine tribe was charged with the management of Yggdrasil, to establish their lands close to Asgard, and to protect the balance of Yggdrasil's magic power.";
			next;
			mes "The Laphine tribe has never contacted anyone outside of Asgard. But since they found that Yggdrasil's power if weakening...";
			next;
			mes "They have declared they will attend to the high courts for the first time in 1000 human years, since the end of the battles of Gods vs. Magicians.";
			close;
		}
	}
	else {
		mes "[Assistant Naomi]";
		mes "The doctor never ever tries to come back, and there're too many things to do... How can I do it all...";
		next;
		mes "[Assistant Naomi]";
		mes "Don't you see that I'm too busy? Don't dawdle, just go!";
		close;
	}
}

splendide,198,178,3	script	Grumbling Soldier#edq	447,3,3,{
	if (isequipped(2782) == 1) {
		mes "[Grumbling Soldier]";
		mes "Nowadays, the world has turned unstable. I can't even fly comfortably anymore.";
		next;
		if (ins_nyd == 5) {
			switch(select("What's with the cave up north?:Who are the Sapha tribesmen?:Hmm. We can talk later.")) {
			case 1:
				mes "[Grumbling Soldier]";
				mes "What? If you wander around there... you might return with injuries.";
				next;
				mes "[Grumbling Soldier]";
				mes "I don't know exactly how to explain it, but it's like it has a bad mood. There are lots of terrible monsters there.";
				next;
				mes "[Grumbling Soldier]";
				mes "They whisper to each other, so... something is there... But I don't care...";
				next;
				mes "[Grumbling Soldier]";
				mes "Might be... those Sapha tribesmen have dug in the cave before... They do have a special talent for digging.";
				set ins_nyd,51;
				close;
			case 2:
				mes "[Grumbling Soldier]";
				mes "Oh! It is because of them that we have been living here, a lowdown and dirty city, for over one hundred years.";
				next;
				mes "[Grumbling Soldier]";
				mes "They don't care if there's trouble with the Yggdrasil.";
				next;
				mes "[Grumbling Soldier]";
				mes "They are surely full of bad ideas, so... they have destroyed the Yggdrasil's root.";
				next;
				mes "[Grumbling Soldier]";
				mes "We are here to make sure that the Sapha don't make things worse.";
				close;
			case 3:
				close;
			}
		}
		else {
			mes "[Grumbling Soldier]";
			mes "Nowadays, the world has turned unstable. I can't even fly comfortably anymore.";
			next;
			mes "[Grumbling Soldier]";
			mes "What can you expect when Manuk giants start to dig into the world to destroy the Yggdrasil...";
			next;
			mes "[Grumbling Soldier]";
			mes "And the worst thing is... that strange things are strutting along the streets of the towns...";
			next;
			mes "[Grumbling Soldier]";
			mes "Yes, you... What do you think about the way the government is handling this...?";
			next;
			mes "[Grumbling Soldier]";
			mes "Although they ignore your track record, still, one should be careful...";
			close;
		}
	}
	else {
		mes "[Grumbling Soldier]";
		mes "SeLarsmar Di marThusVil U SeMushVohl";
		close;
	}
}

splendide,240,164,3	script	Sighing Soldier#edq	461,3,3,{
	if (isequipped(2782) == 1) {
		mes "[Sighing Soldier]";
		mes "When will we be finished with this combat with the Sapha? Ugghhhh...";
		next;
		if (ins_nyd == 5) {
			switch(select("What's with the cave up north?:Who are the Sapha tribesmen?:Hmm. We can talk later.")) {
			case 1:
				mes "[Sighing Soldier]";
				mes "Well... I'm not sure, but we have avoided going to that area.";
				next;
				mes "[Sighing Soldier]";
				mes "Sometimes, the dispatched researchers hang around here... I feel bad that there's nothing to see... without any reason...";
				next;
				mes "[Sighing Soldier]";
				mes "But the command officers make sure that there's something hidden in there.";
				next;
				mes "[Sighing Soldier]";
				mes "We don't know if the monsters there are strong, so we never checked it out. But on a personal level, nobody wants to go there...";
				set ins_nyd,51;
				close;
			case 2:
				mes "[Sighing Soldier]";
				mes "I don't know what others think about it... but we've had some trouble with our attitude against the Sapha tribes.";
				next;
				mes "[Sighing Soldier]";
				mes "We didn't try to solve the problems with talk. We attacked them first.";
				next;
				mes "[Sighing Soldier]";
				mes "Maybe... our command officers don't want to accept other species different than us...";
				next;
				mes "[Sighing Soldier]";
				mes "Don't misunderstand... Recently, we have talked about your particular species and our commanders feel grateful to you.";
				next;
				mes "[Sighing Soldier]";
				mes "Anyway... I'm just exhausted during this useless and nerve-wracking situation... Sigh.";
				close;
			case 3:
				close;
			}
		}
		else {
			mes "[Sighing Soldier]";
			mes "When will we be finished with this combat with the Sapha? Ugghhhh...";
			next;
			mes "[Sighing Soldier]";
			mes "Frankly, I don't think of you or any Sapha is our enemy. Sigh...";
			next;
			mes "[Sighing Soldier]";
			mes "Is there no way to resolve this by communicating? There's no meaning in useless combat! Geez.";
			close;
		}
	}
	else {
		mes "[Grumbling Soldier]";
		mes "VohlLarsmar Ha DielCyatas";
		close;
	}
}

spl_in01,109,60,3	script	Commander Lebiordirr#edq	435,3,3,{
	if (isequipped(2782) == 1) {
		if (ins_nyd == 51) {
			mes "[Commander Lebiordirr]";
			mes "Are you...? Are you the one collecting information from my soldiers...?";
			next;
			mes "[Commander Lebiordirr]";
			mes "You should be cautious. Our tribe has respected the existence of you humans but...";
			next;
			mes "[Commander Lebiordirr]";
			mes "I've taken a great risk in allowing you in here. So be wary.";
			next;
			mes "[Commander Lebiordirr]";
			mes "Don't attract too much attention because that would make your people look bad.";
			next;
			mes "[Commander Lebiordirr]";
			mes "Now, we don't need to talk much about this, so just go back where you came from.";
			next;
			mes "[Commander Lebiordirr]";
			mes "Unless you have any messages for me...? Your face says you do...";
			next;
			switch(select("No. Nothing. We can talk later.:I intend to stay. For good reasons.")) {
			case 1:
				close;
			case 2:
				mes "[Splendide Guard]";
				mes "Sir, I can drag this pest out right now.";
				next;
				mes "[Commander Lebiordirr]";
				mes "No. Let's hear an explanation. Good? Now, if you want...";
				next;
				mes "[Commander Lebiordirr]";
				mes "I have known that, recently, time has broken... so, you're here exploring for a solution, no?";
				next;
				mes "[Commander Lebiordirr]";
				mes "Our tribe has respected you, so just forget about the searching and exploring around here.";
				next;
				mes "[Commander Lebiordirr]";
				mes "I heard that you are to search for any treasure in the closed cave to the north.";
				next;
				mes "[Commander Lebiordirr]";
				mes "That place is banned by order of the Laphine tribe. So, people can't just go there without permission.";
				next;
				mes "[Commander Lebiordirr]";
				mes "If you can't follow this rule, I will stop associating with you and ban all of your people from here.";
				next;
				mes "[Commander Lebiordirr]";
				mes "We still have an unstable relationship with the Sapha, we usually don't worry about outsiders.";
				next;
				mes "[Commander Lebiordirr]";
				mes "Now, if you understand this, inform your friends.";
				set ins_nyd,61;
				close;
			}
		}
		else if (ins_nyd == 61) {
			mes "[Commander Lebiordirr]";
			mes "If you can't follow this rule, I will stop associating with you and ban all of your people from here.";
			next;
			mes "[Commander Lebiordirr]";
			mes "We still have an unstable relationship with the Sapha, we usually don't worry about outsiders.";
			next;
			mes "[Commander Lebiordirr]";
			mes "Now, if you understand this, inform your friends.";
			close;
		}
		else if (ins_nyd == 81) {
			mes "[Commander Lebiordirr]";
			mes "Why have you come back, outsider?";
			next;
			switch(select("To ask the Laphines about exploring...")) {
			case 1:
				mes "[Commander Lebiordirr]";
				mes "Exploring what? Choose your words wisely?";
				next;
				mes "[Commander Lebiordirr]";
				mes "Do we not understand each other? What do you want?";
				next;
				switch(select("I must explore the cave.")) {
				case 1:
					mes "[Commander Lebiordirr]";
					mes "That means... that you are ignoring my warning? Is this your decision or are you just following orders?";
					next;
					switch(select("I'm just following orders")) {
					case 1:
						mes "[Commander Lebiordirr]";
						mes "Are you trying to insult me on purpose, outsider?";
						next;
						mes "[Commander Lebiordirr]";
						mes "Why do you want to explore? It better be a very good reason.";
						next;
						switch(select("It's about Dr. Magnifier's report...")) {
						case 1:
							mes "[Commander Lebiordirr]";
							mes "So... What do I care about an outsider's report?";
							next;
							mes "[Commander Lebiordirr]";
							mes "To protect the Yggdrasil! That's the Laphine's fate. Can you say that about yourself?";
							next;
							mes "[Commander Lebiordirr]";
							mes "Do you have any proof of your birth with Odin and Yggdrasil's blessings?";
							next;
							mes "[Commander Lebiordirr]";
							mes "I shouldn't say anymore. Please don't take this as being rude but, please go now!";
							next;
							switch(select("Then I'll ask the Sapha for help.")) {
							case 1:
								mes "[Commander Lebiordirr]";
								mes "What are you talking about, outsider?";
								next;
								mes "[Splendide Guard]";
								mes "Sir, I can get rid of this rude outsider if you wish?";
								next;
								mes "[Commander Lebiordirr]";
								mes "No, wait... The Sapha tribesmen know the meaning of that place? Did you ask to associate with them?";
								next;
								mes "[Commander Lebiordirr]";
								mes "Ah... How tricky... Are you testing us?";
								next;
								mes "[Splendide Guard]";
								mes "Calm down, sir. I will throw this outsider into prison.";
								next;
								mes "[Commander Lebiordirr]";
								mes "No... No, wait. Ok, I will accept it. I can accept your admission into the Holy Sekos.";
								next;
								mes "[Commander Lebiordirr]";
								mes "Okay. If you are a servant of the Yggdrasil as you claim to be, I will allow you admission. But I am not responsible for your actions.";
								next;
								mes "[Commander Lebiordirr]";
								mes "And make sure that if you find anything out of the ordinary in there, that you share it with us!";
								next;
								switch(select("But of course!")) {
								case 1:
									mes "[Commander Lebiordirr]";
									mes "So... since I have agreed to allow your exploration... Arioss, help them, and take the results.";
									next;
									mes "[Aide Arioss]";
									mes "Sir... are you sure? This is an invasion of the Holy Sekos...";
									next;
									mes "[Commander Lebiordirr]";
									mes "Invasion is a harsh word. I am allowing them entrance. Better them than a dirty giant. It might just save our lives...";
									next;
									mes "[Commander Lebiordirr]";
									mes "Here, outsider. Arioss will explain the situation with the giants. Talk with him...";
									set ins_nyd,91;
									close;
								}
							}
						}
					}
				}
			}
		}
		else if ((ins_nyd == 91) || (ins_nyd == 101) || (ins_nyd == 111) || (ins_nyd == 200) || (ins_nyd == 201) || (ins_nyd == 202)) {
			mes "[Commander Lebiordirr]";
			mes "Outsider. Arioss here will explain the situation with the giants, talk with him...";
			close;
		}
		else if ((ins_nyd == 72) || (ins_nyd == 82) || (ins_nyd == 92) || (ins_nyd == 102) || (ins_nyd == 112) || (ins_nyd == 122) || (ins_nyd == 132)) {
			mes "[Commander Lebiordirr]";
			mes "Welcome to the Laphine camp in Splendide, outsider... I am Lebiordirr. I am in charge here.";
			next;
			mes "[Commander Lebiordirr]";
			mes "Be cautious of your actions. We already have lots of problems with the Sapha tribe as it is.";
			next;
			mes "[Commander Lebiordirr]";
			mes "If you are cautious with your actions, I won't place any harm on you. Fare well.";
			close;
		}
		else if (ins_nyd == 203) {
			mes "[Commander Lebiordirr]";
			mes "I was waiting for you. You came back safe, that's good news. Did you find anything?";
			next;
			switch(select("Explain about the guardian Nidhoggur's leave.")) {
			case 1:
				mes "[Commander Lebiordirr]";
				mes "What? The Guardian is not in his nest...?";
				next;
				mes "[Commander Lebiordirr]";
				mes "And because of his disppearance, the Guardian's Shadow is currently destorying the roots of the World Tree...?";
				next;
				mes "[Commander Lebiordirr]";
				mes "That's unbelievable. You must be insulting the Guardian's and our pride. I did not provide you with our help for that.";
				next;
				mes "[Aide Arioss]";
				mes "It's not like that, Commander, they speak the truth.";
				next;
				mes "[Commander Lebiordirr]";
				mes "What are you saying? Arioss, do not forget your place as the Guardian's priest.";
				next;
				mes "[Aide Arioss]";
				mes "Even though I have not seen it with my own eyes, this does explain why we lost communication with the great World Tree Yggdrasil.";
				next;
				mes "[Commander Lebiordirr]";
				mes "Do not speak of His Highness, the World Tree Yggdrasil's name so lightly.";
				next;
				switch(select("Pass along World Tree Yggdrasil's words.")) {
				case 1:
					mes "[Commander Lebiordirr]";
					mes "His Highness, the World Tree Yggdrasil, said that?";
					next;
					mes "[Commander Lebiordirr]";
					mes "The reason behind all of this... is not because of the Sapha tribe, but because of the sudden leave of the Guardian? And the Guaridan has given up on his identity?";
					next;
					mes "[Commander Lebiordirr]";
					mes "This must be reported... reported to the High Priest of Alfheim... Unbelievable.";
					next;
					mes "[Aide Arioss]";
					mes "Commander... do we need to alert the rest of the tribe...?";
					next;
					mes "[Commander Lebiordirr]";
					mes "You don't need to worry about this, Arioss. As commander, I will handle it. You just pretend nothing happened...";
					next;
					mes "[Commander Lebiordirr]";
					mes "Strange one, thank you for your cooperation in such situations... Please forget what has happened today...";
					next;
					mes "[Commander Lebiordirr]";
					mes "Arioss, please compensate this strange one for the help. I need to go rest...";
					next;
					mes "[Aide Arioss]";
					mes "Commander...";
					set ins_nyd,121;
					close;
				}
			}
		}
		else if ((ins_nyd == 121) || (ins_nyd == 131)) {
			mes "[Commander Lebiordirr]";
			mes "Strange one, thank you for your cooperation in such situations... Please forget what has happened today...";
			close;
		}
		else {
			mes "[Commander Lebiordirr]";
			mes "Welcome to the Laphine camp in Splendide, outsider... I am Lebiordirr. I am in charge here.";
			next;
			mes "[Commander Lebiordirr]";
			mes "Be cautious of your actions. We already have lots of problems with the Sapha tribe as it is.";
			next;
			mes "[Commander Lebiordirr]";
			mes "If you are cautious with your actions, I won't place any harm on you. Fare well.";
			close;
		}
	}
	else {
		mes "[Commander Lebiordirr]";
		mes "ThusDurnah Ra SharVeldIyaz U UorAmanDur Yee neaOsaAdor Yee...";
		close;
	}
}

spl_in01,104,56,3	script	Aide Arioss#edq	437,3,3,{
	if (isequipped(2782) == 1) {
		if (ins_nyd == 91) {
			mes "[Aide Arioss]";
			mes "Sigh, since it's Commander Lebiordirr's wish, I will cooperate with you...";
			next;
			mes "[Aide Arioss]";
			mes "You want to go there to find out exactly what that place is?";
			next;
			mes "[Aide Arioss]";
			mes "Alright...it's as you have assumed, a place connecting to the World Tree. It's also the Guardian's Nest.";
			next;
			switch(select("Guardian's Nest?")) {
			case 1:
				mes "[Aide Arioss]";
				mes "Yes, that's the nest of Nidhoggur, the Guardian of the World Tree...";
				next;
				mes "[Aide Arioss]";
				mes "Only a marked guardian's servant from the Laphine tribe is allowed to enter.";
				next;
				mes "[Aide Arioss]";
				mes "That place was initially closed off from the public, but then the giants of the Sapha tribe turned things around...";
				next;
				mes "[Aide Arioss]";
				mes "To obtain more minerals, they started to dig with madness.";
				next;
				mes "[Aide Arioss]";
				mes "In the end, they have harmed a part of the World Tree's root that lies very close to their mine, and thus, the World Tree became very ill.";
				next;
				mes "[Aide Arioss]";
				mes "After we have arrived here knowing the facts, the World Tree was already in a very bad state due to the many factories built by the Sapha tribe.";
				next;
				mes "[Aide Arioss]";
				mes "Even though, for a long time, we have been attacking the Sapha tribe, trying to force them to leave, they are not so easily defeated, leading to this stalemate.";
				next;
				mes "[Aide Arioss]";
				mes "During this time, your people have travelled through the space-time gap to this land.";
				next;
				mes "[Aide Arioss]";
				mes "Because of those many unexpected reasons, the Guardian's nest, which was meant to stay hidden deep underground, has been discovered by your race...";
				next;
				mes "[Aide Arioss]";
				mes "Now you understand how serious this situation is. Because of the Sapha tribe, we are no longer able to approach the Guardian, and seek his teachings of wisdom.";
				next;
				mes "[Aide Arioss]";
				mes "It's very insulting to our pride... but if you can help us enter that place again, and speak to the Guardian, maybe we can find a solution...";
				next;
				mes "[Aide Arioss]";
				mes "Then we'll leave it to you. As for your request, I will do my best to cooperate.";
				next;
				mes "[Aide Arioss]";
				mes "I have already told you what you wanted to know... If you need anything else, just let me know.";
				set ins_nyd,101;
				close;
			}
		}
		else if (ins_nyd == 101) {
			mes "[Aide Arioss]";
			mes "Ah, you said that there is a strange power blocking the entrance to the Guardian's nest, right?";
			next;
			mes "[Aide Arioss]";
			mes "That's because only the ones chosen by the Guardian may enter.";
			next;
			mes "[Aide Arioss]";
			mes "We have been the Guardian's servants for generations, and have been protecting the World Tree ever since.";
			next;
			mes "[Aide Arioss]";
			mes "Before we were captured and brought here, there were 3 servants including me. Our task was to heal the World Tree.";
			next;
			mes "[Aide Arioss]";
			mes "One was killed in our last war with the Sapha tribe... and the other has been taken captive.";
			next;
			mes "[Aide Arioss]";
			mes "I will give you my proof. Don't worry, I'm just temporarily marking you as a guardian's servant.";
			specialeffect2 EF_HOLYHIT;
			next;
			mes "[Aide Arioss]";
			mes "Also, remember this spell, it's needed to open the gate of the Guardian.";
			next;
			mes "[Aide Arioss]";
			mes "AnomarDu Ha OdesUdenVer Ie ";
			next;
			mes "[Aide Arioss]";
			mes "remuAlaAsh Mu ModtasAn Yu Dur";
			next;
			mes "[Aide Arioss]";
			mes "TalsehrDur So CyaReMush Di DielAlaWos Ie RuffserIman Ie ";
			next;
			mes "[Aide Arioss]";
			mes "Go find the fairy guarding the gate, and say this spell.";
			next;
			mes "[Aide Arioss]";
			mes "The proof and the spell will confirm that you are one of the Guardian's servants.";
			next;
			mes "[Aide Arioss]";
			mes "Please meet the Guardian, and come back with an answer to everything. I believe in you.";
			set ins_nyd,111;
			close;
		}
		else if ((ins_nyd == 101) || (ins_nyd == 111) || (ins_nyd == 200) || (ins_nyd == 201) || (ins_nyd == 202)) {
			mes "[Aide Arioss]";
			mes "Please meet with the Guardian and take a wise answer from him. I will trust you.";
			close;
		}
		else if ((ins_nyd == 72) || (ins_nyd == 82) || (ins_nyd == 92) || (ins_nyd == 102) || (ins_nyd == 112)) {
			mes "[Aide Arioss]";
			mes "... ...";
			next;
			mes "Not even caring about this a single bit? What a stupid woman...";
			close;
		}
		else if (ins_nyd == 121) {
			mes "[Aide Arioss]";
			mes "Things have actually become like this... as priests of the Guardian, it's our responsibility...";
			next;
			mes "[Aide Arioss]";
			mes "I represent the entire Laphine tribe, and show you our gratitude. This must all be very hard for our commander...";
			next;
			mes "[Aide Arioss]";
			mes "It can't compare with the effort you have put in for us... but please accept our token of friendship.";
			getexp 1500000,350000;
			getitem 6081,10; //Splendide_Coin
			set ins_nyd,131;
			mes "[Aide Arioss]";
			mes "If we can help you with anything in the future, we will do all we can to assist you. Once again, thank you.";
			close;
		}
		else if (ins_nyd == 131) {
			mes "[Aide Arioss]";
			mes "If we can help you with anything in the future, we will do all we can to assist you. Once again, thank you.";
			close;
		}
		else {
			mes "[Aide Arioss]";
			mes "... ...";
			next;
			mes "Never give attention to... um... a blunt woman...";
			close;
		}
	}
	else {
		mes "[Aide Arioss]";
		mes "AmanVilShar Ie DorLuShar Mu Re";
		close;
	}
}

spl_in01,110,21,0	script	trap#s_edq	-1,10,10,{
OnTouch_:
	if ((isequipped(2782) == 1) && (ins_nyd == 51)) {
		mes "[Splendide Guard]";
		mes "That man is currently under arrest.";
		next;
		mes "[Splendide Guard]";
		mes "You'd better behave, Aide Arioss says that different races shall be treated the same way.";
		warp "spl_in01",109,58;
		close;
	}
	end;
}

spl_in01,101,52,5	script	Splendide Guard#1_edq	447,1,1,{
	if (isequipped(2782) == 1) {
		mes "[Splendide Guard]";
		mes "This is the Splendide office. Don't act impolitely.";
		close;
	}
	else {
		mes "[Splendide Guard]";
		mes "ThusDurnah Ra SharVeldIyaz U UorAmanDur Yee neaOsaAdor Yee ";
		close;
	}
}

spl_in01,118,52,3	script	Splendide Guard#2_edq	447,1,1,{
	if (isequipped(2782) == 1) {
		mes "[Splendide Guard]";
		mes "This is the Splendide office. Don't act impolitely.";
		close;
	}
	else {
		mes "[Splendide Guard]";
		mes "ThusDurnah Ra SharVeldIyaz U UorAmanDur Yee neaOsaAdor Yee ";
		close;
	}
}

man_in01,311,57,3	script	Neat Etorr#edq	453,3,3,{
	if (isequipped(2782) == 1) {
		if (ins_nyd == 52) {
			mes "[Neat Etorr]";
			mes "Guest from the other world, please excuse our rudeness...";
			next;
			mes "[Neat Etorr]";
			mes "As the leader of the Sapha tribe, I have something very important to tell you. That is why I asked for you...";
			next;
			mes "[Neat Etorr]";
			mes "Your race has come to this land not long ago through the space-time gap.";
			next;
			mes "[Neat Etorr]";
			mes "You should have already seen what is going on. We have been at war with the Laphine tribe for a very long time.";
			next;
			mes "[Neat Etorr]";
			mes "Recently, because you do not understand the current situations, you have done some things that I, as a leader, can't ignore any longer.";
			next;
			mes "[Neat Etorr]";
			mes "I hope that your people will becareful of your actions on this land, and terminate any unnecessary interventions.";
			next;
			switch(select("Leave quietly.:Don't know what he's talking about, and ask for details.")) {
			case 1:
				close;
			case 2:
				mes "[Manuk Field Elite Soldier]";
				mes "Are we really just letting these people go after they have stirred up problems on our land?";
				next;
				mes "[Neat Etorr]";
				mes "After what happened, I don't think they know what else they can do. Let me explain.";
				next;
				mes "[Neat Etorr]";
				mes "For now, we have acknowledged your race, and have been tolerant towards your activities.";
				next;
				mes "[Neat Etorr]";
				mes "But we have recently started to suspect you of being the Laphine tribe's eyes and ears.";
				next;
				mes "[Neat Etorr]";
				mes "Not long ago, We have heard that you have found remains in an abandoned cave in the north, and have been conducting investigations and researches regarding it.";
				next;
				mes "[Neat Etorr]";
				mes "We have captured a Laphine tribe priest during the last war, and we have heard that you have had contact with said captive.";
				next;
				mes "[Neat Etorr]";
				mes "That captive is the only reference for our tribe, so we have taken good care of her. She is related to your current investigation.";
				next;
				mes "[Neat Etorr]";
				mes "For your people, who have no direct connections, it is not a place satisfy your curiosity. I hope that you stop your investigations, and mind your own business.";
				next;
				mes "[Neat Etorr]";
				mes "If you don't accept our request, then do not expect any cooperations between our races in the future.";
				next;
				mes "[Neat Etorr]";
				mes "Because of the war against the Laphine tribe, everything is a mess. But even then, we cannot allow a foreign race to interfere.";
				next;
				mes "[Neat Etorr]";
				mes "You have heard it all, now please report back to your race.";
				set ins_nyd,62;
				close;
			}
		}
		else if (ins_nyd == 62) {
			mes "[Neat Etorr]";
			mes "That captive is the only reference for our tribe, so we have taken good care of her. She is related to your current investigation.";
			next;
			mes "[Neat Etorr]";
			mes "For your people, who have no direct connections, it is not a place to satisfy your curiosity. I hope that you stop your investigations, and mind your own business.";
			next;
			mes "[Neat Etorr]";
			mes "If you don't accept our request, then do not expect any cooperations between our races in the future.";
			close;
		}
		else if (ins_nyd == 72) {
			mes "[Neat Etorr]";
			mes "Recently, because you do not understand the current situations, you have done some things that I, as a leader, can't ignore any longer.";
			next;
			mes "[Neat Etorr]";
			mes "I hope that your people will becareful of your actions on this land, and terminate any unnecessary interventions.";
			close;
		}
		else if (ins_nyd == 82) {
			mes "[Neat Etorr]";
			mes "Do you need me for something, strange one?";
			next;
			switch(select("Received invitation from the Sapha tribe to cooperate and investigate.")) {
			case 1:
				mes "[Neat Etorr]";
				mes "Cooperate and investigate? What do you mean?";
				next;
				mes "[Neat Etorr]";
				mes "It seems like you did not understand what I said. What are you thinking?";
				next;
				switch(select("Please allow me to investigate the cave.")) {
				case 1:
					mes "[Neat Etorr]";
					mes "From what I can tell, you are disrespecting my request. Is this your intention, or your people's intention?";
					next;
					switch(select("It's our intention.")) {
					case 1:
						mes "[Neat Etorr]";
						mes "Ah, it is not an easy decision. You frighten me.";
						next;
						mes "[Neat Etorr]";
						mes "But may I ask why you want to do this?";
						next;
						switch(select("Explain Professor Magnifier's theory.")) {
						case 1:
							mes "[Neat Etorr]";
							mes "It's surprising that you are able to obtain such results. We also have a similar theory.";
							next;
							mes "[Neat Etorr]";
							mes "At least we also think that we must use the Laphine prisoner to get information.";
							next;
							mes "[Neat Etorr]";
							mes "This problem has been the root of our conflicts with the Laphine tribe. Of course, it may also be an opportunity to resolve them.";
							next;
							mes "[Neat Etorr]";
							mes "Therefore, it's more of a reason to depend on our own powers. There is no room for you to interfere. Please give up.";
							next;
							switch(select("Give up request, and ask Laphine tribe for help instead.")) {
							case 1:
								mes "[Manuk Field Elite Soldier]";
								mes "You finally showed your true face. I knew you were a spy from the Laphine tribe!";
								next;
								mes "[Neat Etorr]";
								mes "Ah...you'd go as far as saying that. What good will it do for you, helping the Laphine tribe?";
								next;
								mes "[Neat Etorr]";
								mes "Those obnoxious dwarves offended our right of living, and are trying to get rid of us.";
								next;
								mes "[Neat Etorr]";
								mes "The reason we don't allow anyone to enter that site is because it's full of suspicions.";
								next;
								mes "[Neat Etorr]";
								mes "Alright, I'll approve of your request, and let you investigate the secret the Laphine tribe has hidden inside the cave.";
								next;
								mes "[Neat Etorr]";
								mes "If you promise to share all of your research results and findings, we will accept your request.";
								next;
								switch(select("Of course.")) {
								case 1:
									mes "[Neat Etorr]";
									mes "Alright, from now on, we will cooperate with you, and allow you to directly communicate with the Laphine prisoner.";
									next;
									mes "[Manuk Field Elite Soldier]";
									mes "Commander...are you sure of this? We don't even know if they're friend or foe...";
									next;
									mes "[Neat Etorr]";
									mes "With just our powers, it's impossible to figure out what the Laphine is up to. I think the past has proven that.";
									next;
									mes "[Neat Etorr]";
									mes "What they're doing right now could potentially lead us to a solution.";
									next;
									mes "[Neat Etorr]";
									mes "Strange one, we hope our cooperation will be a good one. Now please go interrogate the Laphine prisoner.";
									set ins_nyd,92;
									close;
								}
							}
						}
					}
				}
			}
		}
		else if ((ins_nyd == 92) || (ins_nyd == 102) || (ins_nyd == 112) || (ins_nyd == 200) || (ins_nyd == 201) || (ins_nyd == 202)) {
			mes "[Neat Etorr]";
			mes "Strange one, we hope our cooperation will be a good one. Now please go interrogate the Laphine prisoner.";
			close;
		}
		else if ((ins_nyd == 71) || (ins_nyd == 81) || (ins_nyd == 91) || (ins_nyd == 101) || (ins_nyd == 111) || (ins_nyd == 121) || (ins_nyd == 131)) {
			mes "[Neat Etorr]";
			mes "Outsider. Welcome to Manuk, the village of the Sapha. I am its representative, Neat Etorr.";
			next;
			mes "[Neat Etorr]";
			mes "We are just a small village, nothing special... but rest comfortably.";
			close;
		}
		else if (ins_nyd == 203) {
			mes "[Neat Etorr]";
			mes "I was waiting for you. It's good that you're safe. Did you find anything?";
			next;
			switch(select("Explain the sudden leave of the Guardian.")) {
			case 1:
				mes "[Neat Etorr]";
				mes "So... that's the nest of the Guardian of the World Tree, the sacred grounds for the Laphine tribe.";
				next;
				mes "[Neat Etorr]";
				mes "But because of the angry leave of the Guardian, his shadow is wreaking havoc on the World Tree?";
				next;
				mes "[Neat Etorr]";
				mes "If what you're saying is true, then there is no more reason for us to continue fighting the Laphine tribe...";
				next;
				mes "[Neat Etorr]";
				mes "What a huge discovery... So Nidhoggur is no longer the Guardian of the World Tree...?";
				next;
				mes "[Neat Etorr]";
				mes "Nidhoggur's Shadow came to exist in this world, and harmed the roots of the World Tree... what a disaster.";
				next;
				switch(select("Pass along the World Tree Yggdrasil's message.")) {
				case 1:
					mes "[Neat Etorr]";
					mes "Is that what the priest of the Guardian said?";
					next;
					mes "[Neat Etorr]";
					mes "From now on, we need to talk about this with the Laphine tribe.";
					next;
					mes "[Neat Etorr]";
					mes "But of course...we don't know if they're reasonable enough...hehe.";
					next;
					mes "[Neat Etorr]";
					mes "This is all we needed from you...What is left is business between us and the Laphine tribe.";
					next;
					mes "[Neat Etorr]";
					mes "Thank you for helping us with such a huge problem. You may forget about it now.";
					next;
					mes "[Neat Etorr]";
					mes "It's not a lot, but please this as a token of our appreciation.";
					getexp 1500000,350000;
					getitem 6080,10; //Manuk_Coin
					set ins_nyd,132;
					close;
				}
			}
		}
		else if (ins_nyd == 132) {
			mes "[Neat Etorr]";
			mes "Strange one, thank you for helping us in the time of need. I will never forget your kindness.";
			close;
		}
		else {
			mes "[Neat Etorr]";
			mes "Outsider. Welcome to the Manuk village of Sapha. I am its representative, Neat Etorr.";
			next;
			mes "[Neat Etorr]";
			mes "We are just a small village, nothing special... but rest comfortably.";
			close;
		}
	}
	else {
		mes "[Neat Etorr]";
		mes "Tkeh likek Ohek QekhlHkl PkedlioH.";
		close;
	}
}

man_in01,286,61,5	script	Manuk Guard#1_edq	450,1,1,{
	if (isequipped(2782) == 1) {
		mes "[Manuk Guard]";
		mes "I'm guarding this Laphine prisoner. Leave me alone.";
		close;
	}
	else {
		mes "[Manuk Guard]";
		mes "Klekod Oi Thekd Pheid Okei.";
		close;
	}
}

man_in01,295,61,3	script	Manuk Guard#2_edq	450,1,1,{
	if (isequipped(2782) == 1) {
		mes "[Manuk Guard]";
		mes "I'm guarding this Laphine prisoner. Leave me alone.";
		close;
	}
	else {
		mes "[Manuk Guard]";
		mes "Liek QUekdk Ohei Vue.";
		close;
	}
}

man_in01,291,62,3	script	Laphine Prisoner#edq	437,3,3,{
	if (isequipped(2782) == 1) {
		if (ins_nyd == 5) {
			mes "[Laphine Prisoner]";
			mes "You... are not of the Sapha tribe... Are you... an outsider?";
			next;
			mes "[Laphine Prisoner]";
			mes "Have you ever come in contact with the Laphine tribe? Have you ever been to Splendide?";
			next;
			mes "[Laphine Prisoner]";
			mes "Please, talk to my people in Splendide. They will come to help me.";
			next;
			switch(select("What happened to you?:What's in the cave to the north?:Tell me about your tribe.:I will leave you alone.")) {
			case 1:
				mes "[Laphine Prisoner]";
				mes "During out last battle with the Sapha tribe... they caught me and took me prisoner.";
				next;
				mes "[Laphine Prisoner]";
				mes "The Sapha tribe attacked first. They are destroying the World Tree.";
				next;
				mes "[Laphine Prisoner]";
				mes "That's why the war started. But I don't want to fight with the Sapha tribe anymore...";
				next;
				mes "[Laphine Prisoner]";
				mes "If it wasn't for that... I wouldn't survive here...";
				next;
				mes "[Laphine Prisoner]";
				mes "Please. Bring this news to all of Splendide. Send someone to save me... or they might kill me.";
				close;
			case 2:
				mes "[Laphine Prisoner]";
				mes "There is...";
				next;
				mes "[Laphine Prisoner]";
				mes "No... I can't tell you... It's the secret of our tribe...";
				next;
				mes "[Laphine Prisoner]";
				mes "I just want to say this...if the Sapha tribe intrude that place, we will never forgive them!";
				set ins_nyd,52;
				close;
			case 3:
				mes "[Laphine Prisoner]";
				mes "The Laphines have protected the Yggdrasil World Tree for generations.";
				next;
				mes "[Laphine Prisoner]";
				mes "We live in a... different time, different land... we came for an expedition.";
				next;
				mes "[Laphine Prisoner]";
				mes "After we received reports from our spy about the World Tree's strange symptoms, we recgnized the Manuk's existence.";
				next;
				mes "[Laphine Prisoner]";
				mes "They are mining metal, and in so doing, destroying the World Tree's roots...";
				next;
				mes "[Laphine Prisoner]";
				mes "So we dispatched an expedition here. Soonafter, the war with the Sapha began...";
				close;
			case 4:
				close;
			}
		}
		else if (ins_nyd == 92) {
			mes "[Laphine Prisoner]";
			mes "The sapha tribe went as far as cooperating with an unknown race?";
			next;
			mes "[Laphine Prisoner]";
			mes "What is your purpose? Why do you want to know what that place is?";
			next;
			mes "[Laphine Prisoner]";
			mes "lright...it's as you have assumed, a place connecting to the World Tree. It's also the Guardian's Nest.";
			next;
			switch(select("Guardian's Nest?")) {
			case 1:
				mes "[Laphine Prisoner]";
				mes "Yes, that's the nest of Nidhoggur, the Guardian of the World Tree...";
				next;
				mes "[Laphine Prisoner]";
				mes "Only a marked guardian's servant from the Laphine tribe is allowed to enter.";
				next;
				mes "[Laphine Prisoner]";
				mes "That place was initially closed off from the public, but then the giants of the Sapha tribe turned things around...";
				next;
				mes "[Laphine Prisoner]";
				mes "To obtain more minerals, they started to dig with madness.";
				next;
				mes "[Laphine Prisoner]";
				mes "In the end, they have harmed a part of the World Tree's root that lies very close to their mine, and thus, the World Tree became very ill.";
				next;
				mes "[Laphine Prisoner]";
				mes "After we have arrived here knowing the facts, the World Tree was already in a very bad state due to the many factories built by the Sapha tribe.";
				next;
				mes "[Laphine Prisoner]";
				mes "Even though, for a long time, we have been attacking the Sapha tribe, trying to force them to leave, they are not so easily defeated, leading to this stalemate.";
				next;
				mes "[Laphine Prisoner]";
				mes "During this time, your people have travelled through the space-time gap to this land.";
				next;
				mes "[Laphine Prisoner]";
				mes "Because of those many unexpected reasons, the Guardian's nest, which was meant to stay hidden deep underground, has been discovered by your race...";
				next;
				mes "[Laphine Prisoner]";
				mes "Now you understand how serious this situation is. Because of the Sapha tribe, we are no longer able to approach the Guardian, and seek his teachings of wisdom.";
				next;
				mes "[Laphine Prisoner]";
				mes "Hmph...even if I don't cooperate, I know you will find other means to get in...";
				next;
				mes "[Laphine Prisoner]";
				mes "Looking at the current situation of the Laphine tribe, we do not have enough power to surround the Manuk fields, and chase the giants away.";
				next;
				mes "[Laphine Prisoner]";
				mes "Okay, if it has already become like this, I will help you. There are no dead-ends. If you keep going, you will find a solution.";
				next;
				mes "[Laphine Prisoner]";
				mes "Even if I don't say anything, my situation will not change.";
				next;
				mes "[Laphine Prisoner]";
				mes "I have already told you everything you wanted to hear. If you have any other requests, please let me know.";
				set ins_nyd,102;
				close;
			}
		}
		else if (ins_nyd == 102) {
			mes "[Laphine Prisoner]";
			mes "Ah, you said that there is a strange power blocking the entrance to the Guardian's nest, right?";
			next;
			mes "[Laphine Prisoner]";
			mes "That's because only the ones chosen by the Guardian may enter.";
			next;
			mes "[Laphine Prisoner]";
			mes "We have been the Guardian's servants for generations, and have been protecting the World Tree ever since.";
			next;
			mes "[Laphine Prisoner]";
			mes "Before we were captured and brought here, there were 3 servants including me. Our task was to heal the World Tree.";
			next;
			mes "[Laphine Prisoner]";
			mes "One was killed in our last war with the Sapha tribe...and I have been taken captive.";
			next;
			mes "[Laphine Prisoner]";
			mes "I will give you my proof. Don't worry, I'm just temporarily marking you as a guardian's servant.";
			specialeffect2 EF_HOLYHIT;
			next;
			mes "[Laphine Prisoner]";
			mes "Also, remember this spell, it's needed to open the gate of the Guardian.";
			next;
			mes "[Laphine Prisoner]";
			mes "AnomarDu Ha OdesUdenVer Ie ";
			next;
			mes "[Laphine Prisoner]";
			mes "remuAlaAsh Mu ModtasAn Yu Dur";
			next;
			mes "[Laphine Prisoner]";
			mes "TalsehrDur So CyaReMush Di DielAlaWos Ie RuffserIman Ie ";
			next;
			mes "[Laphine Prisoner]";
			mes "Go find the fairy guarding the gate, and say this spell.";
			next;
			mes "[Laphine Prisoner]";
			mes "he proof and the spell will confirm that you are one of the Guardian's servants.";
			next;
			mes "[Laphine Prisoner]";
			mes "Please meet the Guardian, and come back with an answer to everything. And tell the answer to...";
			set ins_nyd,112;
			close;
		}
		else if ((ins_nyd == 71) || (ins_nyd == 81) || (ins_nyd == 91) || (ins_nyd == 101) || (ins_nyd == 111) || (ins_nyd == 121) || (ins_nyd == 131)) {
			mes "[Laphine Prisoner]";
			mes "... ...";
			next;
			mes "[Manuk Guard]";
			mes "Hey, outsider! Step away from the prisoner!";
			close;
		}
		else if (ins_nyd == 112) {
			mes "[Laphine Prisoner]";
			mes "Please meet the Guardian, and come back with an answer to everything. And tell the answer to...";
			close;
		}
		else if (ins_nyd == 132) {
			mes "[Laphine Prisoner]";
			mes "Yes...I heard your conversation with the Sapha tribe...";
			next;
			mes "[Laphine Prisoner]";
			mes "If our tribe were to really trust in the Sapha tribe...I don't know.";
			next;
			mes "[Laphine Prisoner]";
			mes "Our hatred towards them has already reached an abnormal level...";
			next;
			mes "[Laphine Prisoner]";
			mes "Those giants...can they really be trusted?";
			next;
			mes "[Laphine Prisoner]";
			mes "It's...it's better if you don't believe the one called Etorr...the minds of the Sapha tribe is unpredictable.";
			close;
		}
		else {
			mes "[Laphine Prisoner]";
			mes "... ...";
			next;
			mes "[Manuk Guard]";
			mes "Hey, outsider! Step away from the prisoner!";
			close;
		}
	}
	else {
		mes "[Laphine Prisoner]";
		mes "AmanVilShar Ie DorLuShar Mu Re";
		close;
	}
}

man_in01,282,42,0	script	trap#edq2	-1,10,10,{
OnTouch_:
	if ((isequipped(2782) == 1) && (ins_nyd == 52)) {
		mes "[Manuk Field Elite Soldier]";
		mes "This is Neat Etorr's order. Please come with us to see him.";
		next;
		mes "[Manuk Field Elite Soldier]";
		mes "Bring him to Neat Etorr. All soldiers be prepared.";
		warp "man_in01",311,54;
		close;
	}
	end;
}

// First floor
1@nyd,213,277,5	script	Murdered Yggdrasilid#1F	437,5,5,{
	if ('ins_nyd2 == 0) {
		mes "When a faint light enters your heart, a voice sounds in your head.";
		next;
		mes "[World Tree World Tree Yggdrasil]";
		mes "It's all over... servants of the Guardian... Hurry up and leave this place.";
		next;
		while (1) {
			switch(select("Who are you?:What do you mean?")) {
			case 1:
				mes "[World Tree World Tree Yggdrasil]";
				mes "I... I am the World Tree Yggdrasil, servant of the Guardian of Nidhoggur, as well as the High Priest leading the Laphine Tribe.";
				next;
				mes "[World Tree World Tree Yggdrasil]";
				mes "So you're not priestess of the Laphine Tribe... How did you get in? No, there's no time to answer that.";
				next;
				mes "[World Tree World Tree Yggdrasil]";
				mes "Hurry... and leave... leave this place before it's too late.";
				next;
				break;
			case 2:
				mes "[World Tree World Tree Yggdrasil]";
				mes "The guardian... something's wrong with the guardian. I don't know what made him like this.";
				next;
				mes "[World Tree World Tree Yggdrasil]";
				mes "This... this is no longer the nest of the Guardian of the World Tree Yggdrasil.";
				next;
				mes "[World Tree Yggdrasil]";
				mes "Darkness took over the Guardian and destroyed all living things... now this place has become the cursed home of monsters.";
				next;
				mes "[World Tree Yggdrasil]";
				mes "Now the vile Nidhoggur's Shadow is wreaking havoc here...";
				next;
				mes "[World Tree Yggdrasil]";
				mes "Now's not too late, hurry and get out... tell the Laphine Tribe about this... tell the commanders of Alfheim...";
				next;
				mes "[World Tree Yggdrasil]";
				mes "My soul... it has been trapped here. You're the only ones I can trust now.";
				next;
				set .@exit,1;
			}
			if (.@exit) break;
		}
		switch(select("Nidhoggur's Shadow?")) {
		case 1:
			mes "[World Tree Yggdrasil]";
			mes "The Guardian Nidhoggur... he's not in the nest.";
			next;
			mes "[World Tree Yggdrasil]";
			mes "He...for some reason abandoned his own shadow, and left.";
			next;
			mes "[World Tree Yggdrasil]";
			mes "All that's left, is the ugly Shadow of the Guardian of Nidhoggur...the Shadow that is going mad.";
			next;
			mes "[World Tree Yggdrasil]";
			mes "The Shadow sucked all the nutrients from the World Tree Yggdrasil, and has gone mad when there is nothing more left to obtain. Now, he wants this land.";
			next;
			mes "[World Tree Yggdrasil]";
			mes "Once the ugly Shadow leaves here to steal power from the other World Yggdrasil Trees, there will be great destruction. This world will become hell.";
			next;
			mes "[World Tree Yggdrasil]";
			mes "You must... tell the commanders of Alfheim about this, and come up with a plan. Only them...";
			next;
			switch(select("Is there nothing else we can do?")) {
			case 1:
				mes "[World Tree Yggdrasil]";
				mes "With our current powers...it is impossible to defeat the Guardian.";
				next;
				mes "[World Tree Yggdrasil]";
				mes "But the one going mad is not the Guardian, but his dark Shadow...maybe we can trap him here...";
				next;
				mes "[World Tree Yggdrasil]";
				mes "Are you willing to accept this mission? Even if it means to pay with your life?";
				next;
				switch(select("Leave it to us.:We can't do it.")) {
				case 1:
					if (getpartyleader(getcharid(1),2) == getcharid(0)) {
						mes "[World Tree Yggdrasil]";
						mes "I thank you deeply for your decision. I will use what is left of my powers to open up the path towards the Guardian's Nest.";
						next;
						mes "[World Tree Yggdrasil]";
						mes "The path to the Guardian's Nest is just past the waterfall by the large World Tree Yggdrasil to the North. The defensive mechanisms of the Sanctuary will start immediately.";
						next;
						mes "[World Tree Yggdrasil]";
						mes "Defeat all of Nidhoggur's guardians and go through the waterfall into the nest... and stop Nidhoggur's Shadow there.";
						next;
						mes "[World Tree Yggdrasil]";
						mes "The gate will open soon. Go defeat all of the guardians... you must kill them all in 30 minutes before the gate opens...";
						next;
						mes "[World Tree Yggdrasil]";
						mes "30 minutes... that's the limit of my powers. Please hurry.";
						next;
						mes "[World Tree Yggdrasil]";
						mes "And... Be careful... Be careful of the shadow's power.";
						set 'ins_nyd2,1;
						donpcevent instance_npcname("ins_nyd_1f_timer", instance_id())+"::OnEnable";
						donpcevent instance_npcname("nyd_call_mon_1", instance_id())+"::OnEnable";
						close;
					}
					else {
						mes "[World Tree Yggdrasil]";
						mes "I thank you deeply for your decision. I will use what is left of my powers to open up the path towards the Guardian's Nest.";
						next;
						mes "[World Tree Yggdrasil]";
						mes "The path to the Guardian's Nest is just past the waterfall by the large World Tree Yggdrasil to the North. The defensive mechanisms will start immediately.";
						next;
						mes "[World Tree Yggdrasil]";
						mes "Defeat all of Nidhoggur's guardians and go through the waterfall into the nest... and stop Nidhoggur's Shadow there.";
						next;
						mes "[World Tree Yggdrasil]";
						mes "The gate will open soon. Go defeat all of the guardians... you must kill them all in 30 minutes before the gate opens...";
						next;
						mes "[World Tree Yggdrasil]";
						mes "30 minutes... that's the limit of my powers. Please hurry.";
						next;
						mes "[World Tree Yggdrasil]";
						mes "And... Be careful... Be careful of the shadow's power.";
						close;
					}
				case 2:
					close;
				}
			}
		}
	}
	else if ('ins_nyd2 == 1) {
		mes "[World Tree Yggdrasil]";
		mes "The path to the Guardian's Nest is just past the waterfall by the large World Tree Yggdrasil to the North. The defensive mechanisms will start immediately.";
		next;
		mes "[World Tree Yggdrasil]";
		mes "Defeat all of Nidhoggur's guardians and go through the waterfall into the nest... and stop Nidhoggur's Shadow there.";
		next;
		mes "[World Tree Yggdrasil]";
		mes "The gate will open soon. Go defeat all of the guardians.";
		close;
	}
	else if ('ins_nyd2 == 2) {
		mes "[World Tree Yggdrasil]";
		mes "The path to the Guardian's Nest is just past the waterfall by the large World Tree Yggdrasil to the North.";
		next;
		mes "[World Tree Yggdrasil]";
		mes "Use your powers... and destroy the vile Shadow...";
		next;
		mes "[World Tree Yggdrasil]";
		mes "This is.. all I can do for you...";
		close;

	}
	else {
		mes "[World Tree Yggdrasil]";
		mes "Those who want to taint the sacred Sanctuary of the Guardian... Get out.";
		warp "mid_camp",100,100;
	}
	end;

OnTouch:
	if ('ins_nyd2 == 0) {
		mes "What's a woman from the Laphine Tribe doing here...";
		next;
		mes "What's happening? Let's go check it out.";
		close;
	}
	end;
}

1@nyd,1,1,0	script	nyd_call_mon_1	-1,{
OnInstanceInit:
	enablenpc instance_npcname("nyd_call_mon_1", instance_id());
	end;

OnEnable:
	monster "1@nyd",220,250,"Nidhoggur's Guardian#1",2020,1,instance_npcname("nyd_call_mon_1", instance_id())+"::OnMyMobDead";
	monster "1@nyd",220,252,"Nidhoggur's Guardian#2",2020,1,instance_npcname("nyd_call_mon_1", instance_id())+"::OnMyMobDead";
	monster "1@nyd",240,270,"Nidhoggur's Guardian#3",2020,1,instance_npcname("nyd_call_mon_1", instance_id())+"::OnMyMobDead";
	monster "1@nyd",240,272,"Nidhoggur's Guardian#4",2020,1,instance_npcname("nyd_call_mon_1", instance_id())+"::OnMyMobDead";
	monster "1@nyd",200,200,"Nidhoggur's Guardian#5",2020,1,instance_npcname("nyd_call_mon_1", instance_id())+"::OnMyMobDead";
	monster "1@nyd",210,210,"Nidhoggur's Guardian#6",2020,1,instance_npcname("nyd_call_mon_1", instance_id())+"::OnMyMobDead";
	monster "1@nyd",225,265,"Nidhoggur's Guardian#7",2021,1,instance_npcname("nyd_call_mon_1", instance_id())+"::OnMyMobDead";
	monster "1@nyd",225,270,"Nidhoggur's Guardian#8",2021,1,instance_npcname("nyd_call_mon_1", instance_id())+"::OnMyMobDead";
	monster "1@nyd",245,235,"Nidhoggur's Guardian#9",2021,1,instance_npcname("nyd_call_mon_1", instance_id())+"::OnMyMobDead";
	monster "1@nyd",255,255,"Nidhoggur's Guardian#10",2021,1,instance_npcname("nyd_call_mon_1", instance_id())+"::OnMyMobDead";
	monster "1@nyd",225,245,"Nidhoggur's Guardian#11",2021,1,instance_npcname("nyd_call_mon_1", instance_id())+"::OnMyMobDead";
	monster "1@nyd",230,280,"Nidhoggur's Guardian#12",2021,1,instance_npcname("nyd_call_mon_1", instance_id())+"::OnMyMobDead";
	instance_announce 0, "Nidhoggur's Guardian : Protect the Guardian's Sanctuary. Get rid of the intruders.",bc_map,"0x00ff99";
	end;

OnDisable:
	killmonster "1@nyd",instance_npcname("nyd_call_mon_1", instance_id())+"::OnMyMobDead";
	disablenpc instance_npcname("nyd_call_mon_1", instance_id());
	end;

OnMyMobDead:
	set .@mob_dead_num,mobcount("1@nyd", instance_npcname("nyd_call_mon_1", instance_id())+"::OnMyMobDead");
	if (.@mob_dead_num < 1) {
		instance_announce 0, "All of Nidhoggur's Guardians have been defeated!",bc_map,"0x00ff99";
		donpcevent instance_npcname("ins_nyd_1f_timer", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_to2f_warp", instance_id())+"::OnEnable";
		set 'ins_nyd2,2;
	}
	end;
}

1@nyd,1,2,0	script	ins_nyd_1f_timer	-1,{

OnInstanceInit:
	disablenpc instance_npcname("ins_nyd_1f_timer", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("ins_nyd_1f_timer", instance_id());
	initnpctimer;
	end;

OnDisable:
	disablenpc instance_npcname("ins_nyd_1f_timer", instance_id());
	stopnpctimer;
	killmonsterall "1@nyd";
	end;

OnTimer900000:
	instance_announce 0, "World Tree Yggdrasil : There's not much time left. Please hurry.",bc_map,"0xFFFF00";
	end;

OnTimer1200000:
	instance_announce 0, "World Tree Yggdrasil : My powers are slowly disappearing. Please hurry.",bc_map,"0xFFFF00";
	end;

OnTimer1500000:
	instance_announce 0, "World Tree Yggdrasil : I'm... almost at my limit... please hurry up."	,bc_map,"0xFFFF00";
	end;

OnTimer1800000:
	instance_announce 0, "World Tree Yggdrasil : You've failed... but I will use what power I have left... to send you out of here.",bc_map,"0xFFFF00";
	end;

OnTimer1830000:
	instance_announce 0, "Opening of the Gate has failed.",bc_map,"0xFFFF00";
	end;

OnTimer1850000:
	donpcevent instance_npcname("ins_nyd_1f_timer", instance_id())+"::OnDisable";
	donpcevent instance_npcname("nyd_call_mon_1", instance_id())+"::OnDisable";
	instance_warpall "mid_camp",310,150;
	stopnpctimer;
	end;
}

1@nyd,195,320,0	script	nyd_to2f_warp	45,5,5,{

OnInstanceInit:
	disablenpc instance_npcname("nyd_to2f_warp", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("nyd_to2f_warp", instance_id());
	end;

OnDisable:
	disablenpc instance_npcname("nyd_to2f_warp", instance_id());
	end;

OnTouch:
	warp "2@nyd",200,10;
	end;
}

1@nyd,1,1,0	script	ins_nyd1_spawn_mobs	-1,{
OnInstanceInit:
	monster "1@nyd",0,0,"Ancient Tree",2019,20;
	monster "1@nyd",0,0,"Rhyncho",2020,15;
	monster "1@nyd",0,0,"Phylla",2021,15;
	monster "1@nyd",0,0,"Aqua Elemental",2016,15;
	monster "1@nyd",0,0,"Dark Pinguicula",2015,15;
	monster "1@nyd",0,0,"Ancient Tree",2019,20;
	monster "1@nyd",0,0,"Rhyncho",2020,15;
	monster "1@nyd",0,0,"Phylla",2021,15;
	monster "1@nyd",0,0,"Aqua Elemental",2016,15;
	monster "1@nyd",0,0,"Dark Pinguicula",2015,15;
	end;
}

// Second Floor
2@nyd,200,14,0	script	nyd_2f_enter	-1,6,6,{
OnTouch_:
	donpcevent instance_npcname("nyd_2f_enter_broad", instance_id())+"::OnEnable";
	disablenpc instance_npcname("nyd_2f_enter", instance_id());
	end;
}

2@nyd,1,1,0	script	nyd_2f_enter_broad	-1,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_enter_broad", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_enter_broad", instance_id());
	initnpctimer;
	end;

OnDisable:
	disablenpc instance_npcname("nyd_2f_enter_broad", instance_id());
	end;

OnTimer12000:
	instance_announce 0, "Nidhoggur's Shadow : No more...I can't stand this anymore...",bc_map,"0xFFFF00";
	end;

OnTimer15000:
	instance_announce 0, "Nidhoggur's Shadow : I need...I need the World Tree Yggdrasil's powers...",bc_map,"0xFFFF00";
	end;

OnTimer18000:
	instance_announce 0, "Nidhoggur's Shadow : Destroy...everything...",bc_map,"0xFFFF00";
	end;
	/*
	stopnpctimer;
	disablenpc instance_npcname("nyd_2f_enter_broad", instance_id());
	end;
	*/
}

2@nyd,199,178,0	script	nyd_2f_ddr_control	-1,6,6,{
OnTouch:
	specialeffect2 EF_HOLYHIT;
	mes "From below the gorgeous stones, a strange breeze is forming.";
	next;
	mes "The strange power slowly surrounds your body, the dimension is starting to shift.";
	close2;
	warp "2@nyd",199,255;
	end;
}

2@nyd,199,268,0	script	nyd_2f_boss_enter	-1,8,8,{
OnInstanceInit:
	enablenpc instance_npcname("nyd_2f_boss_enter", instance_id());
	end;

OnTouch_:
	if (getpartyleader(getcharid(1),2) == getcharid(0)) {
		donpcevent instance_npcname("nyd_2f_boss_enter_call", instance_id())+"::OnEnable";
		disablenpc instance_npcname("nyd_2f_boss_enter", instance_id());
		end;
	}
	end;
}

2@nyd,2,2,0	script	nyd_2f_boss_enter_call	-1,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_boss_enter_call", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_boss_enter_call", instance_id());
	monster "2@nyd",199,327,"Nidhoggur's Shadow#",2022,1,instance_npcname("nyd_2f_boss_enter_call", instance_id())+"::OnMyMobDead";
	instance_announce 0, "Nidhoggur's Shadow : I will devour all of you...you and the World Tree Yggdrasil.",bc_map,"0x00ff99";
	//donpcevent instance_npcname("nyd_2f_boss_enter_call", instance_id())+"::Ongo";
	initnpctimer;
	end;

OnDisable:
	disablenpc instance_npcname("nyd_2f_boss_enter_call", instance_id());
	killmonster "2@nyd",instance_npcname("nyd_2f_boss_enter_call", instance_id())+"::OnMyMobDead";
	end;

OnTimer180000:
	set .@rullet,rand(1,4);
	if (.@rullet == 1) {
		instance_announce 0, "Nidhoggur's Shadow : In this chaos... your blood is just what I need.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",115,278;
		end;
	}
	else if (.@rullet == 2) {
		instance_announce 0, "Nidhoggur's Shadow : I will freeze every last drop of your blood.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",115,373;
		end;
	}
	else if (.@rullet == 3) {
		instance_announce 0, "Nidhoggur's Shadow : Sleep for eternity in an empty illusion.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",284,278;
		end;
	}
	else if (.@rullet == 4) {
		instance_announce 0, "Nidhoggur's Shadow : I'll let you enjoy the pain of dying slowly.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",284,374;
		end;
	}
	stopnpctimer;
	end;

OnMyMobDead:
	set .@mob_dead_num,mobcount("2@nyd",instance_npcname("nyd_2f_boss_enter_call", instance_id())+"::OnMyMobDead");
	if (.@mob_dead_num < 1) {
		instance_announce 0, "Nidhoggur's Shadow : World Tree Yggdrasil's guardian... his powers are disappearing...",bc_map,"0x00ff99";
		donpcevent instance_npcname("World Tree Yggdrasil#2F", instance_id())+"::OnEnable";
		donpcevent instance_npcname("nyd_2f_boss_enter_call", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_boss_enter_logic", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_red_c", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_white_c", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow_c", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green_c", instance_id())+"::OnDisable";
		end;
	}
	 else {
		end;
	 }
}

2@nyd,2,4,0	script	nyd_2f_boss_enter_logic	-1,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_boss_enter_logic", instance_id());
	end;

OnEnable:
	stopnpctimer;
	initnpctimer;
	end;

OnDisable:
	stopnpctimer;
	disablenpc instance_npcname("nyd_2f_boss_enter_logic", instance_id());
	end;

OnTimer180000:
	set .@rullet,rand(1,4);
	if (.@rullet == 1) {
		instance_announce 0, "Nidhoggur's Shadow : In this chaos... your blood is just what I need.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",115,278;
		end;
	}
	else if (.@rullet == 2) {
		instance_announce 0, "Nidhoggur's Shadow : I will freeze every last drop of your blood.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",115,373;
		end;
	}
	else if (.@rullet == 3) {
		instance_announce 0, "Nidhoggur's Shadow : Sleep for eternity in an empty illusion.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",284,278;
		end;
	}
	else if (.@rullet == 4) {
		instance_announce 0, "Nidhoggur's Shadow : I'll let you enjoy the pain of dying slowly.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",284,374;
		end;
	}
	stopnpctimer;
	end;
}

2@nyd,202,324,5	script	World Tree Yggdrasil#2F	437,3,3,{
	mes "[World Tree Yggdrasil]";
	mes "Thank you. You're the saviour of humans and the Laphine Tribe.";
	next;
	mes "[World Tree Yggdrasil]";
	mes "You've defeated Nidhoggur's Shadow. But...It's not gone for good. Its powers are merely put to sleep.";
	next;
	mes "[World Tree Yggdrasil]";
	mes "But you have won us plenty of time. This is great.";
	next;
	mes "[World Tree Yggdrasil]";
	mes "Please go and report this to those in charge of Splendide and Manuk.";
	next;
	mes "[World Tree Yggdrasil]";
	mes "As you have seen, neither the Sapha tribe nor the Laphine tribe is at fault for the weakening of the World Tree. It's all because of the Guardian's Shadow...";
	next;
	mes "[World Tree Yggdrasil]";
	mes "The Guardian's insanity...is caused by powers unknown to us... You must tell this to everyone.";
	next;
	mes "[World Tree Yggdrasil]";
	mes "Now... Allow me to escort you out of the cursed nest.";
	next;
	switch(select("Please let me out.:I want to look around for a while.")) {
	case 1:
		set 'ins_nyd2,0;
		//setquest 3135;
		warp "nyd_dun02",98,196;
		end;
	case 2:
		mes "[World Tree Yggdrasil]";
		mes "Is that so... I'll be around if you want to leave.";
		close;
	}

OnInstanceInit:
	disablenpc instance_npcname("World Tree Yggdrasil#2F", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("World Tree Yggdrasil#2F", instance_id());
	instance_announce 0, "World Tree Yggdrasil : You did good. Have everyone go to the Magic Circle in the middle, and get ready for the destruction of the nest.",bc_map,"0x00ff99";
	end;

OnDisable:
	disablenpc instance_npcname("World Tree Yggdrasil#2F", instance_id());
	end;
}

2@nyd,115,278,0	script	nyd_2f_red	-1,5,5,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_red", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_red", instance_id());
	donpcevent instance_npcname("nyd_2f_red_warp1", instance_id())+"::OnEnable";
	donpcevent instance_npcname("nyd_2f_red_warp2", instance_id())+"::OnEnable";
	donpcevent instance_npcname("nyd_2f_red_warp3", instance_id())+"::OnEnable";
	donpcevent instance_npcname("nyd_2f_red_c", instance_id())+"::OnEnable";
	initnpctimer;
	end;

OnDisable:
	donpcevent instance_npcname("nyd_2f_red_warp1", instance_id())+"::OnDisable";
	donpcevent instance_npcname("nyd_2f_red_warp2", instance_id())+"::OnDisable";
	donpcevent instance_npcname("nyd_2f_red_warp3", instance_id())+"::OnDisable";
	disablenpc instance_npcname("nyd_2f_red", instance_id());
	end;

OnTouch:
	percentheal -50,0;
	percentheal -30,0;
	sc_start SC_BLEEDING,60000,0;
	end;

OnTimer10000:
	disablenpc instance_npcname("nyd_2f_red", instance_id());
	stopnpctimer;
	end;
}

2@nyd,6,6,0	script	nyd_2f_red_c	-1,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_red_c", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_red_c", instance_id());
	initnpctimer;
	monster "2@nyd",120,285,"Nidhoggur's Guardian#1",2020,1,instance_npcname("nyd_2f_red_c", instance_id())+"::OnMyMobDead";
	monster "2@nyd",119,286,"Nidhoggur's Guardian#2",2020,1,instance_npcname("nyd_2f_red_c", instance_id())+"::OnMyMobDead";
	monster "2@nyd",120,270,"Nidhoggur's Guardian#3",2020,1,instance_npcname("nyd_2f_red_c", instance_id())+"::OnMyMobDead";
	monster "2@nyd",119,269,"Nidhoggur's Guardian#4",2021,1,instance_npcname("nyd_2f_red_c", instance_id())+"::OnMyMobDead";
	monster "2@nyd",118,270,"Nidhoggur's Guardian#5",2021,1,instance_npcname("nyd_2f_red_c", instance_id())+"::OnMyMobDead";
	end;

OnMyMobDead:
	set .@mob_dead_num,mobcount("2@nyd",instance_npcname("nyd_2f_red_c", instance_id())+"::OnMyMobDead");
	if (.@mob_dead_num < 1) {
		instance_announce 0, "Nidhoggur's Shadow : You're not bad... but I will be your opponent this time.",bc_map,"0x00ff99";
		donpcevent instance_npcname("nyd_2f_red_c", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_boss_enter_logic", instance_id())+"::OnEnable";
		end;
	}
	end;

OnDisable:
	donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnDisable";
	disablenpc instance_npcname("nyd_2f_red_c", instance_id());
	stopnpctimer;
	end;

OnTimer180000:
	killmonster "2@nyd",instance_npcname("nyd_2f_red_c", instance_id())+"::OnMyMobDead";;
	stopnpctimer;
	set .@rullet,rand(1,4);
	if (.@rullet == 1) {
		instance_announce 0, "Nidhoggur's Shadow : In this chaos... your blood is just what I need.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",115,278;
		end;
	}
	else if (.@rullet == 2) {
		instance_announce 0, "Nidhoggur's Shadow : I will freeze every last drop of your blood.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",115,373;
		end;
	}
	else if (.@rullet == 3) {
		instance_announce 0, "Nidhoggur's Shadow : Sleep for eternity in an empty illusion.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",284,278;
		end;
	}
	else if (.@rullet == 4) {
		instance_announce 0, "Nidhoggur's Shadow : I'll let you enjoy the pain of dying slowly.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",284,374;
		end;
	}
	end;
}

2@nyd,130,298,0	script	nyd_2f_red_warp1	-1,6,6,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_red_warp1", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_red_warp1", instance_id());
	end;

OnDisable:
	disablenpc instance_npcname("nyd_2f_red_warp1", instance_id());
	end;

OnTouch:
	warp "2@nyd",115,278;
	end;
}

2@nyd,142,296,0	script	nyd_2f_red_warp2	-1,6,6,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_red_warp2", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_red_warp2", instance_id());
	end;

OnDisable:
	disablenpc instance_npcname("nyd_2f_red_warp2", instance_id());
	end;

OnTouch:
	warp "2@nyd",115,278;
	end;
}

2@nyd,145,283,0	script	nyd_2f_red_warp3	-1,6,6,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_red_warp3", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_red_warp3", instance_id());
	end;

OnDisable:
	disablenpc instance_npcname("nyd_2f_red_warp3", instance_id());
	end;

OnTouch:
	warp "2@nyd",115,278;
	end;
}

2@nyd,115,373,0	script	nyd_2f_white	-1,5,5,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_white", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_white", instance_id());
	donpcevent instance_npcname("nyd_2f_white_warp1", instance_id())+"::OnEnable";
	donpcevent instance_npcname("nyd_2f_white_warp2", instance_id())+"::OnEnable";
	donpcevent instance_npcname("nyd_2f_white_warp3", instance_id())+"::OnEnable";
	donpcevent instance_npcname("nyd_2f_white_c", instance_id())+"::OnEnable";
	initnpctimer;
	end;

OnDisable:
	donpcevent instance_npcname("nyd_2f_white_warp1", instance_id())+"::OnDisable";
	donpcevent instance_npcname("nyd_2f_white_warp2", instance_id())+"::OnDisable";
	donpcevent instance_npcname("nyd_2f_white_warp3", instance_id())+"::OnDisable";
	disablenpc instance_npcname("nyd_2f_white", instance_id());
	end;

OnTouch:
	percentheal -50,0;
	sc_start SC_FREEZE,20000,0;
	end;

OnTimer10000:
	disablenpc instance_npcname("nyd_2f_white", instance_id());
	stopnpctimer;
	end;
}

2@nyd,6,7,0	script	nyd_2f_white_c	-1,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_white_c", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_white_c", instance_id());
	initnpctimer;
	monster "2@nyd",120,380,"Nidhoggur's Guardian#1",2020,1,instance_npcname("nyd_2f_white_c", instance_id())+"::OnMyMobDead";
	monster "2@nyd",119,381,"Nidhoggur's Guardian#2",2020,1,instance_npcname("nyd_2f_white_c", instance_id())+"::OnMyMobDead";
	monster "2@nyd",120,367,"Nidhoggur's Guardian#3",2020,1,instance_npcname("nyd_2f_white_c", instance_id())+"::OnMyMobDead";
	monster "2@nyd",119,366,"Nidhoggur's Guardian#4",2021,1,instance_npcname("nyd_2f_white_c", instance_id())+"::OnMyMobDead";
	monster "2@nyd",118,365,"Nidhoggur's Guardian#5",2021,1,instance_npcname("nyd_2f_white_c", instance_id())+"::OnMyMobDead";
	end;

OnMyMobDead:
	set .@mob_dead_num,mobcount("2@nyd",instance_npcname("nyd_2f_white_c", instance_id())+"::OnMyMobDead");
	 if (.@mob_dead_num < 1) {
		instance_announce 0, "Nidhoggur's Shadow : You're not bad... but I will be your opponent this time.",bc_map,"0x00ff99";
		donpcevent instance_npcname("nyd_2f_white_c", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_boss_enter_logic", instance_id())+"::OnEnable";
		end;
	}
	end;

OnDisable:
	donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnDisable";
	disablenpc instance_npcname("nyd_2f_white_c", instance_id());
	stopnpctimer;
	end;

OnTimer180000:
	killmonster "2@nyd",instance_npcname("nyd_2f_white_c", instance_id())+"::OnMyMobDead";
	stopnpctimer;
	set .@rullet,rand(1,4);
	if (.@rullet == 1) {
		instance_announce 0, "Nidhoggur's Shadow : In this chaos... your blood is just what I need.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",115,278;
		end;
	}
	else if (.@rullet == 2) {
		instance_announce 0, "Nidhoggur's Shadow : I will freeze every last drop of your blood.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",115,373;
		end;
	}
	else if (.@rullet == 3) {
		instance_announce 0, "Nidhoggur's Shadow : Sleep for eternity in an empty illusion.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",284,278;
		end;
	}
	else if (.@rullet == 4) {
		instance_announce 0, "Nidhoggur's Shadow : I'll let you enjoy the pain of dying slowly.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",284,374;
		end;
	}
	end;
}

2@nyd,127,354,0	script	nyd_2f_white_warp1	-1,6,6,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_white_warp1", instance_id());;
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_white_warp1", instance_id());;
	end;

OnDisable:
	disablenpc instance_npcname("nyd_2f_white_warp1", instance_id());;
	end;

OnTouch:
	warp "2@nyd",115,373;
	end;
}

2@nyd,140,357,0	script	nyd_2f_white_warp2	-1,6,6,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_white_warp2", instance_id());;
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_white_warp2", instance_id());;
	end;

OnDisable:
	disablenpc instance_npcname("nyd_2f_white_warp2", instance_id());;
	end;

OnTouch:
	warp "2@nyd",115,373;
	end;
}

2@nyd,145,367,0	script	nyd_2f_white_warp3	-1,6,6,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_white_warp3", instance_id());;
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_white_warp3", instance_id());;
	end;

OnDisable:
	disablenpc instance_npcname("nyd_2f_white_warp3", instance_id());;
	end;

OnTouch:
	warp "2@nyd",115,373;
	end;
}

2@nyd,284,278,0	script	nyd_2f_yellow	-1,5,5,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_yellow", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_yellow", instance_id());
	donpcevent instance_npcname("nyd_2f_yellow_warp1", instance_id())+"::OnEnable";
	donpcevent instance_npcname("nyd_2f_yellow_warp2", instance_id())+"::OnEnable";
	donpcevent instance_npcname("nyd_2f_yellow_warp3", instance_id())+"::OnEnable";
	donpcevent instance_npcname("nyd_2f_yellow_c", instance_id())+"::OnEnable";
	initnpctimer;
	end;

OnDisable:
	donpcevent instance_npcname("nyd_2f_yellow_warp1", instance_id())+"::OnDisable";
	donpcevent instance_npcname("nyd_2f_yellow_warp2", instance_id())+"::OnDisable";
	donpcevent instance_npcname("nyd_2f_yellow_warp3", instance_id())+"::OnDisable";
	disablenpc instance_npcname("nyd_2f_yellow", instance_id());
	end;

OnTouch:
	percentheal 0,-50;
	sc_start SC_SLEEP,20000,0;
	sc_start SC_CONFUSION,60000,0;
	end;

OnTimer10000:
	disablenpc instance_npcname("nyd_2f_yellow", instance_id());
	stopnpctimer;
	end;
}

2@nyd,6,8,0	script	nyd_2f_yellow_c	-1,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_yellow_c", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_yellow_c", instance_id());
	initnpctimer;
	monster "2@nyd",282,284,"Nidhoggur's Guardian#1",2020,1,instance_npcname("nyd_2f_yellow_c", instance_id())+"::OnMyMobDead";
	monster "2@nyd",283,283,"Nidhoggur's Guardian#2",2020,1,instance_npcname("nyd_2f_yellow_c", instance_id())+"::OnMyMobDead";
	monster "2@nyd",280,275,"Nidhoggur's Guardian#3",2020,1,instance_npcname("nyd_2f_yellow_c", instance_id())+"::OnMyMobDead";
	monster "2@nyd",281,276,"Nidhoggur's Guardian#4",2021,1,instance_npcname("nyd_2f_yellow_c", instance_id())+"::OnMyMobDead";
	monster "2@nyd",281,277,"Nidhoggur's Guardian#5",2021,1,instance_npcname("nyd_2f_yellow_c", instance_id())+"::OnMyMobDead";
	end;

OnMyMobDead:
	set .@mob_dead_num,mobcount("2@nyd",instance_npcname("nyd_2f_yellow_c", instance_id())+"::OnMyMobDead");
	if (.@mob_dead_num < 1) {
		instance_announce 0, "Nidhoggur's Shadow : You're not bad...but I will be your opponent this time.",bc_map,"0x00ff99";
		donpcevent instance_npcname("nyd_2f_yellow_c", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_boss_enter_logic", instance_id())+"::OnEnable";
		end;
	}
	else {
		end;
	}

Onreset:
	killmonster "2@nyd",instance_npcname("nyd_2f_yellow_c", instance_id())+"::OnMyMobDead";
	donpcevent instance_npcname("nyd_2f_yellow_c", instance_id())+"::OnDisable";
	end;

OnDisable:
	donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnDisable";
	disablenpc instance_npcname("nyd_2f_yellow_c", instance_id());
	stopnpctimer;
	end;

OnTimer180000:
	killmonster "2@nyd",instance_npcname("nyd_2f_yellow_c", instance_id())+"::OnMyMobDead";
	stopnpctimer;
	set .@rullet,rand(1,4);
	if (.@rullet == 1) {
		instance_announce 0, "Nidhoggur's Shadow : In this chaos... your blood is just what I need.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",115,278;
		end;
	}
	else if (.@rullet == 2) {
		instance_announce 0, "Nidhoggur's Shadow : I will freeze every last drop of your blood.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",115,373;
		end;
	}
	else if (.@rullet == 3) {
		instance_announce 0, "Nidhoggur's Shadow : Sleep for eternity in an empty illusion.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",284,278;
		end;
	}
	else if (.@rullet == 4) {
		instance_announce 0, "Nidhoggur's Shadow : I'll let you enjoy the pain of dying slowly.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",284,374;
		end;
	}
	end;
}

2@nyd,255,285,0	script	nyd_2f_yellow_warp1	-1,6,6,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_yellow_warp1", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_yellow_warp1", instance_id());
	end;

OnDisable:
	disablenpc instance_npcname("nyd_2f_yellow_warp1", instance_id());
	end;

OnTouch:
	warp "2@nyd",284,278;
	end;
}

2@nyd,257,296,0	script	nyd_2f_yellow_warp2	-1,6,6,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_yellow_warp2", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_yellow_warp2", instance_id());
	end;

OnDisable:
	disablenpc instance_npcname("nyd_2f_yellow_warp2", instance_id());
	end;

OnTouch:
	warp "2@nyd",284,278;
	end;
}

2@nyd,268,300,0	script	nyd_2f_yellow_warp3	-1,6,6,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_yellow_warp3", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_yellow_warp3", instance_id());
	end;

OnDisable:
	disablenpc instance_npcname("nyd_2f_yellow_warp3", instance_id());
	end;

OnTouch:
	warp "2@nyd",284,278;
	end;
}

2@nyd,284,374,0	script	nyd_2f_green	-1,5,5,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_green", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_green", instance_id());
	donpcevent instance_npcname("nyd_2f_green_warp1", instance_id())+"::OnEnable";
	donpcevent instance_npcname("nyd_2f_green_warp2", instance_id())+"::OnEnable";
	donpcevent instance_npcname("nyd_2f_green_warp3", instance_id())+"::OnEnable";
	donpcevent instance_npcname("nyd_2f_green_c", instance_id())+"::OnEnable";
	initnpctimer;
	end;

OnDisable:
	donpcevent instance_npcname("nyd_2f_green_warp1", instance_id())+"::OnDisable";
	donpcevent instance_npcname("nyd_2f_green_warp2", instance_id())+"::OnDisable";
	donpcevent instance_npcname("nyd_2f_green_warp3", instance_id())+"::OnDisable";
	disablenpc instance_npcname("nyd_2f_green", instance_id());
	end;

OnTouch:
	percentheal -50,-50;
	sc_start SC_POISON,60000,0;
	end;

OnTimer10000:
	disablenpc instance_npcname("nyd_2f_green", instance_id());
	stopnpctimer;
	end;
}

2@nyd,6,9,0	script	nyd_2f_green_c	-1,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_green_c", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_green_c", instance_id());
	initnpctimer;
	monster "2@nyd",282,378,"Nidhoggur's Guardian#1",2020,1,instance_npcname("nyd_2f_green_c", instance_id())+"::OnMyMobDead";
	monster "2@nyd",283,377,"Nidhoggur's Guardian#2",2020,1,instance_npcname("nyd_2f_green_c", instance_id())+"::OnMyMobDead";
	monster "2@nyd",280,368,"Nidhoggur's Guardian#3",2020,1,instance_npcname("nyd_2f_green_c", instance_id())+"::OnMyMobDead";
	monster "2@nyd",281,368,"Nidhoggur's Guardian#4",2021,1,instance_npcname("nyd_2f_green_c", instance_id())+"::OnMyMobDead";
	monster "2@nyd",281,367,"Nidhoggur's Guardian#5",2021,1,instance_npcname("nyd_2f_green_c", instance_id())+"::OnMyMobDead";
	end;

OnMyMobDead:
	set .@mob_dead_num,mobcount("2@nyd",instance_npcname("nyd_2f_green_c", instance_id())+"::OnMyMobDead");
	if (.@mob_dead_num < 1) {
		instance_announce 0, "Nidhoggur's Shadow : You're not bad... but I will be your opponent this time.",bc_map,"0x00ff99";
		donpcevent instance_npcname("nyd_2f_green_c", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_boss_enter_logic", instance_id())+"::OnEnable";
		end;
	}
	else {
		end;
	}

Onreset:
	killmonster "2@nyd",instance_npcname("nyd_2f_green_c", instance_id())+"::OnMyMobDead";
	donpcevent instance_npcname("nyd_2f_green_c", instance_id())+"::OnDisable";
	end;

OnDisable:
	donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnDisable";
	disablenpc instance_npcname("nyd_2f_green_c", instance_id());
	stopnpctimer;
	end;

OnTimer180000:
	killmonster "2@nyd",instance_npcname("nyd_2f_green_c", instance_id())+"::OnMyMobDead";
	stopnpctimer;
	set .@rullet,rand(1,4);
	if (.@rullet == 1) {
		instance_announce 0, "Nidhoggur's Shadow : In this chaos... your blood is just what I need.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",115,278;
		end;
	}
	else if (.@rullet == 2) {
		instance_announce 0, "Nidhoggur's Shadow : I will freeze every last drop of your blood.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",115,373;
		end;
	}
	else if (.@rullet == 3) {
		instance_announce 0, "Nidhoggur's Shadow : Sleep for eternity in an empty illusion.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",284,278;
		end;
	}
	else if (.@rullet == 4) {
		instance_announce 0, "Nidhoggur's Shadow : I'll let you enjoy the pain of dying slowly.",bc_map,"0xFFFF00";
		donpcevent instance_npcname("nyd_2f_red", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_white", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_yellow", instance_id())+"::OnDisable";
		donpcevent instance_npcname("nyd_2f_green", instance_id())+"::OnEnable";
		instance_warpall "2@nyd",284,374;
		end;
	}
	end;
}

2@nyd,274,356,0	script	nyd_2f_green_warp1	-1,6,6,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_green_warp1", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_green_warp1", instance_id());
	end;

OnDisable:
	disablenpc instance_npcname("nyd_2f_green_warp1", instance_id());
	end;

OnTouch:
	warp "2@nyd",284,374;
	end;
}

2@nyd,260,356,0	script	nyd_2f_green_warp2	-1,6,6,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_green_warp2", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_green_warp2", instance_id());
	end;

OnDisable:
	disablenpc instance_npcname("nyd_2f_green_warp2", instance_id());
	end;

OnTouch:
	warp "2@nyd",284,374;
	end;
}

2@nyd,258,368,0	script	nyd_2f_green_warp3	-1,6,6,{
OnInstanceInit:
	disablenpc instance_npcname("nyd_2f_green_warp3", instance_id());
	end;

OnEnable:
	enablenpc instance_npcname("nyd_2f_green_warp3", instance_id());
	end;

OnDisable:
	disablenpc instance_npcname("nyd_2f_green_warp3", instance_id());
	end;

OnTouch:
	warp "2@nyd",284,374;
	end;
}

2@nyd,1,1,0	script	ins_nyd2_spawn_mobs	-1,{
OnInstanceInit:
	areamonster "2@nyd",200,92,180,80,"Rhyncho",2020,20;
	areamonster "2@nyd",200,92,180,80,"Phylla",2021,20;
	areamonster "2@nyd",200,92,180,80,"Dark Shadow",2023,20;
	areamonster "2@nyd",200,92,180,80,"Dark Pinguicula",2015,20;
	areamonster "2@nyd",200,92,180,80,"Rhyncho",2020,20;
	areamonster "2@nyd",200,92,180,80,"Phylla",2021,20;
	areamonster "2@nyd",200,92,180,80,"Dark Shadow",2023,20;
	areamonster "2@nyd",200,92,180,80,"Dark Pinguicula",2015,20;
	end;
}