diff -rNU 10 nr1.01.7/common.emevd.dcx.js nr/common.emevd.dcx.js
nr1.01.7/common.emevd.dcx.jsnr/common.emevd.dcx.js
259     $InitializeEvent(0, 1131); 259     $InitializeEvent(0, 1131);
260     $InitializeEvent(0, 1132); 260     $InitializeEvent(0, 1132);
261     $InitializeEvent(0, 1133); 261     $InitializeEvent(0, 1133);
262     $InitializeEvent(0, 1134); 262     $InitializeEvent(0, 1134);
263     $InitializeEvent(0, 1135); 263     $InitializeEvent(0, 1135);
264     $InitializeEvent(0, 1136); 264     $InitializeEvent(0, 1136);
265     $InitializeEvent(0, 1139); 265     $InitializeEvent(0, 1139);
266     $InitializeEvent(0, 1140); 266     $InitializeEvent(0, 1140);
267     $InitializeEvent(0, 1150); 267     $InitializeEvent(0, 1150);
268     $InitializeEvent(0, 1151); 268     $InitializeEvent(0, 1151);
269     $InitializeCommonEvent(0, 99075460, 1, 70000, 70001, 70002, 70003, 70004, 70005, 70006, 70007, 70008, 70009);
270     $InitializeCommonEvent(0, 99075460, 2, 70030, 70031, 70032, 70033, 70034, 70035, 70036, 70037, 70038, 70039);
271     $InitializeCommonEvent(0, 99075460, 3, 70060, 70061, 70062, 70063, 70064, 70065, 70066, 70067, 70068, 70069);
272     $InitializeCommonEvent(0, 99075461, 1, 70010, 70011, 70012, 70013, 70014, 70015);
273     $InitializeCommonEvent(0, 99075461, 2, 70040, 70041, 70042, 70043, 70044, 70045);
274     $InitializeCommonEvent(0, 99075461, 3, 70070, 70071, 70072, 70073, 70074, 70075);
275     $InitializeCommonEvent(0, 99075462, 1, 70020, 70022);
276     $InitializeCommonEvent(0, 99075462, 2, 70050, 70052);
277     $InitializeCommonEvent(0, 99075462, 3, 70080, 70082);
278     $InitializeCommonEvent(0, 99075465, 1, 19010450, 19010453, 0, 70000, 70001, 70002, 70003, 70004, 70005, 70006, 70007, 70008, 70009, 70010, 70011, 70012, 70013, 70014, 70015, 70020, 70021, 70022);
279     $InitializeCommonEvent(0, 99075465, 2, 19010451, 19010454, 0, 70030, 70031, 70032, 70033, 70034, 70035, 70036, 70037, 70038, 70039, 70040, 70041, 70042, 70043, 70044, 70045, 70050, 70051, 70052);
280     $InitializeCommonEvent(0, 99075465, 3, 19010452, 19010455, 0, 70060, 70061, 70062, 70063, 70064, 70065, 70066, 70067, 70068, 70069, 70070, 70071, 70072, 70073, 70074, 70075, 70080, 70081, 70082);
269     $InitializeEvent(0, 1909); 281     $InitializeEvent(0, 1909);
270     $InitializeEvent(0, 1300); 282     $InitializeEvent(0, 1300);
271     $InitializeEvent(0, 1301); 283     $InitializeEvent(0, 1301);
272     $InitializeEvent(0, 1302); 284     $InitializeEvent(0, 1302);
273     if (IsPlayerNo(1)) { 285     if (IsPlayerNo(1)) {
274         $InitializeEvent(0, 1309, 7010); 286         $InitializeEvent(0, 1310, 7010);
275     } 287     }
276     if (IsPlayerNo(2)) { 288     if (IsPlayerNo(2)) {
277         $InitializeEvent(0, 1309, 7011); 289         $InitializeEvent(0, 1310, 7011);
278     } 290     }
279     if (IsPlayerNo(3)) { 291     if (IsPlayerNo(3)) {
280         $InitializeEvent(0, 1309, 7012); 292         $InitializeEvent(0, 1310, 7012);
281     } 293     }
282     $InitializeEvent(0, 1305); 294     $InitializeEvent(0, 1305);
283     $InitializeEvent(0, 1310);
284     $InitializeEvent(0, 1311); 295     $InitializeEvent(0, 1311);
296     $InitializeEvent(0, 1313);
297     $InitializeEvent(0, 1312);
285     $InitializeEvent(0, 1306); 298     $InitializeEvent(0, 1306);
286     $InitializeEvent(0, 1307); 299     $InitializeEvent(0, 1307);
287     $InitializeEvent(0, 1308); 300     $InitializeEvent(0, 1308);
301     $InitializeEvent(0, 1309);
302     $InitializeEvent(0, 1314);
288     $InitializeEvent(0, 1320, 99874, 99810); 303     $InitializeEvent(0, 1320, 99874, 99810);
289     $InitializeEvent(1, 1320, 99879, 99811); 304     $InitializeEvent(1, 1320, 99879, 99811);
290     $InitializeEvent(0, 1330, 1044382790); 305     $InitializeEvent(0, 1330, 1044382790);
291     $InitializeEvent(1, 1330, 1044382791); 306     $InitializeEvent(1, 1330, 1044382791);
292     $InitializeEvent(2, 1330, 1044362790); 307     $InitializeEvent(2, 1330, 1044362790);
293     $InitializeEvent(3, 1330, 1043382790); 308     $InitializeEvent(3, 1330, 1043382790);
294     $InitializeEvent(0, 1304); 309     $InitializeEvent(0, 1304);
295     $InitializeCommonEvent(0, 90015208, 9328, 9051, 9040); 310     $InitializeCommonEvent(0, 90015208, 9328, 9051, 9040);
296     $InitializeEvent(0, 1170); 311     $InitializeEvent(0, 1170);
297     $InitializeEvent(1, 1520, 102, 8330, 97120); 312     $InitializeEvent(1, 1520, 102, 8330, 97120);
351     $InitializeCommonEvent(29, 90015100, 8009, 9103, 7070001, 8123); 366     $InitializeCommonEvent(29, 90015100, 8009, 9103, 7070001, 8123);
352     $InitializeCommonEvent(30, 90015100, 8010, 9110, 7070001, 8130); 367     $InitializeCommonEvent(30, 90015100, 8010, 9110, 7070001, 8130);
353     $InitializeCommonEvent(31, 90015100, 8010, 9101, 7070001, 8121); 368     $InitializeCommonEvent(31, 90015100, 8010, 9101, 7070001, 8121);
354     $InitializeCommonEvent(32, 90015100, 8010, 9104, 7070001, 8124); 369     $InitializeCommonEvent(32, 90015100, 8010, 9104, 7070001, 8124);
355     $InitializeCommonEvent(33, 90015100, 8011, 9111, 7070001, 8131); 370     $InitializeCommonEvent(33, 90015100, 8011, 9111, 7070001, 8131);
356     $InitializeCommonEvent(34, 90015100, 8011, 9100, 7070001, 8120); 371     $InitializeCommonEvent(34, 90015100, 8011, 9100, 7070001, 8120);
357     $InitializeCommonEvent(35, 90015100, 8011, 9105, 7070001, 8125); 372     $InitializeCommonEvent(35, 90015100, 8011, 9105, 7070001, 8125);
358     $InitializeEvent(0, 1400, 7060001, 7060000); 373     $InitializeEvent(0, 1400, 7060001, 7060000);
359     $InitializeEvent(0, 1402, 7060201, 7060200); 374     $InitializeEvent(0, 1402, 7060201, 7060200);
360     $InitializeEvent(0, 1403, 7060101, 7060100); 375     $InitializeEvent(0, 1403, 7060101, 7060100);
376     $InitializeEvent(0, 1406, 7060400, 7060401, 7060402, 8160, 9350);
377     $InitializeEvent(1, 1406, 7060600, 7060601, 0, 8165, 9355);
378     $InitializeEvent(2, 1406, 7060500, 7060501, 0, 8170, 9360);
379     $InitializeEvent(3, 1406, 7060300, 7060301, 0, 8175, 9365);
361     $InitializeEvent(0, 1450, 8970001, 8970000); 380     $InitializeEvent(0, 1450, 8970001, 8970000);
362     $InitializeCommonEvent(0, 90015003, 6999000, 7704, 7724, 8024, 0, 1, 2.5); 381     $InitializeCommonEvent(0, 90015003, 6999000, 7704, 7724, 8024, 0, 1, 2.5);
363     $InitializeCommonEvent(0, 90015003, 8970001, 8075, 0, 8025, 0, 8970000, 2.5); 382     $InitializeCommonEvent(0, 90015003, 8970001, 8075, 0, 8025, 0, 8970000, 2.5);
364     $InitializeCommonEvent(0, 90015003, 6999400, 8075, 0, 9056, 0, 5, 2.5); 383     $InitializeCommonEvent(0, 90015003, 6999400, 8075, 0, 9056, 0, 5, 2.5);
365     $InitializeCommonEvent(0, 90015003, 8970020, 8076, 0, 8025, 0, 8970020, 2.5); 384     $InitializeCommonEvent(0, 90015003, 8970020, 8076, 0, 8025, 0, 8970020, 2.5);
366     $InitializeCommonEvent(0, 90015003, 6999400, 8076, 0, 9056, 0, 5, 2.5); 385     $InitializeCommonEvent(0, 90015003, 6999400, 8076, 0, 9056, 0, 5, 2.5);
367     $InitializeCommonEvent(0, 90015003, 6999000, 8077, 0, 8025, 0, 1, 2.5); 386     $InitializeCommonEvent(0, 90015003, 6999000, 8077, 0, 8025, 0, 1, 2.5);
368     $InitializeCommonEvent(0, 90015003, 8970010, 8078, 0, 8025, 0, 8970010, 2.5); 387     $InitializeCommonEvent(0, 90015003, 8970010, 8078, 0, 8025, 0, 8970010, 2.5);
369     $InitializeCommonEvent(0, 90015003, 8970030, 8079, 0, 8025, 0, 8970030, 2.5); 388     $InitializeCommonEvent(0, 90015003, 8970030, 8079, 0, 8025, 0, 8970030, 2.5);
370     $InitializeCommonEvent(0, 90015003, 6999200, 7603, 0, 9192, 0, 3, 2.5); 389     $InitializeCommonEvent(0, 90015003, 6999200, 7603, 0, 9192, 0, 3, 2.5);
615     EndEvent(); 634     EndEvent();
616 }); 635 });
617 636
618 $Event(1104, Default, function() { 637 $Event(1104, Default, function() {
619     EndIf(EventFlag(7505)); 638     EndIf(EventFlag(7505));
620     WaitFor(EventFlag(7505)); 639     WaitFor(EventFlag(7505));
621     WaitFor(ElapsedSeconds(5)); 640     WaitFor(ElapsedSeconds(5));
622     if (HasMultiplayerState(MultiplayerState.Singleplayer)) { 641     if (HasMultiplayerState(MultiplayerState.Singleplayer)) {
623         SetSpEffect(20000, 6999500); 642         SetSpEffect(20000, 6999500);
624     } 643     }
625     RecordUserDispLog(11281, 20000, LogObjectType.None, -1); 644     if (!EventFlag(7811)) {
626     SetNetworkconnectedEventFlagID(7517, ON); 645         RecordUserDispLog(11281, 20000, LogObjectType.None, -1);
646         SetNetworkconnectedEventFlagID(7517, ON);
647     }
627     EndEvent(); 648     EndEvent();
628 }); 649 });
629 650
630 $Event(1105, Default, function() { 651 $Event(1105, Default, function() {
631     EndIf(EventFlag(7506)); 652     EndIf(EventFlag(7506));
632     WaitFor(EventFlag(7506)); 653     WaitFor(EventFlag(7506));
633     EndEvent(); 654     EndEvent();
634 }); 655 });
635 656
636 $Event(1106, Default, function() { 657 $Event(1106, Default, function() {
674         SetSpEffect(10000, 99202); 695         SetSpEffect(10000, 99202);
675     } 696     }
676     WaitFor(EventFlag(7500)); 697     WaitFor(EventFlag(7500));
677     if ((CharacterHasSpEffect(10002, 702000) 698     if ((CharacterHasSpEffect(10002, 702000)
678         || CharacterHasSpEffect(10003, 702000) 699         || CharacterHasSpEffect(10003, 702000)
679         || CharacterHasSpEffect(10004, 702000)) 700         || CharacterHasSpEffect(10004, 702000))
680         && !IsHero(Hero.Ironeye)) { 701         && !IsHero(Hero.Ironeye)) {
681         SetSpEffect(10000, 702001); 702         SetSpEffect(10000, 702001);
682     } 703     }
683     SetEventFlagID(9012, ON); 704     SetEventFlagID(9012, ON);
705     WaitFor(ElapsedFrames(1));
706     if (EventFlag(7812)) {
707         RecordUserDispLog(11350, 0, LogObjectType.None, -1);
708     }
709     if (EventFlag(7811)) {
710         RecordUserDispLog(11360, 0, LogObjectType.None, -1);
711         RecordUserDispLog(13000, 0, LogObjectType.None, -1);
712     }
684     SetEventFlagID(9011, ON); 713     SetEventFlagID(9011, ON);
685     WaitFor(CharacterHasSpEffect(20000, 99210) || ElapsedSeconds(1)); 714     WaitFor(CharacterHasSpEffect(20000, 99210) || ElapsedSeconds(1));
686     WaitFor(!CharacterHasSpEffect(20000, 99210) && !CharacterHasSpEffect(20000, 102610)); 715     WaitFor(!CharacterHasSpEffect(20000, 99210) && !CharacterHasSpEffect(20000, 102610));
687     SetEventFlagID(9012, OFF); 716     SetEventFlagID(9012, OFF);
688 }); 717 });
689 718
690 $Event(1113, Default, function() { 719 $Event(1113, Default, function() {
691     DisableNetworkSync(); 720     DisableNetworkSync();
692     EndIf(EventFlag(7505)); 721     EndIf(EventFlag(7505));
693     WaitFor(EventFlag(7503)); 722     WaitFor(EventFlag(7503));
1249     WaitFor( 1278     WaitFor(
1250         CharacterHasTeamType(20000, TeamType.Human) 1279         CharacterHasTeamType(20000, TeamType.Human)
1251             || CharacterHasTeamType(20000, TeamType.WhitePhantom) 1280             || CharacterHasTeamType(20000, TeamType.WhitePhantom)
1252             || CharacterHasTeamType(20000, TeamType.Indiscriminate) 1281             || CharacterHasTeamType(20000, TeamType.Indiscriminate)
1253             || EventFlag(eventFlagId)); 1282             || EventFlag(eventFlagId));
1254     RestartEvent(); 1283     RestartEvent();
1255 }); 1284 });
1256 1285
1257 $Event(1183, Restart, function(eventFlagId, eventFlagId2) { 1286 $Event(1183, Restart, function(eventFlagId, eventFlagId2) {
1258     DisableNetworkSync(); 1287     DisableNetworkSync();
1259     SetNetworkconnectedEventFlagID(eventFlagId, OFF); 1288     if (!(CharacterHasSpEffect(20000, 540155) || CharacterHasSpEffect(20000, 6999100))) {
1260     WaitFor( 1289         SetNetworkconnectedEventFlagID(eventFlagId, OFF);
1261         CharacterHasSpEffect(20000, 540155) 1290     }
1262             || CharacterHasSpEffect(20000, 6999100) 1291     spFlag = CharacterHasSpEffect(20000, 540155)
1263             || EventFlag(eventFlagId)); 1292         || CharacterHasSpEffect(20000, 6999100)
1293         || EventFlag(eventFlagId);
1294     WaitFor(spFlag || ElapsedSeconds(10));
1295     RestartIf(!spFlag.Passed);
1264     SetNetworkconnectedEventFlagID(eventFlagId, ON); 1296     SetNetworkconnectedEventFlagID(eventFlagId, ON);
1265     WaitFor( 1297     spFlag2 = (!CharacterHasSpEffect(20000, 540155) && !CharacterHasSpEffect(20000, 6999100))
1266         (!CharacterHasSpEffect(20000, 540155) && !CharacterHasSpEffect(20000, 6999100)) 1298         || !EventFlag(eventFlagId);
1267             || !EventFlag(eventFlagId)); 1299     WaitFor(spFlag2 || ElapsedSeconds(10));
1268     WaitFor(EventFlag(eventFlagId2)); 1300     RestartIf(!spFlag2.Passed);
1301     if (!EventFlag(eventFlagId)) {
1302         WaitFor(EventFlag(eventFlagId2));
1303     }
1269     RestartEvent(); 1304     RestartEvent();
1270 }); 1305 });
1271 1306
1272 $Event(1184, Restart, function(chrEntityId, eventFlagId, eventFlagId2) { 1307 $Event(1184, Restart, function(chrEntityId, eventFlagId, eventFlagId2) {
1273     WaitFor( 1308     WaitFor(
1274         !(CharacterHasTeamType(chrEntityId, TeamType.Human) 1309         !(CharacterHasTeamType(chrEntityId, TeamType.Human)
1275             || CharacterHasTeamType(chrEntityId, TeamType.WhitePhantom) 1310             || CharacterHasTeamType(chrEntityId, TeamType.WhitePhantom)
1276             || CharacterHasTeamType(chrEntityId, TeamType.Indiscriminate) 1311             || CharacterHasTeamType(chrEntityId, TeamType.Indiscriminate)
1277             || CharacterHasTeamType(chrEntityId, TeamType.Unknown77) 1312             || CharacterHasTeamType(chrEntityId, TeamType.Unknown77)
1278             || CharacterHasTeamType(chrEntityId, TeamType.Disabled)) 1313             || CharacterHasTeamType(chrEntityId, TeamType.Disabled))
1476     SetSpEffect(20000, 99270); 1511     SetSpEffect(20000, 99270);
1477     AddEstusCharge(); 1512     AddEstusCharge();
1478     RefillEstus(); 1513     RefillEstus();
1479     SetEventFlagID(9051, ON); 1514     SetEventFlagID(9051, ON);
1480     WaitFixedTimeSeconds(0.5); 1515     WaitFixedTimeSeconds(0.5);
1481     RecordUserDispLog(11251, 20000, LogObjectType.None, -1); 1516     RecordUserDispLog(11251, 20000, LogObjectType.None, -1);
1482 }); 1517 });
1483 1518
1484 $Event(1305, Default, function() { 1519 $Event(1305, Default, function() {
1485     DisableNetworkSync(); 1520     DisableNetworkSync();
1486     WaitFor(IsGameMode(2) && (EventFlag(7516) || EventFlag(7512))); 1521     WaitFor(
1522         IsGameMode(2) && (EventFlag(7516) || EventFlag(7512)) && (IsPlayMode(0) || IsPlayMode(1)));
1487     SetEventFlagID(6090, OFF); 1523     SetEventFlagID(6090, OFF);
1488     SetEventFlagID(6091, OFF); 1524     SetEventFlagID(6091, OFF);
1489     SetEventFlagID(6092, OFF); 1525     SetEventFlagID(6092, OFF);
1490     SetEventFlagID(6093, OFF); 1526     SetEventFlagID(6093, OFF);
1491     SetEventFlagID(6095, OFF); 1527     SetEventFlagID(6095, OFF);
1492     GotoIf(L1, EventFlag(7602)); 1528     GotoIf(L1, EventFlag(7602));
1493     GotoIf(L2, EventFlag(7601)); 1529     GotoIf(L2, EventFlag(7601));
1494     GotoIf(L3, EventFlag(7603)); 1530     GotoIf(L3, EventFlag(7603));
1495     GotoIf(L4, EventFlag(7605)); 1531     GotoIf(L4, EventFlag(7605));
1496     SetEventFlagID(6095, ON); 1532     SetEventFlagID(6095, ON);
1523         HasMultiplayerState(MultiplayerState.Singleplayer) || CharacterHasSpEffect(20000, 99240)); 1559         HasMultiplayerState(MultiplayerState.Singleplayer) || CharacterHasSpEffect(20000, 99240));
1524     SetSpEffect(20000, 99240); 1560     SetSpEffect(20000, 99240);
1525     WaitFor( 1561     WaitFor(
1526         HasMultiplayerState(MultiplayerState.Multiplayer) || !CharacterHasSpEffect(20000, 99240)); 1562         HasMultiplayerState(MultiplayerState.Multiplayer) || !CharacterHasSpEffect(20000, 99240));
1527     ClearSpEffect(20000, 99240); 1563     ClearSpEffect(20000, 99240);
1528     RestartEvent(); 1564     RestartEvent();
1529 }); 1565 });
1530 1566
1531 $Event(1308, Restart, function() { 1567 $Event(1308, Restart, function() {
1532     DisableNetworkSync(); 1568     DisableNetworkSync();
1569     EndIf(!IsGameMode(2));
1570     WaitFor(IsPlayerCount(2) || CharacterHasSpEffect(20000, 99241));
1571     SetSpEffect(20000, 99241);
1572     WaitFor(!IsPlayerCount(2) || !CharacterHasSpEffect(20000, 99241));
1573     ClearSpEffect(20000, 99241);
1574     RestartEvent();
1575 });
1576
1577 $Event(1309, Restart, function() {
1578     DisableNetworkSync();
1533     EndIf(!(IsGameMode(2) || IsGameMode(4))); 1579     EndIf(!(IsGameMode(2) || IsGameMode(4)));
1534     EndIf(EventFlag(9052)); 1580     EndIf(EventFlag(9052));
1535     WaitFor( 1581     WaitFor(
1536         !(WeatherActive(Weather.Type83, 0, 0) || WeatherActive(Weather.Type81, 0, 0)) 1582         !(WeatherActive(Weather.Type83, 0, 0) || WeatherActive(Weather.Type81, 0, 0))
1537             && (InArea(20000, 1045372400) || InArea(20000, 1029102400))); 1583             && (InArea(20000, 1045372400) || InArea(20000, 1029102400)));
1538     if (InArea(20000, 1045372400)) { 1584     if (InArea(20000, 1045372400)) {
1539         ChangeWeather(Weather.Type51, -1, false); 1585         ChangeWeather(Weather.Type51, -1, false);
1540         areaFlag = !InArea(20000, 1045372400) || EventFlag(9052); 1586         areaFlag = !InArea(20000, 1045372400) || EventFlag(9052);
1541         cond = WeatherActive(Weather.Type83, 0, 0) || WeatherActive(Weather.Type81, 0, 0); 1587         cond = WeatherActive(Weather.Type83, 0, 0) || WeatherActive(Weather.Type81, 0, 0);
1542         WaitFor(areaFlag || cond); 1588         WaitFor(areaFlag || cond);
1551         cond3 = WeatherActive(Weather.Type83, 0, 0) || WeatherActive(Weather.Type81, 0, 0); 1597         cond3 = WeatherActive(Weather.Type83, 0, 0) || WeatherActive(Weather.Type81, 0, 0);
1552         WaitFor(cond2 || cond3); 1598         WaitFor(cond2 || cond3);
1553         RestartIf(cond3.Passed); 1599         RestartIf(cond3.Passed);
1554         ChangeWeather(Weather.Type00, -1, false); 1600         ChangeWeather(Weather.Type00, -1, false);
1555         RestartEvent(); 1601         RestartEvent();
1556     } 1602     }
1557 L1: 1603 L1:
1558     NoOp(); 1604     NoOp();
1559 }); 1605 });
1560 1606
1561 $Event(1309, Restart, function(eventFlagId) { 1607 $Event(1310, Restart, function(eventFlagId) {
1562     DisableNetworkSync(); 1608     DisableNetworkSync();
1563     EndIf(!IsGameMode(2)); 1609     EndIf(!IsGameMode(2));
1564     WaitFor( 1610     WaitFor(
1565         EventFlag(9015) 1611         EventFlag(9015)
1566             && CharacterHasTeamType(20000, TeamType.Unknown77) 1612             && CharacterHasTeamType(20000, TeamType.Unknown77)
1567             && CharacterHasSpEffect(20000, 540157) 1613             && CharacterHasSpEffect(20000, 540157)
1568             && !InsidePlayArea(20000, 0)); 1614             && !InsidePlayArea(20000, 0));
1569     cond = !AnyBatchEventFlags(7005, 7007) && EventFlag(eventFlagId); 1615     cond = !AnyBatchEventFlags(7005, 7007) && EventFlag(eventFlagId);
1570     flagChr = !EventFlag(9015) || !CharacterHasTeamType(20000, TeamType.Unknown77) || InsidePlayArea(20000, 0); 1616     flagChr = !EventFlag(9015) || !CharacterHasTeamType(20000, TeamType.Unknown77) || InsidePlayArea(20000, 0);
1571     WaitFor(ElapsedSeconds(15) || cond || flagChr); 1617     WaitFor(ElapsedSeconds(15) || cond || flagChr);
1572     EndIf(EventFlag(7516)); 1618     EndIf(EventFlag(7516));
1573     RestartIf(flagChr.Passed); 1619     RestartIf(flagChr.Passed);
1574     SetSpEffect(20000, 102145); 1620     SetSpEffect(20000, 102145);
1575     WaitFor( 1621     WaitFor(
1576         !EventFlag(9015) 1622         !EventFlag(9015)
1577             || !CharacterHasTeamType(20000, TeamType.Unknown77) 1623             || !CharacterHasTeamType(20000, TeamType.Unknown77)
1578             || InsidePlayArea(20000, 0)); 1624             || InsidePlayArea(20000, 0));
1579     RestartEvent(); 1625     RestartEvent();
1580 }); 1626 });
1581 1627
1582 $Event(1310, Default, function() { 1628 $Event(1311, Default, function() {
1583     DisableNetworkSync(); 1629     DisableNetworkSync();
1584     WaitFor(IsGameMode(2) && EventFlag(7516)); 1630     WaitFor(IsGameMode(2) && EventFlag(7516));
1585     GotoIf(L0, !EventFlag(105)); 1631     GotoIf(L0, !EventFlag(105));
1586     GotoIf(L1, !EventFlag(106)); 1632     GotoIf(L1, !EventFlag(106));
1587     Goto(L2); 1633     Goto(L2);
1588 L0: 1634 L0:
1589     SetEventFlagID(105, ON); 1635     SetEventFlagID(105, ON);
1590     SetEventFlagID(106, OFF); 1636     SetEventFlagID(106, OFF);
1591     EndEvent(); 1637     EndEvent();
1592 L1: 1638 L1:
1593     SetEventFlagID(105, ON); 1639     SetEventFlagID(105, ON);
1594     SetEventFlagID(106, ON); 1640     SetEventFlagID(106, ON);
1595     EndEvent(); 1641     EndEvent();
1596 L2: 1642 L2:
1597     EndEvent(); 1643     EndEvent();
1598 }); 1644 });
1599 1645
1600 $Event(1311, Default, function() { 1646 $Event(1312, Default, function() {
1601     DisableNetworkSync(); 1647     DisableNetworkSync();
1602     WaitFor(IsGameMode(2) && (EventFlag(7516) || EventFlag(7512))); 1648     WaitFor(IsGameMode(2) && (EventFlag(7516) || EventFlag(7512)));
1603     SetEventFlagID(9089, OFF); 1649     SetEventFlagID(9089, OFF);
1604     SetEventFlagID(9090, OFF); 1650     SetEventFlagID(9090, OFF);
1605     SetEventFlagID(9091, OFF); 1651     SetEventFlagID(9091, OFF);
1606     SetEventFlagID(9092, OFF); 1652     SetEventFlagID(9092, OFF);
1607     SetEventFlagID(9093, OFF); 1653     SetEventFlagID(9093, OFF);
1608     SetEventFlagID(9094, OFF); 1654     SetEventFlagID(9094, OFF);
1609     SetEventFlagID(9095, OFF); 1655     SetEventFlagID(9095, OFF);
1610     SetEventFlagID(9096, OFF); 1656     SetEventFlagID(9096, OFF);
1641     SetEventFlagID(9095, ON); 1687     SetEventFlagID(9095, ON);
1642     EndEvent(); 1688     EndEvent();
1643 L7: 1689 L7:
1644     SetEventFlagID(9096, ON); 1690     SetEventFlagID(9096, ON);
1645     EndEvent(); 1691     EndEvent();
1646 L8: 1692 L8:
1647     SetEventFlagID(9097, ON); 1693     SetEventFlagID(9097, ON);
1648     EndEvent(); 1694     EndEvent();
1649 }); 1695 });
1650 1696
1697 $Event(1313, Default, function() {
1698     DisableNetworkSync();
1699     EndIf(EventFlag(131));
1700     WaitFor(IsGameMode(2) && IsPlayMode(2) && (EventFlag(7516) || EventFlag(7512)));
1701     SetEventFlagID(131, ON);
1702     EndEvent();
1703 });
1704
1705 $Event(1314, Default, function() {
1706     DisableNetworkSync();
1707     WaitFor((EventFlag(7506) && EventFlag(9015)) || EventFlag(7507));
1708     SetEventFlagID(9018, ON);
1709 });
1710
1651 $Event(1320, Restart, function(spEffectId, spEffectId2) { 1711 $Event(1320, Restart, function(spEffectId, spEffectId2) {
1652     WaitFor(CharacterHasSpEffect(20000, spEffectId)); 1712     WaitFor(CharacterHasSpEffect(20000, spEffectId));
1653     ClearSpEffect(20000, spEffectId); 1713     ClearSpEffect(20000, spEffectId);
1654     WaitFor(!InsidePlayArea(20000, 0) || ElapsedFrames(1)); 1714     WaitFor(!InsidePlayArea(20000, 0) || ElapsedFrames(1));
1655     if (!InsidePlayArea(20000, 0)) { 1715     if (!InsidePlayArea(20000, 0)) {
1656         SetSpEffect(20000, spEffectId2); 1716         SetSpEffect(20000, spEffectId2);
1657     } 1717     }
1658     RestartEvent(); 1718     RestartEvent();
1659 }); 1719 });
1660 1720
1882     IncrementNetworkconnectedEventValue(8140, 4, 7); 1942     IncrementNetworkconnectedEventValue(8140, 4, 7);
1883     RestartEvent(); 1943     RestartEvent();
1884 }); 1944 });
1885 1945
1886 $Event(1405, Restart, function(spEffectId, eventFlagId) { 1946 $Event(1405, Restart, function(spEffectId, eventFlagId) {
1887     DisableNetworkSync(); 1947     DisableNetworkSync();
1888     EndIf(!CharacterHasSpEffect(20000, spEffectId)); 1948     EndIf(!CharacterHasSpEffect(20000, spEffectId));
1889     SetEventFlagID(eventFlagId, ON); 1949     SetEventFlagID(eventFlagId, ON);
1890 }); 1950 });
1891 1951
1952 $Event(1406, Default, function(spEffectId, spEffectId2, spEffectId3, eventFlagId, eventFlagId2) {
1953     DisableNetworkSync();
1954     WaitFor(CharacterHasSpEffect(20000, spEffectId));
1955     if (EventValue(eventFlagId2, 4) < 1) {
1956         WaitFor(EventValue(eventFlagId, 4) >= 1);
1957         IncrementEventValue(eventFlagId2, 4, 10);
1958         SetSpEffect(20000, spEffectId2);
1959         if (Signed(spEffectId3) != 0) {
1960             SetSpEffect(20000, spEffectId3);
1961         }
1962         WaitFixedTimeFrames(1);
1963     }
1964 L1:
1965     if (EventValue(eventFlagId2, 4) < 2) {
1966         WaitFor(EventValue(eventFlagId, 4) >= 2);
1967         IncrementEventValue(eventFlagId2, 4, 10);
1968         SetSpEffect(20000, spEffectId2);
1969         if (Signed(spEffectId3) != 0) {
1970             SetSpEffect(20000, spEffectId3);
1971         }
1972         WaitFixedTimeFrames(1);
1973     }
1974 L2:
1975     if (EventValue(eventFlagId2, 4) < 3) {
1976         WaitFor(EventValue(eventFlagId, 4) >= 3);
1977         IncrementEventValue(eventFlagId2, 4, 10);
1978         SetSpEffect(20000, spEffectId2);
1979         if (Signed(spEffectId3) != 0) {
1980             SetSpEffect(20000, spEffectId3);
1981         }
1982         WaitFixedTimeFrames(1);
1983     }
1984 L3:
1985     if (EventValue(eventFlagId2, 4) < 4) {
1986         WaitFor(EventValue(eventFlagId, 4) >= 4);
1987         IncrementEventValue(eventFlagId2, 4, 10);
1988         SetSpEffect(20000, spEffectId2);
1989         if (Signed(spEffectId3) != 0) {
1990             SetSpEffect(20000, spEffectId3);
1991         }
1992         WaitFixedTimeFrames(1);
1993     }
1994 L4:
1995     if (EventValue(eventFlagId2, 4) < 5) {
1996         WaitFor(EventValue(eventFlagId, 4) >= 5);
1997         IncrementEventValue(eventFlagId2, 4, 10);
1998         SetSpEffect(20000, spEffectId2);
1999         if (Signed(spEffectId3) != 0) {
2000             SetSpEffect(20000, spEffectId3);
2001         }
2002         WaitFixedTimeFrames(1);
2003     }
2004 L5:
2005     if (EventValue(eventFlagId2, 4) < 6) {
2006         WaitFor(EventValue(eventFlagId, 4) >= 6);
2007         IncrementEventValue(eventFlagId2, 4, 10);
2008         SetSpEffect(20000, spEffectId2);
2009         if (Signed(spEffectId3) != 0) {
2010             SetSpEffect(20000, spEffectId3);
2011         }
2012         WaitFixedTimeFrames(1);
2013     }
2014 L6:
2015     if (EventValue(eventFlagId2, 4) < 7) {
2016         WaitFor(EventValue(eventFlagId, 4) >= 7);
2017         IncrementEventValue(eventFlagId2, 4, 10);
2018         SetSpEffect(20000, spEffectId2);
2019         if (Signed(spEffectId3) != 0) {
2020             SetSpEffect(20000, spEffectId3);
2021         }
2022         WaitFixedTimeFrames(1);
2023     }
2024 L7:
2025     if (EventValue(eventFlagId2, 4) < 8) {
2026         WaitFor(EventValue(eventFlagId, 4) >= 8);
2027         IncrementEventValue(eventFlagId2, 4, 10);
2028         SetSpEffect(20000, spEffectId2);
2029         if (Signed(spEffectId3) != 0) {
2030             SetSpEffect(20000, spEffectId3);
2031         }
2032         WaitFixedTimeFrames(1);
2033     }
2034 L8:
2035     if (EventValue(eventFlagId2, 4) < 9) {
2036         WaitFor(EventValue(eventFlagId, 4) >= 9);
2037         IncrementEventValue(eventFlagId2, 4, 10);
2038         SetSpEffect(20000, spEffectId2);
2039         if (Signed(spEffectId3) != 0) {
2040             SetSpEffect(20000, spEffectId3);
2041         }
2042         WaitFixedTimeFrames(1);
2043     }
2044 L9:
2045     if (EventValue(eventFlagId2, 4) < 10) {
2046         WaitFor(EventValue(eventFlagId, 4) >= 10);
2047         IncrementEventValue(eventFlagId2, 4, 10);
2048         SetSpEffect(20000, spEffectId2);
2049         if (Signed(spEffectId3) != 0) {
2050             SetSpEffect(20000, spEffectId3);
2051         }
2052         WaitFixedTimeFrames(1);
2053     }
2054 L10:
2055     NoOp();
2056 });
2057
1892 $Event(1450, Default, function(spEffectId, spEffectId2) { 2058 $Event(1450, Default, function(spEffectId, spEffectId2) {
1893     DisableNetworkSync(); 2059     DisableNetworkSync();
1894     WaitFor(CharacterHasSpEffect(20000, spEffectId)); 2060     WaitFor(CharacterHasSpEffect(20000, spEffectId));
1895     if (EventValue(9130, 4) < 1) { 2061     if (EventValue(9130, 4) < 1) {
1896         WaitFor(TeamOpenedBonfires() >= 1); 2062         WaitFor(TeamOpenedBonfires() >= 1);
1897         IncrementEventValue(9130, 4, 10); 2063         IncrementEventValue(9130, 4, 10);
1898         SetSpEffect(20000, spEffectId2); 2064         SetSpEffect(20000, spEffectId2);
1899         WaitFixedTimeFrames(1); 2065         WaitFixedTimeFrames(1);
1900     } 2066     }
1901 L1: 2067 L1:
diff -rNU 10 nr1.01.7/common_func.emevd.dcx.js nr/common_func.emevd.dcx.js
nr1.01.7/common_func.emevd.dcx.jsnr/common_func.emevd.dcx.js
18     chr = CharacterRatioDead(chrEntityId); 18     chr = CharacterRatioDead(chrEntityId);
19     chrAreaFlag |= chrArea || chr; 19     chrAreaFlag |= chrArea || chr;
20     if (eventFlagId2 != 0) { 20     if (eventFlagId2 != 0) {
21         chrAreaFlag |= EventFlag(eventFlagId2); 21         chrAreaFlag |= EventFlag(eventFlagId2);
22     } 22     }
23     WaitFor(chrAreaFlag); 23     WaitFor(chrAreaFlag);
24     if (eventFlagId2 != 0) { 24     if (eventFlagId2 != 0) {
25         EndIf(EventFlag(eventFlagId2)); 25         EndIf(EventFlag(eventFlagId2));
26     } 26     }
27     SetWorldMapPointFlag(0, ON); 27     SetWorldMapPointFlag(0, ON);
28     SetWorldMapPointFlag(8, OFF);
28     EndIf(chr.Passed); 29     EndIf(chr.Passed);
29     flag = !EventFlag(5000); 30     flag = !EventFlag(5000);
30     flag2 = !EventFlag(5001); 31     flag2 = !EventFlag(5001);
31     flag3 = flag || flag2; 32     flag3 = flag || flag2;
32     if (!flag3) { 33     if (!flag3) {
33         WaitFor(flag3); 34         WaitFor(flag3);
34         RestartEvent(); 35         RestartEvent();
35     } 36     }
36     if (Signed(bgmBossConvParamId) != 0) { 37     if (Signed(bgmBossConvParamId) != 0) {
37         SetBossBGM(bgmBossConvParamId, BossBGMState.Start); 38         SetBossBGM(bgmBossConvParamId, BossBGMState.Start);
134         DisplayTextEffectId(textEffectParamId); 135         DisplayTextEffectId(textEffectParamId);
135     } 136     }
136 L0: 137 L0:
137     RecordUserDispLog(userDispLogParamId, entityId, LogObjectType.NpcName, logObjectId); 138     RecordUserDispLog(userDispLogParamId, entityId, LogObjectType.NpcName, logObjectId);
138     IncrementTeamBossesKilled(1); 139     IncrementTeamBossesKilled(1);
139     if (BossBGMPlaying(bgmBossConvParamId)) { 140     if (BossBGMPlaying(bgmBossConvParamId)) {
140         SetBossBGM(bgmBossConvParamId, BossBGMState.Stop2); 141         SetBossBGM(bgmBossConvParamId, BossBGMState.Stop2);
141     } 142     }
142     SetNetworkconnectedEventFlagID(eventFlagId3, ON); 143     SetNetworkconnectedEventFlagID(eventFlagId3, ON);
143     SetWorldMapPointFlag(2, ON); 144     SetWorldMapPointFlag(2, ON);
145     SetWorldMapPointFlag(8, OFF);
144     EndEvent(); 146     EndEvent();
145 }); 147 });
146 148
147 $Event(90015003, Default, function(spEffectId, eventFlagId, eventFlagId2, eventFlagId3, eventFlagId4, permanentBuffParamId, timeSeconds) { 149 $Event(90015003, Default, function(spEffectId, eventFlagId, eventFlagId2, eventFlagId3, eventFlagId4, permanentBuffParamId, timeSeconds) {
148     DisableNetworkSync(); 150     DisableNetworkSync();
149     if (eventFlagId != 0) { 151     if (eventFlagId != 0) {
150         flag |= EventFlag(eventFlagId); 152         flag |= EventFlag(eventFlagId);
151     } 153     }
152     if (eventFlagId2 != 0) { 154     if (eventFlagId2 != 0) {
153         flag |= EventFlag(eventFlagId2); 155         flag |= EventFlag(eventFlagId2);
228     chr = CharacterRatioDead(chrEntityId); 230     chr = CharacterRatioDead(chrEntityId);
229     chrAreaFlag |= chrArea || chr; 231     chrAreaFlag |= chrArea || chr;
230     if (eventFlagId2 != 0) { 232     if (eventFlagId2 != 0) {
231         chrAreaFlag |= EventFlag(eventFlagId2); 233         chrAreaFlag |= EventFlag(eventFlagId2);
232     } 234     }
233     WaitFor(chrAreaFlag); 235     WaitFor(chrAreaFlag);
234     if (eventFlagId2 != 0) { 236     if (eventFlagId2 != 0) {
235         EndIf(EventFlag(eventFlagId2)); 237         EndIf(EventFlag(eventFlagId2));
236     } 238     }
237     SetWorldMapPointFlag(0, ON); 239     SetWorldMapPointFlag(0, ON);
240     SetWorldMapPointFlag(8, OFF);
238     EndIf(chr.Passed); 241     EndIf(chr.Passed);
239     flag = !EventFlag(5000); 242     flag = !EventFlag(5000);
240     flag2 = !EventFlag(5001); 243     flag2 = !EventFlag(5001);
241     flag3 = flag || flag2; 244     flag3 = flag || flag2;
242     if (!flag3) { 245     if (!flag3) {
243         WaitFor(flag3); 246         WaitFor(flag3);
244         RestartEvent(); 247         RestartEvent();
245     } 248     }
246     if (Signed(bgmBossConvParamId) != 0) { 249     if (Signed(bgmBossConvParamId) != 0) {
247         SetBossBGM(bgmBossConvParamId, BossBGMState.Start); 250         SetBossBGM(bgmBossConvParamId, BossBGMState.Start);
379 }); 382 });
380 383
381 $Event(90015012, Default, function(chrEntityId, eventFlagId) { 384 $Event(90015012, Default, function(chrEntityId, eventFlagId) {
382     EndIf(CharacterHasSpEffect(chrEntityId, 7999, NotEqual, 0)); 385     EndIf(CharacterHasSpEffect(chrEntityId, 7999, NotEqual, 0));
383     WaitFor(EventFlag(eventFlagId)); 386     WaitFor(EventFlag(eventFlagId));
384     ActivateMultiplayerdependantBuffs(chrEntityId); 387     ActivateMultiplayerdependantBuffs(chrEntityId);
385     SetSpEffect(chrEntityId, 7999); 388     SetSpEffect(chrEntityId, 7999);
386 }); 389 });
387 390
388 $Event(90015013, Default, function() { 391 $Event(90015013, Default, function() {
392     EndIf(EventFlag(7811));
389     if (EventFlag(7505)) { 393     if (EventFlag(7505)) {
390         SetWorldMapPointFlag(0, ON); 394         SetWorldMapPointFlag(0, ON);
391         EndEvent(); 395         EndEvent();
392     } 396     }
393 L0: 397 L0:
394     WaitFor(EventFlag(7517)); 398     WaitFor(EventFlag(7517));
395     SetWorldMapPointFlag(0, ON); 399     SetWorldMapPointFlag(0, ON);
396 }); 400 });
397 401
398 $Event(90015014, Default, function(eventFlagId, eventFlagId2) { 402 $Event(90015014, Default, function(eventFlagId, eventFlagId2) {
472     EndIf(EventFlag(eventFlagId2)); 476     EndIf(EventFlag(eventFlagId2));
473     if (!EventFlag(eventFlagId)) { 477     if (!EventFlag(eventFlagId)) {
474         WaitFor(EventFlag(eventFlagId)); 478         WaitFor(EventFlag(eventFlagId));
475         SetNetworkconnectedEventFlagID(7530, ON); 479         SetNetworkconnectedEventFlagID(7530, ON);
476     } 480     }
477 L0: 481 L0:
478     WaitFor(EventFlag(eventFlagId2)); 482     WaitFor(EventFlag(eventFlagId2));
479     SetNetworkconnectedEventFlagID(7530, OFF); 483     SetNetworkconnectedEventFlagID(7530, OFF);
480 }); 484 });
481 485
486 $Event(90015021, Default, function(eventFlagId, chrEntityId, nameId, targetDistance, bgmBossConvParamId, eventFlagId2, eventFlagId3) {
487     DisableNetworkSync();
488     if (eventFlagId != 0) {
489         WaitFor(EventFlag(eventFlagId));
490     }
491     chrArea = CharacterAIState(chrEntityId, AIStateType.Combat, GreaterOrEqual, 1)
492         && EntityInRadiusOfEntity(20000, chrEntityId, targetDistance, 1)
493         && !InArea(20000, 1043372980);
494     chr = CharacterRatioDead(chrEntityId);
495     chrAreaFlag |= chrArea || chr;
496     if (eventFlagId2 != 0) {
497         chrAreaFlag |= EventFlag(eventFlagId2);
498     }
499     WaitFor(chrAreaFlag);
500     if (eventFlagId2 != 0) {
501         EndIf(EventFlag(eventFlagId2));
502     }
503     if (eventFlagId3 != 0) {
504         SetNetworkconnectedEventFlagID(eventFlagId3, OFF);
505     }
506     EndIf(chr.Passed);
507     flag = !EventFlag(5000);
508     flag2 = !EventFlag(5001);
509     flag3 = flag || flag2;
510     if (!flag3) {
511         WaitFor(flag3);
512         RestartEvent();
513     }
514     if (Signed(bgmBossConvParamId) != 0) {
515         SetBossBGM(bgmBossConvParamId, BossBGMState.Start);
516     }
517     WaitFixedTimeSeconds(1);
518     if (flag.Passed) {
519         SetEventFlagID(5000, ON);
520         DisplayBossHealthBar(Enabled, chrEntityId, 0, nameId);
521     } else if (flag2.Passed) {
522         SetEventFlagID(5001, ON);
523         DisplayBossHealthBar(Enabled, chrEntityId, 1, nameId);
524     }
525     LinkToBossHealthBar(Enabled, nameId, chrEntityId);
526     chrArea2 = (CharacterAIState(chrEntityId, AIStateType.Recognition, LessOrEqual, 0)
527         && CharacterAIState(chrEntityId, AIStateType.Alert, LessOrEqual, 0)
528         && CharacterAIState(chrEntityId, AIStateType.Combat, LessOrEqual, 0)
529         && CharacterAIState(chrEntityId, AIStateType.PassiveAlert, LessOrEqual, 0)
530         && CharacterAIState(chrEntityId, AIStateType.ActiveAlert, LessOrEqual, 0)
531         && CharacterAIState(chrEntityId, AIStateType.WaitBeforeForget, LessOrEqual, 0))
532         && !EntityInRadiusOfEntity(20000, chrEntityId, targetDistance, 1);
533     area = EntityInRadiusOfEntity(20000, chrEntityId, 100, 1);
534     chr2 = CharacterRatioDead(chrEntityId);
535     chr3 = CharacterDead(20000);
536     chrAreaFlag2 |= chrArea2 || !area || InArea(20000, 1043372980) || chr2 || chr3;
537     if (eventFlagId2 != 0) {
538         chrAreaFlag2 |= EventFlag(eventFlagId2);
539     }
540     WaitFor(chrAreaFlag2);
541     GotoIf(S0, eventFlagId2 == 0);
542     GotoIf(L0, EventFlag(eventFlagId2));
543 S0:
544     if (chr2.Passed) {
545         WaitFixedTimeSeconds(5);
546     } else {
547         WaitFixedTimeSeconds(1);
548     }
549     GotoIf(S1, !chr3.Passed);
550     WaitFixedTimeSeconds(2.5);
551 S1:
552 L0:
553     if (Signed(bgmBossConvParamId) != 0) {
554         SetBossBGM(bgmBossConvParamId, BossBGMState.Stop2);
555     }
556     if (flag.Passed) {
557         SetEventFlagID(5000, OFF);
558         DisplayBossHealthBar(Disabled, chrEntityId, 0, nameId);
559     } else if (flag2.Passed) {
560         SetEventFlagID(5001, OFF);
561         DisplayBossHealthBar(Disabled, chrEntityId, 1, nameId);
562     }
563     if (eventFlagId2 != 0) {
564         EndIf(EventFlag(eventFlagId2));
565     }
566     EndIf(chr2.Passed);
567     WaitFor(!CharacterDead(20000));
568     RestartEvent();
569 });
570
571 $Event(90015022, Default, function(chrEntityId, eventFlagId) {
572     DisableNetworkSync();
573     WaitFor(EventFlag(eventFlagId));
574     WaitFor(!CharacterHasSpEffect(chrEntityId, 7999, GreaterOrEqual, 1));
575     ActivateMultiplayerdependantBuffs(chrEntityId);
576     SetSpEffect(chrEntityId, 7999);
577     RestartEvent();
578 });
579
482 $Event(90015030, Restart, function(eventFlagId, chrEntityId, targetDistance, bgmBossConvParamId, eventFlagId2) { 580 $Event(90015030, Restart, function(eventFlagId, chrEntityId, targetDistance, bgmBossConvParamId, eventFlagId2) {
483     DisableNetworkSync(); 581     DisableNetworkSync();
484     if (eventFlagId != 0) { 582     if (eventFlagId != 0) {
485         WaitFor(EventFlag(eventFlagId)); 583         WaitFor(EventFlag(eventFlagId));
486     } 584     }
487     chrAreaBgm = CharacterAIState(chrEntityId, AIStateType.Combat, GreaterOrEqual, 1) 585     chrAreaBgm = CharacterAIState(chrEntityId, AIStateType.Combat, GreaterOrEqual, 1)
488         && EntityInRadiusOfEntity(20000, chrEntityId, targetDistance, 1) 586         && EntityInRadiusOfEntity(20000, chrEntityId, targetDistance, 1)
489         && CompareBossBGMPriority(LessOrEqual, bgmBossConvParamId); 587         && CompareBossBGMPriority(LessOrEqual, bgmBossConvParamId);
490     chr = CharacterRatioDead(chrEntityId); 588     chr = CharacterRatioDead(chrEntityId);
491     chrAreaBgmFlag |= chrAreaBgm || chr; 589     chrAreaBgmFlag |= chrAreaBgm || chr;
602     } 700     }
603     if (BossBGMPlaying(bgmBossConvParamId)) { 701     if (BossBGMPlaying(bgmBossConvParamId)) {
604         SetBossBGM(bgmBossConvParamId, BossBGMState.Stop2); 702         SetBossBGM(bgmBossConvParamId, BossBGMState.Stop2);
605     } 703     }
606     WaitFixedTimeFrames(1); 704     WaitFixedTimeFrames(1);
607     WaitFor(!CharacterDead(20000)); 705     WaitFor(!CharacterDead(20000));
608     WaitFor(CompareBossBGMPriority(Less, bgmBossConvParamId)); 706     WaitFor(CompareBossBGMPriority(Less, bgmBossConvParamId));
609     RestartEvent(); 707     RestartEvent();
610 }); 708 });
611 709
710 $Event(90015040, Default, function(mutationId) {
711     EndIf(!HasEnemyMutation(mutationId, 0, 0));
712     SetWorldMapPointFlag(6, ON);
713 });
714
715 $Event(90015041, Default, function(mutationId, unknown, unknown2, eventFlagId) {
716     EndIf(!HasEnemyMutation(mutationId, unknown, unknown2));
717     SetNetworkconnectedEventFlagID(eventFlagId, ON);
718 });
719
720 $Event(90015042, Default, function(mutationId, eventFlagId) {
721     EndIf(!HasEnemyMutation(mutationId, 0, 0));
722     WaitFor(EventFlag(eventFlagId));
723     SetWorldMapPointFlag(7, ON);
724 });
725
726 $Event(90015050, Default, function(eventFlagId, eventFlagId2) {
727     EndIf(EventFlag(eventFlagId));
728     WaitFor(EventFlag(eventFlagId));
729     IncrementNetworkconnectedEventValue(eventFlagId2, 4, 10);
730 });
731
612 $Event(90015100, Restart, function(eventFlagId, eventFlagId2, spEffectId, eventFlagId3) { 732 $Event(90015100, Restart, function(eventFlagId, eventFlagId2, spEffectId, eventFlagId3) {
613     DisableNetworkSync(); 733     DisableNetworkSync();
614     EndIf(!EventFlag(eventFlagId)); 734     EndIf(!EventFlag(eventFlagId));
615     SetEventFlagID(eventFlagId2, ON); 735     SetEventFlagID(eventFlagId2, ON);
616     WaitFor(CharacterHasSpEffect(20000, spEffectId)); 736     WaitFor(CharacterHasSpEffect(20000, spEffectId));
617     SetEventFlagID(eventFlagId3, ON); 737     SetEventFlagID(eventFlagId3, ON);
618 }); 738 });
619 739
620 $Event(90015140, Restart, function(assetEntityId, objactParamId, eventFlagId, eventFlagId2) { 740 $Event(90015140, Restart, function(assetEntityId, objactParamId, eventFlagId, eventFlagId2) {
621     DisableNetworkSync(); 741     DisableNetworkSync();
1314     DisableCharacterAI(chrEntityId); 1434     DisableCharacterAI(chrEntityId);
1315 }); 1435 });
1316 1436
1317 $Event(90015402, Restart, function(areaEntityId, eventFlagId, eventFlagId2) { 1437 $Event(90015402, Restart, function(areaEntityId, eventFlagId, eventFlagId2) {
1318     DisableNetworkSync(); 1438     DisableNetworkSync();
1319     EndIf(EventFlag(eventFlagId2)); 1439     EndIf(EventFlag(eventFlagId2));
1320     WaitFor((EventFlag(eventFlagId) && InArea(20000, areaEntityId)) || EventFlag(eventFlagId2)); 1440     WaitFor((EventFlag(eventFlagId) && InArea(20000, areaEntityId)) || EventFlag(eventFlagId2));
1321     EndIf(EventFlag(eventFlagId2)); 1441     EndIf(EventFlag(eventFlagId2));
1322     SetSpEffect(20000, 99115); 1442     SetSpEffect(20000, 99115);
1323     WaitFixedTimeSeconds(0.2); 1443     WaitFixedTimeSeconds(0.2);
1444     ActivateGparamOverride(8, 0.5);
1445     WaitFixedTimeSeconds(0.5);
1324     ChangeWeather(Weather.Type81, -1, true); 1446     ChangeWeather(Weather.Type81, -1, true);
1325     WaitFixedTimeSeconds(3); 1447     WaitFixedTimeSeconds(2.5);
1326     WaitFor(!EventFlag(eventFlagId) || !InArea(20000, areaEntityId) || EventFlag(eventFlagId2)); 1448     WaitFor(!EventFlag(eventFlagId) || !InArea(20000, areaEntityId) || EventFlag(eventFlagId2));
1327     ChangeWeather(Weather.Type40, -1, false); 1449     ChangeWeather(Weather.Type40, -1, false);
1450     DeactivateGparamOverride(5);
1328     WaitFixedTimeSeconds(3); 1451     WaitFixedTimeSeconds(3);
1329     RestartEvent(); 1452     RestartEvent();
1330 }); 1453 });
1331 1454
1332 $Event(90015403, Restart, function(areaEntityId, eventFlagId, eventFlagId2) { 1455 $Event(90015403, Restart, function(areaEntityId, eventFlagId, eventFlagId2) {
1333     DisableNetworkSync(); 1456     DisableNetworkSync();
1334     EndIf(EventFlag(eventFlagId2)); 1457     EndIf(EventFlag(eventFlagId2));
1335     WaitFor(EventFlag(eventFlagId) && InArea(20000, areaEntityId)); 1458     WaitFor(EventFlag(eventFlagId) && InArea(20000, areaEntityId));
1336     SetSpEffect(20000, 99110); 1459     SetSpEffect(20000, 99110);
1337     WaitFixedTimeSeconds(1); 1460     WaitFixedTimeSeconds(1);
1377     chr = CharacterRatioDead(chrEntityId2); 1500     chr = CharacterRatioDead(chrEntityId2);
1378     chrAreaFlag |= chrArea || chr; 1501     chrAreaFlag |= chrArea || chr;
1379     if (eventFlagId2 != 0) { 1502     if (eventFlagId2 != 0) {
1380         chrAreaFlag |= EventFlag(eventFlagId2); 1503         chrAreaFlag |= EventFlag(eventFlagId2);
1381     } 1504     }
1382     WaitFor(chrAreaFlag); 1505     WaitFor(chrAreaFlag);
1383     if (eventFlagId2 != 0) { 1506     if (eventFlagId2 != 0) {
1384         EndIf(EventFlag(eventFlagId2)); 1507         EndIf(EventFlag(eventFlagId2));
1385     } 1508     }
1386     SetWorldMapPointFlag(0, ON); 1509     SetWorldMapPointFlag(0, ON);
1510     SetWorldMapPointFlag(8, OFF);
1387     EndIf(chr.Passed); 1511     EndIf(chr.Passed);
1388     flag = !EventFlag(5000); 1512     flag = !EventFlag(5000);
1389     flag2 = !EventFlag(5001); 1513     flag2 = !EventFlag(5001);
1390     flag3 = flag || flag2; 1514     flag3 = flag || flag2;
1391     if (!flag3) { 1515     if (!flag3) {
1392         WaitFor(flag3); 1516         WaitFor(flag3);
1393         RestartEvent(); 1517         RestartEvent();
1394     } 1518     }
1395     if (Signed(bgmBossConvParamId) != 0) { 1519     if (Signed(bgmBossConvParamId) != 0) {
1396         SetBossBGM(bgmBossConvParamId, BossBGMState.Start); 1520         SetBossBGM(bgmBossConvParamId, BossBGMState.Start);
1507     DisableCharacterCollision(chrEntityId2); 1631     DisableCharacterCollision(chrEntityId2);
1508     DisableCharacterHPBarDisplay(chrEntityId2); 1632     DisableCharacterHPBarDisplay(chrEntityId2);
1509     ForceAnimationPlayback(chrEntityId2, 20015, false, false, false); 1633     ForceAnimationPlayback(chrEntityId2, 20015, false, false, false);
1510     WaitFor(ElapsedSeconds(1.4)); 1634     WaitFor(ElapsedSeconds(1.4));
1511     ForceAnimationPlayback(chrEntityId2, 30015, true, false, false); 1635     ForceAnimationPlayback(chrEntityId2, 30015, true, false, false);
1512     SetNetworkconnectedEventFlagID(chrEntityId, ON); 1636     SetNetworkconnectedEventFlagID(chrEntityId, ON);
1513     WaitFor(ElapsedSeconds(2)); 1637     WaitFor(ElapsedSeconds(2));
1514     DisableCharacter(chrEntityId2); 1638     DisableCharacter(chrEntityId2);
1515 }); 1639 });
1516 1640
1641 $Event(90015500, Restart, function(areaEntityId) {
1642     EndIf(!EventFlag(7811));
1643     WaitFor(InArea(20000, areaEntityId));
1644     SetWorldMapPointFlag(8, OFF);
1645 });
1646
1647 $Event(90015501, Restart, function(areaEntityId, eventFlagId) {
1648     EndIf(!EventFlag(7811));
1649     WaitFor(InArea(20000, areaEntityId));
1650     SetNetworkconnectedEventFlagID(eventFlagId, OFF);
1651 });
1652
1517 $Event(90035000, Restart, function(eventFlagId) { 1653 $Event(90035000, Restart, function(eventFlagId) {
1518     EndIf(!EventFlag(7700) && !EventFlag(7720)); 1654     EndIf(!EventFlag(7700) && !EventFlag(7720));
1519     EndIf(EventFlag(8035)); 1655     EndIf(EventFlag(8035));
1520     WaitFor(EventFlag(8035)); 1656     WaitFor(EventFlag(8035));
1521     SetNetworkconnectedEventFlagID(eventFlagId, ON); 1657     SetNetworkconnectedEventFlagID(eventFlagId, ON);
1522 }); 1658 });
1523 1659
1524 $Event(90035001, Restart, function(chrEntityId) { 1660 $Event(90035001, Restart, function(chrEntityId) {
1525     EndIf(!EventFlag(7700) && !EventFlag(7720)); 1661     EndIf(!EventFlag(7700) && !EventFlag(7720));
1526     EndIf(EventFlag(8035)); 1662     EndIf(EventFlag(8035));
4304     EndIf(EventFlag(eventFlagId)); 4440     EndIf(EventFlag(eventFlagId));
4305     WaitFor(CharacterRatioHPValue(chrEntityId) <= 0); 4441     WaitFor(CharacterRatioHPValue(chrEntityId) <= 0);
4306     WaitFixedTimeSeconds(5); 4442     WaitFixedTimeSeconds(5);
4307     PlaySE(chrEntityId, SoundType.SFX, 888880000); 4443     PlaySE(chrEntityId, SoundType.SFX, 888880000);
4308     DisplayTextEffectId(textEffectParamId); 4444     DisplayTextEffectId(textEffectParamId);
4309     RecordUserDispLog(userDispLogParamId, entityId, LogObjectType.NpcName, logObjectId); 4445     RecordUserDispLog(userDispLogParamId, entityId, LogObjectType.NpcName, logObjectId);
4310     IncrementTeamBossesKilled(1); 4446     IncrementTeamBossesKilled(1);
4311     SetNetworkconnectedEventFlagID(eventFlagId, ON); 4447     SetNetworkconnectedEventFlagID(eventFlagId, ON);
4312     SetNetworkconnectedEventFlagID(eventFlagId2, ON); 4448     SetNetworkconnectedEventFlagID(eventFlagId2, ON);
4313     SetWorldMapPointFlag(2, ON); 4449     SetWorldMapPointFlag(2, ON);
4450     SetWorldMapPointFlag(8, OFF);
4314     IncrementNetworkconnectedEventValue(8145, 4, 7); 4451     IncrementNetworkconnectedEventValue(8145, 4, 7);
4315     EndEvent(); 4452     EndEvent();
4316 }); 4453 });
4317 4454
4318 $Event(90045004, Default, function(eventFlagId, eventFlagId2, eventFlagId3, eventFlagId4, eventFlagId5, eventFlagId6, mapVariationId, chrEntityId) { 4455 $Event(90045004, Default, function(eventFlagId, eventFlagId2, eventFlagId3, eventFlagId4, eventFlagId5, eventFlagId6, mapVariationId, chrEntityId) {
4319     EndIf(!IsMapVariation(mapVariationId)); 4456     EndIf(!IsMapVariation(mapVariationId));
4320     EndIf(EventFlag(eventFlagId3)); 4457     EndIf(EventFlag(eventFlagId3));
4321     EndIf(CharacterHasSpEffect(chrEntityId, 99150, NotEqual, 0)); 4458     EndIf(CharacterHasSpEffect(chrEntityId, 99150, NotEqual, 0));
4322     EndIf(CharacterHasSpEffect(chrEntityId, 99152, NotEqual, 0)); 4459     EndIf(CharacterHasSpEffect(chrEntityId, 99152, NotEqual, 0));
4323     EndIf(CharacterHasSpEffect(chrEntityId, 99153, NotEqual, 0)); 4460     EndIf(CharacterHasSpEffect(chrEntityId, 99153, NotEqual, 0));
4451     if (value == 2) { 4588     if (value == 2) {
4452         if (EventFlag(7506)) { 4589         if (EventFlag(7506)) {
4453             EnableCharacter(chrEntityId); 4590             EnableCharacter(chrEntityId);
4454             EnableCharacterAI(chrEntityId); 4591             EnableCharacterAI(chrEntityId);
4455             WaitFor(ElapsedSeconds(120)); 4592             WaitFor(ElapsedSeconds(120));
4456             SetEventFlagID(eventFlagId, ON); 4593             SetEventFlagID(eventFlagId, ON);
4457             EndEvent(); 4594             EndEvent();
4458         } 4595         }
4459     } 4596     }
4460     EndIf(EventFlag(7506)); 4597     EndIf(EventFlag(7506));
4461     DisableCharacter(chrEntityId); 4598     if (value == 1) {
4462     DisableCharacterAI(chrEntityId); 4599         flag |= !EventFlag(7505);
4600     }
4601     if (value == 2) {
4602         flag |= EventFlag(7505);
4603     }
4604     if (flag) {
4605         DisableCharacter(chrEntityId);
4606         DisableCharacterAI(chrEntityId);
4607     } else {
4608         DisableCharacter(chrEntityId);
4609         DisableCharacterAI(chrEntityId);
4610         if (value == 1) {
4611             flagTime &= !EventFlag(7505);
4612         }
4613         if (value == 2) {
4614             flagTime &= EventFlag(7505);
4615         }
4616         flagTime &= PlayAreaCurrentTimeInRange(0, 0, 0, 22, 59, 59);
4617         WaitFor(flagTime);
4618         WaitFor(ElapsedSeconds(30));
4619     }
4620 L0:
4463     if (value == 1) { 4621     if (value == 1) {
4464         flagTimeArea &= !EventFlag(7505); 4622         flagTimeArea &= !EventFlag(7505);
4465     } 4623     }
4466     if (value == 2) { 4624     if (value == 2) {
4467         flagTimeArea &= EventFlag(7505); 4625         flagTimeArea &= EventFlag(7505);
4468     } 4626     }
4469     flagTimeArea &= PlayAreaCurrentTimeInRange(23, 0, 0, 23, 59, 59) 4627     flagTimeArea &= PlayAreaCurrentTimeInRange(23, 0, 0, 23, 59, 59)
4470         && (InArea(20000, areaEntityId) || PlayAreaCurrentTimeInRange(23, 59, 0, 23, 59, 59)); 4628         && (InArea(20000, areaEntityId) || PlayAreaCurrentTimeInRange(23, 59, 0, 23, 59, 59));
4471     WaitFor(flagTimeArea); 4629     WaitFor(flagTimeArea);
4472     if (value == 1) { 4630     if (value == 1) {
5920         DisplayBossHealthBar(Disabled, chrEntityId2, 1, nameId); 6078         DisplayBossHealthBar(Disabled, chrEntityId2, 1, nameId);
5921         DisplayBossHealthBar(Disabled, chrEntityId3, 0, nameId2); 6079         DisplayBossHealthBar(Disabled, chrEntityId3, 0, nameId2);
5922         EndEvent(); 6080         EndEvent();
5923     } 6081     }
5924     DisplayBossHealthBar(Disabled, chrEntityId2, 2, nameId); 6082     DisplayBossHealthBar(Disabled, chrEntityId2, 2, nameId);
5925     DisplayBossHealthBar(Disabled, chrEntityId3, 1, nameId2); 6083     DisplayBossHealthBar(Disabled, chrEntityId3, 1, nameId2);
5926     DisplayBossHealthBar(Disabled, chrEntityId4, 0, nameId3); 6084     DisplayBossHealthBar(Disabled, chrEntityId4, 0, nameId3);
5927     EndEvent(); 6085     EndEvent();
5928 }); 6086 });
5929 6087
6088 $Event(90065912, Restart, function(eventFlagId, eventFlagId2, eventFlagId3, bgmBossConvParamId, sfxId, chrEntityId, entityId, nameId) {
6089     if (EventFlag(eventFlagId3)) {
6090         DisableCharacter(chrEntityId);
6091         DisableCharacterAI(chrEntityId);
6092         ForceCharacterDeath(chrEntityId, false);
6093         EndEvent();
6094     }
6095     if (EventFlag(eventFlagId2)) {
6096         SetNetworkUpdateRate(chrEntityId, true, CharacterUpdateFrequency.AlwaysUpdate);
6097         EnableCharacter(chrEntityId);
6098         EnableCharacterAI(chrEntityId);
6099         SetBossBGM(bgmBossConvParamId, BossBGMState.Start);
6100         LinkToBossHealthBar(Disabled, nameId, 0);
6101         DisplayBossHealthBar(Enabled, chrEntityId, 0, nameId);
6102         LinkToBossHealthBar(Enabled, nameId, chrEntityId);
6103     }
6104 L1:
6105     DisableCharacter(chrEntityId);
6106     DisableCharacterAI(chrEntityId);
6107     WaitFor(EventFlag(eventFlagId));
6108     if (IsMapVariation(1)) {
6109         SpawnOneshotSFX(TargetEntityType.Character, entityId, 900, 690050);
6110         WaitFor(ElapsedSeconds(2.5));
6111     }
6112     SetBossBGM(bgmBossConvParamId, BossBGMState.Start);
6113     SpawnOneshotSFX(TargetEntityType.Character, entityId, 900, sfxId);
6114     SetNetworkUpdateRate(chrEntityId, true, CharacterUpdateFrequency.AlwaysUpdate);
6115     WaitFor(ElapsedSeconds(4));
6116     ForceAnimationPlayback(chrEntityId, 20026, false, false, false);
6117     EnableCharacter(chrEntityId);
6118     EnableCharacterAI(chrEntityId);
6119     LinkToBossHealthBar(Disabled, nameId, 0);
6120     DisplayBossHealthBar(Enabled, chrEntityId, 0, nameId);
6121     LinkToBossHealthBar(Enabled, nameId, chrEntityId);
6122     SetNetworkconnectedEventFlagID(eventFlagId2, ON);
6123 });
6124
5930 $Event(90065920, Restart, function(chrEntityId, spEffectId) { 6125 $Event(90065920, Restart, function(chrEntityId, spEffectId) {
5931     if (EventFlag(7535)) { 6126     if (EventFlag(7535)) {
6127         cond &= TargetingBoss(TargetBoss.Gladius);
6128     }
6129     cond &= !IsCampaignSession() && !IsPlayMode(2);
6130     if (cond) {
5932         SetSpEffect(chrEntityId, spEffectId); 6131         SetSpEffect(chrEntityId, spEffectId);
5933     } 6132     }
5934 }); 6133 });
5935 6134
5936 $Event(90075000, Restart, function(chrEntityId, chrEntityId2) { 6135 $Event(90075000, Restart, function(chrEntityId, chrEntityId2) {
6136     DisableNetworkSync();
5937     EnableCharacterDefaultBackread(chrEntityId); 6137     EnableCharacterDefaultBackread(chrEntityId);
5938     EnableCharacterDefaultBackread(chrEntityId2); 6138     EnableCharacterDefaultBackread(chrEntityId2);
5939     SetNetworkUpdateRate(chrEntityId, true, CharacterUpdateFrequency.AlwaysUpdate); 6139     SetNetworkUpdateRate(chrEntityId, true, CharacterUpdateFrequency.AlwaysUpdate);
5940     SetNetworkUpdateRate(chrEntityId2, true, CharacterUpdateFrequency.AlwaysUpdate); 6140     SetNetworkUpdateRate(chrEntityId2, true, CharacterUpdateFrequency.AlwaysUpdate);
5941     CreateReferredDamagePair(chrEntityId2, chrEntityId); 6141     CreateReferredDamagePair(chrEntityId2, chrEntityId);
5942     DisableCharacterHPBarDisplay(chrEntityId); 6142     DisableCharacterHPBarDisplay(chrEntityId);
5943     DisableCharacterHPBarDisplay(chrEntityId2); 6143     DisableCharacterHPBarDisplay(chrEntityId2);
5944     WaitFor(PlayerInMap(19, 0, 0, 0)); 6144     WaitFor(PlayerInMap(19, 0, 0, 0));
5945     WaitFor(ElapsedFrames(1)); 6145     WaitFor(ElapsedFrames(1));
5946     ChangeCamera(-1); 6146     ChangeCamera(-1);
6108     SpawnMapSFX(19002464); 6308     SpawnMapSFX(19002464);
6109     SpawnMapSFX(19002465); 6309     SpawnMapSFX(19002465);
6110     SpawnMapSFX(19002466); 6310     SpawnMapSFX(19002466);
6111     SpawnMapSFX(19002467); 6311     SpawnMapSFX(19002467);
6112     SpawnMapSFX(19002468); 6312     SpawnMapSFX(19002468);
6113     SpawnMapSFX(19002469); 6313     SpawnMapSFX(19002469);
6114     SpawnMapSFX(19002470); 6314     SpawnMapSFX(19002470);
6115     SetSpEffect(0, spEffectId); 6315     SetSpEffect(0, spEffectId);
6116 }); 6316 });
6117 6317
6318 $Event(90075051, Restart, function(chrEntityId, chrEntityId2, entityId, entityId2) {
6319     if (EventFlag(7512)) {
6320         ForceCharacterDeath(chrEntityId, false);
6321         ForceCharacterDeath(chrEntityId2, false);
6322         EndEvent();
6323     }
6324     if (EventFlag(7511)) {
6325         EnableCharacter(chrEntityId);
6326         EnableCharacter(chrEntityId2);
6327         EnableCharacterAI(chrEntityId);
6328         EnableCharacterAI(chrEntityId2);
6329         DisplayBossHealthBar(Enabled, chrEntityId, 0, 907500000);
6330         LinkToBossHealthBar(Disabled, 907500000, 0);
6331         LinkToBossHealthBar(Enabled, 907500000, chrEntityId);
6332         LinkToBossHealthBar(Enabled, 907500000, chrEntityId2);
6333         SetBossBGM(750000, BossBGMState.HeatUp);
6334         EndEvent();
6335     }
6336     EnableCharacter(chrEntityId);
6337     EnableCharacter(chrEntityId2);
6338     DisableCharacterAI(chrEntityId);
6339     DisableCharacterAI(chrEntityId2);
6340     ForceAnimationPlayback(chrEntityId, 30028, true, false, false);
6341     ForceAnimationPlayback(chrEntityId2, 30000, true, false, false);
6342     WaitFor(EventFlag(7511));
6343     SetBossBGM(750000, BossBGMState.HeatUp);
6344     ForceAnimationPlayback(chrEntityId, 20028, false, false, false);
6345     ForceAnimationPlayback(entityId, 20010, false, false, false);
6346     ForceAnimationPlayback(entityId2, 20011, false, false, false);
6347     EnableCharacterAI(chrEntityId);
6348     EnableCharacterAI(chrEntityId2);
6349     LinkToBossHealthBar(Disabled, 907500000, 0);
6350     LinkToBossHealthBar(Enabled, 907500000, chrEntityId);
6351     LinkToBossHealthBar(Enabled, 907500000, chrEntityId2);
6352     WaitFor(ElapsedSeconds(3));
6353     DisplayBossHealthBar(Enabled, chrEntityId, 0, 907500000);
6354 });
6355
6356 $Event(90075060, Restart, function(chrEntityId, chrEntityId2) {
6357     EndIf(EventFlag(7512));
6358     WaitFor(CharacterHasSpEffect(chrEntityId, 5401));
6359     SetSpEffect(chrEntityId2, 5401);
6360     SetSpEffect(chrEntityId2, 7370);
6361     SetSpEffect(chrEntityId2, 42082);
6362     SetSpEffect(chrEntityId2, 42099);
6363     ChangeCharacterDispmask(chrEntityId2, 20, ON);
6364 });
6365
6366 $Event(90075070, Restart, function(chrEntityId, chrEntityId2, dummypolyId, spEffectId, spEffectId2) {
6367     EndIf(EventFlag(7512));
6368     WaitFor(CharacterHasSpEffect(chrEntityId, spEffectId2));
6369     WarpCharacterAndCopyFloorUnknown200489(chrEntityId2, TargetEntityType.Character, chrEntityId, dummypolyId, chrEntityId, -1, -1);
6370     SetSpEffect(chrEntityId2, spEffectId);
6371     WaitFor(!CharacterHasSpEffect(chrEntityId, spEffectId2));
6372     RestartEvent();
6373 });
6374
6118 $Event(90075100, Default, function(chrEntityId) { 6375 $Event(90075100, Default, function(chrEntityId) {
6119     DisableNetworkSync(); 6376     DisableNetworkSync();
6120     EnableCharacterDefaultBackread(chrEntityId); 6377     EnableCharacterDefaultBackread(chrEntityId);
6121     SetNetworkUpdateRate(chrEntityId, true, CharacterUpdateFrequency.AlwaysUpdate); 6378     SetNetworkUpdateRate(chrEntityId, true, CharacterUpdateFrequency.AlwaysUpdate);
6122     DisableCharacterHPBarDisplay(chrEntityId); 6379     DisableCharacterHPBarDisplay(chrEntityId);
6123     WaitFor(PlayerInMap(19, 0, 0, 0)); 6380     WaitFor(PlayerInMap(19, 0, 0, 0));
6124     WaitFor(ElapsedFrames(1)); 6381     WaitFor(ElapsedFrames(1));
6125     ChangeCamera(7510); 6382     ChangeCamera(7510);
6126 }); 6383 });
6127 6384
6174     SpawnMapSFX(19012401); 6431     SpawnMapSFX(19012401);
6175     SpawnMapSFX(19012402); 6432     SpawnMapSFX(19012402);
6176     SpawnMapSFX(19012403); 6433     SpawnMapSFX(19012403);
6177     SpawnMapSFX(19012404); 6434     SpawnMapSFX(19012404);
6178     SpawnMapSFX(19012405); 6435     SpawnMapSFX(19012405);
6179     SpawnMapSFX(19012406); 6436     SpawnMapSFX(19012406);
6180     SetSpEffect(0, spEffectId); 6437     SetSpEffect(0, spEffectId);
6181 }); 6438 });
6182 6439
6183 $Event(90075160, Default, function(chrEntityId, chrEntityId2, chrEntityId3) { 6440 $Event(90075160, Default, function(chrEntityId, chrEntityId2, chrEntityId3) {
6441     DisableNetworkSync();
6184     EnableCharacterDefaultBackread(chrEntityId); 6442     EnableCharacterDefaultBackread(chrEntityId);
6185     SetNetworkUpdateRate(chrEntityId, true, CharacterUpdateFrequency.AlwaysUpdate); 6443     SetNetworkUpdateRate(chrEntityId, true, CharacterUpdateFrequency.AlwaysUpdate);
6186     DisableCharacterHPBarDisplay(chrEntityId); 6444     DisableCharacterHPBarDisplay(chrEntityId);
6187     EnableCharacterDefaultBackread(chrEntityId2); 6445     EnableCharacterDefaultBackread(chrEntityId2);
6188     DisableCharacterCollision(chrEntityId2); 6446     DisableCharacterCollision(chrEntityId2);
6189     DisableCharacterAI(chrEntityId2); 6447     DisableCharacterAI(chrEntityId2);
6190     DisableLockOnPoint(chrEntityId2, 220); 6448     DisableLockOnPoint(chrEntityId2, 220);
6191     DisableCharacterGravity(chrEntityId2); 6449     DisableCharacterGravity(chrEntityId2);
6192     DisableCharacterHPBarDisplay(chrEntityId2); 6450     DisableCharacterHPBarDisplay(chrEntityId2);
6193     EnableCharacterDefaultBackread(chrEntityId3); 6451     EnableCharacterDefaultBackread(chrEntityId3);
6296     WaitFixedTimeSeconds(0.5); 6554     WaitFixedTimeSeconds(0.5);
6297     WaitFor(!CharacterHasSpEffect(20000, 102501)); 6555     WaitFor(!CharacterHasSpEffect(20000, 102501));
6298     HideFloatingMessage(202, 20000); 6556     HideFloatingMessage(202, 20000);
6299     WaitFixedTimeSeconds(1); 6557     WaitFixedTimeSeconds(1);
6300     RestartEvent(); 6558     RestartEvent();
6301 }); 6559 });
6302 6560
6303 $Event(90075165, Restart, function(chrEntityId) { 6561 $Event(90075165, Restart, function(chrEntityId) {
6304     DisableNetworkSync(); 6562     DisableNetworkSync();
6305     WaitFor(PlayerInMap(19, 0, 0, 0)); 6563     WaitFor(PlayerInMap(19, 0, 0, 0));
6564     WaitFor(ElapsedFrames(1));
6306     ChangeCamera(7510); 6565     ChangeCamera(7510);
6307     WaitFor(CharacterHasSpEffect(chrEntityId, 42134)); 6566     WaitFor(CharacterHasSpEffect(chrEntityId, 42134));
6308     ChangeCamera(7515); 6567     ChangeCamera(7515);
6309     WaitFor(!CharacterHasSpEffect(chrEntityId, 42134)); 6568     WaitFor(!CharacterHasSpEffect(chrEntityId, 42134));
6310     RestartEvent(); 6569     RestartEvent();
6311 }); 6570 });
6312 6571
6572 $Event(90075166, Restart, function(chrEntityId, areaEntityId, areaEntityId2, areaEntityId3, areaEntityId4, areaEntityId5, areaEntityId6, areaEntityId7, areaEntityId8) {
6573     DisableNetworkSync();
6574     EndIf(EventFlag(7512));
6575     WaitFor(EventFlag(7511));
6576     WaitFor(
6577         InArea(chrEntityId, areaEntityId)
6578             || InArea(chrEntityId, areaEntityId2)
6579             || InArea(chrEntityId, areaEntityId3)
6580             || InArea(chrEntityId, areaEntityId4)
6581             || InArea(chrEntityId, areaEntityId5)
6582             || InArea(chrEntityId, areaEntityId6)
6583             || InArea(chrEntityId, areaEntityId7)
6584             || InArea(chrEntityId, areaEntityId8)
6585             || CharacterHasSpEffect(chrEntityId, 42177));
6586     SetSpEffect(chrEntityId, 42177);
6587     WaitFor(
6588         (!InArea(chrEntityId, areaEntityId)
6589             && !InArea(chrEntityId, areaEntityId2)
6590             && !InArea(chrEntityId, areaEntityId3)
6591             && !InArea(chrEntityId, areaEntityId4)
6592             && !InArea(chrEntityId, areaEntityId5)
6593             && !InArea(chrEntityId, areaEntityId6)
6594             && !InArea(chrEntityId, areaEntityId7)
6595             && !InArea(chrEntityId, areaEntityId8))
6596             || !CharacterHasSpEffect(chrEntityId, 42177));
6597     SetSpEffect(chrEntityId, 42178);
6598     RestartEvent();
6599 });
6600
6313 $Event(90075200, Restart, function(chrEntityId, chrEntityId2) { 6601 $Event(90075200, Restart, function(chrEntityId, chrEntityId2) {
6314     DisableNetworkSync(); 6602     DisableNetworkSync();
6315     EnableCharacterDefaultBackread(chrEntityId); 6603     EnableCharacterDefaultBackread(chrEntityId);
6316     EnableCharacterDefaultBackread(chrEntityId2); 6604     EnableCharacterDefaultBackread(chrEntityId2);
6317     SetNetworkUpdateRate(chrEntityId, true, CharacterUpdateFrequency.AlwaysUpdate); 6605     SetNetworkUpdateRate(chrEntityId, true, CharacterUpdateFrequency.AlwaysUpdate);
6318     SetNetworkUpdateRate(chrEntityId2, true, CharacterUpdateFrequency.AlwaysUpdate); 6606     SetNetworkUpdateRate(chrEntityId2, true, CharacterUpdateFrequency.AlwaysUpdate);
6319     EnableCharacterImmortality(chrEntityId); 6607     EnableCharacterImmortality(chrEntityId);
6320     CreateReferredDamagePair(chrEntityId, chrEntityId2); 6608     CreateReferredDamagePair(chrEntityId, chrEntityId2);
6321     DisableCharacterCollision(chrEntityId2); 6609     DisableCharacterCollision(chrEntityId2);
6322     DisableCharacterAI(chrEntityId2); 6610     DisableCharacterAI(chrEntityId2);
6499     DisableNetworkSync(); 6787     DisableNetworkSync();
6500     EnableCharacterImmortality(chrEntityId); 6788     EnableCharacterImmortality(chrEntityId);
6501     DisableCharacterGravity(chrEntityId); 6789     DisableCharacterGravity(chrEntityId);
6502     if (value != 0) { 6790     if (value != 0) {
6503         SetNetworkUpdateAuthority(chrEntityId, AuthorityLevel.Forced); 6791         SetNetworkUpdateAuthority(chrEntityId, AuthorityLevel.Forced);
6504     } 6792     }
6505     DisableCharacter(chrEntityId); 6793     DisableCharacter(chrEntityId);
6506     DisableCharacterCollision(chrEntityId); 6794     DisableCharacterCollision(chrEntityId);
6507     DisableCharacterHPBarDisplay(chrEntityId); 6795     DisableCharacterHPBarDisplay(chrEntityId);
6508     DisableLockOnPoint(chrEntityId, 220); 6796     DisableLockOnPoint(chrEntityId, 220);
6797     SetCharacterTeamType(chrEntityId, TeamType.Disabled);
6509     ResetCharacterPosition(chrEntityId); 6798     ResetCharacterPosition(chrEntityId);
6510     WaitFor( 6799     WaitFor(
6511         CharacterHasSpEffect(chrEntityId, 46009) && !CharacterHasSpEffect(chrEntityId2, 707115)); 6800         CharacterHasSpEffect(chrEntityId, 46009) && !CharacterHasSpEffect(chrEntityId2, 707115));
6512     EnableCharacter(chrEntityId); 6801     EnableCharacter(chrEntityId);
6802     EnableCharacterCollision(chrEntityId);
6803     EnableLockOnPoint(chrEntityId, 220);
6804     if (value == 1) {
6805         SetCharacterTeamType(chrEntityId, TeamType.Unknown79);
6806     }
6513     if (value != 1) { 6807     if (value != 1) {
6514         EnableCharacterCollision(chrEntityId);
6515         EnableCharacterHPBarDisplay(chrEntityId); 6808         EnableCharacterHPBarDisplay(chrEntityId);
6516         EnableLockOnPoint(chrEntityId, 220); 6809         SetCharacterTeamType(chrEntityId, TeamType.ArchEnemyTeam);
6517     } 6810     }
6518     WaitFor( 6811     WaitFor(
6519         !CharacterHasSpEffect(chrEntityId, 46009) || CharacterHasSpEffect(chrEntityId2, 707115)); 6812         !CharacterHasSpEffect(chrEntityId, 46009) || CharacterHasSpEffect(chrEntityId2, 707115));
6520     RestartEvent(); 6813     RestartEvent();
6521 }); 6814 });
6522 6815
6523 $Event(90075231, Restart, function(chrEntityId) { 6816 $Event(90075231, Restart, function(chrEntityId) {
6524     DisableNetworkSync(); 6817     DisableNetworkSync();
6525     WaitFor( 6818     WaitFor(
6526         CharacterHasSpEffect(20000, 46000) 6819         CharacterHasSpEffect(20000, 46000)
6540     IssueShortWarpRequest(chrEntityId, TargetEntityType.Character, 20000, 36); 6833     IssueShortWarpRequest(chrEntityId, TargetEntityType.Character, 20000, 36);
6541     RestartEvent(); 6834     RestartEvent();
6542 }); 6835 });
6543 6836
6544 $Event(90075233, Restart, function(chrEntityId) { 6837 $Event(90075233, Restart, function(chrEntityId) {
6545     DisableNetworkSync(); 6838     DisableNetworkSync();
6546     WaitFor( 6839     WaitFor(
6547         CharacterHasSpEffect(chrEntityId, 46009) 6840         CharacterHasSpEffect(chrEntityId, 46009)
6548             && ((!CharacterHasSpEffect(20000, 46007) && !CharacterHasStateInfo(20000, 2)) 6841             && ((!CharacterHasSpEffect(20000, 46007) && !CharacterHasStateInfo(20000, 2))
6549                 || CharacterHPValue(chrEntityId) <= 1 6842                 || CharacterHPValue(chrEntityId) <= 1
6843                 || CharacterHasSpEffect(20000, 46045)
6550                 || CharacterHPValue(20000) == 0)); 6844                 || CharacterHPValue(20000) == 0));
6551     SetSpEffect(20000, 46041); 6845     SetSpEffect(20000, 46041);
6552     SetSpEffect(20000, 46043); 6846     SetSpEffect(20000, 46043);
6553     SetSpEffect(chrEntityId, 46042); 6847     SetSpEffect(chrEntityId, 46042);
6554     SetSpEffect(chrEntityId, 46048); 6848     SetSpEffect(chrEntityId, 46048);
6555     WaitFor(ElapsedFrames(1)); 6849     WaitFor(ElapsedFrames(1));
6556     SetSpEffect(chrEntityId, 10596); 6850     SetSpEffect(chrEntityId, 10596);
6557     WaitFor(!CharacterHasSpEffect(chrEntityId, 46009)); 6851     WaitFor(!CharacterHasSpEffect(chrEntityId, 46009));
6558     RestartEvent(); 6852     RestartEvent();
6559 }); 6853 });
6729     EndIf(EventFlag(eventFlagId)); 7023     EndIf(EventFlag(eventFlagId));
6730     WaitFor(CharacterHPValue(chrEntityId4) <= 1); 7024     WaitFor(CharacterHPValue(chrEntityId4) <= 1);
6731     WaitFor(ElapsedSeconds(4)); 7025     WaitFor(ElapsedSeconds(4));
6732     DisplayBossHealthBar(Disabled, chrEntityId4, 0, 907520000); 7026     DisplayBossHealthBar(Disabled, chrEntityId4, 0, 907520000);
6733     WaitFor(CharacterHasSpEffect(chrEntityId3, 47126)); 7027     WaitFor(CharacterHasSpEffect(chrEntityId3, 47126));
6734     WaitFor(ElapsedSeconds(3.5)); 7028     WaitFor(ElapsedSeconds(3.5));
6735     WaitFor(ElapsedSeconds(2.5)); 7029     WaitFor(ElapsedSeconds(2.5));
6736     DisplayBossHealthBar(Enabled, chrEntityId3, 2, 907520002); 7030     DisplayBossHealthBar(Enabled, chrEntityId3, 2, 907520002);
6737     DisplayBossHealthBar(Enabled, chrEntityId, 1, 907520000); 7031     DisplayBossHealthBar(Enabled, chrEntityId, 1, 907520000);
6738     DisplayBossHealthBar(Enabled, chrEntityId2, 0, 907530000); 7032     DisplayBossHealthBar(Enabled, chrEntityId2, 0, 907530000);
7033     LinkToBossHealthBar(Disabled, 907520002, 0);
7034     LinkToBossHealthBar(Enabled, 907520002, chrEntityId3);
7035     LinkToBossHealthBar(Enabled, 907530000, chrEntityId2);
6739 }); 7036 });
6740 7037
6741 $Event(90075257, Restart, function(chrEntityId, chrEntityId2, chrEntityId3, chrEntityId4) { 7038 $Event(90075257, Restart, function(chrEntityId, chrEntityId2, chrEntityId3, chrEntityId4) {
6742     EndIf(EventFlag(7512)); 7039     EndIf(EventFlag(7512));
6743     WaitFor(CharacterHPValue(chrEntityId2) <= 0); 7040     WaitFor(CharacterHPValue(chrEntityId2) <= 0);
6744     DisableCharacterImmortality(chrEntityId); 7041     DisableCharacterImmortality(chrEntityId);
6745     DisableCharacterImmortality(chrEntityId3); 7042     DisableCharacterImmortality(chrEntityId3);
6746     DisableCharacterImmortality(chrEntityId4); 7043     DisableCharacterImmortality(chrEntityId4);
6747     WaitFixedTimeFrames(1); 7044     WaitFixedTimeFrames(1);
6748     SetSpEffect(chrEntityId3, 47140); 7045     SetSpEffect(chrEntityId3, 47140);
6904             || !CharacterHasSpEffect(chrEntityId3, 47250)); 7201             || !CharacterHasSpEffect(chrEntityId3, 47250));
6905     ForceAnimationPlayback(chrEntityId3, 20018, false, false, false); 7202     ForceAnimationPlayback(chrEntityId3, 20018, false, false, false);
6906     SetNetworkconnectedEventFlagID(eventFlagId2, ON); 7203     SetNetworkconnectedEventFlagID(eventFlagId2, ON);
6907     WaitFor(ElapsedSeconds(1)); 7204     WaitFor(ElapsedSeconds(1));
6908     SetNetworkconnectedEventFlagID(eventFlagId2, OFF); 7205     SetNetworkconnectedEventFlagID(eventFlagId2, OFF);
6909     WaitFor(ElapsedSeconds(9)); 7206     WaitFor(ElapsedSeconds(9));
6910     RestartEvent(); 7207     RestartEvent();
6911 }); 7208 });
6912 7209
6913 $Event(90075300, Restart, function(chrEntityId, chrEntityId2, chrEntityId3) { 7210 $Event(90075300, Restart, function(chrEntityId, chrEntityId2, chrEntityId3) {
7211     DisableNetworkSync();
6914     EnableCharacterDefaultBackread(chrEntityId); 7212     EnableCharacterDefaultBackread(chrEntityId);
6915     EnableCharacterDefaultBackread(chrEntityId2); 7213     EnableCharacterDefaultBackread(chrEntityId2);
6916     EnableCharacterDefaultBackread(chrEntityId3); 7214     EnableCharacterDefaultBackread(chrEntityId3);
6917     SetNetworkUpdateRate(chrEntityId, true, CharacterUpdateFrequency.AlwaysUpdate); 7215     SetNetworkUpdateRate(chrEntityId, true, CharacterUpdateFrequency.AlwaysUpdate);
6918     SetNetworkUpdateRate(chrEntityId2, true, CharacterUpdateFrequency.AlwaysUpdate); 7216     SetNetworkUpdateRate(chrEntityId2, true, CharacterUpdateFrequency.AlwaysUpdate);
6919     SetNetworkUpdateRate(chrEntityId3, true, CharacterUpdateFrequency.AlwaysUpdate); 7217     SetNetworkUpdateRate(chrEntityId3, true, CharacterUpdateFrequency.AlwaysUpdate);
6920     DisableCharacterHPBarDisplay(chrEntityId); 7218     DisableCharacterHPBarDisplay(chrEntityId);
6921     PlaySE(chrEntityId, SoundType.CharacterMotion, 754009500); 7219     PlaySE(chrEntityId, SoundType.CharacterMotion, 754009500);
6922 }); 7220 });
6923 7221
7237     WaitFor(CharacterHasSpEffect(chrEntityId, 45611) || EventFlag(7512)); 7535     WaitFor(CharacterHasSpEffect(chrEntityId, 45611) || EventFlag(7512));
7238     EndIf(EventFlag(7512)); 7536     EndIf(EventFlag(7512));
7239     SetSpEffect(chrEntityId2, 5900); 7537     SetSpEffect(chrEntityId2, 5900);
7240     WaitFixedTimeSeconds(1); 7538     WaitFixedTimeSeconds(1);
7241     RestartEvent(); 7539     RestartEvent();
7242 }); 7540 });
7243 7541
7244 $Event(90075330, Restart, function(chrEntityId) { 7542 $Event(90075330, Restart, function(chrEntityId) {
7245     DisableNetworkSync(); 7543     DisableNetworkSync();
7246     if (!CharacterHasSpEffect(chrEntityId, 5105)) { 7544     if (!CharacterHasSpEffect(chrEntityId, 5105)) {
7247         ChangeWeather(Weather.Type84, -1, true); 7545         if (CharacterHPValue(chrEntityId) > 0) {
7546             ChangeWeather(Weather.Type84, -1, true);
7547         }
7248     } 7548     }
7249     EndIf(EventFlag(7512)); 7549     EndIf(EventFlag(7512));
7250     WaitFor(EventFlag(7510) || PlayerInMap(19, 0, 0, 0)); 7550     WaitFor(EventFlag(7510) || PlayerInMap(19, 0, 0, 0));
7251     WaitFor(ElapsedFrames(1)); 7551     WaitFor(ElapsedFrames(1));
7252     ChangeCamera(7549);
7253     if (!CharacterHasSpEffect(chrEntityId, 5105)) { 7552     if (!CharacterHasSpEffect(chrEntityId, 5105)) {
7254         ChangeWeather(Weather.Type84, -1, true); 7553         if (CharacterHPValue(chrEntityId) > 0) {
7554             ChangeWeather(Weather.Type84, -1, true);
7555         }
7255     } 7556     }
7557     WaitFor(PlayerInMap(19, 0, 0, 0));
7558     WaitFor(ElapsedFrames(1));
7559     ChangeCamera(7549);
7256 }); 7560 });
7257 7561
7258 $Event(90075340, Restart, function(eventFlagId, eventFlagId2, spEffectId, chrEntityId, spEffectId2, targetAmount) { 7562 $Event(90075340, Restart, function(eventFlagId, eventFlagId2, spEffectId, chrEntityId, spEffectId2, targetAmount) {
7259     if (!EventFlag(9999)) { 7563     if (!EventFlag(9999)) {
7260         EndIf(EventFlag(eventFlagId2)); 7564         EndIf(EventFlag(eventFlagId2));
7261         if (eventFlagId != 0) { 7565         if (eventFlagId != 0) {
7262             WaitFor(EventFlag(eventFlagId)); 7566             WaitFor(EventFlag(eventFlagId));
7263         } 7567         }
7264         if (Signed(0) != spEffectId2) { 7568         if (Signed(0) != spEffectId2) {
7265             WaitFor(CharacterHasSpEffect(chrEntityId, spEffectId2, GreaterOrEqual, 1)); 7569             WaitFor(CharacterHasSpEffect(chrEntityId, spEffectId2, GreaterOrEqual, 1));
7266         } else { 7570         } else {
7267             WaitFor(CharacterRatioHPRatio(chrEntityId, NotEqual, 0) <= targetAmount); 7571             WaitFor(CharacterRatioHPRatio(chrEntityId, NotEqual, 0) <= targetAmount);
7268         } 7572         }
7269     } 7573     }
7270     SpawnMapSFX(0); 7574     SpawnMapSFX(0);
7271     ChangeWeather(Weather.Type83, -1, false); 7575     ChangeWeather(Weather.Type83, -1, false);
7272     SetSpEffect(0, spEffectId); 7576     SetSpEffect(0, spEffectId);
7273 }); 7577 });
7274 7578
7579 $Event(90075350, Restart, function(chrEntityId, chrEntityId2, chrEntityId3, chrEntityId4) {
7580     DisableNetworkSync();
7581     EnableCharacterDefaultBackread(chrEntityId);
7582     EnableCharacterDefaultBackread(chrEntityId2);
7583     EnableCharacterDefaultBackread(chrEntityId3);
7584     EnableCharacterDefaultBackread(chrEntityId4);
7585     SetNetworkUpdateRate(chrEntityId, true, CharacterUpdateFrequency.AlwaysUpdate);
7586     SetNetworkUpdateRate(chrEntityId2, true, CharacterUpdateFrequency.AlwaysUpdate);
7587     SetNetworkUpdateRate(chrEntityId3, true, CharacterUpdateFrequency.AlwaysUpdate);
7588     SetNetworkUpdateRate(chrEntityId4, true, CharacterUpdateFrequency.AlwaysUpdate);
7589     DisableCharacterHPBarDisplay(chrEntityId);
7590     DisableCharacterHPBarDisplay(chrEntityId2);
7591     PlaySE(chrEntityId, SoundType.CharacterMotion, 754009500);
7592     PlaySE(chrEntityId2, SoundType.CharacterMotion, 754009500);
7593 });
7594
7595 $Event(90075351, Restart, function(chrEntityId, chrEntityId2, chrEntityId3, eventFlagId) {
7596     if (EventFlag(7512)) {
7597         ForceCharacterDeath(chrEntityId, false);
7598         ForceCharacterDeath(chrEntityId2, false);
7599         ForceCharacterDeath(chrEntityId3, false);
7600         EndEvent();
7601     }
7602     if (EventFlag(eventFlagId)) {
7603         ForceCharacterDeath(chrEntityId, false);
7604         ForceCharacterDeath(chrEntityId2, false);
7605         ForceCharacterDeath(chrEntityId3, false);
7606         EndEvent();
7607     }
7608     if (EventFlag(7511)) {
7609         EnableCharacter(chrEntityId);
7610         EnableCharacter(chrEntityId3);
7611         EnableCharacterAI(chrEntityId);
7612         EnableCharacterAI(chrEntityId3);
7613         DisplayBossHealthBar(Enabled, chrEntityId, 0, 907540001);
7614         LinkToBossHealthBar(Disabled, 907540001, 0);
7615         LinkToBossHealthBar(Enabled, 907540001, chrEntityId);
7616         LinkToBossHealthBar(Enabled, 907540001, chrEntityId2);
7617         LinkToBossHealthBar(Enabled, 907540001, chrEntityId3);
7618         SetBossBGM(754000, BossBGMState.HeatUp);
7619         EndEvent();
7620     }
7621     EnableCharacter(chrEntityId);
7622     EnableCharacter(chrEntityId3);
7623     DisableCharacterAI(chrEntityId);
7624     DisableCharacterAI(chrEntityId3);
7625     ForceAnimationPlayback(chrEntityId, 30029, true, false, false);
7626     ForceAnimationPlayback(chrEntityId2, 30005, true, false, false);
7627     ForceAnimationPlayback(chrEntityId3, 30005, true, false, false);
7628     WaitFor(EventFlag(7510) || PlayerInMap(19, 0, 0, 0));
7629     EnableCharacter(chrEntityId);
7630     EnableCharacter(chrEntityId3);
7631     DisableCharacterAI(chrEntityId);
7632     DisableCharacterAI(chrEntityId3);
7633     ForceAnimationPlayback(chrEntityId, 30029, true, false, false);
7634     ForceAnimationPlayback(chrEntityId2, 30005, true, false, false);
7635     ForceAnimationPlayback(chrEntityId3, 30005, true, false, false);
7636     WaitFor(EventFlag(7511));
7637     SetBossBGM(754000, BossBGMState.HeatUp);
7638     ForceAnimationPlayback(chrEntityId, 20027, false, false, false);
7639     EnableCharacterAI(chrEntityId);
7640     EnableCharacter(chrEntityId3);
7641     EnableCharacterAI(chrEntityId3);
7642     SetCharacterEventTarget(chrEntityId2, chrEntityId);
7643     SetCharacterEventTarget(chrEntityId3, chrEntityId);
7644     LinkToBossHealthBar(Disabled, 907540001, 0);
7645     LinkToBossHealthBar(Enabled, 907540001, chrEntityId);
7646     LinkToBossHealthBar(Enabled, 907540001, chrEntityId2);
7647     LinkToBossHealthBar(Enabled, 907540001, chrEntityId3);
7648     WaitFor(ElapsedSeconds(4));
7649     if (CharacterHasSpEffect(chrEntityId, 5080)) {
7650         ForceAnimationPlayback(chrEntityId, 20027, false, false, false);
7651         WaitFor(ElapsedSeconds(4));
7652     }
7653     DisplayBossHealthBar(Enabled, chrEntityId, 0, 907540001);
7654 });
7655
7656 $Event(90075352, Restart, function(chrEntityId, chrEntityId2, eventFlagId) {
7657     if (EventFlag(7512)) {
7658         ForceCharacterDeath(chrEntityId2, false);
7659         EndEvent();
7660     }
7661     if (CharacterHPValue(chrEntityId) <= 0) {
7662         WaitFor(ElapsedFrames(1));
7663         DisplayBossHealthBar(Disabled, chrEntityId, 0, 907540000);
7664         LinkToBossHealthBar(Disabled, 907540000, 0);
7665         LinkToBossHealthBar(Enabled, 907540000, chrEntityId2);
7666     } else {
7667         if (EventFlag(eventFlagId)) {
7668             SetCharacterBackreadState(chrEntityId2, false);
7669             EnableCharacterDefaultBackread(chrEntityId2);
7670             EnableCharacter(chrEntityId2);
7671             EnableCharacterAI(chrEntityId2);
7672             DisplayBossHealthBar(Enabled, chrEntityId2, 0, 907540000);
7673             LinkToBossHealthBar(Disabled, 907540000, 0);
7674             LinkToBossHealthBar(Enabled, 907540000, chrEntityId2);
7675             SetNetworkconnectedEventFlagID(6301, ON);
7676             SetBossBGM(754000, BossBGMState.HeatUp2);
7677             EndEvent();
7678         }
7679         SetCharacterBackreadState(chrEntityId2, false);
7680         EnableCharacterDefaultBackread(chrEntityId2);
7681         EnableCharacter(chrEntityId2);
7682         DisableCharacterAI(chrEntityId2);
7683         ForceAnimationPlayback(chrEntityId2, 30029, true, false, false);
7684         WaitFor(CharacterHPValue(chrEntityId) <= 0 || EventFlag(eventFlagId));
7685         WaitFor(ElapsedSeconds(5));
7686         DisplayBossHealthBar(Disabled, chrEntityId, 0, 907540001);
7687     }
7688 L0:
7689     WaitFor(ElapsedSeconds(4.5));
7690     ForceAnimationPlayback(chrEntityId2, 20029, true, false, false);
7691     EnableCharacterAI(chrEntityId2);
7692     WaitFor(ElapsedSeconds(13));
7693     DisplayBossHealthBar(Enabled, chrEntityId2, 0, 907540000);
7694     LinkToBossHealthBar(Disabled, 907540000, 0);
7695     LinkToBossHealthBar(Enabled, 907540000, chrEntityId2);
7696     SetNetworkconnectedEventFlagID(eventFlagId, ON);
7697     SetNetworkconnectedEventFlagID(6301, ON);
7698 });
7699
7700 $Event(90075360, Restart, function(chrEntityId, spEffectId, npcPartId, npcPartGroupIdx, npcPartHP, lockOnDummypolyId, bitNumber, spEffectId2, spEffectId3, spEffectId4, spEffectId5) {
7701     if (!CharacterHasSpEffect(chrEntityId, spEffectId5)) {
7702         DisableLockOnPoint(chrEntityId, lockOnDummypolyId);
7703     }
7704     WaitFor(CharacterHasSpEffect(chrEntityId, spEffectId));
7705     CreateNPCPart(chrEntityId, npcPartId, npcPartGroupIdx, npcPartHP, 1, 0.1, false, false);
7706     SetNPCPartHP(chrEntityId, npcPartId, npcPartHP, false);
7707     EnableLockOnPoint(chrEntityId, lockOnDummypolyId);
7708     ChangeCharacterDispmask(chrEntityId, bitNumber, ON);
7709     WaitFixedTimeFrames(1);
7710     WaitFor(
7711         NPCPartHP(chrEntityId, npcPartId) <= 0
7712             || CharacterHasSpEffect(chrEntityId, spEffectId2)
7713             || CharacterHPValue(chrEntityId) <= 0);
7714     SetSpEffect(chrEntityId, spEffectId3);
7715     SetSpEffect(chrEntityId, spEffectId4);
7716     SetNPCPartHP(chrEntityId, npcPartId, 0, false);
7717     DisableLockOnPoint(chrEntityId, lockOnDummypolyId);
7718     ChangeCharacterDispmask(chrEntityId, bitNumber, OFF);
7719     WaitFixedTimeFrames(1);
7720     RestartEvent();
7721 });
7722
7275 $Event(90075400, Default, function(chrEntityId, chrEntityId2, chrEntityId3, chrEntityId4, chrEntityId5, chrEntityId6, chrEntityId7, chrEntityId8, chrEntityId9, chrEntityId10) { 7723 $Event(90075400, Default, function(chrEntityId, chrEntityId2, chrEntityId3, chrEntityId4, chrEntityId5, chrEntityId6, chrEntityId7, chrEntityId8, chrEntityId9, chrEntityId10) {
7276     DisableNetworkSync(); 7724     DisableNetworkSync();
7277     EnableCharacterDefaultBackread(chrEntityId); 7725     EnableCharacterDefaultBackread(chrEntityId);
7278     EnableCharacterDefaultBackread(chrEntityId2); 7726     EnableCharacterDefaultBackread(chrEntityId2);
7279     SetNetworkUpdateRate(chrEntityId, true, CharacterUpdateFrequency.AlwaysUpdate); 7727     SetNetworkUpdateRate(chrEntityId, true, CharacterUpdateFrequency.AlwaysUpdate);
7280     SetNetworkUpdateRate(chrEntityId2, true, CharacterUpdateFrequency.AlwaysUpdate); 7728     SetNetworkUpdateRate(chrEntityId2, true, CharacterUpdateFrequency.AlwaysUpdate);
7281     DisableCharacterHPBarDisplay(chrEntityId); 7729     DisableCharacterHPBarDisplay(chrEntityId);
7282     SetNetworkUpdateRate(chrEntityId3, true, CharacterUpdateFrequency.Every2Frames); 7730     SetNetworkUpdateRate(chrEntityId3, true, CharacterUpdateFrequency.Every2Frames);
7283     SetNetworkUpdateRate(chrEntityId4, true, CharacterUpdateFrequency.Every2Frames); 7731     SetNetworkUpdateRate(chrEntityId4, true, CharacterUpdateFrequency.Every2Frames);
7284     SetNetworkUpdateRate(chrEntityId5, true, CharacterUpdateFrequency.Every2Frames); 7732     SetNetworkUpdateRate(chrEntityId5, true, CharacterUpdateFrequency.Every2Frames);
7416                 || EventFlag(eventFlagId4)) 7864                 || EventFlag(eventFlagId4))
7417             && (!(CharacterHasTeamType(10004, TeamType.Human) 7865             && (!(CharacterHasTeamType(10004, TeamType.Human)
7418                 || CharacterHasTeamType(10004, TeamType.WhitePhantom)) 7866                 || CharacterHasTeamType(10004, TeamType.WhitePhantom))
7419                 || EventFlag(eventFlagId5))) 7867                 || EventFlag(eventFlagId5)))
7420             || EventFlag(eventFlagId)); 7868             || EventFlag(eventFlagId));
7421     EndIf(EventFlag(eventFlagId)); 7869     EndIf(EventFlag(eventFlagId));
7422     SetNetworkconnectedEventFlagID(eventFlagId, ON); 7870     SetNetworkconnectedEventFlagID(eventFlagId, ON);
7423     SetNetworkconnectedEventFlagID(eventFlagId2, ON); 7871     SetNetworkconnectedEventFlagID(eventFlagId2, ON);
7424 }); 7872 });
7425 7873
7426 $Event(99064506, Restart, function(chrEntityId, eventFlagId, eventFlagId2, eventFlagId3) { 7874 $Event(99075406, Restart, function(chrEntityId, eventFlagId, eventFlagId2, eventFlagId3) {
7427     DisableNetworkSync(); 7875     DisableNetworkSync();
7428     EndIf(EventFlag(7512)); 7876     EndIf(EventFlag(7512));
7429     EndIf(EventFlag(7511)); 7877     EndIf(EventFlag(7511));
7430     EndIf(EventFlag(eventFlagId)); 7878     EndIf(EventFlag(eventFlagId));
7431     WaitFor( 7879     WaitFor(
7432         EventFlag(eventFlagId2) 7880         EventFlag(eventFlagId2)
7433             || CharacterHasSpEffect(chrEntityId, 46235) 7881             || CharacterHasSpEffect(chrEntityId, 46235)
7434             || EventFlag(eventFlagId)); 7882             || EventFlag(eventFlagId));
7435     EndIf(EventFlag(eventFlagId)); 7883     EndIf(EventFlag(eventFlagId));
7436     if (!CharacterHasSpEffect(chrEntityId, 46235)) { 7884     if (!CharacterHasSpEffect(chrEntityId, 46235)) {
7437         SetSpEffect(chrEntityId, 46235); 7885         SetSpEffect(chrEntityId, 46235);
7438     } 7886     }
7439     WaitFor(CharacterHasSpEffect(chrEntityId, 46235) || EventFlag(eventFlagId)); 7887     WaitFor(CharacterHasSpEffect(chrEntityId, 46235) || EventFlag(eventFlagId));
7440     WaitFor(!CharacterHasSpEffect(chrEntityId, 46235) || EventFlag(eventFlagId)); 7888     WaitFor(!CharacterHasSpEffect(chrEntityId, 46235) || EventFlag(eventFlagId));
7441     EndIf(EventFlag(eventFlagId)); 7889     EndIf(EventFlag(eventFlagId));
7442     SetNetworkconnectedEventFlagID(eventFlagId, ON); 7890     SetNetworkconnectedEventFlagID(eventFlagId, ON);
7443     SetNetworkconnectedEventFlagID(eventFlagId3, ON); 7891     SetNetworkconnectedEventFlagID(eventFlagId3, ON);
7444 }); 7892 });
7445 7893
7446 $Event(99064510, Restart, function(chrEntityId) { 7894 $Event(99075410, Restart, function(chrEntityId) {
7447     EndIf(EventFlag(7512)); 7895     EndIf(EventFlag(7512));
7448     EndIf(EventFlag(7511)); 7896     EndIf(EventFlag(7511));
7449     WaitFor(EventFlag(7511)); 7897     WaitFor(EventFlag(7511));
7450     if (EventFlag(19000700)) { 7898     if (EventFlag(19000700)) {
7451         SetSpEffect(chrEntityId, 46295); 7899         SetSpEffect(chrEntityId, 46295);
7452         SetSpEffect(20000, 46296); 7900         SetSpEffect(20000, 46296);
7453     } 7901     }
7454 }); 7902 });
7455 7903
7456 $Event(99064520, Restart, function(chrEntityId) { 7904 $Event(99075420, Restart, function(chrEntityId) {
7457     EndIf(EventFlag(7512)); 7905     EndIf(EventFlag(7512));
7458     WaitFor(EventFlag(7511)); 7906     WaitFor(EventFlag(7511));
7459     WaitFor(CharacterHasSpEffect(chrEntityId, 45866) && CharacterHasSpEffect(chrEntityId, 45878)); 7907     WaitFor(CharacterHasSpEffect(chrEntityId, 45866) && CharacterHasSpEffect(chrEntityId, 45878));
7460     SetSpEffect(chrEntityId, 45879); 7908     SetSpEffect(chrEntityId, 45879);
7461     WaitFixedTimeFrames(1); 7909     WaitFixedTimeFrames(1);
7462     SetSpEffect(chrEntityId, 45876); 7910     SetSpEffect(chrEntityId, 45876);
7463     WaitFixedTimeFrames(1); 7911     WaitFixedTimeFrames(1);
7464     RestartEvent(); 7912     RestartEvent();
7465 }); 7913 });
7466 7914
7467 $Event(99064521, Restart, function(chrEntityId) { 7915 $Event(99075421, Restart, function(chrEntityId) {
7468     EndIf(EventFlag(7512)); 7916     EndIf(EventFlag(7512));
7469     WaitFor(EventFlag(7511)); 7917     WaitFor(EventFlag(7511));
7470     WaitFor(CharacterHasSpEffect(chrEntityId, 45831) && CharacterHasSpEffect(chrEntityId, 45868)); 7918     WaitFor(CharacterHasSpEffect(chrEntityId, 45831) && CharacterHasSpEffect(chrEntityId, 45868));
7471     SetSpEffect(chrEntityId, 45878); 7919     SetSpEffect(chrEntityId, 45878);
7472     SetSpEffect(chrEntityId, 45879); 7920     SetSpEffect(chrEntityId, 45879);
7473     WaitFixedTimeFrames(1); 7921     WaitFixedTimeFrames(1);
7474     SetSpEffect(chrEntityId, 45877); 7922     SetSpEffect(chrEntityId, 45877);
7475     SetSpEffect(chrEntityId, 45832); 7923     SetSpEffect(chrEntityId, 45832);
7476     SetSpEffect(chrEntityId, 45851); 7924     SetSpEffect(chrEntityId, 45851);
7477     SetSpEffect(chrEntityId, 45870); 7925     SetSpEffect(chrEntityId, 45870);
7478     SetSpEffect(chrEntityId, 45871); 7926     SetSpEffect(chrEntityId, 45871);
7479     WaitFixedTimeFrames(1); 7927     WaitFixedTimeFrames(1);
7480     RestartEvent(); 7928     RestartEvent();
7481 }); 7929 });
7482 7930
7483 $Event(99064522, Restart, function(chrEntityId, areaEntityId, areaEntityId2, areaEntityId3, areaEntityId4, areaEntityId5, areaEntityId6, areaEntityId7, areaEntityId8, chrEntityId2, chrEntityId3, chrEntityId4, chrEntityId5, chrEntityId6, chrEntityId7, chrEntityId8, chrEntityId9) { 7931 $Event(99075422, Restart, function(chrEntityId, areaEntityId, areaEntityId2, areaEntityId3, areaEntityId4, areaEntityId5, areaEntityId6, areaEntityId7, areaEntityId8, chrEntityId2, chrEntityId3, chrEntityId4, chrEntityId5, chrEntityId6, chrEntityId7, chrEntityId8, chrEntityId9) {
7484     EndIf(EventFlag(7512)); 7932     EndIf(EventFlag(7512));
7485     WaitFor(EventFlag(7511)); 7933     WaitFor(EventFlag(7511));
7486     WaitFor( 7934     WaitFor(
7487         InArea(chrEntityId, areaEntityId) 7935         InArea(chrEntityId, areaEntityId)
7488             || InArea(chrEntityId, areaEntityId2) 7936             || InArea(chrEntityId, areaEntityId2)
7489             || InArea(chrEntityId, areaEntityId3) 7937             || InArea(chrEntityId, areaEntityId3)
7490             || InArea(chrEntityId, areaEntityId4) 7938             || InArea(chrEntityId, areaEntityId4)
7491             || InArea(chrEntityId, areaEntityId5) 7939             || InArea(chrEntityId, areaEntityId5)
7492             || InArea(chrEntityId, areaEntityId6) 7940             || InArea(chrEntityId, areaEntityId6)
7493             || InArea(chrEntityId, areaEntityId7) 7941             || InArea(chrEntityId, areaEntityId7)
7543     } 7991     }
7544     if (InArea(chrEntityId, areaEntityId8)) { 7992     if (InArea(chrEntityId, areaEntityId8)) {
7545         SetSpEffect(chrEntityId, 49070); 7993         SetSpEffect(chrEntityId, 49070);
7546         SetCharacterEventTarget(chrEntityId, chrEntityId9); 7994         SetCharacterEventTarget(chrEntityId, chrEntityId9);
7547         areaTime |= !InArea(chrEntityId, areaEntityId8) || ElapsedSeconds(1); 7995         areaTime |= !InArea(chrEntityId, areaEntityId8) || ElapsedSeconds(1);
7548         WaitFor(areaTime); 7996         WaitFor(areaTime);
7549         RestartEvent(); 7997         RestartEvent();
7550     } 7998     }
7551 }); 7999 });
7552 8000
7553 $Event(99064530, Restart, function(chrEntityId) { 8001 $Event(99075430, Restart, function(chrEntityId) {
7554     EndIf(EventFlag(7512)); 8002     EndIf(EventFlag(7512));
7555     WaitFor(EventFlag(7511)); 8003     WaitFor(EventFlag(7511));
7556     WaitFor( 8004     WaitFor(
7557         (PlayerIsInOwnWorld() && BGMCommonState(4, 1)) || CharacterHasSpEffect(chrEntityId, 45880)); 8005         (PlayerIsInOwnWorld() && BGMCommonState(4, 1)) || CharacterHasSpEffect(chrEntityId, 45880));
7558     SetSpEffect(chrEntityId, 45880); 8006     SetSpEffect(chrEntityId, 45880);
7559     WaitFor( 8007     WaitFor(
7560         (PlayerIsInOwnWorld() && BGMCommonState(4, 0)) || !CharacterHasSpEffect(chrEntityId, 45880)); 8008         (PlayerIsInOwnWorld() && BGMCommonState(4, 0)) || !CharacterHasSpEffect(chrEntityId, 45880));
7561     SetSpEffect(chrEntityId, 45881); 8009     SetSpEffect(chrEntityId, 45881);
7562     RestartEvent(); 8010     RestartEvent();
7563 }); 8011 });
7564 8012
7565 $Event(99064540, Restart, function(eventFlagId, eventFlagId2, spEffectId, chrEntityId, spEffectId2, targetAmount) { 8013 $Event(99075440, Restart, function(eventFlagId, eventFlagId2, spEffectId, chrEntityId, spEffectId2, targetAmount) {
7566     if (!EventFlag(9999)) { 8014     if (!EventFlag(9999)) {
7567         EndIf(EventFlag(eventFlagId2)); 8015         EndIf(EventFlag(eventFlagId2));
7568         if (eventFlagId != 0) { 8016         if (eventFlagId != 0) {
7569             WaitFor(EventFlag(eventFlagId)); 8017             WaitFor(EventFlag(eventFlagId));
7570         } 8018         }
7571         if (Signed(0) != spEffectId2) { 8019         if (Signed(0) != spEffectId2) {
7572             WaitFor(CharacterHasSpEffect(chrEntityId, spEffectId2, GreaterOrEqual, 1)); 8020             WaitFor(CharacterHasSpEffect(chrEntityId, spEffectId2, GreaterOrEqual, 1));
7573         } else { 8021         } else {
7574             WaitFor(CharacterRatioHPRatio(chrEntityId, NotEqual, 0) <= targetAmount); 8022             WaitFor(CharacterRatioHPRatio(chrEntityId, NotEqual, 0) <= targetAmount);
7575         } 8023         }
7576     } 8024     }
7577     ChangeWeather(Weather.Type40, -1, false); 8025     ChangeWeather(Weather.Type40, -1, false);
7578     SpawnMapSFX(0); 8026     SpawnMapSFX(0);
7579     SetSpEffect(0, spEffectId); 8027     SetSpEffect(0, spEffectId);
7580 }); 8028 });
7581 8029
8030 $Event(90075450, Default, function(chrEntityId, chrEntityId2, chrEntityId3, chrEntityId4, chrEntityId5, chrEntityId6, chrEntityId7, chrEntityId8, chrEntityId9, chrEntityId10, chrEntityId11, chrEntityId12, chrEntityId13) {
8031     DisableNetworkSync();
8032     EnableCharacterDefaultBackread(chrEntityId);
8033     EnableCharacterDefaultBackread(chrEntityId2);
8034     EnableCharacterDefaultBackread(chrEntityId11);
8035     EnableCharacterDefaultBackread(chrEntityId12);
8036     EnableCharacterDefaultBackread(chrEntityId13);
8037     SetNetworkUpdateRate(chrEntityId, true, CharacterUpdateFrequency.AlwaysUpdate);
8038     SetNetworkUpdateRate(chrEntityId2, true, CharacterUpdateFrequency.AlwaysUpdate);
8039     DisableCharacterHPBarDisplay(chrEntityId);
8040     SetNetworkUpdateRate(chrEntityId3, true, CharacterUpdateFrequency.Every2Frames);
8041     SetNetworkUpdateRate(chrEntityId4, true, CharacterUpdateFrequency.Every2Frames);
8042     SetNetworkUpdateRate(chrEntityId5, true, CharacterUpdateFrequency.Every2Frames);
8043     SetNetworkUpdateRate(chrEntityId6, true, CharacterUpdateFrequency.Every2Frames);
8044     SetNetworkUpdateRate(chrEntityId7, true, CharacterUpdateFrequency.Every2Frames);
8045     SetNetworkUpdateRate(chrEntityId8, true, CharacterUpdateFrequency.Every2Frames);
8046     SetNetworkUpdateRate(chrEntityId9, true, CharacterUpdateFrequency.Every2Frames);
8047     SetNetworkUpdateRate(chrEntityId10, true, CharacterUpdateFrequency.Every2Frames);
8048     WaitFor(PlayerInMap(19, 0, 0, 0));
8049     WaitFor(ElapsedFrames(1));
8050     ChangeCamera(-1);
8051 });
8052
8053 $Event(90075452, Restart, function(chrEntityId, chrEntityId2, eventFlagId, eventFlagId2, eventFlagId3) {
8054     if (EventFlag(7512)) {
8055         DisableCharacter(chrEntityId2);
8056         DisableCharacterAI(chrEntityId2);
8057         EndEvent();
8058     }
8059     if (EventFlag(7511)) {
8060         EnableCharacter(chrEntityId2);
8061         EnableCharacterAI(chrEntityId2);
8062         SetNetworkUpdateRate(chrEntityId2, true, CharacterUpdateFrequency.AlwaysUpdate);
8063         SetBossBGM(756000, BossBGMState.HeatUp);
8064         DisplayBossHealthBar(Enabled, chrEntityId2, 0, 907550000);
8065         LinkToBossHealthBar(Disabled, 907550000, 0);
8066         LinkToBossHealthBar(Enabled, 907550000, chrEntityId2);
8067         EndEvent();
8068     }
8069     DisableCharacter(chrEntityId2);
8070     DisableCharacterAI(chrEntityId2);
8071     WaitFor(EventFlag(eventFlagId));
8072     if (EventFlag(eventFlagId2)) {
8073         WaitFixedTimeSeconds(7);
8074         ForceAnimationPlayback(chrEntityId2, 20010, false, false, false);
8075     }
8076     if (EventFlag(eventFlagId3)) {
8077         WaitFixedTimeSeconds(3.17);
8078         ForceAnimationPlayback(chrEntityId2, 20011, false, false, false);
8079     }
8080     EnableCharacter(chrEntityId2);
8081     EnableCharacterAI(chrEntityId2);
8082     SetNetworkUpdateRate(chrEntityId2, true, CharacterUpdateFrequency.AlwaysUpdate);
8083     DisplayBossHealthBar(Enabled, chrEntityId2, 0, 907550000);
8084     LinkToBossHealthBar(Disabled, 907550000, 0);
8085     LinkToBossHealthBar(Enabled, 907550000, chrEntityId2);
8086     PlaySE(chrEntityId2, SoundType.BGM, 756000000);
8087     SetNetworkconnectedEventFlagID(7511, ON);
8088     WaitFor(CharacterHasSpEffect(chrEntityId, 46215));
8089     SetBossBGM(756000, BossBGMState.HeatUp);
8090 });
8091
8092 $Event(99075460, Restart, function(playerNo, eventFlagId, eventFlagId2, eventFlagId3, eventFlagId4, eventFlagId5, eventFlagId6, eventFlagId7, eventFlagId8, eventFlagId9, eventFlagId10) {
8093     EndIf(!TargetingBoss(TargetBoss.Libra));
8094     EndIf(!(IsCampaignSession() || IsPlayMode(2)));
8095     EndIf(AnyBatchEventFlags(eventFlagId, eventFlagId10));
8096     WaitFor(
8097         IsPlayerNo(playerNo) || AnyBatchEventFlags(eventFlagId, eventFlagId10) || EventFlag(7521));
8098     EndIf(AnyBatchEventFlags(eventFlagId, eventFlagId10));
8099     EndIf(
8100         !((IsPlayerNo(playerNo) && !EventFlag(7521)) || (PlayerIsInOwnWorld() && EventFlag(7521))));
8101     flagOnlineChr &= EventFlag(7521) && !PlayerIsInOwnWorld();
8102     EndIf(flagOnlineChr);
8103     flagOnlineChr &= !EventFlag(7521) && !IsPlayerNo(playerNo);
8104     EndIf(flagOnlineChr);
8105     if (IsHero(Hero.Wylder)) {
8106         SetNetworkconnectedEventFlagID(eventFlagId, ON);
8107     }
8108     if (IsHero(Hero.Guardian)) {
8109         SetNetworkconnectedEventFlagID(eventFlagId2, ON);
8110     }
8111     if (IsHero(Hero.Ironeye)) {
8112         SetNetworkconnectedEventFlagID(eventFlagId3, ON);
8113     }
8114     if (IsHero(Hero.Duchess)) {
8115         SetNetworkconnectedEventFlagID(eventFlagId4, ON);
8116     }
8117     if (IsHero(Hero.Raider)) {
8118         SetNetworkconnectedEventFlagID(eventFlagId5, ON);
8119     }
8120     if (IsHero(Hero.Revenant)) {
8121         SetNetworkconnectedEventFlagID(eventFlagId6, ON);
8122     }
8123     if (IsHero(Hero.Recluse)) {
8124         SetNetworkconnectedEventFlagID(eventFlagId7, ON);
8125     }
8126     if (IsHero(Hero.Executor)) {
8127         SetNetworkconnectedEventFlagID(eventFlagId8, ON);
8128     }
8129     Goto(S0);
8130     SetNetworkconnectedEventFlagID(eventFlagId9, ON);
8131 S0:
8132     Goto(S1);
8133     SetNetworkconnectedEventFlagID(eventFlagId10, ON);
8134 S1:
8135     NoOp();
8136 });
8137
8138 $Event(99075461, Restart, function(playerNo, eventFlagId, eventFlagId2, eventFlagId3, eventFlagId4, eventFlagId5, eventFlagId6) {
8139     EndIf(!TargetingBoss(TargetBoss.Libra));
8140     EndIf(!(IsCampaignSession() || IsPlayMode(2)));
8141     EndIf(AnyBatchEventFlags(eventFlagId, eventFlagId6));
8142     WaitFor(
8143         IsPlayerNo(playerNo) || AnyBatchEventFlags(eventFlagId, eventFlagId6) || EventFlag(7521));
8144     EndIf(AnyBatchEventFlags(eventFlagId, eventFlagId6));
8145     EndIf(
8146         !((IsPlayerNo(playerNo) && !EventFlag(7521)) || (PlayerIsInOwnWorld() && EventFlag(7521))));
8147     flagOnlineChr &= EventFlag(7521) && !PlayerIsInOwnWorld();
8148     EndIf(flagOnlineChr);
8149     flagOnlineChr &= !EventFlag(7521) && !IsPlayerNo(playerNo);
8150     EndIf(flagOnlineChr);
8151     if (CharacterHasSpEffect(20000, 49300)
8152         || CharacterHasSpEffect(20000, 49310)
8153         || CharacterHasSpEffect(20000, 49320)
8154         || CharacterHasSpEffect(20000, 49330)
8155         || CharacterHasSpEffect(20000, 49340)
8156         || CharacterHasSpEffect(20000, 49350)
8157         || CharacterHasSpEffect(20000, 49360)
8158         || CharacterHasSpEffect(20000, 49370)) {
8159         SetNetworkconnectedEventFlagID(eventFlagId, ON);
8160     }
8161     if (CharacterHasSpEffect(20000, 49301)
8162         || CharacterHasSpEffect(20000, 49311)
8163         || CharacterHasSpEffect(20000, 49321)
8164         || CharacterHasSpEffect(20000, 49331)
8165         || CharacterHasSpEffect(20000, 49341)
8166         || CharacterHasSpEffect(20000, 49351)
8167         || CharacterHasSpEffect(20000, 49361)
8168         || CharacterHasSpEffect(20000, 49371)) {
8169         SetNetworkconnectedEventFlagID(eventFlagId2, ON);
8170     }
8171     if (CharacterHasSpEffect(20000, 49302)
8172         || CharacterHasSpEffect(20000, 49312)
8173         || CharacterHasSpEffect(20000, 49322)
8174         || CharacterHasSpEffect(20000, 49332)
8175         || CharacterHasSpEffect(20000, 49342)
8176         || CharacterHasSpEffect(20000, 49352)
8177         || CharacterHasSpEffect(20000, 49362)
8178         || CharacterHasSpEffect(20000, 49372)) {
8179         SetNetworkconnectedEventFlagID(eventFlagId3, ON);
8180     }
8181     if (CharacterHasSpEffect(20000, 49303)
8182         || CharacterHasSpEffect(20000, 49313)
8183         || CharacterHasSpEffect(20000, 49323)
8184         || CharacterHasSpEffect(20000, 49333)
8185         || CharacterHasSpEffect(20000, 49343)
8186         || CharacterHasSpEffect(20000, 49353)
8187         || CharacterHasSpEffect(20000, 49363)
8188         || CharacterHasSpEffect(20000, 49373)) {
8189         SetNetworkconnectedEventFlagID(eventFlagId4, ON);
8190     }
8191     if (CharacterHasSpEffect(20000, 49304)
8192         || CharacterHasSpEffect(20000, 49314)
8193         || CharacterHasSpEffect(20000, 49324)
8194         || CharacterHasSpEffect(20000, 49334)
8195         || CharacterHasSpEffect(20000, 49344)
8196         || CharacterHasSpEffect(20000, 49354)
8197         || CharacterHasSpEffect(20000, 49364)
8198         || CharacterHasSpEffect(20000, 49374)) {
8199         SetNetworkconnectedEventFlagID(eventFlagId5, ON);
8200     }
8201     if (CharacterHasSpEffect(20000, 49305)
8202         || CharacterHasSpEffect(20000, 49315)
8203         || CharacterHasSpEffect(20000, 49325)
8204         || CharacterHasSpEffect(20000, 49335)
8205         || CharacterHasSpEffect(20000, 49345)
8206         || CharacterHasSpEffect(20000, 49355)
8207         || CharacterHasSpEffect(20000, 49365)
8208         || CharacterHasSpEffect(20000, 49375)) {
8209         SetNetworkconnectedEventFlagID(eventFlagId6, ON);
8210     }
8211 });
8212
8213 $Event(99075462, Restart, function(playerNo, eventFlagId, eventFlagId2) {
8214     EndIf(!TargetingBoss(TargetBoss.Libra));
8215     EndIf(!(IsCampaignSession() || IsPlayMode(2)));
8216     EndIf(AnyBatchEventFlags(eventFlagId, eventFlagId2));
8217     WaitFor(
8218         IsPlayerNo(playerNo) || AnyBatchEventFlags(eventFlagId, eventFlagId2) || EventFlag(7521));
8219     EndIf(AnyBatchEventFlags(eventFlagId, eventFlagId2));
8220     EndIf(
8221         !((IsPlayerNo(playerNo) && !EventFlag(7521)) || (PlayerIsInOwnWorld() && EventFlag(7521))));
8222     EndIf(EventFlag(7521) && !PlayerIsInOwnWorld());
8223     EndIf(!EventFlag(7521) && !IsPlayerNo(playerNo));
8224     if (IsPlayerNo(playerNo)) {
8225         RandomlySetNetworkconnectedEventFlagInRange(eventFlagId, eventFlagId2, ON);
8226     }
8227     if (EventFlag(7521) && PlayerIsInOwnWorld() && !AnyBatchEventFlags(eventFlagId, eventFlagId2)) {
8228         RandomlySetNetworkconnectedEventFlagInRange(eventFlagId, eventFlagId2, ON);
8229     }
8230 });
8231
8232 $Event(99075465, Restart, function(slot, entityId, entityId2, entityId3, eventFlagId, eventFlagId2, eventFlagId3, eventFlagId4, eventFlagId5, eventFlagId6, eventFlagId7, eventFlagId8, eventFlagId9, eventFlagId10, eventFlagId11, eventFlagId12, eventFlagId13, eventFlagId14, eventFlagId15, eventFlagId16, eventFlagId17, eventFlagId18, eventFlagId19) {
8233     EndIf(!TargetingBoss(TargetBoss.Libra));
8234     EndIf(!(IsCampaignSession() || IsPlayMode(2)));
8235     WaitFor(
8236         AnyBatchEventFlags(eventFlagId, eventFlagId10)
8237             && AnyBatchEventFlags(eventFlagId11, eventFlagId16)
8238             && AnyBatchEventFlags(eventFlagId17, eventFlagId19));
8239     if (EventFlag(eventFlagId)) {
8240         if (EventFlag(eventFlagId11)) {
8241             if (EventFlag(eventFlagId17)) {
8242                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035000, 30000, 35000);
8243             }
8244             if (EventFlag(eventFlagId18)) {
8245                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035000, 30000, 35010);
8246             }
8247             if (EventFlag(eventFlagId19)) {
8248                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035000, 30000, 35020);
8249             }
8250         }
8251         if (EventFlag(eventFlagId12)) {
8252             if (EventFlag(eventFlagId17)) {
8253                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035001, 30000, 35001);
8254             }
8255             if (EventFlag(eventFlagId18)) {
8256                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035001, 30000, 35011);
8257             }
8258             if (EventFlag(eventFlagId19)) {
8259                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035001, 30000, 35021);
8260             }
8261         }
8262         if (EventFlag(eventFlagId13)) {
8263             if (EventFlag(eventFlagId17)) {
8264                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035002, 30000, 35002);
8265             }
8266             if (EventFlag(eventFlagId18)) {
8267                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035002, 30000, 35012);
8268             }
8269             if (EventFlag(eventFlagId19)) {
8270                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035002, 30000, 35022);
8271             }
8272         }
8273         if (EventFlag(eventFlagId14)) {
8274             if (EventFlag(eventFlagId17)) {
8275                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035003, 30000, 35003);
8276             }
8277             if (EventFlag(eventFlagId18)) {
8278                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035003, 30000, 35013);
8279             }
8280             if (EventFlag(eventFlagId19)) {
8281                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035003, 30000, 35023);
8282             }
8283         }
8284         if (EventFlag(eventFlagId15)) {
8285             if (EventFlag(eventFlagId17)) {
8286                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035004, 30000, 35004);
8287             }
8288             if (EventFlag(eventFlagId18)) {
8289                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035004, 30000, 35014);
8290             }
8291             if (EventFlag(eventFlagId19)) {
8292                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035004, 30000, 35024);
8293             }
8294         }
8295         if (EventFlag(eventFlagId16)) {
8296             if (EventFlag(eventFlagId17)) {
8297                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035005, 30000, 35005);
8298             }
8299             if (EventFlag(eventFlagId18)) {
8300                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035005, 30000, 35015);
8301             }
8302             if (EventFlag(eventFlagId19)) {
8303                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035005, 30000, 35025);
8304             }
8305         }
8306     }
8307 L0:
8308     if (EventFlag(eventFlagId2)) {
8309         if (EventFlag(eventFlagId11)) {
8310             if (EventFlag(eventFlagId17)) {
8311                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035100, 30010, 35100);
8312             }
8313             if (EventFlag(eventFlagId18)) {
8314                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035100, 30010, 35110);
8315             }
8316             if (EventFlag(eventFlagId19)) {
8317                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035100, 30010, 35120);
8318             }
8319         }
8320         if (EventFlag(eventFlagId12)) {
8321             if (EventFlag(eventFlagId17)) {
8322                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035101, 30010, 35101);
8323             }
8324             if (EventFlag(eventFlagId18)) {
8325                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035101, 30010, 35111);
8326             }
8327             if (EventFlag(eventFlagId19)) {
8328                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035101, 30010, 35121);
8329             }
8330         }
8331         if (EventFlag(eventFlagId13)) {
8332             if (EventFlag(eventFlagId17)) {
8333                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035102, 30010, 35102);
8334             }
8335             if (EventFlag(eventFlagId18)) {
8336                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035102, 30010, 35112);
8337             }
8338             if (EventFlag(eventFlagId19)) {
8339                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035102, 30010, 35122);
8340             }
8341         }
8342         if (EventFlag(eventFlagId14)) {
8343             if (EventFlag(eventFlagId17)) {
8344                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035103, 30010, 35103);
8345             }
8346             if (EventFlag(eventFlagId18)) {
8347                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035103, 30010, 35113);
8348             }
8349             if (EventFlag(eventFlagId19)) {
8350                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035103, 30010, 35123);
8351             }
8352         }
8353         if (EventFlag(eventFlagId15)) {
8354             if (EventFlag(eventFlagId17)) {
8355                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035104, 30010, 35104);
8356             }
8357             if (EventFlag(eventFlagId18)) {
8358                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035104, 30010, 35114);
8359             }
8360             if (EventFlag(eventFlagId19)) {
8361                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035104, 30010, 35124);
8362             }
8363         }
8364         if (EventFlag(eventFlagId16)) {
8365             if (EventFlag(eventFlagId17)) {
8366                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035105, 30010, 35105);
8367             }
8368             if (EventFlag(eventFlagId18)) {
8369                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035105, 30010, 35115);
8370             }
8371             if (EventFlag(eventFlagId19)) {
8372                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035105, 30010, 35125);
8373             }
8374         }
8375     }
8376 L1:
8377     if (EventFlag(eventFlagId3)) {
8378         if (EventFlag(eventFlagId11)) {
8379             if (EventFlag(eventFlagId17)) {
8380                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035200, 30020, 35200);
8381             }
8382             if (EventFlag(eventFlagId18)) {
8383                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035200, 30020, 35210);
8384             }
8385             if (EventFlag(eventFlagId19)) {
8386                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035200, 30020, 35220);
8387             }
8388         }
8389         if (EventFlag(eventFlagId12)) {
8390             if (EventFlag(eventFlagId17)) {
8391                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035201, 30020, 35201);
8392             }
8393             if (EventFlag(eventFlagId18)) {
8394                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035201, 30020, 35211);
8395             }
8396             if (EventFlag(eventFlagId19)) {
8397                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035201, 30020, 35221);
8398             }
8399         }
8400         if (EventFlag(eventFlagId13)) {
8401             if (EventFlag(eventFlagId17)) {
8402                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035202, 30020, 35202);
8403             }
8404             if (EventFlag(eventFlagId18)) {
8405                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035202, 30020, 35212);
8406             }
8407             if (EventFlag(eventFlagId19)) {
8408                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035202, 30020, 35222);
8409             }
8410         }
8411         if (EventFlag(eventFlagId14)) {
8412             if (EventFlag(eventFlagId17)) {
8413                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035203, 30020, 35203);
8414             }
8415             if (EventFlag(eventFlagId18)) {
8416                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035203, 30020, 35213);
8417             }
8418             if (EventFlag(eventFlagId19)) {
8419                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035203, 30020, 35223);
8420             }
8421         }
8422         if (EventFlag(eventFlagId15)) {
8423             if (EventFlag(eventFlagId17)) {
8424                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035204, 30020, 35204);
8425             }
8426             if (EventFlag(eventFlagId18)) {
8427                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035204, 30020, 35214);
8428             }
8429             if (EventFlag(eventFlagId19)) {
8430                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035204, 30020, 35224);
8431             }
8432         }
8433         if (EventFlag(eventFlagId16)) {
8434             if (EventFlag(eventFlagId17)) {
8435                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035205, 30020, 35205);
8436             }
8437             if (EventFlag(eventFlagId18)) {
8438                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035205, 30020, 35215);
8439             }
8440             if (EventFlag(eventFlagId19)) {
8441                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035205, 30020, 35225);
8442             }
8443         }
8444     }
8445 L2:
8446     if (EventFlag(eventFlagId4)) {
8447         if (EventFlag(eventFlagId11)) {
8448             if (EventFlag(eventFlagId17)) {
8449                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035300, 30030, 35300);
8450             }
8451             if (EventFlag(eventFlagId18)) {
8452                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035300, 30030, 35310);
8453             }
8454             if (EventFlag(eventFlagId19)) {
8455                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035300, 30030, 35320);
8456             }
8457         }
8458         if (EventFlag(eventFlagId12)) {
8459             if (EventFlag(eventFlagId17)) {
8460                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035301, 30030, 35301);
8461             }
8462             if (EventFlag(eventFlagId18)) {
8463                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035301, 30030, 35311);
8464             }
8465             if (EventFlag(eventFlagId19)) {
8466                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035301, 30030, 35321);
8467             }
8468         }
8469         if (EventFlag(eventFlagId13)) {
8470             if (EventFlag(eventFlagId17)) {
8471                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035302, 30030, 35302);
8472             }
8473             if (EventFlag(eventFlagId18)) {
8474                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035302, 30030, 35312);
8475             }
8476             if (EventFlag(eventFlagId19)) {
8477                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035302, 30030, 35322);
8478             }
8479         }
8480         if (EventFlag(eventFlagId14)) {
8481             if (EventFlag(eventFlagId17)) {
8482                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035303, 30030, 35303);
8483             }
8484             if (EventFlag(eventFlagId18)) {
8485                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035303, 30030, 35313);
8486             }
8487             if (EventFlag(eventFlagId19)) {
8488                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035303, 30030, 35323);
8489             }
8490         }
8491         if (EventFlag(eventFlagId15)) {
8492             if (EventFlag(eventFlagId17)) {
8493                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035304, 30030, 35304);
8494             }
8495             if (EventFlag(eventFlagId18)) {
8496                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035304, 30030, 35314);
8497             }
8498             if (EventFlag(eventFlagId19)) {
8499                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035304, 30030, 35324);
8500             }
8501         }
8502         if (EventFlag(eventFlagId16)) {
8503             if (EventFlag(eventFlagId17)) {
8504                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035305, 30030, 35305);
8505             }
8506             if (EventFlag(eventFlagId18)) {
8507                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035305, 30030, 35315);
8508             }
8509             if (EventFlag(eventFlagId19)) {
8510                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035305, 30030, 35325);
8511             }
8512         }
8513     }
8514 L3:
8515     if (EventFlag(eventFlagId5)) {
8516         if (EventFlag(eventFlagId11)) {
8517             if (EventFlag(eventFlagId17)) {
8518                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035400, 30040, 35400);
8519             }
8520             if (EventFlag(eventFlagId18)) {
8521                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035400, 30040, 35410);
8522             }
8523             if (EventFlag(eventFlagId19)) {
8524                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035400, 30040, 35420);
8525             }
8526         }
8527         if (EventFlag(eventFlagId12)) {
8528             if (EventFlag(eventFlagId17)) {
8529                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035401, 30040, 35401);
8530             }
8531             if (EventFlag(eventFlagId18)) {
8532                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035401, 30040, 35411);
8533             }
8534             if (EventFlag(eventFlagId19)) {
8535                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035401, 30040, 35421);
8536             }
8537         }
8538         if (EventFlag(eventFlagId13)) {
8539             if (EventFlag(eventFlagId17)) {
8540                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035402, 30040, 35402);
8541             }
8542             if (EventFlag(eventFlagId18)) {
8543                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035402, 30040, 35412);
8544             }
8545             if (EventFlag(eventFlagId19)) {
8546                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035402, 30040, 35422);
8547             }
8548         }
8549         if (EventFlag(eventFlagId14)) {
8550             if (EventFlag(eventFlagId17)) {
8551                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035403, 30040, 35403);
8552             }
8553             if (EventFlag(eventFlagId18)) {
8554                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035403, 30040, 35413);
8555             }
8556             if (EventFlag(eventFlagId19)) {
8557                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035403, 30040, 35423);
8558             }
8559         }
8560         if (EventFlag(eventFlagId15)) {
8561             if (EventFlag(eventFlagId17)) {
8562                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035404, 30040, 35404);
8563             }
8564             if (EventFlag(eventFlagId18)) {
8565                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035404, 30040, 35414);
8566             }
8567             if (EventFlag(eventFlagId19)) {
8568                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035404, 30040, 35424);
8569             }
8570         }
8571         if (EventFlag(eventFlagId16)) {
8572             if (EventFlag(eventFlagId17)) {
8573                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035405, 30040, 35405);
8574             }
8575             if (EventFlag(eventFlagId18)) {
8576                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035405, 30040, 35415);
8577             }
8578             if (EventFlag(eventFlagId19)) {
8579                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035405, 30040, 35425);
8580             }
8581         }
8582     }
8583 L4:
8584     if (EventFlag(eventFlagId6)) {
8585         if (EventFlag(eventFlagId11)) {
8586             if (EventFlag(eventFlagId17)) {
8587                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035500, 30050, 35500);
8588             }
8589             if (EventFlag(eventFlagId18)) {
8590                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035500, 30050, 35510);
8591             }
8592             if (EventFlag(eventFlagId19)) {
8593                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035500, 30050, 35520);
8594             }
8595         }
8596         if (EventFlag(eventFlagId12)) {
8597             if (EventFlag(eventFlagId17)) {
8598                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035501, 30050, 35501);
8599             }
8600             if (EventFlag(eventFlagId18)) {
8601                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035501, 30050, 35511);
8602             }
8603             if (EventFlag(eventFlagId19)) {
8604                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035501, 30050, 35521);
8605             }
8606         }
8607         if (EventFlag(eventFlagId13)) {
8608             if (EventFlag(eventFlagId17)) {
8609                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035502, 30050, 35502);
8610             }
8611             if (EventFlag(eventFlagId18)) {
8612                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035502, 30050, 35512);
8613             }
8614             if (EventFlag(eventFlagId19)) {
8615                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035502, 30050, 35522);
8616             }
8617         }
8618         if (EventFlag(eventFlagId14)) {
8619             if (EventFlag(eventFlagId17)) {
8620                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035503, 30050, 35503);
8621             }
8622             if (EventFlag(eventFlagId18)) {
8623                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035503, 30050, 35513);
8624             }
8625             if (EventFlag(eventFlagId19)) {
8626                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035503, 30050, 35523);
8627             }
8628         }
8629         if (EventFlag(eventFlagId15)) {
8630             if (EventFlag(eventFlagId17)) {
8631                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035504, 30050, 35504);
8632             }
8633             if (EventFlag(eventFlagId18)) {
8634                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035504, 30050, 35514);
8635             }
8636             if (EventFlag(eventFlagId19)) {
8637                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035504, 30050, 35524);
8638             }
8639         }
8640         if (EventFlag(eventFlagId16)) {
8641             if (EventFlag(eventFlagId17)) {
8642                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035505, 30050, 35505);
8643             }
8644             if (EventFlag(eventFlagId18)) {
8645                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035505, 30050, 35515);
8646             }
8647             if (EventFlag(eventFlagId19)) {
8648                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035505, 30050, 35525);
8649             }
8650         }
8651     }
8652 L5:
8653     if (EventFlag(eventFlagId7)) {
8654         if (EventFlag(eventFlagId11)) {
8655             if (EventFlag(eventFlagId17)) {
8656                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035600, 30060, 35600);
8657             }
8658             if (EventFlag(eventFlagId18)) {
8659                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035600, 30060, 35610);
8660             }
8661             if (EventFlag(eventFlagId19)) {
8662                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035600, 30060, 35620);
8663             }
8664         }
8665         if (EventFlag(eventFlagId12)) {
8666             if (EventFlag(eventFlagId17)) {
8667                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035601, 30060, 35601);
8668             }
8669             if (EventFlag(eventFlagId18)) {
8670                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035601, 30060, 35611);
8671             }
8672             if (EventFlag(eventFlagId19)) {
8673                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035601, 30060, 35621);
8674             }
8675         }
8676         if (EventFlag(eventFlagId13)) {
8677             if (EventFlag(eventFlagId17)) {
8678                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035602, 30060, 35602);
8679             }
8680             if (EventFlag(eventFlagId18)) {
8681                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035602, 30060, 35612);
8682             }
8683             if (EventFlag(eventFlagId19)) {
8684                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035602, 30060, 35622);
8685             }
8686         }
8687         if (EventFlag(eventFlagId14)) {
8688             if (EventFlag(eventFlagId17)) {
8689                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035603, 30060, 35603);
8690             }
8691             if (EventFlag(eventFlagId18)) {
8692                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035603, 30060, 35613);
8693             }
8694             if (EventFlag(eventFlagId19)) {
8695                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035603, 30060, 35623);
8696             }
8697         }
8698         if (EventFlag(eventFlagId15)) {
8699             if (EventFlag(eventFlagId17)) {
8700                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035604, 30060, 35604);
8701             }
8702             if (EventFlag(eventFlagId18)) {
8703                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035604, 30060, 35614);
8704             }
8705             if (EventFlag(eventFlagId19)) {
8706                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035604, 30060, 35624);
8707             }
8708         }
8709         if (EventFlag(eventFlagId16)) {
8710             if (EventFlag(eventFlagId17)) {
8711                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035605, 30060, 35605);
8712             }
8713             if (EventFlag(eventFlagId18)) {
8714                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035605, 30060, 35615);
8715             }
8716             if (EventFlag(eventFlagId19)) {
8717                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035605, 30060, 35625);
8718             }
8719         }
8720     }
8721 L6:
8722     if (EventFlag(eventFlagId8)) {
8723         if (EventFlag(eventFlagId11)) {
8724             if (EventFlag(eventFlagId17)) {
8725                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035700, 30070, 35700);
8726             }
8727             if (EventFlag(eventFlagId18)) {
8728                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035700, 30070, 35710);
8729             }
8730             if (EventFlag(eventFlagId19)) {
8731                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035700, 30070, 35720);
8732             }
8733         }
8734         if (EventFlag(eventFlagId12)) {
8735             if (EventFlag(eventFlagId17)) {
8736                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035701, 30070, 35701);
8737             }
8738             if (EventFlag(eventFlagId18)) {
8739                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035701, 30070, 35711);
8740             }
8741             if (EventFlag(eventFlagId19)) {
8742                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035701, 30070, 35721);
8743             }
8744         }
8745         if (EventFlag(eventFlagId13)) {
8746             if (EventFlag(eventFlagId17)) {
8747                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035702, 30070, 35702);
8748             }
8749             if (EventFlag(eventFlagId18)) {
8750                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035702, 30070, 35712);
8751             }
8752             if (EventFlag(eventFlagId19)) {
8753                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035702, 30070, 35722);
8754             }
8755         }
8756         if (EventFlag(eventFlagId14)) {
8757             if (EventFlag(eventFlagId17)) {
8758                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035703, 30070, 35703);
8759             }
8760             if (EventFlag(eventFlagId18)) {
8761                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035703, 30070, 35713);
8762             }
8763             if (EventFlag(eventFlagId19)) {
8764                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035703, 30070, 35723);
8765             }
8766         }
8767         if (EventFlag(eventFlagId15)) {
8768             if (EventFlag(eventFlagId17)) {
8769                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035704, 30070, 35704);
8770             }
8771             if (EventFlag(eventFlagId18)) {
8772                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035704, 30070, 35714);
8773             }
8774             if (EventFlag(eventFlagId19)) {
8775                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035704, 30070, 35724);
8776             }
8777         }
8778         if (EventFlag(eventFlagId16)) {
8779             if (EventFlag(eventFlagId17)) {
8780                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035705, 30070, 35705);
8781             }
8782             if (EventFlag(eventFlagId18)) {
8783                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035705, 30070, 35715);
8784             }
8785             if (EventFlag(eventFlagId19)) {
8786                 OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, 700035705, 30070, 35725);
8787             }
8788         }
8789     }
8790 L7:
8791     if (EventFlag(eventFlagId9)) {
8792         if (EventFlag(eventFlagId11)) {
8793             OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, -1, -1, -1);
8794         }
8795         if (EventFlag(eventFlagId12)) {
8796             OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, -1, -1, -1);
8797         }
8798         if (EventFlag(eventFlagId13)) {
8799             OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, -1, -1, -1);
8800         }
8801         if (EventFlag(eventFlagId14)) {
8802             OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, -1, -1, -1);
8803         }
8804         if (EventFlag(eventFlagId15)) {
8805             OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, -1, -1, -1);
8806         }
8807         if (EventFlag(eventFlagId16)) {
8808             OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, -1, -1, -1);
8809         }
8810     }
8811 L8:
8812     if (EventFlag(eventFlagId10)) {
8813         if (EventFlag(eventFlagId11)) {
8814             OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, -1, -1, -1);
8815         }
8816         if (EventFlag(eventFlagId12)) {
8817             OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, -1, -1, -1);
8818         }
8819         if (EventFlag(eventFlagId13)) {
8820             OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, -1, -1, -1);
8821         }
8822         if (EventFlag(eventFlagId14)) {
8823             OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, -1, -1, -1);
8824         }
8825         if (EventFlag(eventFlagId15)) {
8826             OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, -1, -1, -1);
8827         }
8828         if (EventFlag(eventFlagId16)) {
8829             OverrideCharacterCreateData(slot, entityId, entityId2, entityId3, -1, -1, -1);
8830         }
8831     }
8832 L9:
8833     NoOp();
8834 });
8835
8836 $Event(99075466, Restart, function(chrEntityId, chrEntityId2, chrEntityId3, dummypolyId, generatorEntityId, eventFlagId, eventFlagId2) {
8837     EndIf(CharacterHPValue(chrEntityId) <= 0);
8838     if (EventFlag(eventFlagId2)) {
8839         SetCharacterBackreadState(chrEntityId3, false);
8840         EnableCharacter(chrEntityId3);
8841         EnableCharacterAI(chrEntityId3);
8842     } else if (!CharacterDead(chrEntityId3)) {
8843         if (IsPlayerNo(1)) {
8844             WaitFor(HPRatio(chrEntityId3) > 0);
8845             SetCharacterBackreadState(chrEntityId3, false);
8846             DisableCharacter(chrEntityId3);
8847             DisableCharacterAI(chrEntityId3);
8848         }
8849         if (IsPlayerNo(2)) {
8850             WaitFor(HPRatio(chrEntityId3) > 0);
8851             SetCharacterBackreadState(chrEntityId3, false);
8852             DisableCharacter(chrEntityId3);
8853             DisableCharacterAI(chrEntityId3);
8854         }
8855         if (IsPlayerNo(3)) {
8856             WaitFor(HPRatio(chrEntityId3) > 0);
8857             SetCharacterBackreadState(chrEntityId3, false);
8858             DisableCharacter(chrEntityId3);
8859             DisableCharacterAI(chrEntityId3);
8860         }
8861         if (EventFlag(eventFlagId)) {
8862             WaitFor(CharacterHasSpEffect(chrEntityId, 49135));
8863         }
8864         WaitFor(
8865             (CharacterHasSpEffect(chrEntityId, 49100)
8866                 && (CharacterHasTeamType(chrEntityId2, TeamType.Human)
8867                     || CharacterHasTeamType(chrEntityId2, TeamType.WhitePhantom)
8868                     || CharacterHasTeamType(chrEntityId2, TeamType.Indiscriminate)
8869                     || CharacterHasTeamType(chrEntityId2, TeamType.Unknown77)
8870                     || CharacterHasTeamType(chrEntityId2, TeamType.Disabled)
8871                     || EventFlag(eventFlagId)))
8872                 || CharacterHPValue(chrEntityId) <= 0);
8873         EndIf(CharacterHPValue(chrEntityId) <= 0);
8874         EnableCharacter(chrEntityId3);
8875         EnableCharacterAI(chrEntityId3);
8876         WarpCharacterAndCopyFloorUnknown200489(chrEntityId3, TargetEntityType.Character, chrEntityId, dummypolyId, chrEntityId, -1, -1);
8877         ForceAnimationPlayback(chrEntityId3, 60506, false, false, false);
8878         SetNetworkconnectedEventFlagID(eventFlagId, ON);
8879         SetNetworkconnectedEventFlagID(eventFlagId2, ON);
8880         WaitFor(ElapsedSeconds(2.4));
8881     }
8882 L0:
8883     WaitFor(CharacterDead(chrEntityId3));
8884     SetNetworkconnectedEventFlagID(eventFlagId2, OFF);
8885     InvokeEnemyGenerator(generatorEntityId);
8886     RestartEvent();
8887 });
8888
8889 $Event(99075467, Restart, function(chrEntityId, chrEntityId2, eventFlagId) {
8890     hp = CharacterHPValue(chrEntityId) <= 0;
8891     if (!mainGroupAbuse) {
8892         DisableCharacter(chrEntityId2);
8893         ForceCharacterDeath(chrEntityId2, false);
8894         EndEvent();
8895     }
8896     WaitFor(CharacterHPValue(chrEntityId) <= 0);
8897     if (!EventFlag(eventFlagId)) {
8898         DisableCharacter(chrEntityId2);
8899     }
8900     if (EventFlag(eventFlagId)) {
8901         SetSpEffect(chrEntityId2, 49118);
8902     }
8903     WaitFor(ElapsedFrames(5));
8904     ForceCharacterDeath(chrEntityId2, false);
8905 });
8906
8907 $Event(99075468, Restart, function(chrEntityId, chrEntityId2, dummypolyId, generatorEntityId, eventFlagId, eventFlagId2) {
8908     EndIf(CharacterHPValue(chrEntityId) <= 0);
8909     if (EventFlag(eventFlagId2)) {
8910         SetCharacterBackreadState(chrEntityId2, false);
8911         EnableCharacter(chrEntityId2);
8912         EnableCharacterAI(chrEntityId2);
8913     } else if (!CharacterDead(chrEntityId2)) {
8914         if (IsPlayerNo(1)) {
8915             WaitFor(HPRatio(chrEntityId2) > 0);
8916             SetCharacterBackreadState(chrEntityId2, false);
8917             DisableCharacter(chrEntityId2);
8918             DisableCharacterAI(chrEntityId2);
8919         }
8920         if (IsPlayerNo(2)) {
8921             WaitFor(HPRatio(chrEntityId2) > 0);
8922             SetCharacterBackreadState(chrEntityId2, false);
8923             DisableCharacter(chrEntityId2);
8924             DisableCharacterAI(chrEntityId2);
8925         }
8926         if (IsPlayerNo(3)) {
8927             WaitFor(HPRatio(chrEntityId2) > 0);
8928             SetCharacterBackreadState(chrEntityId2, false);
8929             DisableCharacter(chrEntityId2);
8930             DisableCharacterAI(chrEntityId2);
8931         }
8932         WaitFor(
8933             (CharacterHasSpEffect(chrEntityId, 49691) && EventFlag(eventFlagId))
8934                 || CharacterHPValue(chrEntityId) <= 0);
8935         EndIf(CharacterHPValue(chrEntityId) <= 0);
8936         EnableCharacter(chrEntityId2);
8937         EnableCharacterAI(chrEntityId2);
8938         WarpCharacterAndCopyFloorUnknown200489(chrEntityId2, TargetEntityType.Character, chrEntityId, dummypolyId, chrEntityId, -1, -1);
8939         ForceAnimationPlayback(chrEntityId2, 60506, false, false, false);
8940         SetNetworkconnectedEventFlagID(eventFlagId2, ON);
8941         WaitFor(ElapsedSeconds(2.4));
8942     }
8943 L0:
8944     WaitFor(!CharacterHasSpEffect(chrEntityId, 49691));
8945     WaitFor(CharacterDead(chrEntityId2));
8946     SetNetworkconnectedEventFlagID(eventFlagId2, OFF);
8947     InvokeEnemyGenerator(generatorEntityId);
8948     RestartEvent();
8949 });
8950
8951 $Event(99075470, Restart, function(chrEntityId, spEffectId, textEffectParamId) {
8952     DisableNetworkSync();
8953     EndIf(CharacterHPValue(chrEntityId) <= 0);
8954     if (!CharacterHasSpEffect(chrEntityId, spEffectId)) {
8955         WaitFor(CharacterHasSpEffect(chrEntityId, spEffectId));
8956         DisplayTextEffectId(textEffectParamId);
8957     }
8958 L0:
8959     WaitFor(!CharacterHasSpEffect(chrEntityId, spEffectId));
8960     RestartEvent();
8961 });
8962
8963 $Event(99075471, Restart, function(chrEntityId, eventFlagId, eventFlagId2, eventFlagId3, eventFlagId4, eventFlagId5, eventFlagId6) {
8964     DisableNetworkSync();
8965     EndIf(CharacterHPValue(chrEntityId) <= 0);
8966     if (!CharacterHasSpEffect(chrEntityId, 49100)) {
8967         WaitFor(CharacterHasSpEffect(chrEntityId, 49100));
8968         DisplayTextEffectId(8000);
8969         WaitFor(ElapsedSeconds(5));
8970     }
8971 L0:
8972     WaitFor(CharacterHasSpEffect(chrEntityId, 49135));
8973     if (EventFlag(eventFlagId)) {
8974         flag |= !EventFlag(eventFlagId2);
8975     }
8976     if (EventFlag(eventFlagId3)) {
8977         flag |= !EventFlag(eventFlagId4);
8978     }
8979     if (EventFlag(eventFlagId5)) {
8980         flag |= !EventFlag(eventFlagId6);
8981     }
8982     if (flag) {
8983         DisplayTextEffectId(8000);
8984     }
8985     WaitFor(ElapsedSeconds(5));
8986     RestartEvent();
8987 });
8988
8989 $Event(99075480, Restart, function(chrEntityId, chrEntityId2, spEffectId, spEffectId2, spEffectId3, spEffectId4, value) {
8990     DisableNetworkSync();
8991     EndIf(CharacterHPValue(chrEntityId) <= 0);
8992     spCmp |= CharacterHasSpEffect(chrEntityId, spEffectId);
8993     cmpSp &= value != 0;
8994     sp |= CharacterHasSpEffect(chrEntityId2, spEffectId2);
8995     if (Signed(spEffectId3) != 0) {
8996         sp |= CharacterHasSpEffect(chrEntityId2, spEffectId3);
8997     }
8998     cmpSp &= sp;
8999     spCmp |= cmpSp;
9000     WaitFor(spCmp);
9001     if (CharacterHasSpEffect(chrEntityId, spEffectId)) {
9002         SetSpEffect(chrEntityId2, spEffectId2);
9003     }
9004     spHp |= !CharacterHasSpEffect(chrEntityId, spEffectId);
9005     sp2 &= !CharacterHasSpEffect(chrEntityId2, spEffectId2);
9006     if (Signed(spEffectId3) != 0) {
9007         sp2 &= !CharacterHasSpEffect(chrEntityId2, spEffectId3);
9008     }
9009     spHp |= sp2 || CharacterHPValue(chrEntityId) <= 0;
9010     WaitFor(spHp);
9011     if (!CharacterHasSpEffect(chrEntityId, spEffectId) || CharacterHPValue(chrEntityId) <= 0) {
9012         SetSpEffect(chrEntityId2, spEffectId4);
9013     }
9014     RestartEvent();
9015 });
9016
9017 $Event(99075481, Restart, function(chrEntityId, chrEntityId2) {
9018     DisableNetworkSync();
9019     EndIf(CharacterHPValue(chrEntityId) <= 0);
9020     WaitFor(
9021         (CharacterHasTeamType(chrEntityId2, TeamType.Human)
9022             || CharacterHasTeamType(chrEntityId2, TeamType.WhitePhantom)
9023             || CharacterHasTeamType(chrEntityId2, TeamType.Indiscriminate)
9024             || CharacterHasTeamType(chrEntityId2, TeamType.Unknown77)
9025             || CharacterHasTeamType(chrEntityId2, TeamType.Disabled))
9026             && (CharacterHasSpEffect(chrEntityId, 49690) || CharacterHasSpEffect(chrEntityId2, 49700)));
9027     if (CharacterHasSpEffect(chrEntityId, 49690)) {
9028         SetSpEffect(chrEntityId2, 49700);
9029     }
9030     WaitFor(
9031         !CharacterHasSpEffect(chrEntityId, 49690)
9032             || !CharacterHasSpEffect(chrEntityId2, 49700)
9033             || CharacterHPValue(chrEntityId) <= 0);
9034     if (!CharacterHasSpEffect(chrEntityId, 49690) || CharacterHPValue(chrEntityId) <= 0) {
9035         SetSpEffect(chrEntityId2, 49701);
9036     }
9037     RestartEvent();
9038 });
9039
9040 $Event(99075482, Restart, function(chrEntityId) {
9041     DisableNetworkSync();
9042     EndIf(CharacterHPValue(chrEntityId) <= 0);
9043     WaitFor(PlayersSoulLevel() >= 2);
9044     WaitFor(CharacterHasSpEffect(20000, 49758) || PlayersSoulLevel() <= 1);
9045     RestartIf(PlayersSoulLevel() == 1);
9046     DisplayTextEffectId(3107);
9047     WaitFor(!CharacterHasSpEffect(20000, 49758));
9048     RestartEvent();
9049 });
9050
9051 $Event(99075483, Restart, function(chrEntityId) {
9052     DisableNetworkSync();
9053     EndIf(CharacterHPValue(chrEntityId) <= 0);
9054     WaitFor(
9055         CharacterHasSpEffect(chrEntityId, 49695)
9056             || CharacterHasSpEffect(20000, 49750)
9057             || CharacterHasSpEffect(20000, 49751)
9058             || CharacterHasSpEffect(20000, 49752)
9059             || CharacterHasSpEffect(20000, 49753)
9060             || CharacterHasSpEffect(20000, 49754)
9061             || CharacterHasSpEffect(20000, 46755));
9062     if (CharacterHasSpEffect(chrEntityId, 49695)) {
9063         SetSpEffect(20000, 49753);
9064     }
9065     WaitFor(!CharacterHasSpEffect(chrEntityId, 49695) || CharacterHPValue(chrEntityId) <= 0);
9066     if (!CharacterHasSpEffect(chrEntityId, 49695) || CharacterHPValue(chrEntityId) <= 0) {
9067         SetSpEffect(20000, 49757);
9068     }
9069     RestartEvent();
9070 });
9071
9072 $Event(99075485, Restart, function(chrEntityId, eventFlagId) {
9073     EndIf(EventFlag(7512));
9074     WaitFor(CharacterHasSpEffect(chrEntityId, 5106));
9075     WaitFor(
9076         PlayerIsInOwnWorld() && BGMCommonState(4, 0) && !CharacterHasSpEffect(chrEntityId, 49420));
9077     WaitFor(PlayerIsInOwnWorld() && BGMCommonState(4, 1));
9078     if (HPRatio(chrEntityId) <= 0.4) {
9079         flag |= EventValue(eventFlagId, 2) >= 1;
9080     } else if (HPRatio(chrEntityId) <= 0.6) {
9081         flag |= EventValue(eventFlagId, 2) >= 2;
9082     } else {
9083         flag |= EventValue(eventFlagId, 2) >= 3;
9084         Goto(L0);
9085     }
9086 L0:
9087     if (flag) {
9088         ClearEventValue(eventFlagId, 2);
9089         SetSpEffect(chrEntityId, 49420);
9090         WaitFor(ElapsedFrames(1));
9091         RestartEvent();
9092     }
9093     IncrementNetworkconnectedEventValue(eventFlagId, 2, 3);
9094     RestartEvent();
9095 });
9096
9097 $Event(99075486, Restart, function(chrEntityId) {
9098     DisableNetworkSync();
9099     EndIf(EventFlag(7512));
9100     WaitFor(EventFlag(7511));
9101     WaitFor(ElapsedSeconds(5));
9102     WaitFor(!BossBGMPlaying(756000));
9103     WaitFor(ElapsedSeconds(1));
9104     EndIf(EventFlag(7512));
9105     if (CharacterHasSpEffect(chrEntityId, 5106)) {
9106         SetBossBGM(756000, BossBGMState.HeatUp2);
9107         RestartEvent();
9108     }
9109     SetBossBGM(756000, BossBGMState.HeatUp);
9110     RestartEvent();
9111 });
9112
7582 $Event(90075500, Restart, function(chrEntityId) { 9113 $Event(90075500, Restart, function(chrEntityId) {
9114     DisableNetworkSync();
7583     EnableCharacterDefaultBackread(chrEntityId); 9115     EnableCharacterDefaultBackread(chrEntityId);
7584     SetNetworkUpdateRate(chrEntityId, true, CharacterUpdateFrequency.AlwaysUpdate); 9116     SetNetworkUpdateRate(chrEntityId, true, CharacterUpdateFrequency.AlwaysUpdate);
7585     DisableCharacterHPBarDisplay(chrEntityId); 9117     DisableCharacterHPBarDisplay(chrEntityId);
7586     WaitFor(PlayerInMap(19, 0, 0, 0)); 9118     WaitFor(PlayerInMap(19, 0, 0, 0));
7587     WaitFor(ElapsedFrames(1)); 9119     WaitFor(ElapsedFrames(1));
7588     ChangeCamera(-1); 9120     ChangeCamera(-1);
7589 }); 9121 });
7590 9122
7591 $Event(90075501, Restart, function(chrEntityId) { 9123 $Event(90075501, Restart, function(chrEntityId) {
7592     if (EventFlag(7512)) { 9124     if (EventFlag(7512)) {
7782             WaitFor(CharacterHasSpEffect(chrEntityId, spEffectId2, GreaterOrEqual, 1)); 9314             WaitFor(CharacterHasSpEffect(chrEntityId, spEffectId2, GreaterOrEqual, 1));
7783         } else { 9315         } else {
7784             WaitFor(CharacterRatioHPRatio(chrEntityId, NotEqual, 0) <= targetAmount); 9316             WaitFor(CharacterRatioHPRatio(chrEntityId, NotEqual, 0) <= targetAmount);
7785         } 9317         }
7786     } 9318     }
7787     ChangeWeather(Weather.Type50, -1, false); 9319     ChangeWeather(Weather.Type50, -1, false);
7788     SpawnMapSFX(0); 9320     SpawnMapSFX(0);
7789     SetSpEffect(0, spEffectId); 9321     SetSpEffect(0, spEffectId);
7790 }); 9322 });
7791 9323
9324 $Event(90075651, Restart, function(chrEntityId) {
9325     if (EventFlag(7512)) {
9326         ForceCharacterDeath(chrEntityId, false);
9327         EndEvent();
9328     }
9329     if (EventFlag(7511)) {
9330         EnableCharacter(chrEntityId);
9331         EnableCharacterAI(chrEntityId);
9332         DisplayBossHealthBar(Enabled, chrEntityId, 0, 907620000);
9333         LinkToBossHealthBar(Disabled, 907620000, 0);
9334         LinkToBossHealthBar(Enabled, 907620000, chrEntityId);
9335         if (CharacterHasSpEffect(chrEntityId, 5106)) {
9336             SetBossBGM(490000, BossBGMState.HeatUp2);
9337             EndEvent();
9338         }
9339         if (CharacterHasSpEffect(chrEntityId, 5105)) {
9340             SetBossBGM(490000, BossBGMState.HeatUp);
9341             EndEvent();
9342         }
9343         EndEvent();
9344     }
9345     EnableCharacter(chrEntityId);
9346     DisableCharacterAI(chrEntityId);
9347     DisableLockOnPoint(chrEntityId, 221);
9348     DisableLockOnPoint(chrEntityId, 222);
9349     DisableLockOnPoint(chrEntityId, 223);
9350     DisableLockOnPoint(chrEntityId, 224);
9351     WaitFor(EventFlag(7510) || EventFlag(7511) || PlayerInMap(19, 0, 0, 0));
9352     ForceAnimationPlayback(chrEntityId, 30029, true, false, false);
9353     EnableCharacterAI(chrEntityId);
9354     ActivateGparamOverride(4, 0);
9355     WaitFor(EventFlag(7511));
9356     ForceAnimationPlayback(chrEntityId, 20029, false, false, false);
9357     EnableLockOnPoint(chrEntityId, 221);
9358     EnableLockOnPoint(chrEntityId, 222);
9359     EnableLockOnPoint(chrEntityId, 223);
9360     EnableLockOnPoint(chrEntityId, 224);
9361     DeactivateGparamOverride(3);
9362     LinkToBossHealthBar(Disabled, 907620000, 0);
9363     LinkToBossHealthBar(Enabled, 907620000, chrEntityId);
9364     WaitFor(ElapsedSeconds(2.5));
9365     DisplayBossHealthBar(Enabled, chrEntityId, 0, 907620000);
9366 });
9367
9368 $Event(90075652, Restart, function(chrEntityId, spEffectId, spEffectId2) {
9369     DisableNetworkSync();
9370     EndIf(EventFlag(7512));
9371     EndIf(CharacterHasSpEffect(chrEntityId, spEffectId2));
9372     WaitFor(EventFlag(7511));
9373     WaitFor(
9374         CharacterHasSpEffect(chrEntityId, spEffectId)
9375             || CharacterHasSpEffect(chrEntityId, spEffectId2)
9376             || EventFlag(7512));
9377     EndIf(CharacterHasSpEffect(chrEntityId, spEffectId2));
9378     EndIf(EventFlag(7512));
9379     SetBossBGM(490000, BossBGMState.HeatUp);
9380     WaitFor(
9381         !BossBGMPlaying(490000) || CharacterHasSpEffect(chrEntityId, spEffectId2) || EventFlag(7512));
9382     EndIf(CharacterHasSpEffect(chrEntityId, spEffectId2));
9383     EndIf(EventFlag(7512));
9384     RestartEvent();
9385 });
9386
9387 $Event(90075660, Restart, function(chrEntityId, spEffectId, spEffectId2, spEffectId3, bitNumber, npcPartHP, npcPartId, npcPartGroupIdx, npcPartId2, npcPartGroupIdx2, npcPartId3, npcPartGroupIdx3, npcPartId4, npcPartGroupIdx4, npcPartId5, npcPartGroupIdx5) {
9388     EndIf(EventFlag(7512));
9389     WaitFor(CharacterHasSpEffect(chrEntityId, spEffectId) || CharacterHPValue(chrEntityId) <= 0);
9390     EndIf(CharacterHPValue(chrEntityId) <= 0);
9391     CreateNPCPart(chrEntityId, npcPartId, npcPartGroupIdx, npcPartHP, 1, 0.5, false, false);
9392     SetNPCPartSEAndSFX(chrEntityId, npcPartId, 181, 181, 139, 139, 0);
9393     if (Signed(npcPartId2) != 0) {
9394         CreateNPCPart(chrEntityId, npcPartId2, npcPartGroupIdx2, npcPartHP, 1, 0.5, false, false);
9395         SetNPCPartSEAndSFX(chrEntityId, npcPartId2, 181, 181, 139, 139, 0);
9396     }
9397     if (Signed(npcPartId3) != 0) {
9398         CreateNPCPart(chrEntityId, npcPartId3, npcPartGroupIdx3, npcPartHP, 1, 0.5, false, false);
9399         SetNPCPartSEAndSFX(chrEntityId, npcPartId3, 181, 181, 139, 139, 0);
9400     }
9401     if (Signed(npcPartId4) != 0) {
9402         CreateNPCPart(chrEntityId, npcPartId4, npcPartGroupIdx4, npcPartHP, 1, 0.5, false, false);
9403         SetNPCPartSEAndSFX(chrEntityId, npcPartId4, 181, 181, 139, 139, 0);
9404     }
9405     if (Signed(npcPartId5) != 0) {
9406         CreateNPCPart(chrEntityId, npcPartId5, npcPartGroupIdx5, npcPartHP, 1, 0.5, false, false);
9407         SetNPCPartSEAndSFX(chrEntityId, npcPartId5, 181, 181, 139, 139, 0);
9408     }
9409     if (Signed(npcPartId5) != 0) {
9410         UnknownNPCPart200493(chrEntityId, npcPartId, npcPartId2, npcPartId3, npcPartId4, npcPartId5);
9411     } else if (Signed(npcPartId4) != 0) {
9412         UnknownNPCPart200493(chrEntityId, npcPartId, npcPartId2, npcPartId3, npcPartId4, -1);
9413     } else if (Signed(npcPartId3) != 0) {
9414         UnknownNPCPart200493(chrEntityId, npcPartId, npcPartId2, npcPartId3, -1, -1);
9415     } else if (Signed(npcPartId2) != 0) {
9416         UnknownNPCPart200493(chrEntityId, npcPartId, npcPartId2, -1, -1, -1);
9417     } else {
9418         UnknownNPCPart200493(chrEntityId, npcPartId, -1, -1, -1, -1);
9419     }
9420 L0:
9421     hpSp |= NPCPartHP(chrEntityId, npcPartId) <= 0;
9422     if (Signed(npcPartId2) != 0) {
9423         hpSp |= NPCPartHP(chrEntityId, npcPartId2) <= 0;
9424     }
9425     if (Signed(npcPartId3) != 0) {
9426         hpSp |= NPCPartHP(chrEntityId, npcPartId3) <= 0;
9427     }
9428     if (Signed(npcPartId4) != 0) {
9429         hpSp |= NPCPartHP(chrEntityId, npcPartId4) <= 0;
9430     }
9431     if (Signed(npcPartId5) != 0) {
9432         hpSp |= NPCPartHP(chrEntityId, npcPartId5) <= 0;
9433     }
9434     hpSp |= !CharacterHasSpEffect(chrEntityId, spEffectId) || CharacterHPValue(chrEntityId) <= 0;
9435     WaitFor(hpSp);
9436     EndIf(CharacterHPValue(chrEntityId) <= 0);
9437     SetSpEffect(chrEntityId, spEffectId2);
9438     SetSpEffect(chrEntityId, spEffectId3);
9439     ChangeCharacterDispmask(chrEntityId, bitNumber, OFF);
9440     SetNPCPartHP(chrEntityId, npcPartId, 0, false);
9441     if (Signed(npcPartId2) != 0) {
9442         SetNPCPartHP(chrEntityId, npcPartId2, 0, false);
9443     }
9444     if (Signed(npcPartId3) != 0) {
9445         SetNPCPartHP(chrEntityId, npcPartId3, 0, false);
9446     }
9447     if (Signed(npcPartId4) != 0) {
9448         SetNPCPartHP(chrEntityId, npcPartId4, 0, false);
9449     }
9450     if (Signed(npcPartId5) != 0) {
9451         SetNPCPartHP(chrEntityId, npcPartId5, 0, false);
9452     }
9453     WaitFor(ElapsedSeconds(3));
9454     RestartEvent();
9455 });
9456
7792 $Event(90075700, Default, function(chrEntityId, chrEntityId2) { 9457 $Event(90075700, Default, function(chrEntityId, chrEntityId2) {
9458     DisableNetworkSync();
7793     EnableCharacterDefaultBackread(chrEntityId); 9459     EnableCharacterDefaultBackread(chrEntityId);
7794     SetNetworkUpdateRate(chrEntityId, true, CharacterUpdateFrequency.AlwaysUpdate); 9460     SetNetworkUpdateRate(chrEntityId, true, CharacterUpdateFrequency.AlwaysUpdate);
7795     DisableCharacterHPBarDisplay(chrEntityId); 9461     DisableCharacterHPBarDisplay(chrEntityId);
7796     DisableCharacterHPBarDisplay(chrEntityId2); 9462     DisableCharacterHPBarDisplay(chrEntityId2);
7797     WaitFor(PlayerInMap(18, 0, 0, 0)); 9463     WaitFor(PlayerInMap(18, 0, 0, 0));
7798     WaitFor(ElapsedFrames(1)); 9464     WaitFor(ElapsedFrames(1));
7799     ChangeCamera(-1); 9465     ChangeCamera(-1);
7800 }); 9466 });
7801 9467
7802 $Event(90075701, Restart, function(chrEntityId, eventFlagId) { 9468 $Event(90075701, Restart, function(chrEntityId, eventFlagId) {
7811             || CharacterHasStateInfo(chrEntityId, 2) 9477             || CharacterHasStateInfo(chrEntityId, 2)
7812             || CharacterHasStateInfo(chrEntityId, 5) 9478             || CharacterHasStateInfo(chrEntityId, 5)
7813             || CharacterHasStateInfo(chrEntityId, 6) 9479             || CharacterHasStateInfo(chrEntityId, 6)
7814             || CharacterHasStateInfo(chrEntityId, 260) 9480             || CharacterHasStateInfo(chrEntityId, 260)
7815             || ElapsedSeconds(60)); 9481             || ElapsedSeconds(60));
7816     SetNetworkconnectedEventFlagID(7511, ON); 9482     SetNetworkconnectedEventFlagID(7511, ON);
7817 }); 9483 });
7818 9484
7819 $Event(90075702, Restart, function(chrEntityId, eventFlagId, eventFlagId2) { 9485 $Event(90075702, Restart, function(chrEntityId, eventFlagId, eventFlagId2) {
7820     if (EventFlag(eventFlagId)) { 9486     if (EventFlag(eventFlagId)) {
9487         DisableCharacter(chrEntityId);
7821         ForceCharacterDeath(chrEntityId, false); 9488         ForceCharacterDeath(chrEntityId, false);
7822         EndEvent(); 9489         EndEvent();
7823     } 9490     }
7824     if (EventFlag(eventFlagId2)) { 9491     if (EventFlag(eventFlagId2)) {
9492         DisableCharacter(chrEntityId);
7825         ForceCharacterDeath(chrEntityId, false); 9493         ForceCharacterDeath(chrEntityId, false);
7826         EndEvent(); 9494         EndEvent();
7827     } 9495     }
7828     if (EventFlag(7511)) { 9496     if (EventFlag(7511)) {
7829         EnableCharacter(chrEntityId); 9497         EnableCharacter(chrEntityId);
7830         EnableCharacterAI(chrEntityId); 9498         EnableCharacterAI(chrEntityId);
7831         SetBossBGM(758000, BossBGMState.Start); 9499         SetBossBGM(758000, BossBGMState.Start);
7832         DisplayBossHealthBar(Enabled, chrEntityId, 0, 907580000); 9500         DisplayBossHealthBar(Enabled, chrEntityId, 0, 907580000);
7833         LinkToBossHealthBar(Disabled, 907580000, 0); 9501         LinkToBossHealthBar(Disabled, 907580000, 0);
7834         LinkToBossHealthBar(Enabled, 907580000, chrEntityId); 9502         LinkToBossHealthBar(Enabled, 907580000, chrEntityId);
7895     DisplayBossHealthBar(Enabled, chrEntityId2, 0, 907580001); 9563     DisplayBossHealthBar(Enabled, chrEntityId2, 0, 907580001);
7896     LinkToBossHealthBar(Disabled, 907580001, 0); 9564     LinkToBossHealthBar(Disabled, 907580001, 0);
7897     LinkToBossHealthBar(Enabled, 907580001, chrEntityId2); 9565     LinkToBossHealthBar(Enabled, 907580001, chrEntityId2);
7898 }); 9566 });
7899 9567
7900 $Event(90075704, Restart, function(chrEntityId, eventFlagId) { 9568 $Event(90075704, Restart, function(chrEntityId, eventFlagId) {
7901     EndIf(EventFlag(eventFlagId)); 9569     EndIf(EventFlag(eventFlagId));
7902     WaitFor(CharacterDead(chrEntityId)); 9570     WaitFor(CharacterDead(chrEntityId));
7903     WaitFor(ElapsedSeconds(3)); 9571     WaitFor(ElapsedSeconds(3));
7904     DisplayBossHealthBar(Disabled, chrEntityId, 0, 907580001); 9572     DisplayBossHealthBar(Disabled, chrEntityId, 0, 907580001);
9573     WaitFor(IsPlayMode(1));
7905     DisplayNetworkconnectedPermanentBuffPopup(201); 9574     DisplayNetworkconnectedPermanentBuffPopup(201);
7906     SetSpEffect(20000, 9730); 9575     SetSpEffect(20000, 9730);
7907 }); 9576 });
7908 9577
7909 $Event(90075705, Restart, function(chrEntityId, chrEntityId2, eventFlagId, spEffectId, weather, entityId, entityId2, eventFlagId2) { 9578 $Event(90075705, Restart, function(chrEntityId, chrEntityId2, eventFlagId, spEffectId, weather, entityId, entityId2, eventFlagId2) {
7910     EndIf(EventFlag(eventFlagId2)); 9579     EndIf(EventFlag(eventFlagId2));
7911     WaitFor(ElapsedFrames(1)); 9580     WaitFor(ElapsedFrames(1));
7912     if (EventFlag(eventFlagId)) { 9581     if (EventFlag(eventFlagId)) {
7913         ChangeWeather(weather, -1, true); 9582         ChangeWeather(weather, -1, true);
7914         ForceAnimationPlayback(18001510, 101, true, false, false); 9583         ForceAnimationPlayback(18001510, 101, true, false, false);
11368     WaitFor(ActionButtonInArea(9291, assetEntityId)); 13037     WaitFor(ActionButtonInArea(9291, assetEntityId));
11369     EnableCharacterDefaultBackread(12000950); 13038     EnableCharacterDefaultBackread(12000950);
11370     EnableCharacterDefaultBackread(12000200); 13039     EnableCharacterDefaultBackread(12000200);
11371     EnableCharacterDefaultBackread(12000201); 13040     EnableCharacterDefaultBackread(12000201);
11372     ForceAnimationPlayback(10000, 61000, false, false, false); 13041     ForceAnimationPlayback(10000, 61000, false, false, false);
11373     WaitFixedTimeSeconds(4); 13042     WaitFixedTimeSeconds(4);
11374     FadeToBlack(1, 3, false, -1); 13043     FadeToBlack(1, 3, false, -1);
11375     WaitFixedTimeSeconds(3.2); 13044     WaitFixedTimeSeconds(3.2);
11376     WarpCharacterAndSetFloor(10000, TargetEntityType.Area, 12002800, 0, 0, true); 13045     WarpCharacterAndSetFloor(10000, TargetEntityType.Area, 12002800, 0, 0, true);
11377     ChangeWeather(Weather.Type00, -1, true); 13046     ChangeWeather(Weather.Type00, -1, true);
13047     SetNetworkconnectedEventFlagID(7521, ON);
11378     SetEventFlagID(9052, ON); 13048     SetEventFlagID(9052, ON);
11379     RestartEvent(); 13049     RestartEvent();
11380 }); 13050 });
11381 13051
11382 $Event(90005915, Restart, function(assetEntityId, eventFlagId, objactParamId, distance) { 13052 $Event(90005915, Restart, function(assetEntityId, eventFlagId, objactParamId, distance) {
11383     if (!EventFlag(eventFlagId)) { 13053     if (!EventFlag(eventFlagId)) {
11384         WaitFor(EventFlag(eventFlagId)); 13054         WaitFor(EventFlag(eventFlagId));
11385         RecordUserDispLog(11230, assetEntityId, LogObjectType.None, -1); 13055         RecordUserDispLog(11230, assetEntityId, LogObjectType.None, -1);
11386     } 13056     }
11387 L0: 13057 L0:
diff -rNU 10 nr1.01.7/m10_00_00_00.emevd.dcx.js nr/m10_00_00_00.emevd.dcx.js
nr1.01.7/m10_00_00_00.emevd.dcx.jsnr/m10_00_00_00.emevd.dcx.js
2 // @docs nr-common.emedf.json 2 // @docs nr-common.emedf.json
3 // @compress DCX_KRAK 3 // @compress DCX_KRAK
4 // @game Sekiro 4 // @game Sekiro
5 // @string "W:\\CL\\data\\Param\\event\\common_func.emevd\u0000W:\\CL\\data\\Param\\event\\common_macro.emevd\u0000\u0000\u0000\u0000\u0000\u0000" 5 // @string "W:\\CL\\data\\Param\\event\\common_func.emevd\u0000W:\\CL\\data\\Param\\event\\common_macro.emevd\u0000\u0000\u0000\u0000\u0000\u0000"
6 // @linked [0,82] 6 // @linked [0,82]
7 // @version 3.6 7 // @version 3.6
8 // ==/EMEVD== 8 // ==/EMEVD==
9 9
10 $Event(0, Default, function() { 10 $Event(0, Default, function() {
11     $InitializeEvent(0, 100000900); 11     $InitializeEvent(0, 100000900);
12     $InitializeEvent(0, 100000910);
13     $InitializeEvent(0, 100000911);
12     $InitializeEvent(0, 1000002670); 14     $InitializeEvent(0, 1000002670);
13     $InitializeEvent(0, 1000002680); 15     $InitializeEvent(0, 1000002680);
14     $InitializeEvent(0, 1000002240); 16     $InitializeEvent(0, 1000002240);
15     $InitializeEvent(0, 1000002700); 17     $InitializeEvent(0, 1000002700);
16     $InitializeEvent(0, 100002560); 18     $InitializeEvent(0, 100002560);
17     $InitializeEvent(0, 100002561); 19     $InitializeEvent(0, 100002561);
18     $InitializeEvent(0, 1000002705); 20     $InitializeEvent(0, 1000002705);
19     $InitializeEvent(0, 1000002706); 21     $InitializeEvent(0, 1000002706);
20     $InitializeEvent(0, 1000002708); 22     $InitializeEvent(0, 1000002708);
21     $InitializeEvent(0, 1000002707); 23     $InitializeEvent(0, 1000002707);
26     $InitializeEvent(0, 100003001); 28     $InitializeEvent(0, 100003001);
27     $InitializeEvent(0, 100003003); 29     $InitializeEvent(0, 100003003);
28     $InitializeEvent(0, 100003004); 30     $InitializeEvent(0, 100003004);
29     $InitializeEvent(0, 1000002200); 31     $InitializeEvent(0, 1000002200);
30     $InitializeEvent(0, 1000002201); 32     $InitializeEvent(0, 1000002201);
31     $InitializeEvent(0, 1000002220, 10002220); 33     $InitializeEvent(0, 1000002220, 10002220);
32     $InitializeEvent(0, 1000002221, 10002221); 34     $InitializeEvent(0, 1000002221, 10002221);
33     $InitializeEvent(0, 1000002222); 35     $InitializeEvent(0, 1000002222);
34     $InitializeEvent(0, 1000002223, 10002221); 36     $InitializeEvent(0, 1000002223, 10002221);
35     $InitializeEvent(0, 1000002224, 10002221); 37     $InitializeEvent(0, 1000002224, 10002221);
38     $InitializeEvent(0, 1000002225);
36     $InitializeEvent(0, 1000002230, 10000410, 10002950); 39     $InitializeEvent(0, 1000002230, 10000410, 10002950);
37     $InitializeEvent(1, 1000002230, 10000412, 10002951); 40     $InitializeEvent(1, 1000002230, 10000412, 10002951);
38     $InitializeEvent(2, 1000002230, 10000414, 10002952); 41     $InitializeEvent(2, 1000002230, 10000414, 10002952);
39     $InitializeEvent(3, 1000002230, 10000416, 10002953); 42     $InitializeEvent(3, 1000002230, 10000416, 10002953);
40     $InitializeEvent(0, 1000002260); 43     $InitializeEvent(0, 1000002260);
41     $InitializeEvent(0, 1000002300); 44     $InitializeEvent(0, 1000002300);
42     $InitializeEvent(0, 1000002301); 45     $InitializeEvent(0, 1000002301);
43     $InitializeEvent(0, 100000901); 46     $InitializeEvent(0, 100000901);
44     $InitializeEvent(0, 100002990); 47     $InitializeEvent(0, 100002990);
45     $InitializeEvent(0, 100002991); 48     $InitializeEvent(0, 100002991);
46     $InitializeEvent(0, 100002992); 49     $InitializeEvent(0, 100002992);
47     $InitializeEvent(0, 100003400, 1009140, Hero.Wylder); 50     $InitializeEvent(0, 100003432);
48     $InitializeEvent(1, 100003400, 1009260, Hero.Guardian); 51     $InitializeEvent(0, 100003433);
49     $InitializeEvent(2, 100003400, 1009360, Hero.Ironeye); 52     $InitializeEvent(2, 100003400, 1009360, Hero.Ironeye);
50     $InitializeEvent(3, 100003400, 1009460, Hero.Duchess); 53     $InitializeEvent(0, 100003430);
51     $InitializeEvent(4, 100003400, 1009540, Hero.Raider); 54     $InitializeEvent(4, 100003400, 1009540, Hero.Raider);
52     $InitializeEvent(5, 100003400, 1009660, Hero.Revenant); 55     $InitializeEvent(0, 100003431);
53     $InitializeEvent(6, 100003400, 1009760, Hero.Recluse); 56     $InitializeEvent(6, 100003400, 1009760, Hero.Recluse);
54     $InitializeEvent(7, 100003400, 1009860, Hero.Executor); 57     $InitializeEvent(7, 100003400, 1009860, Hero.Executor);
55     $InitializeEvent(0, 100002993); 58     $InitializeEvent(0, 100002993);
56     $InitializeEvent(0, 100002994); 59     $InitializeEvent(0, 100002994);
57     $InitializeEvent(0, 1000002270); 60     $InitializeEvent(0, 1000002270);
58     $InitializeEvent(0, 100003100, 1159110, ScenarioSection.Raider, 10001550, 10001555); 61     $InitializeEvent(0, 100003100, 1159110, ScenarioSection.Raider, 10001550, 10001555);
59     $InitializeEvent(1, 100003100, 1159111, ScenarioSection.Raider, 10001551, 10001556); 62     $InitializeEvent(1, 100003100, 1159111, ScenarioSection.Raider, 10001551, 10001556);
60     $InitializeEvent(2, 100003100, 1159112, ScenarioSection.Raider, 10001552, 10001557); 63     $InitializeEvent(2, 100003100, 1159112, ScenarioSection.Raider, 10001552, 10001557);
61     $InitializeEvent(3, 100003100, 1119110, ScenarioSection.Wylder, 10001150, 10001155); 64     $InitializeEvent(3, 100003100, 1119110, ScenarioSection.Wylder, 10001150, 10001155);
62     $InitializeEvent(4, 100003100, 1119111, ScenarioSection.Wylder, 10001151, 10001156); 65     $InitializeEvent(4, 100003100, 1119111, ScenarioSection.Wylder, 10001151, 10001156);
293     $InitializeEvent(0, 10009394); 296     $InitializeEvent(0, 10009394);
294     $InitializeEvent(0, 10009395); 297     $InitializeEvent(0, 10009395);
295     $InitializeEvent(0, 10009396); 298     $InitializeEvent(0, 10009396);
296     $InitializeEvent(0, 10009397); 299     $InitializeEvent(0, 10009397);
297     $InitializeEvent(0, 10009398); 300     $InitializeEvent(0, 10009398);
298     $InitializeEvent(0, 10009401); 301     $InitializeEvent(0, 10009401);
299     $InitializeEvent(0, 10009402); 302     $InitializeEvent(0, 10009402);
300     $InitializeEvent(0, 10009403); 303     $InitializeEvent(0, 10009403);
301     $InitializeEvent(0, 10009404); 304     $InitializeEvent(0, 10009404);
302     $InitializeEvent(0, 10009405); 305     $InitializeEvent(0, 10009405);
306     $InitializeEvent(0, 100004200, ScenarioSection.Wylder, 101);
307     $InitializeEvent(1, 100004200, ScenarioSection.Wylder, 102);
308     $InitializeEvent(2, 100004200, ScenarioSection.Duchess, 401);
309     $InitializeEvent(3, 100004200, ScenarioSection.Duchess, 403);
310     $InitializeEvent(4, 100004200, ScenarioSection.Executor, 803);
311     $InitializeEvent(5, 100004200, ScenarioSection.Executor, 802);
312     $InitializeEvent(6, 100004200, ScenarioSection.Recluse, 701);
313     $InitializeEvent(7, 100004200, ScenarioSection.Ironeye, 302);
314     $InitializeEvent(8, 100004200, ScenarioSection.Ironeye, 303);
315     $InitializeEvent(9, 100004200, ScenarioSection.Guardian, 202);
316     $InitializeEvent(10, 100004200, ScenarioSection.Guardian, 203);
317     $InitializeEvent(11, 100004200, ScenarioSection.Revenant, 601);
303     $InitializeEvent(0, 1000001510, 1109000, 1); 318     $InitializeEvent(0, 1000001510, 1109000, 1);
304     $InitializeEvent(1, 1000001510, 1109031, 2); 319     $InitializeEvent(1, 1000001510, 1109031, 2);
305     $InitializeEvent(2, 1000001510, 1109032, 3); 320     $InitializeEvent(2, 1000001510, 1109032, 3);
306     $InitializeEvent(3, 1000001510, 6031, 4); 321     $InitializeEvent(3, 1000001510, 6031, 4);
307     $InitializeEvent(0, 1000001520); 322     $InitializeEvent(0, 1000001520);
308 }); 323 });
309 324
310 $Event(50, Default, function() { 325 $Event(50, Default, function() {
311     DisableAreaWelcomeMessage(); 326     DisableAreaWelcomeMessage();
312     $InitializeEvent(0, 1000002250, 10002220); 327     $InitializeEvent(0, 1000002250, 10002220);
347 L0: 362 L0:
348     EndEvent(); 363     EndEvent();
349 }); 364 });
350 365
351 $Event(100000901, Restart, function() { 366 $Event(100000901, Restart, function() {
352     EndIf(!CurrentScenarioSection(ScenarioSection.None)); 367     EndIf(!CurrentScenarioSection(ScenarioSection.None));
353     UnknownSound201014(0); 368     UnknownSound201014(0);
354     EndEvent(); 369     EndEvent();
355 }); 370 });
356 371
372 $Event(100000910, Restart, function() {
373     flag = EventFlag(160) && EventFlag(2040);
374     if (flag) {
375         WaitFor(flag);
376         if ((EventFlag(3003) && !EventFlag(1109031))
377             || (EventFlag(3005) && !EventFlag(1109032))
378             || EventFlag(10002405)) {
379             WaitFor(EventFlag(10002014));
380         }
381         WaitFixedTimeFrames(5);
382         SetEventFlagID(130, ON);
383         ShowTutorialPopup(1920, true, true);
384         UnknownText200722(3500);
385         EndEvent();
386     }
387 L0:
388     SetEventFlagID(130, OFF);
389     EndEvent();
390 });
391
392 $Event(100000911, Restart, function() {
393     WaitFor(EventFlag(131));
394     if ((EventFlag(3003) && !EventFlag(1109031))
395         || (EventFlag(3005) && !EventFlag(1109032))
396         || EventFlag(10002405)) {
397         WaitFor(EventFlag(10002014));
398     }
399     WaitFixedTimeFrames(5);
400     ShowTutorialPopup(1950, true, true);
401 });
402
357 $Event(1000001000, Restart, function() { 403 $Event(1000001000, Restart, function() {
358     if (EventFlag(2001)) { 404     if (EventFlag(2001)) {
359         ShowTutorialPopup(1901, true, true); 405         ShowTutorialPopup(1901, true, true);
360         WaitFor(EventFlag(110)); 406         WaitFor(EventFlag(110));
361         ShowTutorialPopup(1902, true, true); 407         ShowTutorialPopup(1902, true, true);
362         EndEvent(); 408         EndEvent();
363     } 409     }
364 L1: 410 L1:
365     DisableAsset(10005900); 411     DisableAsset(10005900);
366     WaitFixedTimeSeconds(1); 412     WaitFixedTimeSeconds(1);
536 $Event(1000002224, Restart, function(areaEntityId) { 582 $Event(1000002224, Restart, function(areaEntityId) {
537     WaitFor( 583     WaitFor(
538         InArea(10000, areaEntityId) 584         InArea(10000, areaEntityId)
539             && !CharacterHasSpEffect(10000, 9621) 585             && !CharacterHasSpEffect(10000, 9621)
540             && (IsHero(Hero.Recluse) || IsHero(Hero.Revenant))); 586             && (IsHero(Hero.Recluse) || IsHero(Hero.Revenant)));
541     WaitFixedTimeFrames(1); 587     WaitFixedTimeFrames(1);
542     ShowTutorialPopup(2571, true, true); 588     ShowTutorialPopup(2571, true, true);
543     EndEvent(); 589     EndEvent();
544 }); 590 });
545 591
592 $Event(1000002225, Restart, function() {
593     WaitFor(IsRequestGameMode(2));
594     DisableCharacterAI(10000220);
595     WaitFor(IsRequestGameMode(0));
596     EnableCharacterAI(10000220);
597     RestartEvent();
598 });
599
546 $Event(1000002230, Restart, function(chrEntityId, entityId) { 600 $Event(1000002230, Restart, function(chrEntityId, entityId) {
547     IssueShortWarpRequest(chrEntityId, TargetEntityType.Area, entityId, -1); 601     IssueShortWarpRequest(chrEntityId, TargetEntityType.Area, entityId, -1);
548     ForceAnimationPlayback(chrEntityId, 30000, false, false, false); 602     ForceAnimationPlayback(chrEntityId, 30000, false, false, false);
549     WaitFor(CharacterHPValue(chrEntityId) <= 1); 603     WaitFor(CharacterHPValue(chrEntityId) <= 1);
550     ForceAnimationPlayback(chrEntityId, 20000, false, false, false); 604     ForceAnimationPlayback(chrEntityId, 20000, false, false, false);
551     WaitFor(CharacterHasSpEffect(chrEntityId, 11473)); 605     WaitFor(CharacterHasSpEffect(chrEntityId, 11473));
552     ForceAnimationPlayback(chrEntityId, 30000, false, false, false); 606     ForceAnimationPlayback(chrEntityId, 30000, false, false, false);
553     WaitFor(ElapsedFrames(3)); 607     WaitFor(ElapsedFrames(3));
554     RestartEvent(); 608     RestartEvent();
555 }); 609 });
590     SetSpEffect(10000, 9752); 644     SetSpEffect(10000, 9752);
591     WaitFor(ElapsedFrames(1)); 645     WaitFor(ElapsedFrames(1));
592     ClearSpEffect(10001821, 9752); 646     ClearSpEffect(10001821, 9752);
593     RestartEvent(); 647     RestartEvent();
594 }); 648 });
595 649
596 $Event(1000002300, Restart, function() { 650 $Event(1000002300, Restart, function() {
597     DisableAsset(10006310); 651     DisableAsset(10006310);
598     DisableCharacter(10000660); 652     DisableCharacter(10000660);
599     if (!EventFlag(6050)) { 653     if (!EventFlag(6050)) {
600         WaitFor(EventFlag(111)); 654         flag = EventFlag(111);
601         if (CurrentScenarioSection(ScenarioSection.None) && TalkNPCEnabled(10000780)) { 655         flag2 = !EventFlag(111) && EventFlag(6050);
602             SetEventFlagID(10002405, ON); 656         WaitFor(flag || flag2);
603             DisableCharacterFadeOnEnable(10000780); 657         if (!flag2.Passed) {
604             FadeToBlack(0, 0, true, -1); 658             if (CurrentScenarioSection(ScenarioSection.None) && TalkNPCEnabled(10000780)) {
605             WaitFixedTimeFrames(3); 659                 SetEventFlagID(10002405, ON);
606             WaitFixedTimeSeconds(0.7); 660                 DisableCharacterFadeOnEnable(10000780);
607             SetEventFlagID(10002406, ON); 661                 FadeToBlack(0, 0, true, -1);
608             WaitFixedTimeSeconds(0.3); 662                 WaitFixedTimeFrames(3);
609             FadeToBlack(0, 0, false, -1); 663                 WaitFixedTimeSeconds(0.7);
610             WaitFor(!EventFlag(10002406)); 664                 SetEventFlagID(10002406, ON);
611             WaitFixedTimeSeconds(0.5); 665                 WaitFixedTimeSeconds(0.3);
666                 FadeToBlack(0, 0, false, -1);
667                 WaitFor(!EventFlag(10002406));
668                 WaitFixedTimeSeconds(0.5);
669             }
612         } 670         }
613 L1: 671 L1:
614         ShowTutorialPopup(1930, true, true); 672         ShowTutorialPopup(1930, true, true);
615         SetEventFlagID(10002014, ON); 673         SetEventFlagID(10002014, ON);
616         WaitFixedTimeFrames(2); 674         WaitFixedTimeFrames(2);
617         ShowTutorialPopup(3430, true, true); 675         ShowTutorialPopup(3430, true, true);
618     } 676     }
619 L0: 677 L0:
620     SetEventFlagID(6050, ON); 678     SetEventFlagID(6050, ON);
621     EnableAsset(10006310); 679     EnableAsset(10006310);
1005         WaitFixedTimeFrames(60); 1063         WaitFixedTimeFrames(60);
1006     } 1064     }
1007     EndIf(!EventFlag(eventFlagId)); 1065     EndIf(!EventFlag(eventFlagId));
1008     RestartIf(!CurrentScenarioSection(ScenarioSection.None)); 1066     RestartIf(!CurrentScenarioSection(ScenarioSection.None));
1009     RecordUserDispLog(12200, 10000, LogObjectType.None, -1); 1067     RecordUserDispLog(12200, 10000, LogObjectType.None, -1);
1010     ShowTutorialPopup(2000, true, true); 1068     ShowTutorialPopup(2000, true, true);
1011     SetEventFlagID(eventFlagId, OFF); 1069     SetEventFlagID(eventFlagId, OFF);
1012     RestartEvent(); 1070     RestartEvent();
1013 }); 1071 });
1014 1072
1073 $Event(100003430, Default, function() {
1074     if ((EventFlag(3003) && !EventFlag(1109031)) || (EventFlag(3005) && !EventFlag(1109032))) {
1075         WaitFor(EventFlag(10002018));
1076         WaitFixedTimeFrames(3);
1077     }
1078     if (!CurrentScenarioSection(ScenarioSection.None)) {
1079         WaitFor(EventFlag(1009460));
1080         WaitFor(CurrentScenarioSection(ScenarioSection.None));
1081         WaitFor(EventFlag(10009001) || EventFlag(10009002));
1082     }
1083     WaitFor(EventFlag(1009460) || !CurrentScenarioSection(ScenarioSection.None));
1084     RestartIf(!CurrentScenarioSection(ScenarioSection.None));
1085     flag = EventFlag(1009460) && EventFlag(1009440) && !EventFlag(1009441);
1086     flag2 = EventFlag(1009460) && EventFlag(1009442) && !EventFlag(1009443);
1087     chr = IsHero(Hero.Duchess);
1088     flagChr = flag || flag2 || chr;
1089     if (!chr) {
1090         WaitFor(flagChr);
1091         WaitFixedTimeSeconds(1);
1092     }
1093     if (!AnyBatchEventFlags(10002011, 10002012)) {
1094         WaitFixedTimeFrames(60);
1095     }
1096     EndIf(!EventFlag(1009460));
1097     RestartIf(!CurrentScenarioSection(ScenarioSection.None));
1098     RecordUserDispLog(12200, 10000, LogObjectType.None, -1);
1099     ShowTutorialPopup(2000, true, true);
1100     SetEventFlagID(1009460, OFF);
1101     RestartEvent();
1102 });
1103
1104 $Event(100003431, Default, function() {
1105     if ((EventFlag(3003) && !EventFlag(1109031)) || (EventFlag(3005) && !EventFlag(1109032))) {
1106         WaitFor(EventFlag(10002018));
1107         WaitFixedTimeFrames(3);
1108     }
1109     if (!CurrentScenarioSection(ScenarioSection.None)) {
1110         WaitFor(EventFlag(1009660));
1111         WaitFor(CurrentScenarioSection(ScenarioSection.None));
1112         WaitFor(EventFlag(10009001) || EventFlag(10009002));
1113     }
1114     WaitFor(EventFlag(1009660) || !CurrentScenarioSection(ScenarioSection.None));
1115     RestartIf(!CurrentScenarioSection(ScenarioSection.None));
1116     flag = EventFlag(1009660) && EventFlag(1009640) && !EventFlag(1009641);
1117     chr = IsHero(Hero.Revenant);
1118     flagChr = flag || chr;
1119     if (!chr) {
1120         WaitFor(flagChr);
1121         WaitFixedTimeSeconds(1);
1122     }
1123     if (!AnyBatchEventFlags(10002011, 10002012)) {
1124         WaitFixedTimeFrames(60);
1125     }
1126     EndIf(!EventFlag(1009660));
1127     RestartIf(!CurrentScenarioSection(ScenarioSection.None));
1128     RecordUserDispLog(12200, 10000, LogObjectType.None, -1);
1129     ShowTutorialPopup(2000, true, true);
1130     SetEventFlagID(1009660, OFF);
1131     RestartEvent();
1132 });
1133
1134 $Event(100003432, Default, function() {
1135     if ((EventFlag(3003) && !EventFlag(1109031)) || (EventFlag(3005) && !EventFlag(1109032))) {
1136         WaitFor(EventFlag(10002018));
1137         WaitFixedTimeFrames(3);
1138     }
1139     if (!CurrentScenarioSection(ScenarioSection.None)) {
1140         WaitFor(EventFlag(1009140));
1141         WaitFor(CurrentScenarioSection(ScenarioSection.None));
1142         WaitFor(EventFlag(10009001) || EventFlag(10009002));
1143     }
1144     WaitFor(EventFlag(1009140) || !CurrentScenarioSection(ScenarioSection.None));
1145     RestartIf(!CurrentScenarioSection(ScenarioSection.None));
1146     flag = EventFlag(1009140) && EventFlag(1009131) && !EventFlag(1009132);
1147     chr = IsHero(Hero.Wylder);
1148     flagChr = flag || chr;
1149     if (!chr) {
1150         WaitFor(flagChr);
1151         WaitFixedTimeSeconds(1);
1152     }
1153     if (!AnyBatchEventFlags(10002011, 10002012)) {
1154         WaitFixedTimeFrames(60);
1155     }
1156     EndIf(!EventFlag(1009140));
1157     RestartIf(!CurrentScenarioSection(ScenarioSection.None));
1158     RecordUserDispLog(12200, 10000, LogObjectType.None, -1);
1159     ShowTutorialPopup(2000, true, true);
1160     SetEventFlagID(1009140, OFF);
1161     RestartEvent();
1162 });
1163
1164 $Event(100003433, Default, function() {
1165     if ((EventFlag(3003) && !EventFlag(1109031)) || (EventFlag(3005) && !EventFlag(1109032))) {
1166         WaitFor(EventFlag(10002018));
1167         WaitFixedTimeFrames(3);
1168     }
1169     if (!CurrentScenarioSection(ScenarioSection.None)) {
1170         WaitFor(EventFlag(1009260));
1171         WaitFor(CurrentScenarioSection(ScenarioSection.None));
1172         WaitFor(EventFlag(10009001) || EventFlag(10009002));
1173     }
1174     WaitFor(EventFlag(1009260) || !CurrentScenarioSection(ScenarioSection.None));
1175     RestartIf(!CurrentScenarioSection(ScenarioSection.None));
1176     flag = EventFlag(1009260) && EventFlag(1009247) && !EventFlag(1009248);
1177     chr = IsHero(Hero.Guardian);
1178     flagChr = flag || chr;
1179     if (!chr) {
1180         WaitFor(flagChr);
1181         WaitFixedTimeSeconds(1);
1182     }
1183     if (!AnyBatchEventFlags(10002011, 10002012)) {
1184         WaitFixedTimeFrames(60);
1185     }
1186     EndIf(!EventFlag(1009260));
1187     RestartIf(!CurrentScenarioSection(ScenarioSection.None));
1188     RecordUserDispLog(12200, 10000, LogObjectType.None, -1);
1189     ShowTutorialPopup(2000, true, true);
1190     SetEventFlagID(1009260, OFF);
1191     RestartEvent();
1192 });
1193
1015 $Event(100002993, Restart, function() { 1194 $Event(100002993, Restart, function() {
1016     WaitFor(EventFlag(10002040)); 1195     WaitFor(EventFlag(10002040));
1017     SetEventFlagID(10002040, OFF); 1196     SetEventFlagID(10002040, OFF);
1018     RecordUserDispLog(12202, 10000, LogObjectType.None, -1); 1197     RecordUserDispLog(12202, 10000, LogObjectType.None, -1);
1019     ShowTutorialPopup(2030, true, true); 1198     ShowTutorialPopup(2030, true, true);
1020     WaitFixedTimeSeconds(0.5); 1199     WaitFixedTimeSeconds(0.5);
1021     if (EventFlag(10002041)) { 1200     if (EventFlag(10002041)) {
1022         RecordUserDispLog(12203, 10000, LogObjectType.None, -1); 1201         RecordUserDispLog(12203, 10000, LogObjectType.None, -1);
1023     } 1202     }
1024     SetEventFlagID(10002041, OFF); 1203     SetEventFlagID(10002041, OFF);
1180         WaitFor(EventFlag(10002015)); 1359         WaitFor(EventFlag(10002015));
1181         SetEventFlagID(10002015, OFF); 1360         SetEventFlagID(10002015, OFF);
1182     } 1361     }
1183     AwardItemLot(itemLotId); 1362     AwardItemLot(itemLotId);
1184     SetEventFlagID(eventFlagId2, ON); 1363     SetEventFlagID(eventFlagId2, ON);
1185     SetEventFlagID(10009001, OFF); 1364     SetEventFlagID(10009001, OFF);
1186     SetEventFlagID(10009002, OFF); 1365     SetEventFlagID(10009002, OFF);
1187     EndEvent(); 1366     EndEvent();
1188 }); 1367 });
1189 1368
1369 $Event(100004200, Restart, function(section, missionId) {
1370     if (!EventFlag(10002332)) {
1371         SetEventFlagID(10002332, ON);
1372     }
1373     WaitFor(CurrentScenarioSection(section) && HasMissionState(missionId, 1));
1374     WaitFixedTimeFrames(1);
1375     SetEventFlagID(10002332, OFF);
1376     SetEventFlagID(10002232, ON);
1377     EndEvent();
1378 });
1379
1190 $Event(100003000, Default, function() { 1380 $Event(100003000, Default, function() {
1191     if (AnyBatchEventFlags(6090, 6095)) { 1381     if (AnyBatchEventFlags(6090, 6095)) {
1192         if (EventFlag(6088)) { 1382         if (EventFlag(6088)) {
1193             SetEventFlagID(6088, OFF); 1383             SetEventFlagID(6088, OFF);
1194         } 1384         }
1195         if (EventFlag(6087)) { 1385         if (EventFlag(6087)) {
1196             SetEventFlagID(6087, OFF); 1386             SetEventFlagID(6087, OFF);
1197             SetEventFlagID(6088, ON); 1387             SetEventFlagID(6088, ON);
1198         } 1388         }
1199         if (EventFlag(6086)) { 1389         if (EventFlag(6086)) {
1299     Goto(L20); 1489     Goto(L20);
1300 L20: 1490 L20:
1301     SetEventFlagID(6090, OFF); 1491     SetEventFlagID(6090, OFF);
1302     SetEventFlagID(6091, OFF); 1492     SetEventFlagID(6091, OFF);
1303     SetEventFlagID(6092, OFF); 1493     SetEventFlagID(6092, OFF);
1304     SetEventFlagID(6093, OFF); 1494     SetEventFlagID(6093, OFF);
1305     SetEventFlagID(6095, OFF); 1495     SetEventFlagID(6095, OFF);
1306     SetEventFlagID(6098, OFF); 1496     SetEventFlagID(6098, OFF);
1307     SetEventFlagID(6099, OFF); 1497     SetEventFlagID(6099, OFF);
1308     EndIf(!AnyBatchEventFlags(6070, 6073)); 1498     EndIf(!AnyBatchEventFlags(6070, 6073));
1309     GotoIf(L18, EventValue(6080, 4) >= 3); 1499     if (EventValue(6080, 4) < 3) {
1310     GotoIf(L17, EventFlag(3003) && !EventFlag(1109031)); 1500         GotoIf(L17, EventFlag(3003) && !EventFlag(1109031));
1311     GotoIf(L17, EventFlag(3005) && !EventFlag(1109032)); 1501         GotoIf(L17, EventFlag(3005) && !EventFlag(1109032));
1312     GotoIf(L17, EventFlag(1159086)); 1502         GotoIf(L17, EventFlag(1159086));
1313     GotoIf(L17, EventFlag(1169070)); 1503         GotoIf(L17, EventFlag(1169070));
1314     GotoIf(L17, EventFlag(1189058)); 1504         GotoIf(L17, EventFlag(1189058));
1315     if (EventFlag(6070)) { 1505         if (EventFlag(6070)) {
1316         RecordUserDispLog(12100, 10000, LogObjectType.None, -1); 1506             RecordUserDispLog(12100, 10000, LogObjectType.None, -1);
1317     } 1507         }
1318     if (EventFlag(6071)) { 1508         if (EventFlag(6071)) {
1319         RecordUserDispLog(12101, 10000, LogObjectType.None, -1); 1509             RecordUserDispLog(12101, 10000, LogObjectType.None, -1);
1320     } 1510         }
1321     if (EventFlag(6072)) { 1511         if (EventFlag(6072)) {
1322         RecordUserDispLog(12102, 10000, LogObjectType.None, -1); 1512             RecordUserDispLog(12102, 10000, LogObjectType.None, -1);
1323     } 1513         }
1324     GotoIf(S9, !EventFlag(6073)); 1514         GotoIf(S9, !EventFlag(6073));
1325     RecordUserDispLog(12103, 10000, LogObjectType.None, -1); 1515         RecordUserDispLog(12103, 10000, LogObjectType.None, -1);
1326 S9: 1516 S9:
1327 L17: 1517 L17:
1328     WaitFor(EventFlag(10002160)); 1518         WaitFor(EventFlag(10002160));
1329     FadeToBlack(1, 1, true, 0); 1519         EndEvent();
1330     WaitFixedTimeSeconds(1); 1520     }
1331     IssueShortWarpRequest(10000, TargetEntityType.Area, 10002212, -1);
1332     SetCameraAngle(11.1, -151.32);
1333     WaitFixedTimeSeconds(1);
1334     FadeToBlack(0, 1, false, -1);
1335     SetEventFlagID(10002160, OFF);
1336 L18: 1521 L18:
1337     flag = EventFlag(3005) && !EventFlag(1109032); 1522     flag = EventFlag(3005) && !EventFlag(1109032);
1338     if (EventFlag(6070)) { 1523     if (EventFlag(6070)) {
1339         SetEventFlagID(6070, OFF); 1524         SetEventFlagID(6070, OFF);
1340         if (flag) { 1525         if (flag) {
1341             SetEventFlagID(10002161, ON); 1526             SetEventFlagID(10002161, ON);
1342         } else { 1527         } else {
1343             RecordUserDispLog(12110, 10000, LogObjectType.None, -1); 1528             RecordUserDispLog(12110, 10000, LogObjectType.None, -1);
1344         } 1529         }
1345     } 1530     }
1366         } else { 1551         } else {
1367             RecordUserDispLog(12113, 10000, LogObjectType.None, -1); 1552             RecordUserDispLog(12113, 10000, LogObjectType.None, -1);
1368         } 1553         }
1369     } 1554     }
1370     ClearEventValue(6080, 4); 1555     ClearEventValue(6080, 4);
1371     SetEventFlagID(6085, ON); 1556     SetEventFlagID(6085, ON);
1372     EndEvent(); 1557     EndEvent();
1373 }); 1558 });
1374 1559
1375 $Event(100003001, Restart, function() { 1560 $Event(100003001, Restart, function() {
1376     WaitFor(EventFlag(10002170)); 1561     WaitFor(EventFlag(10002170) || EventFlag(10002160) || EventFlag(10002172));
1377     if (EventFlag(6070)) { 1562     if (!EventFlag(10002160)) {
1378         RecordUserDispLog(12100, 10000, LogObjectType.None, -1); 1563         if (!EventFlag(10002172)) {
1379     } 1564             if (EventFlag(6070)) {
1380     if (EventFlag(6071)) { 1565                 RecordUserDispLog(12100, 10000, LogObjectType.None, -1);
1381         RecordUserDispLog(12101, 10000, LogObjectType.None, -1); 1566             }
1382     } 1567             if (EventFlag(6071)) {
1383     if (EventFlag(6072)) { 1568                 RecordUserDispLog(12101, 10000, LogObjectType.None, -1);
1384         RecordUserDispLog(12102, 10000, LogObjectType.None, -1); 1569             }
1385     } 1570             if (EventFlag(6072)) {
1386     if (EventFlag(6073)) { 1571                 RecordUserDispLog(12102, 10000, LogObjectType.None, -1);
1387         RecordUserDispLog(12103, 10000, LogObjectType.None, -1); 1572             }
1573             if (EventFlag(6073)) {
1574                 RecordUserDispLog(12103, 10000, LogObjectType.None, -1);
1575             }
1576             SetEventFlagID(10002170, OFF);
1577             SetEventFlagID(10002171, ON);
1578             WaitFor(EventFlag(10002170) || EventFlag(10002172) || EventFlag(10002160));
1579             RestartIf(EventFlag(10002170));
1580         }
1388     } 1581     }
1389     SetEventFlagID(10002170, OFF); 1582 L10:
1390     SetEventFlagID(10002171, ON);
1391     WaitFor(EventFlag(10002170) || EventFlag(10002172));
1392     RestartIf(EventFlag(10002170));
1393     FadeToBlack(1, 1, true, 0); 1583     FadeToBlack(1, 1, true, 0);
1394     WaitFixedTimeSeconds(1); 1584     WaitFixedTimeSeconds(1);
1395     IssueShortWarpRequest(10000, TargetEntityType.Area, 10002212, -1); 1585     IssueShortWarpRequest(10000, TargetEntityType.Area, 10002212, -1);
1396     SetCameraAngle(11.1, -151.32); 1586     SetCameraAngle(11.1, -151.32);
1397     WaitFixedTimeSeconds(1); 1587     WaitFixedTimeSeconds(1);
1398     FadeToBlack(0, 1, false, -1); 1588     FadeToBlack(0, 1, false, -1);
1399     SetEventFlagID(10002172, OFF); 1589     SetEventFlagID(10002172, OFF);
1590     SetEventFlagID(10002160, OFF);
1400     if (EventFlag(6070)) { 1591     if (EventFlag(6070)) {
1401         SetEventFlagID(6070, OFF); 1592         SetEventFlagID(6070, OFF);
1402         RecordUserDispLog(12110, 10000, LogObjectType.None, -1); 1593         RecordUserDispLog(12110, 10000, LogObjectType.None, -1);
1403     } 1594     }
1404     if (EventFlag(6071)) { 1595     if (EventFlag(6071)) {
1405         SetEventFlagID(6071, OFF); 1596         SetEventFlagID(6071, OFF);
1406         RecordUserDispLog(12111, 10000, LogObjectType.None, -1); 1597         RecordUserDispLog(12111, 10000, LogObjectType.None, -1);
1407     } 1598     }
1408     if (EventFlag(6072)) { 1599     if (EventFlag(6072)) {
1409         SetEventFlagID(6072, OFF); 1600         SetEventFlagID(6072, OFF);
1929     SetEventFlagID(10002014, ON); 2120     SetEventFlagID(10002014, ON);
1930     WaitFixedTimeFrames(3); 2121     WaitFixedTimeFrames(3);
1931     SetEventFlagID(10002019, ON); 2122     SetEventFlagID(10002019, ON);
1932     WaitFixedTimeFrames(1); 2123     WaitFixedTimeFrames(1);
1933     SetEventFlagID(10002018, ON); 2124     SetEventFlagID(10002018, ON);
1934     WaitFixedTimeFrames(1); 2125     WaitFixedTimeFrames(1);
1935     RestartEvent(); 2126     RestartEvent();
1936 }); 2127 });
1937 2128
1938 $Event(1000009203, Restart, function() { 2129 $Event(1000009203, Restart, function() {
2130     SetEventFlagID(72110, OFF);
1939     EndIf(EventFlag(6031)); 2131     EndIf(EventFlag(6031));
1940     WaitFor(EventFlag(10003040) && IsRequestGameMode(0)); 2132     WaitFor(EventFlag(10003040) && IsRequestGameMode(0));
1941     FadeToBlack(0, 0, true, -1); 2133     FadeToBlack(0, 0, true, -1);
1942     WaitFixedTimeFrames(1); 2134     WaitFixedTimeFrames(1);
1943     FadeToBlack(1, 1, true, -1); 2135     FadeToBlack(1, 1, true, -1);
1944     WaitFixedTimeSeconds(1); 2136     WaitFixedTimeSeconds(1);
1945     ChangeHeroCharacter(10000711, 50300); 2137     ChangeHeroCharacter(10000711, 50300);
1946     ChangeHeroCharacter(10001002, 50300); 2138     ChangeHeroCharacter(10001002, 50300);
1947     ChangeHeroCharacter(10001003, 50300); 2139     ChangeHeroCharacter(10001003, 50300);
1948     ChangeHeroCharacter(10001001, 50300); 2140     ChangeHeroCharacter(10001001, 50300);
2189 $Event(100009199, Restart, function() { 2381 $Event(100009199, Restart, function() {
2190     WaitFixedTimeFrames(3); 2382     WaitFixedTimeFrames(3);
2191     EndIf(EventFlag(1109020)); 2383     EndIf(EventFlag(1109020));
2192     WaitFor(InArea(10000, 10003100)); 2384     WaitFor(InArea(10000, 10003100));
2193     SetEventFlagID(1109020, ON); 2385     SetEventFlagID(1109020, ON);
2194 }); 2386 });
2195 2387
2196 $Event(100009210, Restart, function() { 2388 $Event(100009210, Restart, function() {
2197     WaitFixedTimeFrames(3); 2389     WaitFixedTimeFrames(3);
2198     ClearSpEffect(10001133, 9753); 2390     ClearSpEffect(10001133, 9753);
2199     SetNetworkUpdateRate(10001133, false, CharacterUpdateFrequency.NoUpdate);
2200     WaitFor(CurrentScenarioSection(ScenarioSection.Wylder) && AnyBatchEventFlags(3122, 3123)); 2391     WaitFor(CurrentScenarioSection(ScenarioSection.Wylder) && AnyBatchEventFlags(3122, 3123));
2201     SetSpEffect(10001133, 9753); 2392     SetSpEffect(10001133, 9753);
2202     SetNetworkUpdateRate(10001133, true, CharacterUpdateFrequency.AtLeastEvery2Frames); 2393     SetNetworkUpdateRate(10001133, true, CharacterUpdateFrequency.AtLeastEvery2Frames);
2203     WaitFor(EventFlag(1119081)); 2394     WaitFor(EventFlag(1119081));
2204     ClearSpEffect(10001133, 9753); 2395     ClearSpEffect(10001133, 9753);
2205     SetNetworkUpdateRate(10001133, false, CharacterUpdateFrequency.NoUpdate); 2396     SetNetworkUpdateRate(10001133, false, CharacterUpdateFrequency.NoUpdate);
2206 }); 2397 });
2207 2398
2208 $Event(100009211, Restart, function() { 2399 $Event(100009211, Restart, function() {
2209     WaitFixedTimeFrames(3); 2400     WaitFixedTimeFrames(3);
2625     ChangeCamera(-1); 2816     ChangeCamera(-1);
2626     WaitFixedTimeFrames(1); 2817     WaitFixedTimeFrames(1);
2627     EndEvent(); 2818     EndEvent();
2628 }); 2819 });
2629 2820
2630 $Event(100009258, Restart, function() { 2821 $Event(100009258, Restart, function() {
2631     WaitFixedTimeFrames(3); 2822     WaitFixedTimeFrames(3);
2632     DisableAsset(10002215); 2823     DisableAsset(10002215);
2633     DeleteAssetfollowingSFX(10002239, true); 2824     DeleteAssetfollowingSFX(10002239, true);
2634     ClearSpEffect(10001230, 9753); 2825     ClearSpEffect(10001230, 9753);
2635     SetNetworkUpdateRate(10001230, false, CharacterUpdateFrequency.NoUpdate);
2636     EndIf(EventFlag(1129032)); 2826     EndIf(EventFlag(1129032));
2637     WaitFixedTimeFrames(1); 2827     WaitFixedTimeFrames(1);
2638     WaitFor( 2828     WaitFor(
2639         (CurrentScenarioSection(ScenarioSection.Guardian) 2829         (CurrentScenarioSection(ScenarioSection.Guardian)
2640             && TalkNPCEnabled(10001230) 2830             && TalkNPCEnabled(10001230)
2641             && TalkNPCEnabled(10001231)) 2831             && TalkNPCEnabled(10001231))
2642             && (EventFlag(3226) || EventFlag(3232))); 2832             && (EventFlag(3226) || EventFlag(3232)));
2643     EnableAsset(10002215); 2833     EnableAsset(10002215);
2644     SetNetworkUpdateRate(10001230, true, CharacterUpdateFrequency.AtLeastEvery2Frames);
2645     SetSpEffect(10001230, 9753); 2834     SetSpEffect(10001230, 9753);
2835     SetNetworkUpdateRate(10001230, true, CharacterUpdateFrequency.AtLeastEvery2Frames);
2646     CreateAssetfollowingSFX(10002239, 90, 810045); 2836     CreateAssetfollowingSFX(10002239, 90, 810045);
2647     SetCharacterMaphit(10001230, false); 2837     SetCharacterMaphit(10001230, false);
2648     DisableCharacterGravity(10001230); 2838     DisableCharacterGravity(10001230);
2649     WaitFixedTimeFrames(1); 2839     WaitFixedTimeFrames(1);
2650     ResetCharacterPosition(10001230); 2840     ResetCharacterPosition(10001230);
2651     WaitFor(EventFlag(1129032)); 2841     WaitFor(EventFlag(1129032));
2652     ClearSpEffect(10001230, 9753); 2842     ClearSpEffect(10001230, 9753);
2653     DeleteAssetfollowingSFX(10002239, true); 2843     DeleteAssetfollowingSFX(10002239, true);
2654     SetNetworkUpdateRate(10001230, false, CharacterUpdateFrequency.NoUpdate); 2844     SetNetworkUpdateRate(10001230, false, CharacterUpdateFrequency.NoUpdate);
2655     EndEvent(); 2845     EndEvent();
2799     SetEventFlagID(10003158, OFF); 2989     SetEventFlagID(10003158, OFF);
2800     WaitFor(!EventFlag(10003152)); 2990     WaitFor(!EventFlag(10003152));
2801     FadeToBlack(0, 0, false, -1); 2991     FadeToBlack(0, 0, false, -1);
2802     UnknownTalk2003120(0); 2992     UnknownTalk2003120(0);
2803     EndEvent(); 2993     EndEvent();
2804 }); 2994 });
2805 2995
2806 $Event(100009282, Restart, function() { 2996 $Event(100009282, Restart, function() {
2807     WaitFixedTimeFrames(3); 2997     WaitFixedTimeFrames(3);
2808     ClearSpEffect(10001330, 9753); 2998     ClearSpEffect(10001330, 9753);
2809     SetNetworkUpdateRate(10001330, false, CharacterUpdateFrequency.NoUpdate);
2810     EndIf(EventFlag(1139020)); 2999     EndIf(EventFlag(1139020));
2811     EndIf(EventFlag(1139040)); 3000     EndIf(EventFlag(1139040));
2812     WaitFor(CurrentScenarioSection(ScenarioSection.Ironeye) && TalkNPCEnabled(10001330)); 3001     WaitFor(CurrentScenarioSection(ScenarioSection.Ironeye) && TalkNPCEnabled(10001330));
2813     SetSpEffect(10001330, 9753); 3002     SetSpEffect(10001330, 9753);
2814     SetNetworkUpdateRate(10001330, true, CharacterUpdateFrequency.AtLeastEvery2Frames); 3003     SetNetworkUpdateRate(10001330, true, CharacterUpdateFrequency.AtLeastEvery2Frames);
2815     WaitFor(EventFlag(1139020) || EventFlag(1139040)); 3004     WaitFor(EventFlag(1139020) || EventFlag(1139040));
2816     ClearSpEffect(10001330, 9753); 3005     ClearSpEffect(10001330, 9753);
2817     SetNetworkUpdateRate(10001330, false, CharacterUpdateFrequency.NoUpdate); 3006     SetNetworkUpdateRate(10001330, false, CharacterUpdateFrequency.NoUpdate);
2818 }); 3007 });
2819 3008
3839 L1: 4028 L1:
3840     if (IsHero(Hero.Revenant)) { 4029     if (IsHero(Hero.Revenant)) {
3841         SetEventFlagID(10003011, ON); 4030         SetEventFlagID(10003011, ON);
3842     } 4031     }
3843     IssueShortWarpRequest(10000720, TargetEntityType.Area, 10003952, -1); 4032     IssueShortWarpRequest(10000720, TargetEntityType.Area, 10003952, -1);
3844     WaitFixedTimeFrames(1); 4033     WaitFixedTimeFrames(1);
3845     ForceAnimationPlayback(10000720, 90103, true, false, false); 4034     ForceAnimationPlayback(10000720, 90103, true, false, false);
3846     ClearSpEffect(10000720, 9940); 4035     ClearSpEffect(10000720, 9940);
3847     EndEvent(); 4036     EndEvent();
3848 L2: 4037 L2:
3849     if (IsHero(Hero.Revenant)) { 4038     if (IsHero(Hero.Revenant) || IsHero(Hero.Duchess)) {
3850         SetEventFlagID(10003012, ON); 4039         SetEventFlagID(10003012, ON);
3851     } 4040     }
3852     DisableAsset(10002251); 4041     DisableAsset(10002251);
3853     EnableAsset(10002909); 4042     EnableAsset(10002909);
3854     EnableAssetInvunerability(10002909); 4043     EnableAssetInvunerability(10002909);
3855     WaitFixedTimeFrames(1); 4044     WaitFixedTimeFrames(1);
3856     IssueShortWarpRequest(10000720, TargetEntityType.Area, 10003950, -1); 4045     IssueShortWarpRequest(10000720, TargetEntityType.Area, 10003950, -1);
3857     WaitFixedTimeFrames(1); 4046     WaitFixedTimeFrames(1);
3858     ForceAnimationPlayback(10000720, 90101, true, false, false); 4047     ForceAnimationPlayback(10000720, 90101, true, false, false);
3859     WaitFixedTimeFrames(1); 4048     WaitFixedTimeFrames(1);
3860     IssueShortWarpRequest(10000720, TargetEntityType.Area, 10003950, -1); 4049     IssueShortWarpRequest(10000720, TargetEntityType.Area, 10003950, -1);
3861     ClearSpEffect(10000720, 9940); 4050     ClearSpEffect(10000720, 9940);
3862     EndEvent(); 4051     EndEvent();
3863 L3: 4052 L3:
4053     if (IsHero(Hero.Duchess)) {
4054         SetEventFlagID(10003015, ON);
4055     }
3864     EnableAssetInvunerability(10002907); 4056     EnableAssetInvunerability(10002907);
3865     IssueShortWarpRequest(10000720, TargetEntityType.Area, 10003953, -1); 4057     IssueShortWarpRequest(10000720, TargetEntityType.Area, 10003953, -1);
3866     WaitFixedTimeFrames(1); 4058     WaitFixedTimeFrames(1);
3867     ForceAnimationPlayback(10000720, 90108, true, false, false); 4059     ForceAnimationPlayback(10000720, 90108, true, false, false);
3868     WaitFixedTimeFrames(1); 4060     WaitFixedTimeFrames(1);
3869     IssueShortWarpRequest(10000720, TargetEntityType.Area, 10003951, -1); 4061     IssueShortWarpRequest(10000720, TargetEntityType.Area, 10003951, -1);
3870     ClearSpEffect(10000720, 9940); 4062     ClearSpEffect(10000720, 9940);
3871     EndEvent(); 4063     EndEvent();
3872 }); 4064 });
3873 4065
4056     GotoIf(L2, EventFlag(10003488)); 4248     GotoIf(L2, EventFlag(10003488));
4057     GotoIf(L3, EventFlag(10003489)); 4249     GotoIf(L3, EventFlag(10003489));
4058     EndEvent(); 4250     EndEvent();
4059 L1: 4251 L1:
4060     ForceAnimationPlayback(10000730, 90106, true, false, false); 4252     ForceAnimationPlayback(10000730, 90106, true, false, false);
4061     ClearSpEffect(10000730, 9940); 4253     ClearSpEffect(10000730, 9940);
4062     EndEvent(); 4254     EndEvent();
4063 L2: 4255 L2:
4064     flag2 &= !EventFlag(6037) && CurrentScenarioSection(ScenarioSection.None); 4256     flag2 &= !EventFlag(6037) && CurrentScenarioSection(ScenarioSection.None);
4065     GotoIf(L3, flag2); 4257     GotoIf(L3, flag2);
4066     if (IsHero(Hero.Revenant)) { 4258     if (IsHero(Hero.Revenant) || IsHero(Hero.Duchess)) {
4067         SetEventFlagID(10003010, ON); 4259         SetEventFlagID(10003010, ON);
4068     } 4260     }
4069     IssueShortWarpRequest(10000730, TargetEntityType.Area, 10003980, -1); 4261     IssueShortWarpRequest(10000730, TargetEntityType.Area, 10003980, -1);
4070     WaitFixedTimeFrames(1); 4262     WaitFixedTimeFrames(1);
4071     ForceAnimationPlayback(10000730, 90108, true, false, false); 4263     ForceAnimationPlayback(10000730, 90108, true, false, false);
4072     ClearSpEffect(10000730, 9940); 4264     ClearSpEffect(10000730, 9940);
4073     EndEvent(); 4265     EndEvent();
4074 L3: 4266 L3:
4075     IssueShortWarpRequest(10000730, TargetEntityType.Area, 10003981, -1); 4267     IssueShortWarpRequest(10000730, TargetEntityType.Area, 10003981, -1);
4076     WaitFixedTimeFrames(1); 4268     WaitFixedTimeFrames(1);
diff -rNU 10 nr1.01.7/m11_00_00_00.emevd.dcx.js nr/m11_00_00_00.emevd.dcx.js
nr1.01.7/m11_00_00_00.emevd.dcx.jsnr/m11_00_00_00.emevd.dcx.js
7 // @version 3.6 7 // @version 3.6
8 // ==/EMEVD== 8 // ==/EMEVD==
9 9
10 $Event(0, Default, function() { 10 $Event(0, Default, function() {
11     $InitializeEvent(0, 11002500); 11     $InitializeEvent(0, 11002500);
12     $InitializeEvent(0, 11002550); 12     $InitializeEvent(0, 11002550);
13     $InitializeEvent(0, 11002700); 13     $InitializeEvent(0, 11002700);
14     $InitializeEvent(0, 11002800); 14     $InitializeEvent(0, 11002800);
15     $InitializeEvent(0, 11002810); 15     $InitializeEvent(0, 11002810);
16     $InitializeEvent(0, 11002600); 16     $InitializeEvent(0, 11002600);
17     $InitializeEvent(0, 11002604);
17     $InitializeEvent(0, 11002601); 18     $InitializeEvent(0, 11002601);
18     $InitializeEvent(0, 11002602); 19     $InitializeEvent(0, 11002602);
19     $InitializeEvent(0, 11002603); 20     $InitializeEvent(0, 11002603);
20 }); 21 });
21 22
22 $Event(11002500, Default, function() { 23 $Event(11002500, Default, function() {
23     EndIf(EventFlag(11002550)); 24     EndIf(EventFlag(11002550));
24     DisableAsset(11006500); 25     DisableAsset(11006500);
25     DisableHit(11001550); 26     DisableHit(11001550);
26     DisableMapPart(11001555); 27     DisableMapPart(11001555);
155         } 156         }
156 L2: 157 L2:
157         PlaySE(11002211, SoundType.EnvironmentalSound, 101192000); 158         PlaySE(11002211, SoundType.EnvironmentalSound, 101192000);
158         WaitFor(ElapsedSeconds(2)); 159         WaitFor(ElapsedSeconds(2));
159         RestartEvent(); 160         RestartEvent();
160     } 161     }
161 L4: 162 L4:
162     NoOp(); 163     NoOp();
163 }); 164 });
164 165
166 $Event(11002604, Restart, function() {
167     WaitFor(EventFlag(11002590));
168     SetEventFlagID(11002599, ON);
169 });
170
165 $Event(11002620, Default, function() { 171 $Event(11002620, Default, function() {
166     WaitFor(EventFlag(951)); 172     WaitFor(EventFlag(951));
167     PlayCutsceneToPlayer(11000100, CutscenePlayMode.SkippableWithFadeOutSkip, 10000); 173     PlayCutsceneToPlayer(11000100, CutscenePlayMode.SkippableWithFadeOutSkip, 10000);
168     FadeToBlack(0, 0, false, -1); 174     FadeToBlack(0, 0, false, -1);
169     WaitFixedTimeFrames(1); 175     WaitFixedTimeFrames(1);
170     SetEventFlagID(951, OFF); 176     SetEventFlagID(951, OFF);
171     SetEventFlagID(120, ON); 177     SetEventFlagID(120, ON);
172     FadeToBlack(1, 0, false, -1); 178     FadeToBlack(1, 0, false, -1);
173     SetEventFlagID(7000, ON); 179     SetEventFlagID(7000, ON);
174 }); 180 });
diff -rNU 10 nr1.01.7/m12_00_00_00.emevd.dcx.js nr/m12_00_00_00.emevd.dcx.js
nr1.01.7/m12_00_00_00.emevd.dcx.jsnr/m12_00_00_00.emevd.dcx.js
40 }); 40 });
41 41
42 $Event(12002001, Default, function() { 42 $Event(12002001, Default, function() {
43     WaitFor(EventFlag(9052) && AllPlayersInArea(12002200)); 43     WaitFor(EventFlag(9052) && AllPlayersInArea(12002200));
44     DisableCharacterDefaultBackread(12000950); 44     DisableCharacterDefaultBackread(12000950);
45     DisableCharacterDefaultBackread(12000200); 45     DisableCharacterDefaultBackread(12000200);
46     DisableCharacterDefaultBackread(12000201); 46     DisableCharacterDefaultBackread(12000201);
47     WaitFixedTimeSeconds(1); 47     WaitFixedTimeSeconds(1);
48     GotoIf(L0, IsPlayMode(0)); 48     GotoIf(L0, IsPlayMode(0));
49     GotoIf(L1, IsPlayMode(1)); 49     GotoIf(L1, IsPlayMode(1));
50     GotoIf(L2, IsPlayMode(2)); 50     GotoIf(L1, IsPlayMode(2) && TargetingBoss(TargetBoss.Heolstor));
51     GotoIf(L0, IsPlayMode(2));
51     WaitFixedTimeSeconds(0.1); 52     WaitFixedTimeSeconds(0.1);
52     RestartEvent(); 53     RestartEvent();
53 L0: 54 L0:
54     if (!EventFlag(7523)) { 55     if (!EventFlag(7523)) {
55         PlayCutsceneToPlayerAndWarp(12000010, CutscenePlayMode.Skippable, 19002200, 19000000, 20000, 0, false, true); 56         PlayCutsceneToPlayerAndWarp(12000010, CutscenePlayMode.Skippable, 19002200, 19000000, 20000, 0, false, true);
56     } 57     }
57     if (EventFlag(7523)) { 58     if (EventFlag(7523)) {
58         PlayCutsceneToPlayerAndWarp(12000010, CutscenePlayMode.SkippableWithFadeOutSkip, 19002200, 19000000, 20000, 0, false, true); 59         PlayCutsceneToPlayerAndWarp(12000010, CutscenePlayMode.SkippableWithFadeOutSkip, 19002200, 19000000, 20000, 0, false, true);
59     } 60     }
60     ChangeCamera(-1); 61     ChangeCamera(-1);
63 L1: 64 L1:
64     if (!EventFlag(7523)) { 65     if (!EventFlag(7523)) {
65         PlayCutsceneToPlayerAndWarp(12000010, CutscenePlayMode.Skippable, 18002200, 18000000, 20000, 0, false, true); 66         PlayCutsceneToPlayerAndWarp(12000010, CutscenePlayMode.Skippable, 18002200, 18000000, 20000, 0, false, true);
66     } 67     }
67     if (EventFlag(7523)) { 68     if (EventFlag(7523)) {
68         PlayCutsceneToPlayerAndWarp(12000010, CutscenePlayMode.SkippableWithFadeOutSkip, 18002200, 18000000, 20000, 0, false, true); 69         PlayCutsceneToPlayerAndWarp(12000010, CutscenePlayMode.SkippableWithFadeOutSkip, 18002200, 18000000, 20000, 0, false, true);
69     } 70     }
70     ChangeCamera(-1); 71     ChangeCamera(-1);
71     SetNetworkconnectedEventFlagID(7510, ON); 72     SetNetworkconnectedEventFlagID(7510, ON);
72     EndEvent(); 73     EndEvent();
73 L2:
74     if (!EventFlag(7523)) {
75         PlayCutsceneToPlayerAndWarp(12000010, CutscenePlayMode.Skippable, 19002200, 19000000, 20000, 0, false, true);
76     }
77     if (EventFlag(7523)) {
78         PlayCutsceneToPlayerAndWarp(12000010, CutscenePlayMode.SkippableWithFadeOutSkip, 19002200, 19000000, 20000, 0, false, true);
79     }
80     ChangeCamera(-1);
81     SetEventFlagID(7510, ON);
82     EndEvent();
83 }); 74 });
84 75
85 $Event(12002010, Default, function(targetTimeSeconds) { 76 $Event(12002010, Default, function(targetTimeSeconds) {
86     EndIf(HasMultiplayerState(MultiplayerState.Singleplayer)); 77     EndIf(HasMultiplayerState(MultiplayerState.Singleplayer));
87     EndIf(EventFlag(7510)); 78     EndIf(EventFlag(7510));
88     EndIf(EventFlag(7523)); 79     EndIf(EventFlag(7523));
89     if (!EventFlag(7522)) { 80     if (!EventFlag(7522)) {
90         WaitFor(EventFlag(9052)); 81         WaitFor(EventFlag(9052));
91         WaitFor(ElapsedSeconds(targetTimeSeconds) || EventFlag(7510) || EventFlag(7522)); 82         WaitFor(ElapsedSeconds(targetTimeSeconds) || EventFlag(7510) || EventFlag(7522));
92         EndIf(EventFlag(7510)); 83         EndIf(EventFlag(7510));
134     WaitFor(!CharacterDead(20000)); 125     WaitFor(!CharacterDead(20000));
135     MoveBloodstainAndDroppedItems(12002510, 12002511); 126     MoveBloodstainAndDroppedItems(12002510, 12002511);
136 }); 127 });
137 128
138 $Event(12002099, Default, function() { 129 $Event(12002099, Default, function() {
139     EndIf(!EventFlag(7510)); 130     EndIf(!EventFlag(7510));
140     WaitFor(InArea(10000, 12002200)); 131     WaitFor(InArea(10000, 12002200));
141     WaitFixedTimeSeconds(1); 132     WaitFixedTimeSeconds(1);
142     GotoIf(L0, IsPlayMode(0)); 133     GotoIf(L0, IsPlayMode(0));
143     GotoIf(L1, IsPlayMode(1)); 134     GotoIf(L1, IsPlayMode(1));
144     GotoIf(L2, IsPlayMode(2)); 135     GotoIf(L1, IsPlayMode(2) && TargetingBoss(TargetBoss.Heolstor));
136     GotoIf(L0, IsPlayMode(2));
145     WaitFixedTimeSeconds(0.1); 137     WaitFixedTimeSeconds(0.1);
146     RestartEvent(); 138     RestartEvent();
147 L0: 139 L0:
148     WarpPlayerWithPlayerNo(19, 0, 0, 0, 19002200); 140     WarpPlayerWithPlayerNo(19, 0, 0, 0, 19002200);
149     EndEvent(); 141     EndEvent();
150 L1: 142 L1:
151     WarpPlayerWithPlayerNo(18, 0, 0, 0, 18002200); 143     WarpPlayerWithPlayerNo(18, 0, 0, 0, 18002200);
152     EndEvent(); 144     EndEvent();
153 L2:
154     WarpPlayerWithPlayerNo(19, 0, 0, 0, 19002200);
155     EndEvent();
156 }); 145 });
157 146
diff -rNU 10 nr1.01.7/m18_00_00_00.emevd.dcx.js nr/m18_00_00_00.emevd.dcx.js
nr1.01.7/m18_00_00_00.emevd.dcx.jsnr/m18_00_00_00.emevd.dcx.js
21     $InitializeCommonEvent(0, 90075703, 18000801, 18000800, 18000810, 18002820, 18002821, 18002822, 18002810, 18000200, 18000201, 18002800); 21     $InitializeCommonEvent(0, 90075703, 18000801, 18000800, 18000810, 18002820, 18002821, 18002822, 18002810, 18000200, 18000201, 18002800);
22     $InitializeCommonEvent(0, 90075705, 18000800, 18002830, 18000202, 46093, Weather.Type88, 18002400, 18002401, 18002800); 22     $InitializeCommonEvent(0, 90075705, 18000800, 18002830, 18000202, 46093, Weather.Type88, 18002400, 18002401, 18002800);
23     $InitializeCommonEvent(0, 90075705, 18000800, 18002830, 18000203, 46094, Weather.Type20, 18002410, 18002411, 18002800); 23     $InitializeCommonEvent(0, 90075705, 18000800, 18002830, 18000203, 46094, Weather.Type20, 18002410, 18002411, 18002800);
24     $InitializeCommonEvent(0, 90075705, 18000800, 18002830, 18000204, 46095, Weather.Type01, 18002420, 18002421, 18002800); 24     $InitializeCommonEvent(0, 90075705, 18000800, 18002830, 18000204, 46095, Weather.Type01, 18002420, 18002421, 18002800);
25     $InitializeCommonEvent(0, 90075705, 18000800, 18002830, 18000205, 46096, Weather.Type10, 18002430, 18002431, 18002800); 25     $InitializeCommonEvent(0, 90075705, 18000800, 18002830, 18000205, 46096, Weather.Type10, 18002430, 18002431, 18002800);
26     $InitializeCommonEvent(0, 90075705, 18000800, 18002830, 18000206, 46097, Weather.Type30, 18002440, 18002441, 18002800); 26     $InitializeCommonEvent(0, 90075705, 18000800, 18002830, 18000206, 46097, Weather.Type30, 18002440, 18002441, 18002800);
27     $InitializeCommonEvent(0, 90075705, 18000800, 18002830, 18000207, 46098, Weather.Type11, 18002450, 18002451, 18002800); 27     $InitializeCommonEvent(0, 90075705, 18000800, 18002830, 18000207, 46098, Weather.Type11, 18002450, 18002451, 18002800);
28     $InitializeCommonEvent(0, 90075705, 18000800, 18002830, 18000208, 46099, Weather.Type40, 18002460, 18002461, 18002800); 28     $InitializeCommonEvent(0, 90075705, 18000800, 18002830, 18000208, 46099, Weather.Type40, 18002460, 18002461, 18002800);
29     $InitializeCommonEvent(0, 90075706, 18000801, 18000800, 18000201, 18002800); 29     $InitializeCommonEvent(0, 90075706, 18000801, 18000800, 18000201, 18002800);
30     $InitializeEvent(0, 18002890); 30     $InitializeEvent(0, 18002890);
31     $InitializeEvent(0, 18002590);
31     $InitializeEvent(0, 18002600); 32     $InitializeEvent(0, 18002600);
32     $InitializeEvent(0, 18002601); 33     $InitializeEvent(0, 18002601);
33     $InitializeEvent(0, 18002620); 34     $InitializeEvent(0, 18002620);
34     $InitializeEvent(0, 18002610); 35     $InitializeEvent(0, 18002610);
35     $InitializeCommonEvent(0, 90075930, 160, 9080); 36     $InitializeCommonEvent(0, 90075930, 160, 9080);
36     $InitializeCommonEvent(0, 90015200, 9314, 7); 37     $InitializeCommonEvent(0, 90015200, 9314, 7);
37     $InitializeCommonEvent(0, 90015201, 9315, 7, 160); 38     $InitializeCommonEvent(0, 90015201, 9315, 7, 160);
38 }); 39 });
39 40
40 $Event(50, Default, function() { 41 $Event(50, Default, function() {
41     $InitializeEvent(0, 18002500); 42     $InitializeEvent(0, 18002500);
42 }); 43 });
43 44
44 $Event(18002500, Restart, function() { 45 $Event(18002500, Restart, function() {
45     DisableNetworkSync(); 46     DisableNetworkSync();
46     EndIf(EventFlag(18002500)); 47     EndIf(EventFlag(18002500));
47     EndIf(PlayerInMap(11, 0, 0, 0)); 48     EndIf(PlayerInMap(11, 0, 0, 0));
48     WaitFor(EventFlag(12002001) && IsPlayMode(1) && PlayerInMap(18, 0, 0, 0)); 49     WaitFor(EventFlag(12002001) && PlayerInMap(18, 0, 0, 0));
49     FadeToBlack(1, 0, true, -1); 50     FadeToBlack(1, 0, true, -1);
50     WaitFixedTimeSeconds(2); 51     WaitFixedTimeSeconds(2);
51     FadeToBlack(0, 0.5, false, -1); 52     FadeToBlack(0, 0.5, false, -1);
52     EndEvent(); 53     EndEvent();
53 }); 54 });
54 55
56 $Event(18002590, Default, function() {
57     EndIf(IsPlayMode(0) || IsPlayMode(1));
58     WaitFor(EventFlag(7512));
59     DisplayTextEffectId(4000);
60     WaitFixedTimeSeconds(15);
61     SetEventFlagID(7000, ON);
62 });
63
55 $Event(18002600, Default, function() { 64 $Event(18002600, Default, function() {
56     WaitFor( 65     WaitFor(
57         EventFlag(18002800) 66         EventFlag(18002800)
58             && EventFlag(18002615) 67             && EventFlag(18002615)
59             && !(CharacterHasSpEffect(20000, 9760) && IsHero(Hero.Wylder))); 68             && !(CharacterHasSpEffect(20000, 9760) && IsHero(Hero.Wylder)));
60     IssueShortWarpRequest(20000, TargetEntityType.Area, 18002600, -1); 69     IssueShortWarpRequest(20000, TargetEntityType.Area, 18002600, -1);
61     SetCameraAngle(0.84, 164.26); 70     SetCameraAngle(0.84, 164.26);
62     EnableAsset(18001900); 71     EnableAsset(18001900);
63 }); 72 });
64 73
65 $Event(18002601, Default, function() { 74 $Event(18002601, Default, function() {
66     DisableCharacter(18000890); 75     DisableCharacter(18000890);
76     DisableNetworkSync();
67     WaitFor( 77     WaitFor(
68         EventFlag(18002800) 78         EventFlag(18002800)
69             && EventFlag(18002615) 79             && EventFlag(18002615)
70             && (CharacterHasSpEffect(20000, 9760) && IsHero(Hero.Wylder))); 80             && (CharacterHasSpEffect(20000, 9760) && IsHero(Hero.Wylder)));
71     IssueShortWarpRequest(20000, TargetEntityType.Area, 18002601, -1); 81     IssueShortWarpRequest(20000, TargetEntityType.Area, 18002601, -1);
72     SetCameraAngle(15.985, -76.26); 82     SetCameraAngle(15.985, -76.26);
73     EnableCharacter(18000890); 83     EnableCharacter(18000890);
74     SetCharacterTeamType(18000890, TeamType.FriendlyNPC); 84     SetCharacterTeamType(18000890, TeamType.FriendlyNPC);
85     DisableCharacterFadeOnEnable(18000890);
86     EnableCharacterDefaultBackread(18000890);
87     DisableCharacterGravity(18000890);
88     WaitFor(ElapsedFrames(5));
89     WaitFor(CharacterBackreadStatus(18000890));
90     ForceAnimationPlayback(18000890, 30000, false, false, false);
75     WaitFor(ActionButtonInArea(6750, 18000890)); 91     WaitFor(ActionButtonInArea(6750, 18000890));
76     UnknownTalk2003120(1); 92     UnknownTalk2003120(1);
77     FadeToBlack(1, 1, true, -1); 93     FadeToBlack(1, 1, true, -1);
78     WaitFixedTimeSeconds(1); 94     WaitFixedTimeSeconds(1);
79     PlayCutsceneToPlayer(18000000, CutscenePlayMode.SkippableWithFadeOutSkip, 10000); 95     PlayCutsceneToPlayer(18000000, CutscenePlayMode.SkippableWithFadeOutSkip, 10000);
80     FadeToBlack(0, 1, true, -1); 96     FadeToBlack(0, 1, true, -1);
81     WaitFixedTimeFrames(1); 97     WaitFixedTimeFrames(1);
82     SetEventFlagID(961, ON); 98     SetEventFlagID(961, ON);
83     FadeToBlack(1, 0, false, -1); 99     FadeToBlack(1, 0, false, -1);
84     WaitFixedTimeFrames(1); 100     WaitFixedTimeFrames(1);
85     SetEventFlagID(21, ON); 101     SetEventFlagID(21, ON);
86 }); 102 });
87 103
88 $Event(18002610, Default, function() { 104 $Event(18002610, Default, function() {
89     EndIf(EventFlag(6020)); 105     EndIf(EventFlag(6020));
106     EndIf(IsPlayMode(2));
90     WaitFor(EventFlag(18002800)); 107     WaitFor(EventFlag(18002800));
91     SetEventFlagID(9017, OFF); 108     SetEventFlagID(9017, OFF);
92     WaitFixedTimeSeconds(10); 109     WaitFixedTimeSeconds(10);
93     SpawnOneshotSFX(TargetEntityType.Area, 18002650, -1, 807190); 110     SpawnOneshotSFX(TargetEntityType.Area, 18002650, -1, 807190);
94     PlaySE(20000, SoundType.EnvironmentalSound, 180000010); 111     PlaySE(20000, SoundType.EnvironmentalSound, 180000010);
95     WaitFixedTimeSeconds(3); 112     WaitFixedTimeSeconds(3);
96     FadeToWhite(0, 0, false, 0); 113     FadeToWhite(0, 0, false, 0);
97     WaitFixedTimeFrames(1); 114     WaitFixedTimeFrames(1);
98     FadeToWhite(1, 0.5, true, 0); 115     FadeToWhite(1, 0.5, true, 0);
99     WaitFixedTimeSeconds(0.5); 116     WaitFixedTimeSeconds(0.5);
101     SetEventFlagID(18002615, ON); 118     SetEventFlagID(18002615, ON);
102     DisableAsset(18001510); 119     DisableAsset(18001510);
103     WaitFixedTimeSeconds(0.8); 120     WaitFixedTimeSeconds(0.8);
104     FadeToWhite(0, 1.2, true, 0); 121     FadeToWhite(0, 1.2, true, 0);
105     WaitFixedTimeSeconds(1.2); 122     WaitFixedTimeSeconds(1.2);
106     FadeToBlack(0, 3, false, 2); 123     FadeToBlack(0, 3, false, 2);
107 }); 124 });
108 125
109 $Event(18002620, Default, function() { 126 $Event(18002620, Default, function() {
110     EndIf(EventFlag(6020)); 127     EndIf(EventFlag(6020));
128     EndIf(IsPlayMode(2));
111     WaitFor(EventFlag(18002800) && EventFlag(18002615)); 129     WaitFor(EventFlag(18002800) && EventFlag(18002615));
112     SetEventFlagID(6020, ON); 130     SetEventFlagID(6020, ON);
113     FinalizeExpedition(); 131     FinalizeExpedition();
114 }); 132 });
115 133
116 $Event(18002800, Default, function(chrEntityId) { 134 $Event(18002800, Default, function(chrEntityId) {
117     if (!EventFlag(18002800)) { 135     if (!EventFlag(18002800)) {
118         WaitFor(HPRatio(chrEntityId) <= 0); 136         WaitFor(HPRatio(chrEntityId) <= 0);
119         WaitFixedTimeSeconds(5); 137         WaitFixedTimeSeconds(5);
120         DisplayBossHealthBar(Disabled, 18000800, 0, 0); 138         DisplayBossHealthBar(Disabled, 18000800, 0, 0);
diff -rNU 10 nr1.01.7/m19_00_00_00.emevd.dcx.js nr/m19_00_00_00.emevd.dcx.js
nr1.01.7/m19_00_00_00.emevd.dcx.jsnr/m19_00_00_00.emevd.dcx.js
198         if (IsPlayerNo(1)) { 198         if (IsPlayerNo(1)) {
199             $InitializeCommonEvent(0, 90075404, 19000240, 19004743, 19000243, 19004744, 19000246); 199             $InitializeCommonEvent(0, 90075404, 19000240, 19004743, 19000243, 19004744, 19000246);
200         } 200         }
201         if (IsPlayerNo(2)) { 201         if (IsPlayerNo(2)) {
202             $InitializeCommonEvent(0, 90075404, 19000240, 19004743, 19000244, 19004744, 19000247); 202             $InitializeCommonEvent(0, 90075404, 19000240, 19004743, 19000244, 19004744, 19000247);
203         } 203         }
204         if (IsPlayerNo(3)) { 204         if (IsPlayerNo(3)) {
205             $InitializeCommonEvent(0, 90075404, 19000240, 19004743, 19000245, 19004744, 19000248); 205             $InitializeCommonEvent(0, 90075404, 19000240, 19004743, 19000245, 19004744, 19000248);
206         } 206         }
207         $InitializeCommonEvent(0, 90075405, 19000240, 19000241, 19000246, 19000247, 19000248); 207         $InitializeCommonEvent(0, 90075405, 19000240, 19000241, 19000246, 19000247, 19000248);
208         $InitializeCommonEvent(0, 99064506, 19000849, 19000240, 19000701, 19000241); 208         $InitializeCommonEvent(0, 99075406, 19000849, 19000240, 19000701, 19000241);
209         $InitializeCommonEvent(0, 99064510, 19000840); 209         $InitializeCommonEvent(0, 99075410, 19000840);
210         $InitializeCommonEvent(0, 99064520, 19000840); 210         $InitializeCommonEvent(0, 99075420, 19000840);
211         $InitializeCommonEvent(0, 99064521, 19000840); 211         $InitializeCommonEvent(0, 99075421, 19000840);
212         $InitializeCommonEvent(0, 99064522, 19000840, 19002740, 19002741, 19002742, 19002743, 19002744, 19002745, 19002746, 19002747, 19000440, 19000441, 19000442, 19000443, 19000444, 19000445, 19000446, 19000447); 212         $InitializeCommonEvent(0, 99075422, 19000840, 19002740, 19002741, 19002742, 19002743, 19002744, 19002745, 19002746, 19002747, 19000440, 19000441, 19000442, 19000443, 19000444, 19000445, 19000446, 19000447);
213         $InitializeCommonEvent(0, 90075901, 19000840, 756000, 907550000); 213         $InitializeCommonEvent(0, 90075901, 19000840, 756000, 907550000);
214         $InitializeCommonEvent(0, 90075902, 19005840, 0, 0); 214         $InitializeCommonEvent(0, 90075902, 19005840, 0, 0);
215         $InitializeCommonEvent(0, 90015012, 19005840, 7511); 215         $InitializeCommonEvent(0, 90015012, 19005840, 7511);
216         $InitializeCommonEvent(0, 90015020, 7511, 7512); 216         $InitializeCommonEvent(0, 90015020, 7511, 7512);
217         $InitializeCommonEvent(0, 99064530, 19000840); 217         $InitializeCommonEvent(0, 99075430, 19000840);
218         $InitializeCommonEvent(0, 90015018, 7511, 7512, 756000, 19000840, 45889, 1); 218         $InitializeCommonEvent(0, 90015018, 7511, 7512, 756000, 19000840, 45889, 1);
219         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006840, 19000840, 5108, 0); 219         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006840, 19000840, 5108, 0);
220         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006841, 19000840, 5108, 0); 220         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006841, 19000840, 5108, 0);
221         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006842, 19000840, 5108, 0); 221         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006842, 19000840, 5108, 0);
222         $InitializeCommonEvent(0, 99064540, 7511, 7512, 0, 19000840, 5108, 0); 222         $InitializeCommonEvent(0, 99075440, 7511, 7512, 0, 19000840, 5108, 0);
223     } 223     }
224     if (IsMapVariation(5)) { 224     if (IsMapVariation(5)) {
225         $InitializeCommonEvent(0, 90075900, 19000850); 225         $InitializeCommonEvent(0, 90075900, 19000850);
226         $InitializeCommonEvent(0, 90075901, 19000850, 760000, 907610000); 226         $InitializeCommonEvent(0, 90075901, 19000850, 760000, 907610000);
227         $InitializeCommonEvent(0, 90075902, 19000850, 0, 0); 227         $InitializeCommonEvent(0, 90075902, 19000850, 0, 0);
228         $InitializeCommonEvent(0, 90075500, 19000850); 228         $InitializeCommonEvent(0, 90075500, 19000850);
229         $InitializeCommonEvent(0, 90075501, 19000850); 229         $InitializeCommonEvent(0, 90075501, 19000850);
230         $InitializeCommonEvent(0, 90075510, 19000850); 230         $InitializeCommonEvent(0, 90075510, 19000850);
231         $InitializeCommonEvent(0, 90015012, 19000850, 7511); 231         $InitializeCommonEvent(0, 90015012, 19000850, 7511);
232         $InitializeCommonEvent(0, 90015020, 7511, 7512); 232         $InitializeCommonEvent(0, 90015020, 7511, 7512);
248         $InitializeCommonEvent(0, 90015008, 7511, 7512, 490000, 19000860, 5105, 0); 248         $InitializeCommonEvent(0, 90015008, 7511, 7512, 490000, 19000860, 5105, 0);
249         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006860, 19000860, 5108, 0); 249         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006860, 19000860, 5108, 0);
250         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006861, 19000860, 5108, 0); 250         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006861, 19000860, 5108, 0);
251         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006862, 19000860, 5108, 0); 251         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006862, 19000860, 5108, 0);
252         $InitializeCommonEvent(0, 99075620, 7511, 7512, 0, 19000860, 5108, 0); 252         $InitializeCommonEvent(0, 99075620, 7511, 7512, 0, 19000860, 5108, 0);
253         $InitializeCommonEvent(0, 90075602, 19000860); 253         $InitializeCommonEvent(0, 90075602, 19000860);
254     } 254     }
255     if (IsMapVariation(10)) { 255     if (IsMapVariation(10)) {
256         $InitializeCommonEvent(0, 90075900, 19010800); 256         $InitializeCommonEvent(0, 90075900, 19010800);
257         $InitializeCommonEvent(0, 90075901, 19010800, 750000, 907500000); 257         $InitializeCommonEvent(0, 90075901, 19010800, 750000, 907500000);
258         $InitializeCommonEvent(0, 90075902, 19010800, 19015801, 0);
258         $InitializeCommonEvent(0, 90015012, 19010800, 7511); 259         $InitializeCommonEvent(0, 90015012, 19010800, 7511);
259         $InitializeCommonEvent(1, 90015012, 19015801, 7511); 260         $InitializeCommonEvent(1, 90015012, 19015801, 7511);
260         $InitializeCommonEvent(0, 90015020, 7511, 7512); 261         $InitializeCommonEvent(0, 90015020, 7511, 7512);
261         $InitializeCommonEvent(0, 90075000, 19010800, 19015801); 262         $InitializeCommonEvent(0, 90075000, 19010800, 19015801);
262         $InitializeCommonEvent(0, 90075001, 19010800, 19015801); 263         $InitializeCommonEvent(0, 90075051, 19010800, 19015801, 19010801, 19010802);
263         $InitializeCommonEvent(0, 90075002, 19010800, 19010801, 19010802); 264         $InitializeCommonEvent(0, 90075002, 19010800, 19010801, 19010802);
264         $InitializeCommonEvent(0, 90075005, 19010800, 19010801, 72, 5900); 265         $InitializeCommonEvent(0, 90075005, 19010800, 19010801, 72, 5900);
265         $InitializeCommonEvent(0, 90075005, 19010800, 19010802, 2, 5901); 266         $InitializeCommonEvent(0, 90075005, 19010800, 19010802, 2, 5901);
266         $InitializeCommonEvent(0, 90075006, 19010800, 19010801); 267         $InitializeCommonEvent(0, 90075006, 19010800, 19010801);
267         $InitializeCommonEvent(0, 90075006, 19010800, 19010802); 268         $InitializeCommonEvent(0, 90075006, 19010800, 19010802);
269         $InitializeCommonEvent(0, 90075060, 19010800, 19010801);
270         $InitializeCommonEvent(0, 90075060, 19010800, 19010802);
271         $InitializeCommonEvent(0, 90075070, 19010800, 19010801, 72, 5908, 51320);
272         $InitializeCommonEvent(0, 90075070, 19010800, 19010802, 72, 5909, 51321);
268         $InitializeCommonEvent(0, 90075950, 750000, 19010800, 5106, 0); 273         $InitializeCommonEvent(0, 90075950, 750000, 19010800, 5106, 0);
269         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006800, 19010800, 5108, 0); 274         $InitializeCommonEvent(0, 90075910, 6001, 7512, 19006800, 19010800, 0, 1);
270         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006801, 19010800, 5108, 0); 275         $InitializeCommonEvent(0, 90075910, 6001, 7512, 19006801, 19010800, 0, 1);
271         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006802, 19010800, 5108, 0); 276         $InitializeCommonEvent(0, 90075910, 6001, 7512, 19006802, 19010800, 0, 1);
272         $InitializeCommonEvent(0, 90075008, 7511, 7512, 0, 19010800, 5108, 0); 277         $InitializeCommonEvent(0, 90075008, 6001, 7512, 0, 19010800, 0, 1);
273     } 278     }
274     if (IsMapVariation(11)) { 279     if (IsMapVariation(11)) {
275         $InitializeCommonEvent(0, 90075161, 19010810); 280         $InitializeCommonEvent(0, 90075161, 19010810);
276         $InitializeCommonEvent(0, 90075102, 19010810); 281         $InitializeCommonEvent(0, 90075102, 19010810);
277         $InitializeCommonEvent(0, 90075900, 19010810); 282         $InitializeCommonEvent(0, 90075900, 19010810);
278         $InitializeCommonEvent(0, 90075901, 19010810, 751000, 907510000); 283         $InitializeCommonEvent(0, 90075901, 19010810, 751000, 907510000);
279         $InitializeCommonEvent(0, 90075902, 19010810, 0, 0); 284         $InitializeCommonEvent(0, 90075902, 19010810, 0, 0);
280         $InitializeCommonEvent(0, 90075950, 751000, 19010810, 5106, 0); 285         $InitializeCommonEvent(0, 90075950, 751000, 19010810, 5106, 0);
281         $InitializeCommonEvent(0, 90015012, 19010810, 7511); 286         $InitializeCommonEvent(0, 90015012, 19010810, 7511);
282         $InitializeCommonEvent(0, 90015020, 7511, 7512); 287         $InitializeCommonEvent(0, 90015020, 7511, 7512);
350         $InitializeCommonEvent(0, 90075264, 19010825, 19010828, 19000322); 355         $InitializeCommonEvent(0, 90075264, 19010825, 19010828, 19000322);
351         $InitializeCommonEvent(0, 90075265, 19010825, 19010828, 47111, 19000322); 356         $InitializeCommonEvent(0, 90075265, 19010825, 19010828, 47111, 19000322);
352         $InitializeCommonEvent(0, 90075260, 19010826, 19010828, 47151, 47153, 19000322); 357         $InitializeCommonEvent(0, 90075260, 19010826, 19010828, 47151, 47153, 19000322);
353         $InitializeCommonEvent(0, 90075261, 19010826, 19010828, 47171, 47191, 19000322, 19000323); 358         $InitializeCommonEvent(0, 90075261, 19010826, 19010828, 47171, 47191, 19000322, 19000323);
354         $InitializeCommonEvent(0, 90075262, 19010826, 19010828, 19010827, 47116, 47191, 19000322, 19000323); 359         $InitializeCommonEvent(0, 90075262, 19010826, 19010828, 19010827, 47116, 47191, 19000322, 19000323);
355         $InitializeCommonEvent(0, 90075264, 19010826, 19010828, 19000322); 360         $InitializeCommonEvent(0, 90075264, 19010826, 19010828, 19000322);
356         $InitializeCommonEvent(0, 90075265, 19010826, 19010828, 47116, 19000322); 361         $InitializeCommonEvent(0, 90075265, 19010826, 19010828, 47116, 19000322);
357     } 362     }
358     if (IsMapVariation(13)) { 363     if (IsMapVariation(13)) {
359         $InitializeCommonEvent(0, 90075900, 19010830); 364         $InitializeCommonEvent(0, 90075900, 19010830);
360         $InitializeCommonEvent(0, 90075901, 19010830, 754000, 907540000); 365         $InitializeCommonEvent(0, 90075901, 19010831, 754000, 907540000);
366         $InitializeCommonEvent(0, 90075902, 19010830, 19010831, 0);
361         $InitializeCommonEvent(0, 90015012, 19010830, 7511); 367         $InitializeCommonEvent(0, 90015012, 19010830, 7511);
368         $InitializeCommonEvent(0, 90015012, 19010831, 7511);
362         $InitializeCommonEvent(0, 90015020, 7511, 7512); 369         $InitializeCommonEvent(0, 90015020, 7511, 7512);
363         $InitializeCommonEvent(0, 90075300, 19010830, 19010220, 19010221); 370         $InitializeCommonEvent(0, 90075350, 19010830, 19010831, 19010220, 19010221);
364         $InitializeCommonEvent(0, 90075301, 19010830, 19015835, 19015836); 371         $InitializeCommonEvent(0, 90075351, 19010830, 19015835, 19015836, 19000230);
372         $InitializeCommonEvent(0, 90075352, 19010830, 19010831, 19000230);
373         $InitializeCommonEvent(0, 90075330, 19010830);
374         $InitializeCommonEvent(0, 90075950, 754000, 19010831, 5106, 0);
375         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006830, 19010830, 5108, 0);
376         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006831, 19010830, 5108, 0);
377         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006832, 19010830, 5108, 0);
378         $InitializeCommonEvent(0, 90075340, 7511, 7512, 0, 19010831, 5108, 0);
379         $InitializeCommonEvent(0, 90075360, 19010831, 45720, 10, NPCPartType.Part10, 1, 223, 12, 45721, 45740, 45725, 45730);
380         $InitializeCommonEvent(0, 90075360, 19010831, 45720, 11, NPCPartType.Part11, 1, 224, 13, 45721, 45741, 45725, 45731);
381         $InitializeCommonEvent(0, 90075360, 19010831, 45720, 12, NPCPartType.Part12, 1, 225, 14, 45721, 45742, 45725, 45732);
382         $InitializeCommonEvent(0, 90075360, 19010831, 45720, 13, NPCPartType.Part13, 1, 226, 10, 45721, 45743, 45725, 45733);
383         $InitializeCommonEvent(0, 90075360, 19010831, 45720, 14, NPCPartType.Part14, 1, 227, 11, 45721, 45744, 45725, 45734);
384     }
385     if (IsMapVariation(13)) {
365         $InitializeCommonEvent(0, 90075310, 19010830, 19010200, 19010201, 19010202, 19010203, 19010204, 19010205, 19010206, 19010207, 19010208, 19010209, 19010210, 19010211, 19010212, 19010213, 19010214, 19010215, 19010216, 19010217, 19010218, 19010219); 386         $InitializeCommonEvent(0, 90075310, 19010830, 19010200, 19010201, 19010202, 19010203, 19010204, 19010205, 19010206, 19010207, 19010208, 19010209, 19010210, 19010211, 19010212, 19010213, 19010214, 19010215, 19010216, 19010217, 19010218, 19010219);
366         $InitializeCommonEvent(0, 90075311, 19010830, 19010200, 19010201, 19010202, 19010203, 19010204, 19010205, 19010206, 19010207, 19010208, 19010209, 19010210, 19010211, 19010212, 19010213, 19010214, 19010215, 19010216, 19010217, 19010218, 19010219); 387         $InitializeCommonEvent(0, 90075311, 19010830, 19010200, 19010201, 19010202, 19010203, 19010204, 19010205, 19010206, 19010207, 19010208, 19010209, 19010210, 19010211, 19010212, 19010213, 19010214, 19010215, 19010216, 19010217, 19010218, 19010219);
367         $InitializeCommonEvent(0, 90075312, 19010830, 19010200, 19010201, 19010202, 19010203, 19010204, 19010205, 19010206, 19010207, 19010208, 19010209, 19010210, 19010211, 19010212, 19010213, 19010214, 19010215, 19010216, 19010217); 388         $InitializeCommonEvent(0, 90075312, 19010830, 19010200, 19010201, 19010202, 19010203, 19010204, 19010205, 19010206, 19010207, 19010208, 19010209, 19010210, 19010211, 19010212, 19010213, 19010214, 19010215, 19010216, 19010217);
368         $InitializeCommonEvent(0, 90075313, 19010830, 19010220, 19010221, 19010222); 389         $InitializeCommonEvent(0, 90075313, 19010830, 19010220, 19010221, 19010222);
369         $InitializeCommonEvent(0, 90075320, 19010830, 19015836); 390         $InitializeCommonEvent(0, 90075320, 19010830, 19015836);
370         $InitializeCommonEvent(0, 90075330, 19010830);
371         $InitializeCommonEvent(0, 90075950, 754000, 19010830, 5106, 0);
372         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006830, 19010830, 5108, 0);
373         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006831, 19010830, 5108, 0);
374         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006832, 19010830, 5108, 0);
375         $InitializeCommonEvent(0, 90075340, 7511, 7512, 0, 19010830, 5108, 0);
376     } 391     }
377     if (IsMapVariation(13)) { 392     if (IsMapVariation(13)) {
378         $InitializeCommonEvent(0, 90075302, 19010830, 19010200); 393         $InitializeCommonEvent(0, 90075302, 19010830, 19010200);
379         $InitializeCommonEvent(0, 90075302, 19010830, 19010201); 394         $InitializeCommonEvent(0, 90075302, 19010830, 19010201);
380         $InitializeCommonEvent(0, 90075302, 19010830, 19010202); 395         $InitializeCommonEvent(0, 90075302, 19010830, 19010202);
381         $InitializeCommonEvent(0, 90075302, 19010830, 19010203); 396         $InitializeCommonEvent(0, 90075302, 19010830, 19010203);
382         $InitializeCommonEvent(0, 90075302, 19010830, 19010204); 397         $InitializeCommonEvent(0, 90075302, 19010830, 19010204);
383         $InitializeCommonEvent(0, 90075302, 19010830, 19010205); 398         $InitializeCommonEvent(0, 90075302, 19010830, 19010205);
384         $InitializeCommonEvent(0, 90075302, 19010830, 19010206); 399         $InitializeCommonEvent(0, 90075302, 19010830, 19010206);
385         $InitializeCommonEvent(0, 90075302, 19010830, 19010207); 400         $InitializeCommonEvent(0, 90075302, 19010830, 19010207);
444         $InitializeCommonEvent(0, 90075302, 19010830, 19010269); 459         $InitializeCommonEvent(0, 90075302, 19010830, 19010269);
445         $InitializeCommonEvent(0, 90075302, 19010830, 19010270); 460         $InitializeCommonEvent(0, 90075302, 19010830, 19010270);
446         $InitializeCommonEvent(0, 90075302, 19010830, 19010271); 461         $InitializeCommonEvent(0, 90075302, 19010830, 19010271);
447         $InitializeCommonEvent(0, 90075302, 19010830, 19010272); 462         $InitializeCommonEvent(0, 90075302, 19010830, 19010272);
448         $InitializeCommonEvent(0, 90075302, 19010830, 19010273); 463         $InitializeCommonEvent(0, 90075302, 19010830, 19010273);
449         $InitializeCommonEvent(0, 90075302, 19010830, 19010274); 464         $InitializeCommonEvent(0, 90075302, 19010830, 19010274);
450         $InitializeCommonEvent(0, 90075302, 19010830, 19010275); 465         $InitializeCommonEvent(0, 90075302, 19010830, 19010275);
451         $InitializeCommonEvent(0, 90075302, 19010830, 19010276); 466         $InitializeCommonEvent(0, 90075302, 19010830, 19010276);
452     } 467     }
453     if (IsMapVariation(14)) { 468     if (IsMapVariation(14)) {
454         $InitializeCommonEvent(0, 90075400, 19010840, 19010849, 19010440, 19010441, 19010442, 19010443, 19010444, 19010445, 19010446, 19010447); 469         $InitializeCommonEvent(0, 90075450, 19010840, 19010849, 19010440, 19010441, 19010442, 19010443, 19010444, 19010445, 19010446, 19010447, 19015842, 19015843, 19015844);
455         $InitializeCommonEvent(0, 90075401, 19010849, 19000240, 19000241, 19000242); 470         $InitializeCommonEvent(0, 90075401, 19010849, 19000240, 19000241, 19000242);
456         $InitializeCommonEvent(0, 90075402, 19010849, 19010840, 19000240, 19000241, 19000242); 471         $InitializeCommonEvent(0, 90075452, 19010849, 19010840, 19000240, 19000241, 19000242);
457         $InitializeCommonEvent(0, 90075403, 19010849, 19004740, 19004741, 19004742, 19000240, 19000242); 472         $InitializeCommonEvent(0, 90075403, 19010849, 19004740, 19004741, 19004742, 19000240, 19000242);
458         if (IsPlayerNo(1)) { 473         if (IsPlayerNo(1)) {
459             $InitializeCommonEvent(0, 90075404, 19000240, 19004743, 19000243, 19004744, 19000246); 474             $InitializeCommonEvent(0, 90075404, 19000240, 19004743, 19000243, 19004744, 19000246);
460         } 475         }
461         if (IsPlayerNo(2)) { 476         if (IsPlayerNo(2)) {
462             $InitializeCommonEvent(0, 90075404, 19000240, 19004743, 19000244, 19004744, 19000247); 477             $InitializeCommonEvent(0, 90075404, 19000240, 19004743, 19000244, 19004744, 19000247);
463         } 478         }
464         if (IsPlayerNo(3)) { 479         if (IsPlayerNo(3)) {
465             $InitializeCommonEvent(0, 90075404, 19000240, 19004743, 19000245, 19004744, 19000248); 480             $InitializeCommonEvent(0, 90075404, 19000240, 19004743, 19000245, 19004744, 19000248);
466         } 481         }
467         $InitializeCommonEvent(0, 90075405, 19000240, 19000241, 19000246, 19000247, 19000248); 482         $InitializeCommonEvent(0, 90075405, 19000240, 19000241, 19000246, 19000247, 19000248);
468         $InitializeCommonEvent(0, 99064506, 19010849, 19000240, 19000701, 19000241); 483         $InitializeCommonEvent(0, 99075406, 19010849, 19000240, 19000701, 19000241);
469         $InitializeCommonEvent(0, 99064510, 19010840); 484         $InitializeCommonEvent(0, 99075410, 19010840);
470         $InitializeCommonEvent(0, 99064520, 19010840); 485         $InitializeCommonEvent(0, 99075420, 19010840);
471         $InitializeCommonEvent(0, 99064521, 19010840); 486         $InitializeCommonEvent(0, 99075421, 19010840);
472         $InitializeCommonEvent(0, 99064522, 19010840, 19002740, 19002741, 19002742, 19002743, 19002744, 19002745, 19002746, 19002747, 19010440, 19010441, 19010442, 19010443, 19010444, 19010445, 19010446, 19010447); 487         $InitializeCommonEvent(0, 99075422, 19010840, 19002740, 19002741, 19002742, 19002743, 19002744, 19002745, 19002746, 19002747, 19010440, 19010441, 19010442, 19010443, 19010444, 19010445, 19010446, 19010447);
473         $InitializeCommonEvent(0, 90075901, 19010840, 756000, 907550000); 488         $InitializeCommonEvent(0, 90075901, 19010840, 756000, 907550000);
489         $InitializeCommonEvent(0, 90075902, 19015840, 0, 0);
490         $InitializeCommonEvent(0, 90075902, 19015842, 19015843, 19015844);
474         $InitializeCommonEvent(0, 90015012, 19015840, 7511); 491         $InitializeCommonEvent(0, 90015012, 19015840, 7511);
492         $InitializeCommonEvent(0, 90015022, 19015842, 7511);
493         $InitializeCommonEvent(0, 90015022, 19015843, 7511);
494         $InitializeCommonEvent(0, 90015022, 19015844, 7511);
475         $InitializeCommonEvent(0, 90015020, 7511, 7512); 495         $InitializeCommonEvent(0, 90015020, 7511, 7512);
476         $InitializeCommonEvent(0, 99064530, 19010840); 496         $InitializeCommonEvent(0, 99075485, 19010840, 19000270);
497         $InitializeCommonEvent(0, 99075486, 19010840);
477         $InitializeCommonEvent(0, 90075950, 756000, 19010840, 5106, 0.5); 498         $InitializeCommonEvent(0, 90075950, 756000, 19010840, 5106, 0.5);
478         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006840, 19010840, 5108, 0); 499         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006840, 19010840, 5108, 0);
479         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006841, 19010840, 5108, 0); 500         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006841, 19010840, 5108, 0);
480         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006842, 19010840, 5108, 0); 501         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006842, 19010840, 5108, 0);
481         $InitializeCommonEvent(0, 99064540, 7511, 7512, 0, 19010840, 5108, 0); 502         $InitializeCommonEvent(0, 99075440, 7511, 7512, 0, 19010840, 5108, 0);
503     }
504     if (IsMapVariation(14)) {
505         $InitializeCommonEvent(0, 90015012, 19015842, 7511);
506         $InitializeCommonEvent(0, 99075466, 19010840, 10002, 19010450, 110, 19011250, 19000250, 19000260);
507         $InitializeCommonEvent(0, 99075468, 19010840, 19010453, 113, 19011253, 19000250, 19000263);
508         $InitializeCommonEvent(0, 99075467, 19010840, 19010450, 19000260);
509         $InitializeCommonEvent(0, 99075467, 19010840, 19010453, 19000253);
510         $InitializeCommonEvent(0, 90015012, 19015843, 7511);
511         $InitializeCommonEvent(0, 99075466, 19010840, 10003, 19010451, 111, 19011251, 19000251, 19000261);
512         $InitializeCommonEvent(0, 99075468, 19010840, 19010454, 114, 19011254, 19000251, 19000264);
513         $InitializeCommonEvent(0, 99075467, 19010840, 19010451, 19000261);
514         $InitializeCommonEvent(0, 99075467, 19010840, 19010454, 19000254);
515         $InitializeCommonEvent(0, 90015012, 19015844, 7511);
516         $InitializeCommonEvent(0, 99075466, 19010840, 10004, 19010452, 112, 19011252, 19000252, 19000262);
517         $InitializeCommonEvent(0, 99075468, 19010840, 19010455, 115, 19011255, 19000252, 19000265);
518         $InitializeCommonEvent(0, 99075467, 19010840, 19010452, 19000262);
519         $InitializeCommonEvent(0, 99075467, 19010840, 19010455, 19000255);
520         $InitializeCommonEvent(0, 99075471, 19010840, 19000250, 19000260, 19000251, 19000261, 19000252, 19000262);
521         $InitializeCommonEvent(0, 99075470, 19010840, 49691, 8002);
522     }
523     if (IsMapVariation(14)) {
524         $InitializeCommonEvent(0, 99075480, 19010840, 20000, 49690, 49702, 0, 49703, 1);
525         $InitializeCommonEvent(0, 99075480, 19010840, 20000, 49690, 446, 0, 447, 1);
526         if (!IsPlayerNo(1)) {
527             $InitializeCommonEvent(0, 99075481, 19010840, 10002);
528         }
529         if (!IsPlayerNo(2)) {
530             $InitializeCommonEvent(0, 99075481, 19010840, 10003);
531         }
532         if (!IsPlayerNo(3)) {
533             $InitializeCommonEvent(0, 99075481, 19010840, 10004);
534         }
535         $InitializeCommonEvent(0, 99075470, 19010840, 49690, 8001);
536     }
537     if (IsMapVariation(14)) {
538         $InitializeCommonEvent(0, 99075480, 19010840, 20000, 49692, 49720, 49721, 0, 0);
539         $InitializeCommonEvent(0, 99075480, 19010840, 20000, 49692, 49723, 0, 49724, 1);
540         $InitializeCommonEvent(0, 99075470, 19010840, 49692, 8003);
541     }
542     if (IsMapVariation(14)) {
543         $InitializeCommonEvent(0, 99075480, 19010840, 20000, 49693, 49731, 0, 49733, 1);
544         $InitializeCommonEvent(0, 99075480, 19010840, 19010450, 49693, 49731, 0, 49733, 1);
545         $InitializeCommonEvent(0, 99075480, 19010840, 19010451, 49693, 49731, 0, 49733, 1);
546         $InitializeCommonEvent(0, 99075480, 19010840, 19010452, 49693, 49731, 0, 49733, 1);
547         $InitializeCommonEvent(0, 99075470, 19010840, 49693, 8004);
548     }
549     if (IsMapVariation(14)) {
550         $InitializeCommonEvent(0, 99075480, 19010840, 20000, 49694, 49742, 0, 49747, 1);
551         $InitializeCommonEvent(0, 99075480, 19010840, 20000, 49694, 49746, 0, 49748, 1);
552         $InitializeCommonEvent(0, 99075480, 19010840, 19010450, 49694, 49741, 0, 49749, 1);
553         $InitializeCommonEvent(0, 99075480, 19010840, 19010451, 49694, 49741, 0, 49749, 1);
554         $InitializeCommonEvent(0, 99075480, 19010840, 19010452, 49694, 49741, 0, 49749, 1);
555         $InitializeCommonEvent(0, 99075470, 19010840, 49694, 8005);
556     }
557     if (IsMapVariation(14)) {
558         $InitializeCommonEvent(0, 99075483, 19010840);
559         $InitializeCommonEvent(0, 99075470, 19010840, 49695, 8006);
560         $InitializeCommonEvent(0, 99075482, 19010840);
482     } 561     }
483     if (IsMapVariation(15)) { 562     if (IsMapVariation(15)) {
484         $InitializeCommonEvent(0, 90075900, 19010850); 563         $InitializeCommonEvent(0, 90075900, 19010850);
485         $InitializeCommonEvent(0, 90075901, 19010850, 760000, 907610000); 564         $InitializeCommonEvent(0, 90075901, 19010850, 760000, 907610000);
565         $InitializeCommonEvent(0, 90075902, 19010850, 0, 0);
486         $InitializeCommonEvent(0, 90075500, 19010850); 566         $InitializeCommonEvent(0, 90075500, 19010850);
487         $InitializeCommonEvent(0, 90075950, 760000, 19010850, 5106, 0); 567         $InitializeCommonEvent(0, 90075950, 760000, 19010850, 5106, 0);
488         $InitializeCommonEvent(0, 90075551, 19010850); 568         $InitializeCommonEvent(0, 90075551, 19010850);
489         $InitializeCommonEvent(0, 90075510, 19010850); 569         $InitializeCommonEvent(0, 90075510, 19010850);
490         $InitializeCommonEvent(0, 90015012, 19010850, 7511); 570         $InitializeCommonEvent(0, 90015012, 19010850, 7511);
491         $InitializeCommonEvent(0, 90015020, 7511, 7512); 571         $InitializeCommonEvent(0, 90015020, 7511, 7512);
492         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006850, 19010850, 5108, 0); 572         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006850, 19010850, 5108, 0);
493         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006851, 19010850, 5108, 0); 573         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006851, 19010850, 5108, 0);
494         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006852, 19010850, 5108, 0); 574         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006852, 19010850, 5108, 0);
495         $InitializeCommonEvent(0, 90075520, 7511, 7512, 0, 19010850, 5108, 0); 575         $InitializeCommonEvent(0, 90075520, 7511, 7512, 0, 19010850, 5108, 0);
496     } 576     }
497     if (IsMapVariation(16)) { 577     if (IsMapVariation(16)) {
498         $InitializeCommonEvent(0, 90075900, 19010860); 578         $InitializeCommonEvent(0, 90075900, 19010860);
499         $InitializeCommonEvent(0, 90075901, 19010860, 490000, 907620000); 579         $InitializeCommonEvent(0, 90075901, 19010860, 490000, 907620000);
580         $InitializeCommonEvent(0, 90075902, 19010860, 0, 0);
500         $InitializeCommonEvent(0, 90075600, 19010860, 19002860); 581         $InitializeCommonEvent(0, 90075600, 19010860, 19002860);
501         $InitializeCommonEvent(0, 90075601, 19010860); 582         $InitializeCommonEvent(0, 90075651, 19010860);
502         $InitializeCommonEvent(0, 90015012, 19010860, 7511); 583         $InitializeCommonEvent(0, 90015012, 19010860, 7511);
503         $InitializeCommonEvent(0, 90015020, 7511, 7512); 584         $InitializeCommonEvent(0, 90015020, 7511, 7512);
504         $InitializeCommonEvent(0, 90075610, 19010860); 585         $InitializeCommonEvent(0, 90075610, 19010860);
586         $InitializeCommonEvent(0, 90075660, 19010860, 51001, 51002, 51030, 15, 120, 10, NPCPartType.Part1, 11, NPCPartType.Part6, 0, NPCPartType.Part1, 0, NPCPartType.Part1, 0, NPCPartType.Part1);
587         $InitializeCommonEvent(0, 90075660, 19010860, 51003, 51004, 51031, 16, 130, 20, NPCPartType.Part2, 21, NPCPartType.Part3, 22, NPCPartType.Part4, 23, NPCPartType.Part5, 24, NPCPartType.Part8);
588         $InitializeCommonEvent(0, 90075660, 19010860, 51005, 51006, 51032, 17, 60, 30, NPCPartType.Part9, 31, NPCPartType.Part10, 32, NPCPartType.Part11, 33, NPCPartType.Part12, 0, NPCPartType.Part1);
589         $InitializeCommonEvent(0, 90075660, 19010860, 51007, 51008, 51033, 18, 120, 40, NPCPartType.Part7, 0, NPCPartType.Part1, 0, NPCPartType.Part1, 0, NPCPartType.Part1, 0, NPCPartType.Part1);
590         $InitializeCommonEvent(0, 90075652, 19010860, 5105, 5106);
505         $InitializeCommonEvent(0, 90075950, 490000, 19010860, 5106, 0); 591         $InitializeCommonEvent(0, 90075950, 490000, 19010860, 5106, 0);
506         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006860, 19010860, 5108, 0); 592         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006860, 19010860, 5108, 0);
507         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006861, 19010860, 5108, 0); 593         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006861, 19010860, 5108, 0);
508         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006862, 19010860, 5108, 0); 594         $InitializeCommonEvent(0, 90075910, 7511, 7512, 19006862, 19010860, 5108, 0);
509         $InitializeCommonEvent(0, 99075620, 7511, 7512, 0, 19010860, 5108, 0); 595         $InitializeCommonEvent(0, 99075620, 7511, 7512, 0, 19010860, 5108, 0);
510         $InitializeCommonEvent(0, 90075602, 19010860); 596         $InitializeCommonEvent(0, 90075602, 19010860);
511     } 597     }
512     if (IsMapVariation(2)) { 598     if (IsMapVariation(2)) {
513         $InitializeEvent(0, 19002890); 599         $InitializeEvent(0, 19002890);
514         $InitializeEvent(0, 19002891); 600         $InitializeEvent(0, 19002891);
572     $InitializeEvent(3, 19004500, 153, 19000830); 658     $InitializeEvent(3, 19004500, 153, 19000830);
573     $InitializeEvent(4, 19004500, 154, 19000840); 659     $InitializeEvent(4, 19004500, 154, 19000840);
574     $InitializeEvent(5, 19004500, 155, 19000850); 660     $InitializeEvent(5, 19004500, 155, 19000850);
575     $InitializeEvent(6, 19004500, 156, 19000860); 661     $InitializeEvent(6, 19004500, 156, 19000860);
576     $InitializeEvent(0, 19002470); 662     $InitializeEvent(0, 19002470);
577 }); 663 });
578 664
579 $Event(19002470, Restart, function() { 665 $Event(19002470, Restart, function() {
580     DisableNetworkSync(); 666     DisableNetworkSync();
581     EndIf(EventFlag(19002470)); 667     EndIf(EventFlag(19002470));
582     WaitFor(EventFlag(7510) && IsPlayMode(0) && PlayerInMap(19, 0, 0, 0)); 668     WaitFor(EventFlag(7510) && PlayerInMap(19, 0, 0, 0));
583     FadeToBlack(1, 0, true, -1); 669     FadeToBlack(1, 0, true, -1);
584     WaitFixedTimeSeconds(2); 670     WaitFixedTimeSeconds(2);
585     FadeToBlack(0, 0.5, false, -1); 671     FadeToBlack(0, 0.5, false, -1);
586     EndEvent(); 672     EndEvent();
587 }); 673 });
588 674
589 $Event(19002590, Default, function() { 675 $Event(19002590, Default, function() {
590     WaitFor(EventFlag(7512)); 676     WaitFor(EventFlag(7512));
591     DisplayTextEffectId(4000); 677     DisplayTextEffectId(4000);
592     WaitFixedTimeSeconds(15); 678     WaitFixedTimeSeconds(15);
diff -rNU 10 nr1.01.7/m30_00_00_00.emevd.dcx.js nr/m30_00_00_00.emevd.dcx.js
nr1.01.7/m30_00_00_00.emevd.dcx.jsnr/m30_00_00_00.emevd.dcx.js
32     GotoIf(S0, Signed(0) != 0); 32     GotoIf(S0, Signed(0) != 0);
33     GotoIf(S0, 0 != 0); 33     GotoIf(S0, 0 != 0);
34     Goto(S2); 34     Goto(S2);
35 S0: 35 S0:
36     GotoIf(S1, 940000 != 0); 36     GotoIf(S1, 940000 != 0);
37     $InitializeCommonEvent(0, 90015008, 0, 30000800, 940000, 30000800, 0, 0); 37     $InitializeCommonEvent(0, 90015008, 0, 30000800, 940000, 30000800, 0, 0);
38     Goto(S2); 38     Goto(S2);
39 S1: 39 S1:
40     $InitializeCommonEvent(0, 90015008, 0, 30000800, 940000, 30000800, 0, 0); 40     $InitializeCommonEvent(0, 90015008, 0, 30000800, 940000, 30000800, 0, 0);
41 S2: 41 S2:
42     if (IsMapVariation(0)) {
43         $InitializeCommonEvent(0, 90015050, 30000800, 8160);
44     }
42     if (940000 == 0) { 45     if (940000 == 0) {
43         $InitializeCommonEvent(0, 90015007, 0, 30000810, 30002810, 30, 904470000, 0, 0); 46         $InitializeCommonEvent(0, 90015007, 0, 30000810, 30002810, 30, 904470000, 0, 0);
44         $InitializeCommonEvent(0, 90015031, 0, 30000810, 30002810, 30, 940000, 0); 47         $InitializeCommonEvent(0, 90015031, 0, 30000810, 30002810, 30, 940000, 0);
45     } else { 48     } else {
46         $InitializeCommonEvent(0, 90015007, 0, 30000810, 30002810, 30, 904470000, 0, 0); 49         $InitializeCommonEvent(0, 90015007, 0, 30000810, 30002810, 30, 904470000, 0, 0);
47         $InitializeCommonEvent(0, 90015031, 0, 30000810, 30002810, 30, 940000, 0); 50         $InitializeCommonEvent(0, 90015031, 0, 30000810, 30002810, 30, 940000, 0);
48     } 51     }
49     $InitializeCommonEvent(0, 90015002, 0, 0, 30000810, 30000810, 1030, 940000, 11200, 904470000, 30000810); 52     $InitializeCommonEvent(0, 90015002, 0, 0, 30000810, 30000810, 1030, 940000, 11200, 904470000, 30000810);
50     $InitializeCommonEvent(0, 90015006, 30001510, 30000510, 30000810, 5); 53     $InitializeCommonEvent(0, 90015006, 30001510, 30000510, 30000810, 5);
51     $InitializeCommonEvent(0, 90015005, 30001510, 30002810, 30000810); 54     $InitializeCommonEvent(0, 90015005, 30001510, 30002810, 30000810);
52     GotoIf(S3, Signed(0) != 0); 55     GotoIf(S3, Signed(0) != 0);
53     GotoIf(S3, 0 != 0); 56     GotoIf(S3, 0 != 0);
54     Goto(S5); 57     Goto(S5);
55 S3: 58 S3:
56     GotoIf(S4, 940000 != 0); 59     GotoIf(S4, 940000 != 0);
57     $InitializeCommonEvent(0, 90015008, 0, 30000810, 940000, 30000810, 0, 0); 60     $InitializeCommonEvent(0, 90015008, 0, 30000810, 940000, 30000810, 0, 0);
58     Goto(S5); 61     Goto(S5);
59 S4: 62 S4:
60     $InitializeCommonEvent(0, 90015008, 0, 30000810, 940000, 30000810, 0, 0); 63     $InitializeCommonEvent(0, 90015008, 0, 30000810, 940000, 30000810, 0, 0);
61 S5: 64 S5:
65     if (IsMapVariation(1)) {
66         $InitializeCommonEvent(0, 90015050, 30000810, 8160);
67     }
62     $InitializeEvent(0, 30002930, 30005210, 30002200); 68     $InitializeEvent(0, 30002930, 30005210, 30002200);
63     $InitializeEvent(1, 30002930, 30005211, 30002201); 69     $InitializeEvent(1, 30002930, 30005211, 30002201);
64     $InitializeCommonEvent(0, 90015009, 30008000, 30001600, 0, 0); 70     $InitializeCommonEvent(0, 90015009, 30008000, 30001600, 0, 0);
65     $InitializeCommonEvent(1, 90015009, 30008000, 30001600, 1, 0); 71     $InitializeCommonEvent(1, 90015009, 30008000, 30001600, 1, 0);
66     $InitializeCommonEvent(0, 90085700, 701, 8475, 0, 30000800); 72     $InitializeCommonEvent(0, 90085700, 701, 8475, 0, 30000800);
67     $InitializeCommonEvent(0, 90085700, 701, 8475, 1, 30000810); 73     $InitializeCommonEvent(0, 90085700, 701, 8475, 1, 30000810);
68 }); 74 });
69 75
70 $Event(30002900, Restart, function() { 76 $Event(30002900, Restart, function() {
71     WaitFor(!InsidePlayArea(30000239, 0)); 77     WaitFor(!InsidePlayArea(30000239, 0));
diff -rNU 10 nr1.01.7/m30_30_00_00.emevd.dcx.js nr/m30_30_00_00.emevd.dcx.js
nr1.01.7/m30_30_00_00.emevd.dcx.jsnr/m30_30_00_00.emevd.dcx.js
30     GotoIf(S0, Signed(0) != 0); 30     GotoIf(S0, Signed(0) != 0);
31     GotoIf(S0, 0 != 0); 31     GotoIf(S0, 0 != 0);
32     Goto(S2); 32     Goto(S2);
33 S0: 33 S0:
34     GotoIf(S1, 940000 != 0); 34     GotoIf(S1, 940000 != 0);
35     $InitializeCommonEvent(0, 90015008, 0, 30300800, 940000, 30300800, 0, 0); 35     $InitializeCommonEvent(0, 90015008, 0, 30300800, 940000, 30300800, 0, 0);
36     Goto(S2); 36     Goto(S2);
37 S1: 37 S1:
38     $InitializeCommonEvent(0, 90015008, 0, 30300800, 940000, 30300800, 0, 0); 38     $InitializeCommonEvent(0, 90015008, 0, 30300800, 940000, 30300800, 0, 0);
39 S2: 39 S2:
40     if (IsMapVariation(0)) {
41         $InitializeCommonEvent(0, 90015050, 30300800, 8160);
42     }
40     if (940000 == 0) { 43     if (940000 == 0) {
41         $InitializeCommonEvent(0, 90015007, 0, 30305810, 30302810, 30, 903350323, 0, 0); 44         $InitializeCommonEvent(0, 90015007, 0, 30305810, 30302810, 30, 903350323, 0, 0);
42         $InitializeCommonEvent(0, 90015031, 0, 30305810, 30302810, 30, 940000, 0); 45         $InitializeCommonEvent(0, 90015031, 0, 30305810, 30302810, 30, 940000, 0);
43     } else { 46     } else {
44         $InitializeCommonEvent(0, 90015007, 0, 30305810, 30302810, 30, 903350323, 0, 0); 47         $InitializeCommonEvent(0, 90015007, 0, 30305810, 30302810, 30, 903350323, 0, 0);
45         $InitializeCommonEvent(0, 90015031, 0, 30305810, 30302810, 30, 940000, 0); 48         $InitializeCommonEvent(0, 90015031, 0, 30305810, 30302810, 30, 940000, 0);
46     } 49     }
47     $InitializeCommonEvent(0, 90015002, 0, 0, 30300810, 30305810, 1030, 940000, 11200, 903350323, 30300510); 50     $InitializeCommonEvent(0, 90015002, 0, 0, 30300810, 30305810, 1030, 940000, 11200, 903350323, 30300510);
48     $InitializeCommonEvent(0, 90015006, 30301510, 30300510, 30300810, 5); 51     $InitializeCommonEvent(0, 90015006, 30301510, 30300510, 30300810, 5);
49     $InitializeCommonEvent(0, 90015005, 30301510, 30302810, 30300810); 52     $InitializeCommonEvent(0, 90015005, 30301510, 30302810, 30300810);
50     GotoIf(S3, Signed(0) != 0); 53     GotoIf(S3, Signed(0) != 0);
51     GotoIf(S3, 0 != 0); 54     GotoIf(S3, 0 != 0);
52     Goto(S5); 55     Goto(S5);
53 S3: 56 S3:
54     GotoIf(S4, 940000 != 0); 57     GotoIf(S4, 940000 != 0);
55     $InitializeCommonEvent(0, 90015008, 0, 30300810, 940000, 30305810, 0, 0); 58     $InitializeCommonEvent(0, 90015008, 0, 30300810, 940000, 30305810, 0, 0);
56     Goto(S5); 59     Goto(S5);
57 S4: 60 S4:
58     $InitializeCommonEvent(0, 90015008, 0, 30300810, 940000, 30305810, 0, 0); 61     $InitializeCommonEvent(0, 90015008, 0, 30300810, 940000, 30305810, 0, 0);
59 S5: 62 S5:
63     if (IsMapVariation(1)) {
64         $InitializeCommonEvent(0, 90015050, 30300810, 8160);
65     }
60     $InitializeEvent(0, 30302700); 66     $InitializeEvent(0, 30302700);
61     $InitializeEvent(0, 30302710, 30301210, 30302510, 30301211); 67     $InitializeEvent(0, 30302710, 30301210, 30302510, 30301211);
62     $InitializeEvent(1, 30302710, 30301211, 30302511, 30301210); 68     $InitializeEvent(1, 30302710, 30301211, 30302511, 30301210);
63     $InitializeEvent(0, 30302900, 30300800); 69     $InitializeEvent(0, 30302900, 30300800);
64     $InitializeEvent(0, 30302910, 30300800); 70     $InitializeEvent(0, 30302910, 30300800);
65     $InitializeEvent(0, 30302500); 71     $InitializeEvent(0, 30302500);
66     $InitializeEvent(0, 30302501); 72     $InitializeEvent(0, 30302501);
67     $InitializeEvent(0, 30302630, 30305200, 30302210); 73     $InitializeEvent(0, 30302630, 30305200, 30302210);
68     $InitializeEvent(1, 30302630, 30305201, 30302211); 74     $InitializeEvent(1, 30302630, 30305201, 30302211);
69     $InitializeEvent(2, 30302630, 30305202, 30302800); 75     $InitializeEvent(2, 30302630, 30305202, 30302800);
diff -rNU 10 nr1.01.7/m32_00_00_00.emevd.dcx.js nr/m32_00_00_00.emevd.dcx.js
nr1.01.7/m32_00_00_00.emevd.dcx.jsnr/m32_00_00_00.emevd.dcx.js
30     GotoIf(S0, Signed(0) != 0); 30     GotoIf(S0, Signed(0) != 0);
31     GotoIf(S0, 0 != 0); 31     GotoIf(S0, 0 != 0);
32     Goto(S2); 32     Goto(S2);
33 S0: 33 S0:
34     GotoIf(S1, 940000 != 0); 34     GotoIf(S1, 940000 != 0);
35     $InitializeCommonEvent(0, 90015008, 0, 32000800, 940000, 32005800, 0, 0); 35     $InitializeCommonEvent(0, 90015008, 0, 32000800, 940000, 32005800, 0, 0);
36     Goto(S2); 36     Goto(S2);
37 S1: 37 S1:
38     $InitializeCommonEvent(0, 90015008, 0, 32000800, 940000, 32005800, 0, 0); 38     $InitializeCommonEvent(0, 90015008, 0, 32000800, 940000, 32005800, 0, 0);
39 S2: 39 S2:
40     if (IsMapVariation(0)) {
41         $InitializeCommonEvent(0, 90015050, 32000800, 8165);
42     }
40     if (940000 == 0) { 43     if (940000 == 0) {
41         $InitializeCommonEvent(0, 90015007, 0, 32000810, 32002810, 30, 904270600, 0, 0); 44         $InitializeCommonEvent(0, 90015007, 0, 32000810, 32002810, 30, 904270600, 0, 0);
42         $InitializeCommonEvent(0, 90015031, 0, 32000810, 32002810, 30, 940000, 0); 45         $InitializeCommonEvent(0, 90015031, 0, 32000810, 32002810, 30, 940000, 0);
43     } else { 46     } else {
44         $InitializeCommonEvent(0, 90015007, 0, 32000810, 32002810, 30, 904270600, 0, 0); 47         $InitializeCommonEvent(0, 90015007, 0, 32000810, 32002810, 30, 904270600, 0, 0);
45         $InitializeCommonEvent(0, 90015031, 0, 32000810, 32002810, 30, 940000, 0); 48         $InitializeCommonEvent(0, 90015031, 0, 32000810, 32002810, 30, 940000, 0);
46     } 49     }
47     $InitializeCommonEvent(0, 90015002, 0, 0, 32000810, 32000810, 1030, 940000, 11200, 904270600, 32000810); 50     $InitializeCommonEvent(0, 90015002, 0, 0, 32000810, 32000810, 1030, 940000, 11200, 904270600, 32000810);
48     $InitializeCommonEvent(0, 90015006, 32001510, 32000510, 32000810, 5); 51     $InitializeCommonEvent(0, 90015006, 32001510, 32000510, 32000810, 5);
49     $InitializeCommonEvent(0, 90015005, 32001510, 32002810, 32000810); 52     $InitializeCommonEvent(0, 90015005, 32001510, 32002810, 32000810);
50     GotoIf(S3, Signed(0) != 0); 53     GotoIf(S3, Signed(0) != 0);
51     GotoIf(S3, 0 != 0); 54     GotoIf(S3, 0 != 0);
52     Goto(S5); 55     Goto(S5);
53 S3: 56 S3:
54     GotoIf(S4, 940000 != 0); 57     GotoIf(S4, 940000 != 0);
55     $InitializeCommonEvent(0, 90015008, 0, 32000810, 940000, 32000810, 0, 0); 58     $InitializeCommonEvent(0, 90015008, 0, 32000810, 940000, 32000810, 0, 0);
56     Goto(S5); 59     Goto(S5);
57 S4: 60 S4:
58     $InitializeCommonEvent(0, 90015008, 0, 32000810, 940000, 32000810, 0, 0); 61     $InitializeCommonEvent(0, 90015008, 0, 32000810, 940000, 32000810, 0, 0);
59 S5: 62 S5:
63     if (IsMapVariation(1)) {
64         $InitializeCommonEvent(0, 90015050, 32000810, 8165);
65     }
60     $InitializeCommonEvent(0, 90085700, 701, 8475, 0, 32000800); 66     $InitializeCommonEvent(0, 90085700, 701, 8475, 0, 32000800);
61     $InitializeCommonEvent(0, 90085700, 701, 8475, 1, 32000810); 67     $InitializeCommonEvent(0, 90085700, 701, 8475, 1, 32000810);
62 }); 68 });
63 69
64 $Event(32002900, Default, function(eventFlagId, chrEntityId, nameId) { 70 $Event(32002900, Default, function(eventFlagId, chrEntityId, nameId) {
65     DisableNetworkSync(); 71     DisableNetworkSync();
66     if (eventFlagId != 0) { 72     if (eventFlagId != 0) {
67         WaitFor(EventFlag(eventFlagId)); 73         WaitFor(EventFlag(eventFlagId));
68     } 74     }
69     WaitFor( 75     WaitFor(
diff -rNU 10 nr1.01.7/m32_10_00_00.emevd.dcx.js nr/m32_10_00_00.emevd.dcx.js
nr1.01.7/m32_10_00_00.emevd.dcx.jsnr/m32_10_00_00.emevd.dcx.js
30     GotoIf(S0, Signed(0) != 0); 30     GotoIf(S0, Signed(0) != 0);
31     GotoIf(S0, 0 != 0); 31     GotoIf(S0, 0 != 0);
32     Goto(S2); 32     Goto(S2);
33 S0: 33 S0:
34     GotoIf(S1, 940000 != 0); 34     GotoIf(S1, 940000 != 0);
35     $InitializeCommonEvent(0, 90015008, 0, 32100800, 940000, 32100800, 0, 0); 35     $InitializeCommonEvent(0, 90015008, 0, 32100800, 940000, 32100800, 0, 0);
36     Goto(S2); 36     Goto(S2);
37 S1: 37 S1:
38     $InitializeCommonEvent(0, 90015008, 0, 32100800, 940000, 32100800, 0, 0); 38     $InitializeCommonEvent(0, 90015008, 0, 32100800, 940000, 32100800, 0, 0);
39 S2: 39 S2:
40     if (IsMapVariation(0)) {
41         $InitializeCommonEvent(0, 90015050, 32100800, 8165);
42     }
40     if (940000 == 0) { 43     if (940000 == 0) {
41         $InitializeCommonEvent(0, 90015007, 0, 32105810, 32102810, 30, 904354000, 0, 0); 44         $InitializeCommonEvent(0, 90015007, 0, 32105810, 32102810, 30, 904354000, 0, 0);
42         $InitializeCommonEvent(0, 90015031, 0, 32105810, 32102810, 30, 940000, 0); 45         $InitializeCommonEvent(0, 90015031, 0, 32105810, 32102810, 30, 940000, 0);
43     } else { 46     } else {
44         $InitializeCommonEvent(0, 90015007, 0, 32105810, 32102810, 30, 904354000, 0, 0); 47         $InitializeCommonEvent(0, 90015007, 0, 32105810, 32102810, 30, 904354000, 0, 0);
45         $InitializeCommonEvent(0, 90015031, 0, 32105810, 32102810, 30, 940000, 0); 48         $InitializeCommonEvent(0, 90015031, 0, 32105810, 32102810, 30, 940000, 0);
46     } 49     }
47     $InitializeCommonEvent(0, 90015002, 0, 0, 32100810, 32105810, 1030, 940000, 11200, 904354000, 32100510); 50     $InitializeCommonEvent(0, 90015002, 0, 0, 32100810, 32105810, 1030, 940000, 11200, 904354000, 32100510);
48     $InitializeCommonEvent(0, 90015006, 32101510, 32100510, 32100810, 5); 51     $InitializeCommonEvent(0, 90015006, 32101510, 32100510, 32100810, 5);
49     $InitializeCommonEvent(0, 90015005, 32101510, 32102810, 32100810); 52     $InitializeCommonEvent(0, 90015005, 32101510, 32102810, 32100810);
50     GotoIf(S3, Signed(0) != 0); 53     GotoIf(S3, Signed(0) != 0);
51     GotoIf(S3, 0 != 0); 54     GotoIf(S3, 0 != 0);
52     Goto(S5); 55     Goto(S5);
53 S3: 56 S3:
54     GotoIf(S4, 940000 != 0); 57     GotoIf(S4, 940000 != 0);
55     $InitializeCommonEvent(0, 90015008, 0, 32100810, 940000, 32105810, 0, 0); 58     $InitializeCommonEvent(0, 90015008, 0, 32100810, 940000, 32105810, 0, 0);
56     Goto(S5); 59     Goto(S5);
57 S4: 60 S4:
58     $InitializeCommonEvent(0, 90015008, 0, 32100810, 940000, 32105810, 0, 0); 61     $InitializeCommonEvent(0, 90015008, 0, 32100810, 940000, 32105810, 0, 0);
59 S5: 62 S5:
63     if (IsMapVariation(1)) {
64         $InitializeCommonEvent(0, 90015050, 32100810, 8165);
65     }
60     if (940000 == 0) { 66     if (940000 == 0) {
61         $InitializeCommonEvent(0, 90015007, 0, 32105820, 32102820, 30, 904353000, 0, 0); 67         $InitializeCommonEvent(0, 90015007, 0, 32105820, 32102820, 30, 904353000, 0, 0);
62         $InitializeCommonEvent(0, 90015031, 0, 32105820, 32102820, 30, 940000, 0); 68         $InitializeCommonEvent(0, 90015031, 0, 32105820, 32102820, 30, 940000, 0);
63     } else { 69     } else {
64         $InitializeCommonEvent(0, 90015007, 0, 32105820, 32102820, 30, 904353000, 0, 0); 70         $InitializeCommonEvent(0, 90015007, 0, 32105820, 32102820, 30, 904353000, 0, 0);
65         $InitializeCommonEvent(0, 90015031, 0, 32105820, 32102820, 30, 940000, 0); 71         $InitializeCommonEvent(0, 90015031, 0, 32105820, 32102820, 30, 940000, 0);
66     } 72     }
67     $InitializeCommonEvent(0, 90015002, 0, 0, 32100820, 32105820, 1030, 940000, 11200, 904353000, 32100520); 73     $InitializeCommonEvent(0, 90015002, 0, 0, 32100820, 32105820, 1030, 940000, 11200, 904353000, 32100520);
68     $InitializeCommonEvent(0, 90015006, 32101520, 32100520, 32100820, 5); 74     $InitializeCommonEvent(0, 90015006, 32101520, 32100520, 32100820, 5);
69     $InitializeCommonEvent(0, 90015005, 32101520, 32102820, 32100820); 75     $InitializeCommonEvent(0, 90015005, 32101520, 32102820, 32100820);
70     GotoIf(S6, Signed(0) != 0); 76     GotoIf(S6, Signed(0) != 0);
71     GotoIf(S6, 0 != 0); 77     GotoIf(S6, 0 != 0);
72     Goto(S8); 78     Goto(S8);
73 S6: 79 S6:
74     GotoIf(S7, 940000 != 0); 80     GotoIf(S7, 940000 != 0);
75     $InitializeCommonEvent(0, 90015008, 0, 32100820, 940000, 32105820, 0, 0); 81     $InitializeCommonEvent(0, 90015008, 0, 32100820, 940000, 32105820, 0, 0);
76     Goto(S8); 82     Goto(S8);
77 S7: 83 S7:
78     $InitializeCommonEvent(0, 90015008, 0, 32100820, 940000, 32105820, 0, 0); 84     $InitializeCommonEvent(0, 90015008, 0, 32100820, 940000, 32105820, 0, 0);
79 S8: 85 S8:
86     if (IsMapVariation(2)) {
87         $InitializeCommonEvent(0, 90015050, 32100820, 8165);
88     }
80     $InitializeCommonEvent(0, 90085700, 701, 8475, 0, 32100800); 89     $InitializeCommonEvent(0, 90085700, 701, 8475, 0, 32100800);
81     $InitializeCommonEvent(0, 90085700, 701, 8475, 1, 32100810); 90     $InitializeCommonEvent(0, 90085700, 701, 8475, 1, 32100810);
82     $InitializeCommonEvent(0, 90085700, 701, 8475, 2, 32100820); 91     $InitializeCommonEvent(0, 90085700, 701, 8475, 2, 32100820);
83 }); 92 });
84 93
diff -rNU 10 nr1.01.7/m32_20_00_00.emevd.dcx.js nr/m32_20_00_00.emevd.dcx.js
nr1.01.7/m32_20_00_00.emevd.dcx.jsnr/m32_20_00_00.emevd.dcx.js
30     GotoIf(S0, Signed(0) != 0); 30     GotoIf(S0, Signed(0) != 0);
31     GotoIf(S0, 0 != 0); 31     GotoIf(S0, 0 != 0);
32     Goto(S2); 32     Goto(S2);
33 S0: 33 S0:
34     GotoIf(S1, 940000 != 0); 34     GotoIf(S1, 940000 != 0);
35     $InitializeCommonEvent(0, 90015008, 0, 32200800, 940000, 32205800, 0, 0); 35     $InitializeCommonEvent(0, 90015008, 0, 32200800, 940000, 32205800, 0, 0);
36     Goto(S2); 36     Goto(S2);
37 S1: 37 S1:
38     $InitializeCommonEvent(0, 90015008, 0, 32200800, 940000, 32205800, 0, 0); 38     $InitializeCommonEvent(0, 90015008, 0, 32200800, 940000, 32205800, 0, 0);
39 S2: 39 S2:
40     if (IsMapVariation(0)) {
41         $InitializeCommonEvent(0, 90015050, 32200800, 8165);
42     }
40     if (940000 == 0) { 43     if (940000 == 0) {
41         $InitializeCommonEvent(0, 90015007, 0, 32200810, 32202810, 30, 904600600, 0, 0); 44         $InitializeCommonEvent(0, 90015007, 0, 32200810, 32202810, 30, 904600600, 0, 0);
42         $InitializeCommonEvent(0, 90015031, 0, 32200810, 32202810, 30, 940000, 0); 45         $InitializeCommonEvent(0, 90015031, 0, 32200810, 32202810, 30, 940000, 0);
43     } else { 46     } else {
44         $InitializeCommonEvent(0, 90015007, 0, 32200810, 32202810, 30, 904600600, 0, 0); 47         $InitializeCommonEvent(0, 90015007, 0, 32200810, 32202810, 30, 904600600, 0, 0);
45         $InitializeCommonEvent(0, 90015031, 0, 32200810, 32202810, 30, 940000, 0); 48         $InitializeCommonEvent(0, 90015031, 0, 32200810, 32202810, 30, 940000, 0);
46     } 49     }
47     $InitializeCommonEvent(0, 90015002, 0, 0, 32200810, 32200810, 1030, 940000, 11200, 904600600, 32200810); 50     $InitializeCommonEvent(0, 90015002, 0, 0, 32200810, 32200810, 1030, 940000, 11200, 904600600, 32200810);
48     $InitializeCommonEvent(0, 90015006, 32201510, 32200510, 32200810, 5); 51     $InitializeCommonEvent(0, 90015006, 32201510, 32200510, 32200810, 5);
49     $InitializeCommonEvent(0, 90015005, 32201510, 32202810, 32200810); 52     $InitializeCommonEvent(0, 90015005, 32201510, 32202810, 32200810);
50     GotoIf(S3, Signed(0) != 0); 53     GotoIf(S3, Signed(0) != 0);
51     GotoIf(S3, 0 != 0); 54     GotoIf(S3, 0 != 0);
52     Goto(S5); 55     Goto(S5);
53 S3: 56 S3:
54     GotoIf(S4, 940000 != 0); 57     GotoIf(S4, 940000 != 0);
55     $InitializeCommonEvent(0, 90015008, 0, 32200810, 940000, 32200810, 0, 0); 58     $InitializeCommonEvent(0, 90015008, 0, 32200810, 940000, 32200810, 0, 0);
56     Goto(S5); 59     Goto(S5);
57 S4: 60 S4:
58     $InitializeCommonEvent(0, 90015008, 0, 32200810, 940000, 32200810, 0, 0); 61     $InitializeCommonEvent(0, 90015008, 0, 32200810, 940000, 32200810, 0, 0);
59 S5: 62 S5:
63     if (IsMapVariation(1)) {
64         $InitializeCommonEvent(0, 90015050, 32200810, 8165);
65     }
60     $InitializeEvent(0, 32202600); 66     $InitializeEvent(0, 32202600);
61     $InitializeCommonEvent(0, 90085700, 701, 8475, 0, 32200800); 67     $InitializeCommonEvent(0, 90085700, 701, 8475, 0, 32200800);
62     $InitializeCommonEvent(0, 90085700, 701, 8475, 1, 32200810); 68     $InitializeCommonEvent(0, 90085700, 701, 8475, 1, 32200810);
63 }); 69 });
64 70
65 $Event(32202600, Restart, function() { 71 $Event(32202600, Restart, function() {
66     if (!IsMapVariation(0)) { 72     if (!IsMapVariation(0)) {
67         DeleteMapSFX(32202600, false); 73         DeleteMapSFX(32202600, false);
68         DeleteMapSFX(32202601, false); 74         DeleteMapSFX(32202601, false);
69         DeleteMapSFX(32202602, false); 75         DeleteMapSFX(32202602, false);
diff -rNU 10 nr1.01.7/m34_00_00_00.emevd.dcx.js nr/m34_00_00_00.emevd.dcx.js
nr1.01.7/m34_00_00_00.emevd.dcx.jsnr/m34_00_00_00.emevd.dcx.js
30     GotoIf(S0, Signed(0) != 0); 30     GotoIf(S0, Signed(0) != 0);
31     GotoIf(S0, 0 != 0); 31     GotoIf(S0, 0 != 0);
32     Goto(S2); 32     Goto(S2);
33 S0: 33 S0:
34     GotoIf(S1, 940000 != 0); 34     GotoIf(S1, 940000 != 0);
35     $InitializeCommonEvent(0, 90015008, 0, 34000800, 940000, 34005800, 0, 0); 35     $InitializeCommonEvent(0, 90015008, 0, 34000800, 940000, 34005800, 0, 0);
36     Goto(S2); 36     Goto(S2);
37 S1: 37 S1:
38     $InitializeCommonEvent(0, 90015008, 0, 34000800, 940000, 34005800, 0, 0); 38     $InitializeCommonEvent(0, 90015008, 0, 34000800, 940000, 34005800, 0, 0);
39 S2: 39 S2:
40     if (IsMapVariation(0)) {
41         $InitializeCommonEvent(0, 90015050, 34000800, 8170);
42     }
40     if (940000 == 0) { 43     if (940000 == 0) {
41         $InitializeCommonEvent(0, 90015007, 0, 34000810, 34002810, 30, 903550541, 0, 0); 44         $InitializeCommonEvent(0, 90015007, 0, 34000810, 34002810, 30, 903550541, 0, 0);
42         $InitializeCommonEvent(0, 90015031, 0, 34000810, 34002810, 30, 940000, 0); 45         $InitializeCommonEvent(0, 90015031, 0, 34000810, 34002810, 30, 940000, 0);
43     } else { 46     } else {
44         $InitializeCommonEvent(0, 90015007, 0, 34000810, 34002810, 30, 903550541, 0, 0); 47         $InitializeCommonEvent(0, 90015007, 0, 34000810, 34002810, 30, 903550541, 0, 0);
45         $InitializeCommonEvent(0, 90015031, 0, 34000810, 34002810, 30, 940000, 0); 48         $InitializeCommonEvent(0, 90015031, 0, 34000810, 34002810, 30, 940000, 0);
46     } 49     }
47     $InitializeCommonEvent(0, 90015002, 0, 0, 34000810, 34000810, 1030, 940000, 11200, 903550541, 34000810); 50     $InitializeCommonEvent(0, 90015002, 0, 0, 34000810, 34000810, 1030, 940000, 11200, 903550541, 34000810);
48     $InitializeCommonEvent(0, 90015006, 34001510, 34000510, 34000810, 5); 51     $InitializeCommonEvent(0, 90015006, 34001510, 34000510, 34000810, 5);
49     $InitializeCommonEvent(0, 90015005, 34001510, 34002810, 34000810); 52     $InitializeCommonEvent(0, 90015005, 34001510, 34002810, 34000810);
50     GotoIf(S3, Signed(0) != 0); 53     GotoIf(S3, Signed(0) != 0);
51     GotoIf(S3, 0 != 0); 54     GotoIf(S3, 0 != 0);
52     Goto(S5); 55     Goto(S5);
53 S3: 56 S3:
54     GotoIf(S4, 940000 != 0); 57     GotoIf(S4, 940000 != 0);
55     $InitializeCommonEvent(0, 90015008, 0, 34000810, 940000, 34000810, 0, 0); 58     $InitializeCommonEvent(0, 90015008, 0, 34000810, 940000, 34000810, 0, 0);
56     Goto(S5); 59     Goto(S5);
57 S4: 60 S4:
58     $InitializeCommonEvent(0, 90015008, 0, 34000810, 940000, 34000810, 0, 0); 61     $InitializeCommonEvent(0, 90015008, 0, 34000810, 940000, 34000810, 0, 0);
59 S5: 62 S5:
63     if (IsMapVariation(1)) {
64         $InitializeCommonEvent(0, 90015050, 34000810, 8170);
65     }
60     if (940000 == 0) { 66     if (940000 == 0) {
61         $InitializeCommonEvent(0, 90015007, 0, 34005820, 34002820, 30, 907100530, 0, 0); 67         $InitializeCommonEvent(0, 90015007, 0, 34005820, 34002820, 30, 907100530, 0, 0);
62         $InitializeCommonEvent(0, 90015031, 0, 34005820, 34002820, 30, 940000, 0); 68         $InitializeCommonEvent(0, 90015031, 0, 34005820, 34002820, 30, 940000, 0);
63     } else { 69     } else {
64         $InitializeCommonEvent(0, 90015007, 0, 34005820, 34002820, 30, 907100530, 0, 0); 70         $InitializeCommonEvent(0, 90015007, 0, 34005820, 34002820, 30, 907100530, 0, 0);
65         $InitializeCommonEvent(0, 90015031, 0, 34005820, 34002820, 30, 940000, 0); 71         $InitializeCommonEvent(0, 90015031, 0, 34005820, 34002820, 30, 940000, 0);
66     } 72     }
67     $InitializeCommonEvent(0, 90015002, 0, 0, 34000820, 34005820, 1030, 940000, 11200, 907100530, 34000520); 73     $InitializeCommonEvent(0, 90015002, 0, 0, 34000820, 34005820, 1030, 940000, 11200, 907100530, 34000520);
68     $InitializeCommonEvent(0, 90015006, 34001520, 34000520, 34000820, 5); 74     $InitializeCommonEvent(0, 90015006, 34001520, 34000520, 34000820, 5);
69     $InitializeCommonEvent(0, 90015005, 34001520, 34002820, 34000820); 75     $InitializeCommonEvent(0, 90015005, 34001520, 34002820, 34000820);
70     GotoIf(S6, Signed(0) != 0); 76     GotoIf(S6, Signed(0) != 0);
71     GotoIf(S6, 0 != 0); 77     GotoIf(S6, 0 != 0);
72     Goto(S8); 78     Goto(S8);
73 S6: 79 S6:
74     GotoIf(S7, 940000 != 0); 80     GotoIf(S7, 940000 != 0);
75     $InitializeCommonEvent(0, 90015008, 0, 34000820, 940000, 34005820, 0, 0); 81     $InitializeCommonEvent(0, 90015008, 0, 34000820, 940000, 34005820, 0, 0);
76     Goto(S8); 82     Goto(S8);
77 S7: 83 S7:
78     $InitializeCommonEvent(0, 90015008, 0, 34000820, 940000, 34005820, 0, 0); 84     $InitializeCommonEvent(0, 90015008, 0, 34000820, 940000, 34005820, 0, 0);
79 S8: 85 S8:
86     if (IsMapVariation(2)) {
87         $InitializeCommonEvent(0, 90015050, 34000820, 8170);
88     }
80     if (940000 == 0) { 89     if (940000 == 0) {
81         $InitializeCommonEvent(0, 90015007, 0, 34005830, 34002830, 30, 903471000, 0, 0); 90         $InitializeCommonEvent(0, 90015007, 0, 34005830, 34002830, 30, 903471000, 0, 0);
82         $InitializeCommonEvent(0, 90015031, 0, 34005830, 34002830, 30, 940000, 0); 91         $InitializeCommonEvent(0, 90015031, 0, 34005830, 34002830, 30, 940000, 0);
83     } else { 92     } else {
84         $InitializeCommonEvent(0, 90015007, 0, 34005830, 34002830, 30, 903471000, 0, 0); 93         $InitializeCommonEvent(0, 90015007, 0, 34005830, 34002830, 30, 903471000, 0, 0);
85         $InitializeCommonEvent(0, 90015031, 0, 34005830, 34002830, 30, 940000, 0); 94         $InitializeCommonEvent(0, 90015031, 0, 34005830, 34002830, 30, 940000, 0);
86     } 95     }
87     $InitializeCommonEvent(0, 90015002, 0, 0, 34000830, 34005830, 1030, 940000, 11200, 903471000, 34000530); 96     $InitializeCommonEvent(0, 90015002, 0, 0, 34000830, 34005830, 1030, 940000, 11200, 903471000, 34000530);
88     $InitializeCommonEvent(0, 90015006, 34001530, 34000530, 34000830, 5); 97     $InitializeCommonEvent(0, 90015006, 34001530, 34000530, 34000830, 5);
89     $InitializeCommonEvent(0, 90015005, 34001530, 34002830, 34000830); 98     $InitializeCommonEvent(0, 90015005, 34001530, 34002830, 34000830);
90     GotoIf(S9, Signed(0) != 0); 99     GotoIf(S9, Signed(0) != 0);
91     GotoIf(S9, 0 != 0); 100     GotoIf(S9, 0 != 0);
92     Goto(S11); 101     Goto(S11);
93 S9: 102 S9:
94     GotoIf(S10, 940000 != 0); 103     GotoIf(S10, 940000 != 0);
95     $InitializeCommonEvent(0, 90015008, 0, 34000830, 940000, 34005830, 0, 0); 104     $InitializeCommonEvent(0, 90015008, 0, 34000830, 940000, 34005830, 0, 0);
96     Goto(S11); 105     Goto(S11);
97 S10: 106 S10:
98     $InitializeCommonEvent(0, 90015008, 0, 34000830, 940000, 34005830, 0, 0); 107     $InitializeCommonEvent(0, 90015008, 0, 34000830, 940000, 34005830, 0, 0);
99 S11: 108 S11:
109     if (IsMapVariation(3)) {
110         $InitializeCommonEvent(0, 90015050, 34000830, 8170);
111     }
100     $InitializeCommonEvent(0, 90005526, 34000500, 34001200); 112     $InitializeCommonEvent(0, 90005526, 34000500, 34001200);
101     $InitializeEvent(0, 34002600); 113     $InitializeEvent(0, 34002600);
102     $InitializeCommonEvent(0, 90085700, 701, 8475, 0, 34000800); 114     $InitializeCommonEvent(0, 90085700, 701, 8475, 0, 34000800);
103     $InitializeCommonEvent(0, 90085700, 701, 8475, 1, 34000810); 115     $InitializeCommonEvent(0, 90085700, 701, 8475, 1, 34000810);
104     $InitializeCommonEvent(0, 90085700, 701, 8475, 2, 34000820); 116     $InitializeCommonEvent(0, 90085700, 701, 8475, 2, 34000820);
105     $InitializeCommonEvent(0, 90085700, 701, 8475, 3, 34000830); 117     $InitializeCommonEvent(0, 90085700, 701, 8475, 3, 34000830);
106 }); 118 });
107 119
108 $Event(34002600, Restart, function() { 120 $Event(34002600, Restart, function() {
109     if (!IsMapVariation(2)) { 121     if (!IsMapVariation(2)) {
diff -rNU 10 nr1.01.7/m34_10_00_00.emevd.dcx.js nr/m34_10_00_00.emevd.dcx.js
nr1.01.7/m34_10_00_00.emevd.dcx.jsnr/m34_10_00_00.emevd.dcx.js
30     GotoIf(S0, Signed(0) != 0); 30     GotoIf(S0, Signed(0) != 0);
31     GotoIf(S0, 0 != 0); 31     GotoIf(S0, 0 != 0);
32     Goto(S2); 32     Goto(S2);
33 S0: 33 S0:
34     GotoIf(S1, 940000 != 0); 34     GotoIf(S1, 940000 != 0);
35     $InitializeCommonEvent(0, 90015008, 0, 34100800, 940000, 34100800, 0, 0); 35     $InitializeCommonEvent(0, 90015008, 0, 34100800, 940000, 34100800, 0, 0);
36     Goto(S2); 36     Goto(S2);
37 S1: 37 S1:
38     $InitializeCommonEvent(0, 90015008, 0, 34100800, 940000, 34100800, 0, 0); 38     $InitializeCommonEvent(0, 90015008, 0, 34100800, 940000, 34100800, 0, 0);
39 S2: 39 S2:
40     if (IsMapVariation(0)) {
41         $InitializeCommonEvent(0, 90015050, 34100800, 8170);
42     }
40     if (940000 == 0) { 43     if (940000 == 0) {
41         $InitializeCommonEvent(0, 90015007, 0, 34100810, 34102810, 30, 903700301, 0, 0); 44         $InitializeCommonEvent(0, 90015007, 0, 34100810, 34102810, 30, 903700301, 0, 0);
42         $InitializeCommonEvent(0, 90015031, 0, 34100810, 34102810, 30, 940000, 0); 45         $InitializeCommonEvent(0, 90015031, 0, 34100810, 34102810, 30, 940000, 0);
43     } else { 46     } else {
44         $InitializeCommonEvent(0, 90015007, 0, 34100810, 34102810, 30, 903700301, 0, 0); 47         $InitializeCommonEvent(0, 90015007, 0, 34100810, 34102810, 30, 903700301, 0, 0);
45         $InitializeCommonEvent(0, 90015031, 0, 34100810, 34102810, 30, 940000, 0); 48         $InitializeCommonEvent(0, 90015031, 0, 34100810, 34102810, 30, 940000, 0);
46     } 49     }
47     $InitializeCommonEvent(0, 90015002, 0, 0, 34100810, 34100810, 1030, 940000, 11200, 903700301, 34100810); 50     $InitializeCommonEvent(0, 90015002, 0, 0, 34100810, 34100810, 1030, 940000, 11200, 903700301, 34100810);
48     $InitializeCommonEvent(0, 90015006, 34101510, 34100510, 34100810, 5); 51     $InitializeCommonEvent(0, 90015006, 34101510, 34100510, 34100810, 5);
49     $InitializeCommonEvent(0, 90015005, 34101510, 34102810, 34100810); 52     $InitializeCommonEvent(0, 90015005, 34101510, 34102810, 34100810);
50     GotoIf(S3, Signed(0) != 0); 53     GotoIf(S3, Signed(0) != 0);
51     GotoIf(S3, 0 != 0); 54     GotoIf(S3, 0 != 0);
52     Goto(S5); 55     Goto(S5);
53 S3: 56 S3:
54     GotoIf(S4, 940000 != 0); 57     GotoIf(S4, 940000 != 0);
55     $InitializeCommonEvent(0, 90015008, 0, 34100810, 940000, 34100810, 0, 0); 58     $InitializeCommonEvent(0, 90015008, 0, 34100810, 940000, 34100810, 0, 0);
56     Goto(S5); 59     Goto(S5);
57 S4: 60 S4:
58     $InitializeCommonEvent(0, 90015008, 0, 34100810, 940000, 34100810, 0, 0); 61     $InitializeCommonEvent(0, 90015008, 0, 34100810, 940000, 34100810, 0, 0);
59 S5: 62 S5:
63     if (IsMapVariation(1)) {
64         $InitializeCommonEvent(0, 90015050, 34100810, 8170);
65     }
60     if (940000 == 0) { 66     if (940000 == 0) {
61         $InitializeCommonEvent(0, 90015007, 0, 34105820, 34102820, 30, 903704522, 0, 0); 67         $InitializeCommonEvent(0, 90015007, 0, 34105820, 34102820, 30, 903704522, 0, 0);
62         $InitializeCommonEvent(0, 90015031, 0, 34105820, 34102820, 30, 940000, 0); 68         $InitializeCommonEvent(0, 90015031, 0, 34105820, 34102820, 30, 940000, 0);
63     } else { 69     } else {
64         $InitializeCommonEvent(0, 90015007, 0, 34105820, 34102820, 30, 903704522, 0, 0); 70         $InitializeCommonEvent(0, 90015007, 0, 34105820, 34102820, 30, 903704522, 0, 0);
65         $InitializeCommonEvent(0, 90015031, 0, 34105820, 34102820, 30, 940000, 0); 71         $InitializeCommonEvent(0, 90015031, 0, 34105820, 34102820, 30, 940000, 0);
66     } 72     }
67     $InitializeCommonEvent(0, 90015002, 0, 0, 34100820, 34105820, 1030, 940000, 11200, 903704522, 34100520); 73     $InitializeCommonEvent(0, 90015002, 0, 0, 34100820, 34105820, 1030, 940000, 11200, 903704522, 34100520);
68     $InitializeCommonEvent(0, 90015006, 34101520, 34100520, 34100820, 5); 74     $InitializeCommonEvent(0, 90015006, 34101520, 34100520, 34100820, 5);
69     $InitializeCommonEvent(0, 90015005, 34101520, 34102820, 34100820); 75     $InitializeCommonEvent(0, 90015005, 34101520, 34102820, 34100820);
70     GotoIf(S6, Signed(0) != 0); 76     GotoIf(S6, Signed(0) != 0);
71     GotoIf(S6, 0 != 0); 77     GotoIf(S6, 0 != 0);
72     Goto(S8); 78     Goto(S8);
73 S6: 79 S6:
74     GotoIf(S7, 940000 != 0); 80     GotoIf(S7, 940000 != 0);
75     $InitializeCommonEvent(0, 90015008, 0, 34100820, 940000, 34105820, 0, 0); 81     $InitializeCommonEvent(0, 90015008, 0, 34100820, 940000, 34105820, 0, 0);
76     Goto(S8); 82     Goto(S8);
77 S7: 83 S7:
78     $InitializeCommonEvent(0, 90015008, 0, 34100820, 940000, 34105820, 0, 0); 84     $InitializeCommonEvent(0, 90015008, 0, 34100820, 940000, 34105820, 0, 0);
79 S8: 85 S8:
86     if (IsMapVariation(2)) {
87         $InitializeCommonEvent(0, 90015050, 34100820, 8170);
88     }
80     if (940000 == 0) { 89     if (940000 == 0) {
81         $InitializeCommonEvent(0, 90015007, 0, 34105830, 34102830, 30, 903180000, 0, 0); 90         $InitializeCommonEvent(0, 90015007, 0, 34105830, 34102830, 30, 903180000, 0, 0);
82         $InitializeCommonEvent(0, 90015031, 0, 34105830, 34102830, 30, 940000, 0); 91         $InitializeCommonEvent(0, 90015031, 0, 34105830, 34102830, 30, 940000, 0);
83     } else { 92     } else {
84         $InitializeCommonEvent(0, 90015007, 0, 34105830, 34102830, 30, 903180000, 0, 0); 93         $InitializeCommonEvent(0, 90015007, 0, 34105830, 34102830, 30, 903180000, 0, 0);
85         $InitializeCommonEvent(0, 90015031, 0, 34105830, 34102830, 30, 940000, 0); 94         $InitializeCommonEvent(0, 90015031, 0, 34105830, 34102830, 30, 940000, 0);
86     } 95     }
87     $InitializeCommonEvent(0, 90015002, 0, 0, 34100830, 34105830, 1030, 940000, 11200, 903180000, 34100530); 96     $InitializeCommonEvent(0, 90015002, 0, 0, 34100830, 34105830, 1030, 940000, 11200, 903180000, 34100530);
88     $InitializeCommonEvent(0, 90015006, 34101530, 34100530, 34100830, 5); 97     $InitializeCommonEvent(0, 90015006, 34101530, 34100530, 34100830, 5);
89     $InitializeCommonEvent(0, 90015005, 34101530, 34102830, 34100830); 98     $InitializeCommonEvent(0, 90015005, 34101530, 34102830, 34100830);
90     GotoIf(S9, Signed(0) != 0); 99     GotoIf(S9, Signed(0) != 0);
91     GotoIf(S9, 0 != 0); 100     GotoIf(S9, 0 != 0);
92     Goto(S11); 101     Goto(S11);
93 S9: 102 S9:
94     GotoIf(S10, 940000 != 0); 103     GotoIf(S10, 940000 != 0);
95     $InitializeCommonEvent(0, 90015008, 0, 34100830, 940000, 34105830, 0, 0); 104     $InitializeCommonEvent(0, 90015008, 0, 34100830, 940000, 34105830, 0, 0);
96     Goto(S11); 105     Goto(S11);
97 S10: 106 S10:
98     $InitializeCommonEvent(0, 90015008, 0, 34100830, 940000, 34105830, 0, 0); 107     $InitializeCommonEvent(0, 90015008, 0, 34100830, 940000, 34105830, 0, 0);
99 S11: 108 S11:
109     if (IsMapVariation(3)) {
110         $InitializeCommonEvent(0, 90015050, 34100830, 8170);
111     }
100     if (940000 == 0) { 112     if (940000 == 0) {
101         $InitializeCommonEvent(0, 90015007, 0, 34100840, 34102840, 30, 904630310, 0, 0); 113         $InitializeCommonEvent(0, 90015007, 0, 34100840, 34102840, 30, 904630310, 0, 0);
102         $InitializeCommonEvent(0, 90015031, 0, 34100840, 34102840, 30, 940000, 0); 114         $InitializeCommonEvent(0, 90015031, 0, 34100840, 34102840, 30, 940000, 0);
103     } else { 115     } else {
104         $InitializeCommonEvent(0, 90015007, 0, 34100840, 34102840, 30, 904630310, 0, 0); 116         $InitializeCommonEvent(0, 90015007, 0, 34100840, 34102840, 30, 904630310, 0, 0);
105         $InitializeCommonEvent(0, 90015031, 0, 34100840, 34102840, 30, 940000, 0); 117         $InitializeCommonEvent(0, 90015031, 0, 34100840, 34102840, 30, 940000, 0);
106     } 118     }
107     $InitializeCommonEvent(0, 90015002, 0, 0, 34100840, 34100840, 1030, 940000, 11200, 904630310, 34100840); 119     $InitializeCommonEvent(0, 90015002, 0, 0, 34100840, 34100840, 1030, 940000, 11200, 904630310, 34100840);
108     $InitializeCommonEvent(0, 90015006, 34101540, 34100540, 34100840, 5); 120     $InitializeCommonEvent(0, 90015006, 34101540, 34100540, 34100840, 5);
109     $InitializeCommonEvent(0, 90015005, 34101540, 34102840, 34100840); 121     $InitializeCommonEvent(0, 90015005, 34101540, 34102840, 34100840);
110     GotoIf(S12, Signed(0) != 0); 122     GotoIf(S12, Signed(0) != 0);
111     GotoIf(S12, 0 != 0); 123     GotoIf(S12, 0 != 0);
112     Goto(S14); 124     Goto(S14);
113 S12: 125 S12:
114     GotoIf(S13, 940000 != 0); 126     GotoIf(S13, 940000 != 0);
115     $InitializeCommonEvent(0, 90015008, 0, 34100840, 940000, 34100840, 0, 0); 127     $InitializeCommonEvent(0, 90015008, 0, 34100840, 940000, 34100840, 0, 0);
116     Goto(S14); 128     Goto(S14);
117 S13: 129 S13:
118     $InitializeCommonEvent(0, 90015008, 0, 34100840, 940000, 34100840, 0, 0); 130     $InitializeCommonEvent(0, 90015008, 0, 34100840, 940000, 34100840, 0, 0);
119 S14: 131 S14:
132     if (IsMapVariation(4)) {
133         $InitializeCommonEvent(0, 90015050, 34100840, 8170);
134     }
120     $InitializeCommonEvent(0, 90005526, 34100500, 34101200); 135     $InitializeCommonEvent(0, 90005526, 34100500, 34101200);
121     $InitializeEvent(0, 34102600); 136     $InitializeEvent(0, 34102600);
122     $InitializeEvent(0, 34102630); 137     $InitializeEvent(0, 34102630);
123     $InitializeEvent(0, 34102640); 138     $InitializeEvent(0, 34102640);
124     $InitializeCommonEvent(0, 90015010, 34101280, 34100280, 34100280, 100, 803400000, 4); 139     $InitializeCommonEvent(0, 90015010, 34101280, 34100280, 34100280, 100, 803400000, 4);
125     $InitializeCommonEvent(1, 90015010, 34101281, 34100281, 34100280, 100, 803400000, 4); 140     $InitializeCommonEvent(1, 90015010, 34101281, 34100281, 34100280, 100, 803400000, 4);
126     $InitializeCommonEvent(2, 90015010, 34101282, 34100282, 34100280, 100, 803400000, 4); 141     $InitializeCommonEvent(2, 90015010, 34101282, 34100282, 34100280, 100, 803400000, 4);
127     $InitializeCommonEvent(3, 90015010, 34101283, 34100283, 34100280, 100, 803400000, 4); 142     $InitializeCommonEvent(3, 90015010, 34101283, 34100283, 34100280, 100, 803400000, 4);
128     $InitializeCommonEvent(4, 90015010, 34101284, 34100284, 34100280, 100, 803400000, 4); 143     $InitializeCommonEvent(4, 90015010, 34101284, 34100284, 34100280, 100, 803400000, 4);
129     $InitializeCommonEvent(5, 90015010, 34101285, 34100285, 34100280, 100, 803400000, 4); 144     $InitializeCommonEvent(5, 90015010, 34101285, 34100285, 34100280, 100, 803400000, 4);
diff -rNU 10 nr1.01.7/m34_20_00_00.emevd.dcx.js nr/m34_20_00_00.emevd.dcx.js
nr1.01.7/m34_20_00_00.emevd.dcx.jsnr/m34_20_00_00.emevd.dcx.js
30     GotoIf(S0, Signed(0) != 0); 30     GotoIf(S0, Signed(0) != 0);
31     GotoIf(S0, 0 != 0); 31     GotoIf(S0, 0 != 0);
32     Goto(S2); 32     Goto(S2);
33 S0: 33 S0:
34     GotoIf(S1, 940000 != 0); 34     GotoIf(S1, 940000 != 0);
35     $InitializeCommonEvent(0, 90015008, 0, 34200800, 940000, 34200800, 0, 0); 35     $InitializeCommonEvent(0, 90015008, 0, 34200800, 940000, 34200800, 0, 0);
36     Goto(S2); 36     Goto(S2);
37 S1: 37 S1:
38     $InitializeCommonEvent(0, 90015008, 0, 34200800, 940000, 34200800, 0, 0); 38     $InitializeCommonEvent(0, 90015008, 0, 34200800, 940000, 34200800, 0, 0);
39 S2: 39 S2:
40     if (IsMapVariation(0)) {
41         $InitializeCommonEvent(0, 90015050, 34200800, 8170);
42     }
40     if (940000 == 0) { 43     if (940000 == 0) {
41         $InitializeCommonEvent(0, 90015007, 0, 34205810, 34202810, 30, 903970313, 0, 0); 44         $InitializeCommonEvent(0, 90015007, 0, 34205810, 34202810, 30, 903970313, 0, 0);
42         $InitializeCommonEvent(0, 90015031, 0, 34205810, 34202810, 30, 940000, 0); 45         $InitializeCommonEvent(0, 90015031, 0, 34205810, 34202810, 30, 940000, 0);
43     } else { 46     } else {
44         $InitializeCommonEvent(0, 90015007, 0, 34205810, 34202810, 30, 903970313, 0, 0); 47         $InitializeCommonEvent(0, 90015007, 0, 34205810, 34202810, 30, 903970313, 0, 0);
45         $InitializeCommonEvent(0, 90015031, 0, 34205810, 34202810, 30, 940000, 0); 48         $InitializeCommonEvent(0, 90015031, 0, 34205810, 34202810, 30, 940000, 0);
46     } 49     }
47     $InitializeCommonEvent(0, 90015002, 0, 0, 34200810, 34205810, 1030, 940000, 11200, 903970313, 34200510); 50     $InitializeCommonEvent(0, 90015002, 0, 0, 34200810, 34205810, 1030, 940000, 11200, 903970313, 34200510);
48     $InitializeCommonEvent(0, 90015006, 34201510, 34200510, 34200810, 5); 51     $InitializeCommonEvent(0, 90015006, 34201510, 34200510, 34200810, 5);
49     $InitializeCommonEvent(0, 90015005, 34201510, 34202810, 34200810); 52     $InitializeCommonEvent(0, 90015005, 34201510, 34202810, 34200810);
50     GotoIf(S3, Signed(0) != 0); 53     GotoIf(S3, Signed(0) != 0);
51     GotoIf(S3, 0 != 0); 54     GotoIf(S3, 0 != 0);
52     Goto(S5); 55     Goto(S5);
53 S3: 56 S3:
54     GotoIf(S4, 940000 != 0); 57     GotoIf(S4, 940000 != 0);
55     $InitializeCommonEvent(0, 90015008, 0, 34200810, 940000, 34205810, 0, 0); 58     $InitializeCommonEvent(0, 90015008, 0, 34200810, 940000, 34205810, 0, 0);
56     Goto(S5); 59     Goto(S5);
57 S4: 60 S4:
58     $InitializeCommonEvent(0, 90015008, 0, 34200810, 940000, 34205810, 0, 0); 61     $InitializeCommonEvent(0, 90015008, 0, 34200810, 940000, 34205810, 0, 0);
59 S5: 62 S5:
63     if (IsMapVariation(1)) {
64         $InitializeCommonEvent(0, 90015050, 34200810, 8170);
65     }
60     $InitializeCommonEvent(0, 90005526, 34200500, 34201200); 66     $InitializeCommonEvent(0, 90005526, 34200500, 34201200);
61     $InitializeEvent(0, 34202600); 67     $InitializeEvent(0, 34202600);
62     $InitializeCommonEvent(0, 90085700, 701, 8475, 0, 34200800); 68     $InitializeCommonEvent(0, 90085700, 701, 8475, 0, 34200800);
63     $InitializeCommonEvent(0, 90085700, 701, 8475, 1, 34200810); 69     $InitializeCommonEvent(0, 90085700, 701, 8475, 1, 34200810);
64 }); 70 });
65 71
66 $Event(34202600, Restart, function() { 72 $Event(34202600, Restart, function() {
67     if (!IsMapVariation(0)) { 73     if (!IsMapVariation(0)) {
68         DeleteMapSFX(34202600, false); 74         DeleteMapSFX(34202600, false);
69         DeleteMapSFX(34202601, false); 75         DeleteMapSFX(34202601, false);
diff -rNU 10 nr1.01.7/m34_30_00_00.emevd.dcx.js nr/m34_30_00_00.emevd.dcx.js
nr1.01.7/m34_30_00_00.emevd.dcx.jsnr/m34_30_00_00.emevd.dcx.js
30     GotoIf(S0, Signed(0) != 0); 30     GotoIf(S0, Signed(0) != 0);
31     GotoIf(S0, 0 != 0); 31     GotoIf(S0, 0 != 0);
32     Goto(S2); 32     Goto(S2);
33 S0: 33 S0:
34     GotoIf(S1, 940000 != 0); 34     GotoIf(S1, 940000 != 0);
35     $InitializeCommonEvent(0, 90015008, 0, 34300800, 940000, 34305800, 0, 0); 35     $InitializeCommonEvent(0, 90015008, 0, 34300800, 940000, 34305800, 0, 0);
36     Goto(S2); 36     Goto(S2);
37 S1: 37 S1:
38     $InitializeCommonEvent(0, 90015008, 0, 34300800, 940000, 34305800, 0, 0); 38     $InitializeCommonEvent(0, 90015008, 0, 34300800, 940000, 34305800, 0, 0);
39 S2: 39 S2:
40     if (IsMapVariation(0)) {
41         $InitializeCommonEvent(0, 90015050, 34300800, 8170);
42     }
40     $InitializeCommonEvent(0, 90005526, 34300500, 34301200); 43     $InitializeCommonEvent(0, 90005526, 34300500, 34301200);
41     $InitializeCommonEvent(0, 90085700, 701, 8475, 0, 34300800); 44     $InitializeCommonEvent(0, 90085700, 701, 8475, 0, 34300800);
42 }); 45 });
43 46
diff -rNU 10 nr1.01.7/m35_90_00_00.emevd.dcx.js nr/m35_90_00_00.emevd.dcx.js
nr1.01.7/m35_90_00_00.emevd.dcx.jsnr/m35_90_00_00.emevd.dcx.js
40     $InitializeEvent(0, 35902330); 40     $InitializeEvent(0, 35902330);
41     $InitializeEvent(0, 35902225); 41     $InitializeEvent(0, 35902225);
42     $InitializeEvent(0, 35903255); 42     $InitializeEvent(0, 35903255);
43     $InitializeEvent(0, 35902240); 43     $InitializeEvent(0, 35902240);
44     $InitializeEvent(0, 35902211, 1170, 9915, 20000); 44     $InitializeEvent(0, 35902211, 1170, 9915, 20000);
45     $InitializeEvent(0, 35902207, 20000, 1140, 9890, 35900299, 10); 45     $InitializeEvent(0, 35902207, 20000, 1140, 9890, 35900299, 10);
46     $InitializeEvent(0, 35902275, 1145, 9895, 35902207, 35900299); 46     $InitializeEvent(0, 35902275, 1145, 9895, 35902207, 35900299);
47     $InitializeEvent(0, 35902212, 20000, 1150, 9900); 47     $InitializeEvent(0, 35902212, 20000, 1150, 9900);
48     $InitializeEvent(0, 35902208, 20000, 1160, 9905, 35900800, 5); 48     $InitializeEvent(0, 35902208, 20000, 1160, 9905, 35900800, 5);
49     $InitializeEvent(0, 35902270, 1165, 9910, 35902208); 49     $InitializeEvent(0, 35902270, 1165, 9910, 35902208);
50     $InitializeEvent(0, 35902280, 1200, 9935); 50     $InitializeEvent(0, 35902280, 1205, 9935);
51     $InitializeEvent(0, 35902281, 1200, 9935); 51     $InitializeEvent(0, 35902281, 1205, 9935);
52     $InitializeCommonEvent(0, 90005934, 9895, 1145); 52     $InitializeCommonEvent(0, 90005934, 9895, 1145);
53     $InitializeCommonEvent(0, 90005934, 9910, 1165); 53     $InitializeCommonEvent(0, 90005934, 9910, 1165);
54     $InitializeCommonEvent(0, 90005934, 9935, 1200); 54     $InitializeCommonEvent(0, 90005934, 9935, 1205);
55     $InitializeCommonEvent(0, 90005934, 9950, 1220); 55     $InitializeCommonEvent(0, 90005934, 9950, 1220);
56     $InitializeCommonEvent(0, 9045010, 35900801, 35900802, 35900803, 35900804); 56     $InitializeCommonEvent(0, 9045010, 35900801, 35900802, 35900803, 35900804);
57     $InitializeCommonEvent(0, 9045011, 35900801, 35900802, 35900803, 35900804); 57     $InitializeCommonEvent(0, 9045011, 35900801, 35900802, 35900803, 35900804);
58     $InitializeEvent(0, 35902801); 58     $InitializeEvent(0, 35902801);
59     $InitializeEvent(0, 35902802); 59     $InitializeEvent(0, 35902802);
60 }); 60 });
61 61
62 $Event(50, Default, function() { 62 $Event(50, Default, function() {
63     $InitializeEvent(0, 35902330); 63     $InitializeEvent(0, 35902330);
64     $InitializeEvent(0, 35902340); 64     $InitializeEvent(0, 35902340);
678         !EventFlag(35900800) 678         !EventFlag(35900800)
679             && EventFlag(35902310) 679             && EventFlag(35902310)
680             && EventFlag(35902312) 680             && EventFlag(35902312)
681             && InArea(20000, 35902550)); 681             && InArea(20000, 35902550));
682     SetEventFlagID(35904211, ON); 682     SetEventFlagID(35904211, ON);
683     if (!EventFlag(6013)) { 683     if (!EventFlag(6013)) {
684         WaitFixedTimeSeconds(0.5); 684         WaitFixedTimeSeconds(0.5);
685         DisableCharacterInvincibility(35900800); 685         DisableCharacterInvincibility(35900800);
686         EnableCharacterAI(35900800); 686         EnableCharacterAI(35900800);
687         ClearSpEffect(35900800, 99824); 687         ClearSpEffect(35900800, 99824);
688         SetEventFlagID(35909701, ON);
688     } 689     }
689     SetEventFlagID(35909701, ON);
690     if (EventFlag(6013)) { 690     if (EventFlag(6013)) {
691         DisableCharacterInvincibility(35900801); 691         DisableCharacterInvincibility(35900801);
692         EnableCharacterAI(35900801); 692         EnableCharacterAI(35900801);
693     } 693     }
694     WaitFixedTimeSeconds(0.7); 694     WaitFixedTimeSeconds(0.7);
695     EnableAsset(35904810); 695     EnableAsset(35904810);
696 }); 696 });
697 697
698 $Event(35902312, Default, function() { 698 $Event(35902312, Default, function() {
699     if (!EventFlag(35904211)) { 699     if (!EventFlag(35904211)) {
diff -rNU 10 nr1.01.7/m37_90_00_00.emevd.dcx.js nr/m37_90_00_00.emevd.dcx.js
nr1.01.7/m37_90_00_00.emevd.dcx.jsnr/m37_90_00_00.emevd.dcx.js
5 // @string "W:\\CL\\data\\Param\\event\\common_func.emevd\u0000W:\\CL\\data\\Param\\event\\common_macro.emevd\u0000\u0000\u0000\u0000\u0000\u0000" 5 // @string "W:\\CL\\data\\Param\\event\\common_func.emevd\u0000W:\\CL\\data\\Param\\event\\common_macro.emevd\u0000\u0000\u0000\u0000\u0000\u0000"
6 // @linked [0,82] 6 // @linked [0,82]
7 // @version 3.6 7 // @version 3.6
8 // ==/EMEVD== 8 // ==/EMEVD==
9 9
10 $Event(0, Default, function() { 10 $Event(0, Default, function() {
11     RegisterBonfire(37901950, 0, 5); 11     RegisterBonfire(37901950, 0, 5);
12     $InitializeCommonEvent(0, 90015004, 37901950, 37900950); 12     $InitializeCommonEvent(0, 90015004, 37901950, 37900950);
13     $InitializeEvent(0, 1037902200); 13     $InitializeEvent(0, 1037902200);
14     $InitializeCommonEvent(0, 91005550, 37902200, 37902201, 37900202); 14     $InitializeCommonEvent(0, 91005550, 37902200, 37902201, 37900202);
15     $InitializeCommonEvent(0, 90015500, 37902300);
15 }); 16 });
16 17
17 $Event(1037902200, Default, function() { 18 $Event(1037902200, Default, function() {
18     SetSpEffect(37900201, 19050); 19     SetSpEffect(37900201, 19050);
19     EndEvent(); 20     EndEvent();
20 }); 21 });
21 22
diff -rNU 10 nr1.01.7/m38_00_00_00.emevd.dcx.js nr/m38_00_00_00.emevd.dcx.js
nr1.01.7/m38_00_00_00.emevd.dcx.jsnr/m38_00_00_00.emevd.dcx.js
30     GotoIf(S0, Signed(0) != 0); 30     GotoIf(S0, Signed(0) != 0);
31     GotoIf(S0, 0 != 0); 31     GotoIf(S0, 0 != 0);
32     Goto(S2); 32     Goto(S2);
33 S0: 33 S0:
34     GotoIf(S1, 940000 != 0); 34     GotoIf(S1, 940000 != 0);
35     $InitializeCommonEvent(0, 90015008, 0, 38000810, 940000, 38005810, 0, 0); 35     $InitializeCommonEvent(0, 90015008, 0, 38000810, 940000, 38005810, 0, 0);
36     Goto(S2); 36     Goto(S2);
37 S1: 37 S1:
38     $InitializeCommonEvent(0, 90015008, 0, 38000810, 940000, 38005810, 0, 0); 38     $InitializeCommonEvent(0, 90015008, 0, 38000810, 940000, 38005810, 0, 0);
39 S2: 39 S2:
40     if (IsMapVariation(0)) {
41         $InitializeCommonEvent(0, 90015050, 38000810, 8175);
42     }
40     if (940000 == 0) { 43     if (940000 == 0) {
41         $InitializeCommonEvent(0, 90015000, 0, 38000850, 904660320, 30, 0, 0); 44         $InitializeCommonEvent(0, 90015000, 0, 38000850, 904660320, 30, 0, 0);
42         $InitializeCommonEvent(0, 90015030, 0, 38000850, 30, 940000, 0); 45         $InitializeCommonEvent(0, 90015030, 0, 38000850, 30, 940000, 0);
43     } else { 46     } else {
44         $InitializeCommonEvent(0, 90015000, 0, 38000850, 904660320, 30, 0, 0); 47         $InitializeCommonEvent(0, 90015000, 0, 38000850, 904660320, 30, 0, 0);
45         $InitializeCommonEvent(0, 90015030, 0, 38000850, 30, 940000, 0); 48         $InitializeCommonEvent(0, 90015030, 0, 38000850, 30, 940000, 0);
46     } 49     }
47     $InitializeCommonEvent(0, 90015002, 0, 0, 38000850, 38000850, 1030, 940000, 11200, 904660320, 38000850); 50     $InitializeCommonEvent(0, 90015002, 0, 0, 38000850, 38000850, 1030, 940000, 11200, 904660320, 38000850);
48     $InitializeCommonEvent(0, 90015006, 38001550, 38000550, 38000850, 5); 51     $InitializeCommonEvent(0, 90015006, 38001550, 38000550, 38000850, 5);
49     $InitializeCommonEvent(0, 90015005, 38001550, 38002850, 38000850); 52     $InitializeCommonEvent(0, 90015005, 38001550, 38002850, 38000850);
51     GotoIf(S3, 0 != 0); 54     GotoIf(S3, 0 != 0);
52     Goto(S5); 55     Goto(S5);
53 S3: 56 S3:
54     GotoIf(S4, 940000 != 0); 57     GotoIf(S4, 940000 != 0);
55     $InitializeCommonEvent(0, 90015008, 0, 38000850, 940000, 38000850, 0, 0); 58     $InitializeCommonEvent(0, 90015008, 0, 38000850, 940000, 38000850, 0, 0);
56     Goto(S5); 59     Goto(S5);
57 S4: 60 S4:
58     $InitializeCommonEvent(0, 90015008, 0, 38000850, 940000, 38000850, 0, 0); 61     $InitializeCommonEvent(0, 90015008, 0, 38000850, 940000, 38000850, 0, 0);
59 S5: 62 S5:
60     $InitializeCommonEvent(0, 90005251, 38000850, 13, 0, -1); 63     $InitializeCommonEvent(0, 90005251, 38000850, 13, 0, -1);
64     if (IsMapVariation(1)) {
65         $InitializeCommonEvent(0, 90015050, 38000850, 8175);
66     }
61     $InitializeCommonEvent(0, 90085700, 701, 8475, 0, 38000810); 67     $InitializeCommonEvent(0, 90085700, 701, 8475, 0, 38000810);
62     $InitializeCommonEvent(0, 90085700, 701, 8475, 1, 38000850); 68     $InitializeCommonEvent(0, 90085700, 701, 8475, 1, 38000850);
63 }); 69 });
64 70
diff -rNU 10 nr1.01.7/m38_10_00_00.emevd.dcx.js nr/m38_10_00_00.emevd.dcx.js
nr1.01.7/m38_10_00_00.emevd.dcx.jsnr/m38_10_00_00.emevd.dcx.js
31     GotoIf(S0, 0 != 0); 31     GotoIf(S0, 0 != 0);
32     Goto(S2); 32     Goto(S2);
33 S0: 33 S0:
34     GotoIf(S1, 940000 != 0); 34     GotoIf(S1, 940000 != 0);
35     $InitializeCommonEvent(0, 90015008, 0, 38100800, 940000, 38100800, 0, 0); 35     $InitializeCommonEvent(0, 90015008, 0, 38100800, 940000, 38100800, 0, 0);
36     Goto(S2); 36     Goto(S2);
37 S1: 37 S1:
38     $InitializeCommonEvent(0, 90015008, 0, 38100800, 940000, 38100800, 0, 0); 38     $InitializeCommonEvent(0, 90015008, 0, 38100800, 940000, 38100800, 0, 0);
39 S2: 39 S2:
40     $InitializeCommonEvent(0, 90005250, 38100800, 38102800, 0, -1); 40     $InitializeCommonEvent(0, 90005250, 38100800, 38102800, 0, -1);
41     if (IsMapVariation(0)) {
42         $InitializeCommonEvent(0, 90015050, 38100800, 8175);
43     }
41     if (940000 == 0) { 44     if (940000 == 0) {
42         $InitializeCommonEvent(0, 90015007, 0, 38100810, 38102810, 30, 904355000, 0, 0); 45         $InitializeCommonEvent(0, 90015007, 0, 38100810, 38102810, 30, 904355000, 0, 0);
43         $InitializeCommonEvent(0, 90015031, 0, 38100810, 38102810, 30, 940000, 0); 46         $InitializeCommonEvent(0, 90015031, 0, 38100810, 38102810, 30, 940000, 0);
44     } else { 47     } else {
45         $InitializeCommonEvent(0, 90015007, 0, 38100810, 38102810, 30, 904355000, 0, 0); 48         $InitializeCommonEvent(0, 90015007, 0, 38100810, 38102810, 30, 904355000, 0, 0);
46         $InitializeCommonEvent(0, 90015031, 0, 38100810, 38102810, 30, 940000, 0); 49         $InitializeCommonEvent(0, 90015031, 0, 38100810, 38102810, 30, 940000, 0);
47     } 50     }
48     $InitializeCommonEvent(0, 90015002, 0, 0, 38100810, 38100810, 1030, 940000, 11200, 904355000, 38100810); 51     $InitializeCommonEvent(0, 90015002, 0, 0, 38100810, 38100810, 1030, 940000, 11200, 904355000, 38100810);
49     $InitializeCommonEvent(0, 90015006, 38101510, 38100510, 38100810, 5); 52     $InitializeCommonEvent(0, 90015006, 38101510, 38100510, 38100810, 5);
50     $InitializeCommonEvent(0, 90015005, 38101510, 38102810, 38100810); 53     $InitializeCommonEvent(0, 90015005, 38101510, 38102810, 38100810);
52     GotoIf(S3, 0 != 0); 55     GotoIf(S3, 0 != 0);
53     Goto(S5); 56     Goto(S5);
54 S3: 57 S3:
55     GotoIf(S4, 940000 != 0); 58     GotoIf(S4, 940000 != 0);
56     $InitializeCommonEvent(0, 90015008, 0, 38100810, 940000, 38100810, 0, 0); 59     $InitializeCommonEvent(0, 90015008, 0, 38100810, 940000, 38100810, 0, 0);
57     Goto(S5); 60     Goto(S5);
58 S4: 61 S4:
59     $InitializeCommonEvent(0, 90015008, 0, 38100810, 940000, 38100810, 0, 0); 62     $InitializeCommonEvent(0, 90015008, 0, 38100810, 940000, 38100810, 0, 0);
60 S5: 63 S5:
61     $InitializeCommonEvent(0, 90005250, 38100810, 38102810, 0, -1); 64     $InitializeCommonEvent(0, 90005250, 38100810, 38102810, 0, -1);
65     if (IsMapVariation(1)) {
66         $InitializeCommonEvent(0, 90015050, 38100810, 8175);
67     }
62     $InitializeCommonEvent(0, 90005250, 38100200, 38102200, 0, -1); 68     $InitializeCommonEvent(0, 90005250, 38100200, 38102200, 0, -1);
63     $InitializeCommonEvent(0, 90005250, 38100201, 38102200, 0, -1); 69     $InitializeCommonEvent(0, 90005250, 38100201, 38102200, 0, -1);
64     $InitializeCommonEvent(0, 90005250, 38100202, 38102200, 0, -1); 70     $InitializeCommonEvent(0, 90005250, 38100202, 38102200, 0, -1);
65     $InitializeCommonEvent(0, 90005250, 38100203, 38102200, 0, -1); 71     $InitializeCommonEvent(0, 90005250, 38100203, 38102200, 0, -1);
66     $InitializeCommonEvent(0, 90005250, 38100304, 38102302, 0, -1); 72     $InitializeCommonEvent(0, 90005250, 38100304, 38102302, 0, -1);
67     $InitializeCommonEvent(0, 90005250, 38100305, 38102302, 0, -1); 73     $InitializeCommonEvent(0, 90005250, 38100305, 38102302, 0, -1);
68     $InitializeCommonEvent(0, 90005250, 38100306, 38102302, 0, -1); 74     $InitializeCommonEvent(0, 90005250, 38100306, 38102302, 0, -1);
69     $InitializeCommonEvent(0, 90005250, 38100307, 38102302, 0, -1); 75     $InitializeCommonEvent(0, 90005250, 38100307, 38102302, 0, -1);
70     $InitializeCommonEvent(0, 90005250, 38100350, 38102302, 0, -1); 76     $InitializeCommonEvent(0, 90005250, 38100350, 38102302, 0, -1);
71     $InitializeCommonEvent(0, 90005250, 38100351, 38102302, 0, -1); 77     $InitializeCommonEvent(0, 90005250, 38100351, 38102302, 0, -1);
diff -rNU 10 nr1.01.7/m40_00_00_00.emevd.dcx.js nr/m40_00_00_00.emevd.dcx.js
nr1.01.7/m40_00_00_00.emevd.dcx.jsnr/m40_00_00_00.emevd.dcx.js
38     $InitializeEvent(7, 40002590, 7, 40001607, 40000597); 38     $InitializeEvent(7, 40002590, 7, 40001607, 40000597);
39     $InitializeEvent(8, 40002590, 8, 40001608, 40000598); 39     $InitializeEvent(8, 40002590, 8, 40001608, 40000598);
40     $InitializeEvent(9, 40002590, 9, 40001609, 40000599); 40     $InitializeEvent(9, 40002590, 9, 40001609, 40000599);
41     $InitializeEvent(0, 40002650); 41     $InitializeEvent(0, 40002650);
42     $InitializeEvent(0, 40002660); 42     $InitializeEvent(0, 40002660);
43     $InitializeEvent(0, 40002670); 43     $InitializeEvent(0, 40002670);
44     $InitializeEvent(0, 40002671); 44     $InitializeEvent(0, 40002671);
45     $InitializeEvent(0, 40002672); 45     $InitializeEvent(0, 40002672);
46     $InitializeEvent(0, 40002680, 8, 40001638); 46     $InitializeEvent(0, 40002680, 8, 40001638);
47     $InitializeEvent(1, 40002680, 9, 40001639); 47     $InitializeEvent(1, 40002680, 9, 40001639);
48     $InitializeCommonEvent(0, 90015500, 40002320);
48 }); 49 });
49 50
50 $Event(40002500, Restart, function() { 51 $Event(40002500, Restart, function() {
51     EndIf(IsMapVariation(6)); 52     EndIf(IsMapVariation(6));
52     EndIf(IsMapVariation(8)); 53     EndIf(IsMapVariation(8));
53     EndIf(IsMapVariation(9)); 54     EndIf(IsMapVariation(9));
54     if (EventFlag(40000500)) { 55     if (EventFlag(40000500)) {
55         DisableAsset(40001597); 56         DisableAsset(40001597);
56         DisableAsset(40001598); 57         DisableAsset(40001598);
57         DisableAsset(40001599); 58         DisableAsset(40001599);
113     DisableAsset(40001598); 114     DisableAsset(40001598);
114     PlaySE(40001597, SoundType.SFX, 1500); 115     PlaySE(40001597, SoundType.SFX, 1500);
115     PlaySE(40001598, SoundType.SFX, 1500); 116     PlaySE(40001598, SoundType.SFX, 1500);
116     WaitFixedTimeSeconds(0.5); 117     WaitFixedTimeSeconds(0.5);
117     RecordUserDispLog(11220, 40001599, LogObjectType.None, -1); 118     RecordUserDispLog(11220, 40001599, LogObjectType.None, -1);
118 }); 119 });
119 120
120 $Event(40002503, Default, function() { 121 $Event(40002503, Default, function() {
121     WaitFor(EventFlag(40000500)); 122     WaitFor(EventFlag(40000500));
122     SetWorldMapPointFlag(6, ON); 123     SetWorldMapPointFlag(6, ON);
124     SetWorldMapPointFlag(8, OFF);
123 }); 125 });
124 126
125 $Event(40002504, Default, function() { 127 $Event(40002504, Default, function() {
126     DisableNetworkSync(); 128     DisableNetworkSync();
127 }); 129 });
128 130
129 $Event(40002505, Default, function() { 131 $Event(40002505, Default, function() {
130     EndIf(EventFlag(40000500)); 132     EndIf(EventFlag(40000500));
131     WaitFor(EventFlag(40000500)); 133     WaitFor(EventFlag(40000500));
132     IncrementNetworkconnectedEventValue(8140, 4, 7); 134     IncrementNetworkconnectedEventValue(8140, 4, 7);
diff -rNU 10 nr1.01.7/m40_90_00_00.emevd.dcx.js nr/m40_90_00_00.emevd.dcx.js
nr1.01.7/m40_90_00_00.emevd.dcx.jsnr/m40_90_00_00.emevd.dcx.js
100     $InitializeEvent(17, 40902520, 7, 40901672, 40901673, 40900679, 40900506, 40900678, 807391, 200, 40901674); 100     $InitializeEvent(17, 40902520, 7, 40901672, 40901673, 40900679, 40900506, 40900678, 807391, 200, 40901674);
101     $InitializeEvent(17, 40902560, 7, 40901672, 40900678, 40900503); 101     $InitializeEvent(17, 40902560, 7, 40901672, 40900678, 40900503);
102     $InitializeEvent(7, 40902680, 7, 40901580); 102     $InitializeEvent(7, 40902680, 7, 40901580);
103     $InitializeEvent(8, 40902690, 8, 40901780); 103     $InitializeEvent(8, 40902690, 8, 40901780);
104     $InitializeEvent(35, 40902560, 8, 40901780, 40900680, 40900501); 104     $InitializeEvent(35, 40902560, 8, 40901780, 40900680, 40900501);
105     $InitializeEvent(8, 40902520, 8, 40901680, 40901681, 40900687, 40900505, 40900686, 807393, 90, 0); 105     $InitializeEvent(8, 40902520, 8, 40901680, 40901681, 40900687, 40900505, 40900686, 807393, 90, 0);
106     $InitializeEvent(8, 40902560, 8, 40901680, 40900686, 40900502); 106     $InitializeEvent(8, 40902560, 8, 40901680, 40900686, 40900502);
107     $InitializeEvent(18, 40902520, 8, 40901682, 40901683, 40900689, 40900506, 40900688, 807394, 90, 0); 107     $InitializeEvent(18, 40902520, 8, 40901682, 40901683, 40900689, 40900506, 40900688, 807394, 90, 0);
108     $InitializeEvent(18, 40902560, 8, 40901682, 40900688, 40900503); 108     $InitializeEvent(18, 40902560, 8, 40901682, 40900688, 40900503);
109     $InitializeEvent(8, 40902680, 8, 40901590); 109     $InitializeEvent(8, 40902680, 8, 40901590);
110     $InitializeCommonEvent(0, 90015500, 40902320);
110 }); 111 });
111 112
112 $Event(40902000, Restart, function() { 113 $Event(40902000, Restart, function() {
113     DisableNetworkSync(); 114     DisableNetworkSync();
114     EndIf(EventFlag(40900500)); 115     EndIf(EventFlag(40900500));
115     EndIf(EventFlag(40900102)); 116     EndIf(EventFlag(40900102));
116     EndIf(EventFlag(40900103)); 117     EndIf(EventFlag(40900103));
117     WaitFor(EventFlag(40900100) || EventFlag(40900500)); 118     WaitFor(EventFlag(40900100) || EventFlag(40900500));
118     EndIf(EventFlag(40900500)); 119     EndIf(EventFlag(40900500));
119     EndIf(!MapHasPermissionToUpdate(false, 0, 0, 0, 0)); 120     EndIf(!MapHasPermissionToUpdate(false, 0, 0, 0, 0));
163 164
164 $Event(40902501, Restart, function() { 165 $Event(40902501, Restart, function() {
165     EndIf(EventFlag(40900500)); 166     EndIf(EventFlag(40900500));
166     WaitFor(CountEventFlags(TargetEventFlagType.EventFlag, 40900501, 40900503) == 3); 167     WaitFor(CountEventFlags(TargetEventFlagType.EventFlag, 40900501, 40900503) == 3);
167     SetNetworkconnectedEventFlagID(40900500, ON); 168     SetNetworkconnectedEventFlagID(40900500, ON);
168 }); 169 });
169 170
170 $Event(40902502, Default, function() { 171 $Event(40902502, Default, function() {
171     WaitFor(EventFlag(40900500)); 172     WaitFor(EventFlag(40900500));
172     SetWorldMapPointFlag(6, ON); 173     SetWorldMapPointFlag(6, ON);
174     SetWorldMapPointFlag(8, OFF);
173 }); 175 });
174 176
175 $Event(40902503, Default, function() { 177 $Event(40902503, Default, function() {
176     DisableNetworkSync(); 178     DisableNetworkSync();
177 }); 179 });
178 180
179 $Event(40902504, Default, function() { 181 $Event(40902504, Default, function() {
180     EndIf(EventFlag(40900500)); 182     EndIf(EventFlag(40900500));
181     WaitFor(EventFlag(40900500)); 183     WaitFor(EventFlag(40900500));
182     IncrementNetworkconnectedEventValue(8140, 4, 7); 184     IncrementNetworkconnectedEventValue(8140, 4, 7);
diff -rNU 10 nr1.01.7/m41_00_00_00.emevd.dcx.js nr/m41_00_00_00.emevd.dcx.js
nr1.01.7/m41_00_00_00.emevd.dcx.jsnr/m41_00_00_00.emevd.dcx.js
33     $InitializeCommonEvent(0, 90085008, 201, Hero.Guardian, 8351, 9147, 9167); 33     $InitializeCommonEvent(0, 90085008, 201, Hero.Guardian, 8351, 9147, 9167);
34     $InitializeCommonEvent(0, 90085008, 201, Hero.Guardian, 8351, 9148, 9168); 34     $InitializeCommonEvent(0, 90085008, 201, Hero.Guardian, 8351, 9148, 9168);
35     $InitializeCommonEvent(0, 90085008, 201, Hero.Guardian, 8351, 9150, 9170); 35     $InitializeCommonEvent(0, 90085008, 201, Hero.Guardian, 8351, 9150, 9170);
36     $InitializeCommonEvent(0, 90085008, 201, Hero.Guardian, 8351, 9152, 9172); 36     $InitializeCommonEvent(0, 90085008, 201, Hero.Guardian, 8351, 9152, 9172);
37     $InitializeCommonEvent(0, 90085008, 201, Hero.Guardian, 8351, 9153, 9173); 37     $InitializeCommonEvent(0, 90085008, 201, Hero.Guardian, 8351, 9153, 9173);
38     $InitializeCommonEvent(0, 90085008, 201, Hero.Guardian, 8351, 9154, 9174); 38     $InitializeCommonEvent(0, 90085008, 201, Hero.Guardian, 8351, 9154, 9174);
39     $InitializeCommonEvent(0, 90015009, 41004700, 41001501, 0, 1); 39     $InitializeCommonEvent(0, 90015009, 41004700, 41001501, 0, 1);
40     $InitializeCommonEvent(0, 90015208, 9328, 41004700, 9040); 40     $InitializeCommonEvent(0, 90015208, 9328, 41004700, 9040);
41     $InitializeEvent(0, 41002510); 41     $InitializeEvent(0, 41002510);
42     $InitializeEvent(0, 41002520); 42     $InitializeEvent(0, 41002520);
43     $InitializeCommonEvent(0, 90015500, 41002300);
43 }); 44 });
44 45
45 $Event(41002500, Restart, function(entityId, dummypolyId, sfxId) { 46 $Event(41002500, Restart, function(entityId, dummypolyId, sfxId) {
46     SpawnOneshotSFX(TargetEntityType.Asset, entityId, dummypolyId, sfxId); 47     SpawnOneshotSFX(TargetEntityType.Asset, entityId, dummypolyId, sfxId);
47 }); 48 });
48 49
49 $Event(41002510, Default, function() { 50 $Event(41002510, Default, function() {
50     DisableNetworkSync(); 51     DisableNetworkSync();
51     WaitFor(EventFlag(41004700)); 52     WaitFor(EventFlag(41004700));
52     SetWorldMapPointFlag(7, ON); 53     SetWorldMapPointFlag(7, ON);
54     SetWorldMapPointFlag(8, OFF);
53 }); 55 });
54 56
55 $Event(41002520, Default, function() { 57 $Event(41002520, Default, function() {
56     DisableNetworkSync(); 58     DisableNetworkSync();
57     EndIf(EventFlag(41004700)); 59     EndIf(EventFlag(41004700));
58     WaitFor(EventFlag(41004700)); 60     WaitFor(EventFlag(41004700));
59     ForceAnimationPlayback(20000, 60071, false, false, false); 61     ForceAnimationPlayback(20000, 60071, false, false, false);
60     SetSpEffect(20000, 99270); 62     SetSpEffect(20000, 99270);
61 }); 63 });
62 64
diff -rNU 10 nr1.01.7/m41_01_00_00.emevd.dcx.js nr/m41_01_00_00.emevd.dcx.js
nr1.01.7/m41_01_00_00.emevd.dcx.jsnr/m41_01_00_00.emevd.dcx.js
16 }); 16 });
17 17
18 $Event(41012500, Restart, function(entityId, dummypolyId, sfxId) { 18 $Event(41012500, Restart, function(entityId, dummypolyId, sfxId) {
19     SpawnOneshotSFX(TargetEntityType.Asset, entityId, dummypolyId, sfxId); 19     SpawnOneshotSFX(TargetEntityType.Asset, entityId, dummypolyId, sfxId);
20 }); 20 });
21 21
22 $Event(41012510, Default, function() { 22 $Event(41012510, Default, function() {
23     DisableNetworkSync(); 23     DisableNetworkSync();
24     WaitFor(EventFlag(41014700)); 24     WaitFor(EventFlag(41014700));
25     SetWorldMapPointFlag(7, ON); 25     SetWorldMapPointFlag(7, ON);
26     SetWorldMapPointFlag(8, OFF);
26 }); 27 });
27 28
28 $Event(41012520, Default, function() { 29 $Event(41012520, Default, function() {
29     DisableNetworkSync(); 30     DisableNetworkSync();
30     EndIf(EventFlag(41014700)); 31     EndIf(EventFlag(41014700));
31     WaitFor(EventFlag(41014700)); 32     WaitFor(EventFlag(41014700));
32     ForceAnimationPlayback(20000, 60071, false, false, false); 33     ForceAnimationPlayback(20000, 60071, false, false, false);
33     SetSpEffect(20000, 99270); 34     SetSpEffect(20000, 99270);
34 }); 35 });
35 36
diff -rNU 10 nr1.01.7/m45_51_00_00.emevd.dcx.js nr/m45_51_00_00.emevd.dcx.js
nr1.01.7/m45_51_00_00.emevd.dcx.jsnr/m45_51_00_00.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 45510800, 921510, 45510800, 0, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 45510800, 921510, 45510800, 0, 0);
21 S1: 21 S1:
22     if (0 != 0) { 22     if (0 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 45510800); 25     $InitializeCommonEvent(0, 90015015, 45510800);
26     $InitializeCommonEvent(0, 90015016, 45510800); 26     $InitializeCommonEvent(0, 90015016, 45510800);
27     $InitializeCommonEvent(0, 90015199, 45510800); 27     $InitializeCommonEvent(0, 90015199, 45510800);
28     if (IsPlayMode(2)) {
29         $InitializeCommonEvent(0, 90015040, 0);
30     }
28 }); 31 });
29 32
30 $Event(45512200, Default, function(chrEntityId) { 33 $Event(45512200, Default, function(chrEntityId) {
31     EndIf( 34     EndIf(
32         !(!EventFlag(7603) 35         !(!EventFlag(7603)
33             && (InArea(chrEntityId, 1045392989) 36             && (InArea(chrEntityId, 1045392989)
34                 || InArea(chrEntityId, 1045392988) 37                 || InArea(chrEntityId, 1045392988)
35                 || InArea(chrEntityId, 1044362996) 38                 || InArea(chrEntityId, 1044362996)
36                 || InArea(chrEntityId, 1045382998) 39                 || InArea(chrEntityId, 1045382998)
37                 || InArea(chrEntityId, 1045382997) 40                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_50_00_00.emevd.dcx.js nr/m46_50_00_00.emevd.dcx.js
nr1.01.7/m46_50_00_00.emevd.dcx.jsnr/m46_50_00_00.emevd.dcx.js
39     $InitializeCommonEvent(0, 90015009, 46500201, 46501200, 2, 2); 39     $InitializeCommonEvent(0, 90015009, 46500201, 46501200, 2, 2);
40     $InitializeCommonEvent(0, 90045006, 46500200, 46500201, 46500202, 3); 40     $InitializeCommonEvent(0, 90045006, 46500200, 46500201, 46500202, 3);
41     $InitializeCommonEvent(0, 90045000, 46500200, 46501200, 3, 903400300); 41     $InitializeCommonEvent(0, 90045000, 46500200, 46501200, 3, 903400300);
42     $InitializeCommonEvent(0, 90045001, 46500800, 46500201, 3, 46500870, 46501210, 1); 42     $InitializeCommonEvent(0, 90045001, 46500800, 46500201, 3, 46500870, 46501210, 1);
43     $InitializeCommonEvent(0, 90045002, 46500800, 3, 46500870, 46500830, 1030, 11241, 903400300, 46500870); 43     $InitializeCommonEvent(0, 90045002, 46500800, 3, 46500870, 46500830, 1030, 11241, 903400300, 46500870);
44     $InitializeCommonEvent(0, 90045004, 46500200, 46500202, 46500800, 46500290, 46500291, 46500292, 3, 46500870); 44     $InitializeCommonEvent(0, 90045004, 46500200, 46500202, 46500800, 46500290, 46500291, 46500292, 3, 46500870);
45     $InitializeCommonEvent(0, 90045005, 46500201, 46500202, 46500800, 46501210, 3, 46500290, 46500291); 45     $InitializeCommonEvent(0, 90045005, 46500201, 46500202, 46500800, 46501210, 3, 46500290, 46500291);
46     $InitializeCommonEvent(0, 90015000, 46500201, 46500870, 903400300, 30, 0, 0); 46     $InitializeCommonEvent(0, 90015000, 46500201, 46500870, 903400300, 30, 0, 0);
47     $InitializeCommonEvent(0, 90015030, 46500201, 46500870, 30, 921100, 0); 47     $InitializeCommonEvent(0, 90015030, 46500201, 46500870, 30, 921100, 0);
48     $InitializeCommonEvent(0, 90015009, 46500201, 46501200, 3, 2); 48     $InitializeCommonEvent(0, 90015009, 46500201, 46501200, 3, 2);
49     if (IsPlayMode(2)) {
50         if (IsMapVariation(2)) {
51             $InitializeCommonEvent(0, 90015042, 0, 46500200);
52         }
53         if (IsMapVariation(3)) {
54             $InitializeCommonEvent(0, 90015042, 10, 46500200);
55         }
56         if (IsMapVariation(4)) {
57             $InitializeCommonEvent(0, 90015042, 20, 46500200);
58         }
59         if (IsMapVariation(5)) {
60             $InitializeCommonEvent(0, 90015042, 30, 46500200);
61         }
62     }
49 }); 63 });
50 64
51 $Event(46502200, Default, function() { 65 $Event(46502200, Default, function() {
52     EndIf(EventFlag(46502200)); 66     EndIf(EventFlag(46502200));
53     WaitFor( 67     WaitFor(
54         ActionButtonInArea(9231, 46501200) 68         ActionButtonInArea(9231, 46501200)
55             || EventFlag(46500200) 69             || EventFlag(46500200)
56             || EventFlag(46500201) 70             || EventFlag(46500201)
57             || EventFlag(46500202) 71             || EventFlag(46500202)
58             || EventFlag(46500203) 72             || EventFlag(46500203)
diff -rNU 10 nr1.01.7/m46_51_00_00.emevd.dcx.js nr/m46_51_00_00.emevd.dcx.js
nr1.01.7/m46_51_00_00.emevd.dcx.jsnr/m46_51_00_00.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 46510800, 921410, 46510800, 0, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 46510800, 921410, 46510800, 0, 0);
21 S1: 21 S1:
22     if (0 != 0) { 22     if (0 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 46510800); 25     $InitializeCommonEvent(0, 90015015, 46510800);
26     $InitializeCommonEvent(0, 90015016, 46510800); 26     $InitializeCommonEvent(0, 90015016, 46510800);
27     $InitializeCommonEvent(0, 90015199, 46510800); 27     $InitializeCommonEvent(0, 90015199, 46510800);
28     if (IsPlayMode(2)) {
29         $InitializeCommonEvent(0, 90015040, 0);
30     }
28 }); 31 });
29 32
30 $Event(46512200, Default, function(chrEntityId) { 33 $Event(46512200, Default, function(chrEntityId) {
31     EndIf( 34     EndIf(
32         !(EventFlag(7603) 35         !(EventFlag(7603)
33             && (InArea(chrEntityId, 1045392989) 36             && (InArea(chrEntityId, 1045392989)
34                 || InArea(chrEntityId, 1045392988) 37                 || InArea(chrEntityId, 1045392988)
35                 || InArea(chrEntityId, 1044362996) 38                 || InArea(chrEntityId, 1044362996)
36                 || InArea(chrEntityId, 1045382998) 39                 || InArea(chrEntityId, 1045382998)
37                 || InArea(chrEntityId, 1045382997) 40                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_52_00_00.emevd.dcx.js nr/m46_52_00_00.emevd.dcx.js
nr1.01.7/m46_52_00_00.emevd.dcx.jsnr/m46_52_00_00.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 46520800, 920210, 46520800, 13708, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 46520800, 920210, 46520800, 13708, 0);
21 S1: 21 S1:
22     if (1 != 0) { 22     if (1 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 46520800); 25     $InitializeCommonEvent(0, 90015015, 46520800);
26     $InitializeCommonEvent(0, 90015016, 46520800); 26     $InitializeCommonEvent(0, 90015016, 46520800);
27     $InitializeCommonEvent(0, 90015199, 46520800); 27     $InitializeCommonEvent(0, 90015199, 46520800);
28     if (IsPlayMode(2)) {
29         $InitializeCommonEvent(0, 90015040, 0);
30     }
28 }); 31 });
29 32
30 $Event(46522200, Default, function(chrEntityId) { 33 $Event(46522200, Default, function(chrEntityId) {
31     EndIf( 34     EndIf(
32         !(!EventFlag(7603) 35         !(!EventFlag(7603)
33             && (InArea(chrEntityId, 1045392989) 36             && (InArea(chrEntityId, 1045392989)
34                 || InArea(chrEntityId, 1045392988) 37                 || InArea(chrEntityId, 1045392988)
35                 || InArea(chrEntityId, 1044362996) 38                 || InArea(chrEntityId, 1044362996)
36                 || InArea(chrEntityId, 1045382998) 39                 || InArea(chrEntityId, 1045382998)
37                 || InArea(chrEntityId, 1045382997) 40                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_53_00_00.emevd.dcx.js nr/m46_53_00_00.emevd.dcx.js
nr1.01.7/m46_53_00_00.emevd.dcx.jsnr/m46_53_00_00.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 46530800, 920210, 46530800, 13771, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 46530800, 920210, 46530800, 13771, 0);
21 S1: 21 S1:
22     if (1 != 0) { 22     if (1 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 46530800); 25     $InitializeCommonEvent(0, 90015015, 46530800);
26     $InitializeCommonEvent(0, 90015016, 46530800); 26     $InitializeCommonEvent(0, 90015016, 46530800);
27     $InitializeCommonEvent(0, 90015199, 46530800); 27     $InitializeCommonEvent(0, 90015199, 46530800);
28     if (IsPlayMode(2)) {
29         $InitializeCommonEvent(0, 90015040, 0);
30     }
28 }); 31 });
29 32
30 $Event(46532200, Default, function(chrEntityId) { 33 $Event(46532200, Default, function(chrEntityId) {
31     EndIf( 34     EndIf(
32         !(!EventFlag(7603) 35         !(!EventFlag(7603)
33             && (InArea(chrEntityId, 1045392989) 36             && (InArea(chrEntityId, 1045392989)
34                 || InArea(chrEntityId, 1045392988) 37                 || InArea(chrEntityId, 1045392988)
35                 || InArea(chrEntityId, 1044362996) 38                 || InArea(chrEntityId, 1044362996)
36                 || InArea(chrEntityId, 1045382998) 39                 || InArea(chrEntityId, 1045382998)
37                 || InArea(chrEntityId, 1045382997) 40                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_54_00_00.emevd.dcx.js nr/m46_54_00_00.emevd.dcx.js
nr1.01.7/m46_54_00_00.emevd.dcx.jsnr/m46_54_00_00.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 46540800, 920210, 46540800, 13801, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 46540800, 920210, 46540800, 13801, 0);
21 S1: 21 S1:
22     if (1 != 0) { 22     if (1 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 46540800); 25     $InitializeCommonEvent(0, 90015015, 46540800);
26     $InitializeCommonEvent(0, 90015016, 46540800); 26     $InitializeCommonEvent(0, 90015016, 46540800);
27     $InitializeCommonEvent(0, 90015199, 46540800); 27     $InitializeCommonEvent(0, 90015199, 46540800);
28     if (IsPlayMode(2)) {
29         $InitializeCommonEvent(0, 90015040, 0);
30     }
28 }); 31 });
29 32
30 $Event(46542200, Default, function(chrEntityId) { 33 $Event(46542200, Default, function(chrEntityId) {
31     EndIf( 34     EndIf(
32         !(!EventFlag(7603) 35         !(!EventFlag(7603)
33             && (InArea(chrEntityId, 1045392989) 36             && (InArea(chrEntityId, 1045392989)
34                 || InArea(chrEntityId, 1045392988) 37                 || InArea(chrEntityId, 1045392988)
35                 || InArea(chrEntityId, 1044362996) 38                 || InArea(chrEntityId, 1044362996)
36                 || InArea(chrEntityId, 1045382998) 39                 || InArea(chrEntityId, 1045382998)
37                 || InArea(chrEntityId, 1045382997) 40                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_55_00_00.emevd.dcx.js nr/m46_55_00_00.emevd.dcx.js
nr1.01.7/m46_55_00_00.emevd.dcx.jsnr/m46_55_00_00.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 46550800, 920910, 46550800, 0, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 46550800, 920910, 46550800, 0, 0);
21 S1: 21 S1:
22     if (0 != 0) { 22     if (0 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 46550800); 25     $InitializeCommonEvent(0, 90015015, 46550800);
26     $InitializeCommonEvent(0, 90015016, 46550800); 26     $InitializeCommonEvent(0, 90015016, 46550800);
27     $InitializeCommonEvent(0, 90015199, 46550800); 27     $InitializeCommonEvent(0, 90015199, 46550800);
28     if (IsPlayMode(2)) {
29         $InitializeCommonEvent(0, 90015040, 0);
30     }
28 }); 31 });
29 32
30 $Event(46552200, Default, function(chrEntityId) { 33 $Event(46552200, Default, function(chrEntityId) {
31     EndIf( 34     EndIf(
32         !(!EventFlag(7603) 35         !(!EventFlag(7603)
33             && (InArea(chrEntityId, 1045392989) 36             && (InArea(chrEntityId, 1045392989)
34                 || InArea(chrEntityId, 1045392988) 37                 || InArea(chrEntityId, 1045392988)
35                 || InArea(chrEntityId, 1044362996) 38                 || InArea(chrEntityId, 1044362996)
36                 || InArea(chrEntityId, 1045382998) 39                 || InArea(chrEntityId, 1045382998)
37                 || InArea(chrEntityId, 1045382997) 40                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_56_00_00.emevd.dcx.js nr/m46_56_00_00.emevd.dcx.js
nr1.01.7/m46_56_00_00.emevd.dcx.jsnr/m46_56_00_00.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 46560800, 921010, 46560800, 0, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 46560800, 921010, 46560800, 0, 0);
21 S1: 21 S1:
22     if (1 != 0) { 22     if (1 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 46560800); 25     $InitializeCommonEvent(0, 90015015, 46560800);
26     $InitializeCommonEvent(0, 90015016, 46560800); 26     $InitializeCommonEvent(0, 90015016, 46560800);
27     $InitializeCommonEvent(0, 90015199, 46560800); 27     $InitializeCommonEvent(0, 90015199, 46560800);
28     if (IsPlayMode(2)) {
29         $InitializeCommonEvent(0, 90015040, 0);
30     }
28 }); 31 });
29 32
30 $Event(46562200, Default, function(chrEntityId) { 33 $Event(46562200, Default, function(chrEntityId) {
31     EndIf( 34     EndIf(
32         !(!EventFlag(7603) 35         !(!EventFlag(7603)
33             && (InArea(chrEntityId, 1045392989) 36             && (InArea(chrEntityId, 1045392989)
34                 || InArea(chrEntityId, 1045392988) 37                 || InArea(chrEntityId, 1045392988)
35                 || InArea(chrEntityId, 1044362996) 38                 || InArea(chrEntityId, 1044362996)
36                 || InArea(chrEntityId, 1045382998) 39                 || InArea(chrEntityId, 1045382998)
37                 || InArea(chrEntityId, 1045382997) 40                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_57_00_00.emevd.dcx.js nr/m46_57_00_00.emevd.dcx.js
nr1.01.7/m46_57_00_00.emevd.dcx.jsnr/m46_57_00_00.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 46570800, 950010, 46570800, 0, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 46570800, 950010, 46570800, 0, 0);
21 S1: 21 S1:
22     if (0 != 0) { 22     if (0 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 46570800); 25     $InitializeCommonEvent(0, 90015015, 46570800);
26     $InitializeCommonEvent(0, 90015016, 46570800); 26     $InitializeCommonEvent(0, 90015016, 46570800);
27     $InitializeCommonEvent(0, 90015199, 46570800); 27     $InitializeCommonEvent(0, 90015199, 46570800);
28     if (IsPlayMode(2)) {
29         $InitializeCommonEvent(0, 90015040, 0);
30     }
28 }); 31 });
29 32
30 $Event(46572200, Default, function(chrEntityId) { 33 $Event(46572200, Default, function(chrEntityId) {
31     EndIf( 34     EndIf(
32         !(!EventFlag(7603) 35         !(!EventFlag(7603)
33             && (InArea(chrEntityId, 1045392989) 36             && (InArea(chrEntityId, 1045392989)
34                 || InArea(chrEntityId, 1045392988) 37                 || InArea(chrEntityId, 1045392988)
35                 || InArea(chrEntityId, 1044362996) 38                 || InArea(chrEntityId, 1044362996)
36                 || InArea(chrEntityId, 1045382998) 39                 || InArea(chrEntityId, 1045382998)
37                 || InArea(chrEntityId, 1045382997) 40                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_58_00_00.emevd.dcx.js nr/m46_58_00_00.emevd.dcx.js
nr1.01.7/m46_58_00_00.emevd.dcx.jsnr/m46_58_00_00.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 46580800, 920310, 46580800, 0, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 46580800, 920310, 46580800, 0, 0);
21 S1: 21 S1:
22     if (1 != 0) { 22     if (1 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 46580800); 25     $InitializeCommonEvent(0, 90015015, 46580800);
26     $InitializeCommonEvent(0, 90015016, 46580800); 26     $InitializeCommonEvent(0, 90015016, 46580800);
27     $InitializeCommonEvent(0, 90015199, 46580800); 27     $InitializeCommonEvent(0, 90015199, 46580800);
28     if (IsPlayMode(2)) {
29         $InitializeCommonEvent(0, 90015040, 0);
30     }
28 }); 31 });
29 32
30 $Event(46582200, Default, function(chrEntityId) { 33 $Event(46582200, Default, function(chrEntityId) {
31     EndIf( 34     EndIf(
32         !(!EventFlag(7603) 35         !(!EventFlag(7603)
33             && (InArea(chrEntityId, 1045392989) 36             && (InArea(chrEntityId, 1045392989)
34                 || InArea(chrEntityId, 1045392988) 37                 || InArea(chrEntityId, 1045392988)
35                 || InArea(chrEntityId, 1044362996) 38                 || InArea(chrEntityId, 1044362996)
36                 || InArea(chrEntityId, 1045382998) 39                 || InArea(chrEntityId, 1045382998)
37                 || InArea(chrEntityId, 1045382997) 40                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_59_00_00.emevd.dcx.js nr/m46_59_00_00.emevd.dcx.js
nr1.01.7/m46_59_00_00.emevd.dcx.jsnr/m46_59_00_00.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 46590800, 921210, 46590800, 0, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 46590800, 921210, 46590800, 0, 0);
21 S1: 21 S1:
22     if (0 != 0) { 22     if (0 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 46590800); 25     $InitializeCommonEvent(0, 90015015, 46590800);
26     $InitializeCommonEvent(0, 90015016, 46590800); 26     $InitializeCommonEvent(0, 90015016, 46590800);
27     $InitializeCommonEvent(0, 90015199, 46590800); 27     $InitializeCommonEvent(0, 90015199, 46590800);
28     if (IsPlayMode(2)) {
29         $InitializeCommonEvent(0, 90015040, 0);
30     }
28 }); 31 });
29 32
30 $Event(46592200, Default, function(chrEntityId) { 33 $Event(46592200, Default, function(chrEntityId) {
31     EndIf( 34     EndIf(
32         !(!EventFlag(7603) 35         !(!EventFlag(7603)
33             && (InArea(chrEntityId, 1045392989) 36             && (InArea(chrEntityId, 1045392989)
34                 || InArea(chrEntityId, 1045392988) 37                 || InArea(chrEntityId, 1045392988)
35                 || InArea(chrEntityId, 1044362996) 38                 || InArea(chrEntityId, 1044362996)
36                 || InArea(chrEntityId, 1045382998) 39                 || InArea(chrEntityId, 1045382998)
37                 || InArea(chrEntityId, 1045382997) 40                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_60_00_00.emevd.dcx.js nr/m46_60_00_00.emevd.dcx.js
nr1.01.7/m46_60_00_00.emevd.dcx.jsnr/m46_60_00_00.emevd.dcx.js
48     $InitializeCommonEvent(0, 90015009, 46600201, 46601200, 5, 2); 48     $InitializeCommonEvent(0, 90015009, 46600201, 46601200, 5, 2);
49     $InitializeCommonEvent(0, 90045006, 46600200, 46600201, 46600202, 6); 49     $InitializeCommonEvent(0, 90045006, 46600200, 46600201, 46600202, 6);
50     $InitializeCommonEvent(0, 90045000, 46600200, 46601200, 6, 904290310); 50     $InitializeCommonEvent(0, 90045000, 46600200, 46601200, 6, 904290310);
51     $InitializeCommonEvent(0, 90045001, 46600800, 46600201, 6, 46600860, 46601210, 1); 51     $InitializeCommonEvent(0, 90045001, 46600800, 46600201, 6, 46600860, 46601210, 1);
52     $InitializeCommonEvent(0, 90045002, 46600800, 6, 46600860, 46600860, 1030, 11241, 904290310, 46600860); 52     $InitializeCommonEvent(0, 90045002, 46600800, 6, 46600860, 46600860, 1030, 11241, 904290310, 46600860);
53     $InitializeCommonEvent(0, 90045004, 46600200, 46600202, 46600800, 46600290, 46600291, 46600292, 6, 46600860); 53     $InitializeCommonEvent(0, 90045004, 46600200, 46600202, 46600800, 46600290, 46600291, 46600292, 6, 46600860);
54     $InitializeCommonEvent(0, 90045005, 46600201, 46600202, 46600800, 46601210, 6, 46600290, 46600291); 54     $InitializeCommonEvent(0, 90045005, 46600201, 46600202, 46600800, 46601210, 6, 46600290, 46600291);
55     $InitializeCommonEvent(0, 90015000, 46600201, 46600860, 904290310, 30, 0, 0); 55     $InitializeCommonEvent(0, 90015000, 46600201, 46600860, 904290310, 30, 0, 0);
56     $InitializeCommonEvent(0, 90015030, 46600201, 46600860, 30, 921100, 0); 56     $InitializeCommonEvent(0, 90015030, 46600201, 46600860, 30, 921100, 0);
57     $InitializeCommonEvent(0, 90015009, 46600201, 46601200, 6, 2); 57     $InitializeCommonEvent(0, 90015009, 46600201, 46601200, 6, 2);
58     if (IsPlayMode(2)) {
59         if (IsMapVariation(2)) {
60             $InitializeCommonEvent(0, 90015042, 0, 46600200);
61         }
62         if (IsMapVariation(3)) {
63             $InitializeCommonEvent(0, 90015042, 10, 46600200);
64         }
65         if (IsMapVariation(4)) {
66             $InitializeCommonEvent(0, 90015042, 20, 46600200);
67         }
68         if (IsMapVariation(5)) {
69             $InitializeCommonEvent(0, 90015042, 30, 46600200);
70         }
71         if (IsMapVariation(6)) {
72             $InitializeCommonEvent(0, 90015042, 40, 46600200);
73         }
74     }
58 }); 75 });
59 76
60 $Event(46602200, Default, function() { 77 $Event(46602200, Default, function() {
61     EndIf(EventFlag(46602200)); 78     EndIf(EventFlag(46602200));
62     WaitFor(ActionButtonInArea(9231, 46601200) || EventFlag(46600200) || EventFlag(46600201)); 79     WaitFor(ActionButtonInArea(9231, 46601200) || EventFlag(46600200) || EventFlag(46600201));
63     GotoIf(L0, IsMapVariation(0)); 80     GotoIf(L0, IsMapVariation(0));
64     GotoIf(L1, IsMapVariation(1)); 81     GotoIf(L1, IsMapVariation(1));
65     WaitFixedTimeSeconds(1); 82     WaitFixedTimeSeconds(1);
66     RestartEvent(); 83     RestartEvent();
67 L0: 84 L0:
diff -rNU 10 nr1.01.7/m46_62_00_00.emevd.dcx.js nr/m46_62_00_00.emevd.dcx.js
nr1.01.7/m46_62_00_00.emevd.dcx.jsnr/m46_62_00_00.emevd.dcx.js
20     $InitializeCommonEvent(0, 90015008, 0, 46620800, 921010, 46620800, 0, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 46620800, 921010, 46620800, 0, 0);
21 S1: 21 S1:
22     if (0 != 0) { 22     if (0 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 46620800); 25     $InitializeCommonEvent(0, 90015015, 46620800);
26     $InitializeCommonEvent(0, 90015016, 46620800); 26     $InitializeCommonEvent(0, 90015016, 46620800);
27     $InitializeCommonEvent(0, 90065111, 46620800, 46620810, 6001, 46620800); 27     $InitializeCommonEvent(0, 90065111, 46620800, 46620810, 6001, 46620800);
28     $InitializeCommonEvent(0, 90065112, 46620800, 46620810, 6001, 46620800); 28     $InitializeCommonEvent(0, 90065112, 46620800, 46620810, 6001, 46620800);
29     $InitializeCommonEvent(0, 90015199, 46620800); 29     $InitializeCommonEvent(0, 90015199, 46620800);
30     if (IsPlayMode(2)) {
31         $InitializeCommonEvent(0, 90015040, 0);
32     }
30 }); 33 });
31 34
32 $Event(46622200, Default, function(chrEntityId) { 35 $Event(46622200, Default, function(chrEntityId) {
33     EndIf( 36     EndIf(
34         !(!EventFlag(7603) 37         !(!EventFlag(7603)
35             && (InArea(chrEntityId, 1045392989) 38             && (InArea(chrEntityId, 1045392989)
36                 || InArea(chrEntityId, 1045392988) 39                 || InArea(chrEntityId, 1045392988)
37                 || InArea(chrEntityId, 1044362996) 40                 || InArea(chrEntityId, 1044362996)
38                 || InArea(chrEntityId, 1045382998) 41                 || InArea(chrEntityId, 1045382998)
39                 || InArea(chrEntityId, 1045382997) 42                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_63_00_00.emevd.dcx.js nr/m46_63_00_00.emevd.dcx.js
nr1.01.7/m46_63_00_00.emevd.dcx.jsnr/m46_63_00_00.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 46630800, 920610, 46630800, 18870, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 46630800, 920610, 46630800, 18870, 0);
21 S1: 21 S1:
22     if (1 != 0) { 22     if (1 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 46630800); 25     $InitializeCommonEvent(0, 90015015, 46630800);
26     $InitializeCommonEvent(0, 90015016, 46630800); 26     $InitializeCommonEvent(0, 90015016, 46630800);
27     $InitializeCommonEvent(0, 90015199, 46630800); 27     $InitializeCommonEvent(0, 90015199, 46630800);
28     if (IsPlayMode(2)) {
29         $InitializeCommonEvent(0, 90015040, 0);
30     }
28 }); 31 });
29 32
30 $Event(46632200, Default, function(chrEntityId) { 33 $Event(46632200, Default, function(chrEntityId) {
31     EndIf( 34     EndIf(
32         !(!EventFlag(7603) 35         !(!EventFlag(7603)
33             && (InArea(chrEntityId, 1045392989) 36             && (InArea(chrEntityId, 1045392989)
34                 || InArea(chrEntityId, 1045392988) 37                 || InArea(chrEntityId, 1045392988)
35                 || InArea(chrEntityId, 1044362996) 38                 || InArea(chrEntityId, 1044362996)
36                 || InArea(chrEntityId, 1045382998) 39                 || InArea(chrEntityId, 1045382998)
37                 || InArea(chrEntityId, 1045382997) 40                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_64_00_00.emevd.dcx.js nr/m46_64_00_00.emevd.dcx.js
nr1.01.7/m46_64_00_00.emevd.dcx.jsnr/m46_64_00_00.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 46640800, 467010, 46640800, 0, 0.55); 20     $InitializeCommonEvent(0, 90015008, 0, 46640800, 467010, 46640800, 0, 0.55);
21 S1: 21 S1:
22     if (1 != 0) { 22     if (1 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 46640800); 25     $InitializeCommonEvent(0, 90015015, 46640800);
26     $InitializeCommonEvent(0, 90015016, 46640800); 26     $InitializeCommonEvent(0, 90015016, 46640800);
27     $InitializeCommonEvent(0, 90015199, 46640800); 27     $InitializeCommonEvent(0, 90015199, 46640800);
28     if (IsPlayMode(2)) {
29         $InitializeCommonEvent(0, 90015040, 0);
30     }
28 }); 31 });
29 32
30 $Event(46642200, Default, function(chrEntityId) { 33 $Event(46642200, Default, function(chrEntityId) {
31     EndIf( 34     EndIf(
32         !(!EventFlag(7603) 35         !(!EventFlag(7603)
33             && (InArea(chrEntityId, 1045392989) 36             && (InArea(chrEntityId, 1045392989)
34                 || InArea(chrEntityId, 1045392988) 37                 || InArea(chrEntityId, 1045392988)
35                 || InArea(chrEntityId, 1044362996) 38                 || InArea(chrEntityId, 1044362996)
36                 || InArea(chrEntityId, 1045382998) 39                 || InArea(chrEntityId, 1045382998)
37                 || InArea(chrEntityId, 1045382997) 40                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_65_00_00.emevd.dcx.js nr/m46_65_00_00.emevd.dcx.js
nr1.01.7/m46_65_00_00.emevd.dcx.jsnr/m46_65_00_00.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 46650800, 920910, 46650800, 0, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 46650800, 920910, 46650800, 0, 0);
21 S1: 21 S1:
22     if (0 != 0) { 22     if (0 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 46650800); 25     $InitializeCommonEvent(0, 90015015, 46650800);
26     $InitializeCommonEvent(0, 90015016, 46650800); 26     $InitializeCommonEvent(0, 90015016, 46650800);
27     $InitializeCommonEvent(0, 90015199, 46650800); 27     $InitializeCommonEvent(0, 90015199, 46650800);
28     if (IsPlayMode(2)) {
29         $InitializeCommonEvent(0, 90015040, 0);
30     }
28 }); 31 });
29 32
30 $Event(46652200, Default, function(chrEntityId) { 33 $Event(46652200, Default, function(chrEntityId) {
31     EndIf( 34     EndIf(
32         !(!EventFlag(7603) 35         !(!EventFlag(7603)
33             && (InArea(chrEntityId, 1045392989) 36             && (InArea(chrEntityId, 1045392989)
34                 || InArea(chrEntityId, 1045392988) 37                 || InArea(chrEntityId, 1045392988)
35                 || InArea(chrEntityId, 1044362996) 38                 || InArea(chrEntityId, 1044362996)
36                 || InArea(chrEntityId, 1045382998) 39                 || InArea(chrEntityId, 1045382998)
37                 || InArea(chrEntityId, 1045382997) 40                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_66_00_00.emevd.dcx.js nr/m46_66_00_00.emevd.dcx.js
nr1.01.7/m46_66_00_00.emevd.dcx.jsnr/m46_66_00_00.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 46660800, 931010, 46660800, 0, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 46660800, 931010, 46660800, 0, 0);
21 S1: 21 S1:
22     if (1 != 0) { 22     if (1 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 46660800); 25     $InitializeCommonEvent(0, 90015015, 46660800);
26     $InitializeCommonEvent(0, 90015016, 46660800); 26     $InitializeCommonEvent(0, 90015016, 46660800);
27     $InitializeCommonEvent(0, 90015199, 46660800); 27     $InitializeCommonEvent(0, 90015199, 46660800);
28     if (IsPlayMode(2)) {
29         $InitializeCommonEvent(0, 90015040, 0);
30     }
28 }); 31 });
29 32
30 $Event(46662200, Default, function(chrEntityId) { 33 $Event(46662200, Default, function(chrEntityId) {
31     EndIf( 34     EndIf(
32         !(!EventFlag(7603) 35         !(!EventFlag(7603)
33             && (InArea(chrEntityId, 1045392989) 36             && (InArea(chrEntityId, 1045392989)
34                 || InArea(chrEntityId, 1045392988) 37                 || InArea(chrEntityId, 1045392988)
35                 || InArea(chrEntityId, 1044362996) 38                 || InArea(chrEntityId, 1044362996)
36                 || InArea(chrEntityId, 1045382998) 39                 || InArea(chrEntityId, 1045382998)
37                 || InArea(chrEntityId, 1045382997) 40                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_67_00_00.emevd.dcx.js nr/m46_67_00_00.emevd.dcx.js
nr1.01.7/m46_67_00_00.emevd.dcx.jsnr/m46_67_00_00.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 46670800, 920610, 46670800, 0, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 46670800, 920610, 46670800, 0, 0);
21 S1: 21 S1:
22     if (1 != 0) { 22     if (1 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 46670800); 25     $InitializeCommonEvent(0, 90015015, 46670800);
26     $InitializeCommonEvent(0, 90015016, 46670800); 26     $InitializeCommonEvent(0, 90015016, 46670800);
27     $InitializeCommonEvent(0, 90015199, 46670800); 27     $InitializeCommonEvent(0, 90015199, 46670800);
28     if (IsPlayMode(2)) {
29         $InitializeCommonEvent(0, 90015040, 0);
30     }
28 }); 31 });
29 32
30 $Event(46672200, Default, function(chrEntityId) { 33 $Event(46672200, Default, function(chrEntityId) {
31     EndIf( 34     EndIf(
32         !(!EventFlag(7603) 35         !(!EventFlag(7603)
33             && (InArea(chrEntityId, 1045392989) 36             && (InArea(chrEntityId, 1045392989)
34                 || InArea(chrEntityId, 1045392988) 37                 || InArea(chrEntityId, 1045392988)
35                 || InArea(chrEntityId, 1044362996) 38                 || InArea(chrEntityId, 1044362996)
36                 || InArea(chrEntityId, 1045382998) 39                 || InArea(chrEntityId, 1045382998)
37                 || InArea(chrEntityId, 1045382997) 40                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_68_00_00.emevd.dcx.js nr/m46_68_00_00.emevd.dcx.js
nr1.01.7/m46_68_00_00.emevd.dcx.jsnr/m46_68_00_00.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 46680800, 920910, 46680800, 0, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 46680800, 920910, 46680800, 0, 0);
21 S1: 21 S1:
22     if (1 != 0) { 22     if (1 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 46680800); 25     $InitializeCommonEvent(0, 90015015, 46680800);
26     $InitializeCommonEvent(0, 90015016, 46680800); 26     $InitializeCommonEvent(0, 90015016, 46680800);
27     $InitializeCommonEvent(0, 90015199, 46680800); 27     $InitializeCommonEvent(0, 90015199, 46680800);
28     if (IsPlayMode(2)) {
29         $InitializeCommonEvent(0, 90015040, 0);
30     }
28 }); 31 });
29 32
30 $Event(46682200, Default, function(chrEntityId) { 33 $Event(46682200, Default, function(chrEntityId) {
31     EndIf( 34     EndIf(
32         !(!EventFlag(7603) 35         !(!EventFlag(7603)
33             && (InArea(chrEntityId, 1045392989) 36             && (InArea(chrEntityId, 1045392989)
34                 || InArea(chrEntityId, 1045392988) 37                 || InArea(chrEntityId, 1045392988)
35                 || InArea(chrEntityId, 1044362996) 38                 || InArea(chrEntityId, 1044362996)
36                 || InArea(chrEntityId, 1045382998) 39                 || InArea(chrEntityId, 1045382998)
37                 || InArea(chrEntityId, 1045382997) 40                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_69_00_00.emevd.dcx.js nr/m46_69_00_00.emevd.dcx.js
nr1.01.7/m46_69_00_00.emevd.dcx.jsnr/m46_69_00_00.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 46690800, 920210, 46690800, 16951, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 46690800, 920210, 46690800, 16951, 0);
21 S1: 21 S1:
22     if (0 != 0) { 22     if (0 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 46690800); 25     $InitializeCommonEvent(0, 90015015, 46690800);
26     $InitializeCommonEvent(0, 90015016, 46690800); 26     $InitializeCommonEvent(0, 90015016, 46690800);
27     $InitializeCommonEvent(0, 90015199, 46690800); 27     $InitializeCommonEvent(0, 90015199, 46690800);
28     if (IsPlayMode(2)) {
29         $InitializeCommonEvent(0, 90015040, 0);
30     }
28 }); 31 });
29 32
30 $Event(46692200, Default, function(chrEntityId) { 33 $Event(46692200, Default, function(chrEntityId) {
31     EndIf( 34     EndIf(
32         !(!EventFlag(7603) 35         !(!EventFlag(7603)
33             && (InArea(chrEntityId, 1045392989) 36             && (InArea(chrEntityId, 1045392989)
34                 || InArea(chrEntityId, 1045392988) 37                 || InArea(chrEntityId, 1045392988)
35                 || InArea(chrEntityId, 1044362996) 38                 || InArea(chrEntityId, 1044362996)
36                 || InArea(chrEntityId, 1045382998) 39                 || InArea(chrEntityId, 1045382998)
37                 || InArea(chrEntityId, 1045382997) 40                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_70_00_00.emevd.dcx.js nr/m46_70_00_00.emevd.dcx.js
nr1.01.7/m46_70_00_00.emevd.dcx.jsnr/m46_70_00_00.emevd.dcx.js
48     $InitializeCommonEvent(0, 90015009, 46700201, 46701200, 3, 2); 48     $InitializeCommonEvent(0, 90015009, 46700201, 46701200, 3, 2);
49     $InitializeCommonEvent(0, 90045006, 46700200, 46700201, 46700202, 4); 49     $InitializeCommonEvent(0, 90045006, 46700200, 46700201, 46700202, 4);
50     $InitializeCommonEvent(0, 90045000, 46700200, 46701200, 4, 902500301); 50     $InitializeCommonEvent(0, 90045000, 46700200, 46701200, 4, 902500301);
51     $InitializeCommonEvent(0, 90045001, 46700800, 46700201, 4, 46700840, 46701210, 1); 51     $InitializeCommonEvent(0, 90045001, 46700800, 46700201, 4, 46700840, 46701210, 1);
52     $InitializeCommonEvent(0, 90045002, 46700800, 4, 46700840, 46700840, 1020, 11241, 902500301, 46700840); 52     $InitializeCommonEvent(0, 90045002, 46700800, 4, 46700840, 46700840, 1020, 11241, 902500301, 46700840);
53     $InitializeCommonEvent(0, 90045004, 46700200, 46700202, 46700800, 46700290, 46700291, 46700292, 4, 46700840); 53     $InitializeCommonEvent(0, 90045004, 46700200, 46700202, 46700800, 46700290, 46700291, 46700292, 4, 46700840);
54     $InitializeCommonEvent(0, 90045005, 46700201, 46700202, 46700800, 46701210, 4, 46700290, 46700291); 54     $InitializeCommonEvent(0, 90045005, 46700201, 46700202, 46700800, 46701210, 4, 46700290, 46700291);
55     $InitializeCommonEvent(0, 90015000, 46700201, 46700840, 902500301, 30, 0, 0); 55     $InitializeCommonEvent(0, 90015000, 46700201, 46700840, 902500301, 30, 0, 0);
56     $InitializeCommonEvent(0, 90015030, 46700201, 46700840, 30, 921100, 0); 56     $InitializeCommonEvent(0, 90015030, 46700201, 46700840, 30, 921100, 0);
57     $InitializeCommonEvent(0, 90015009, 46700201, 46701200, 4, 2); 57     $InitializeCommonEvent(0, 90015009, 46700201, 46701200, 4, 2);
58     if (IsPlayMode(2)) {
59         if (IsMapVariation(0)) {
60             $InitializeCommonEvent(0, 90015042, 0, 46700200);
61         }
62         if (IsMapVariation(1)) {
63             $InitializeCommonEvent(0, 90015042, 10, 46700200);
64         }
65         if (IsMapVariation(2)) {
66             $InitializeCommonEvent(0, 90015042, 20, 46700200);
67         }
68         if (IsMapVariation(3)) {
69             $InitializeCommonEvent(0, 90015042, 30, 46700200);
70         }
71         if (IsMapVariation(4)) {
72             $InitializeCommonEvent(0, 90015042, 40, 46700200);
73         }
74     }
58 }); 75 });
59 76
diff -rNU 10 nr1.01.7/m46_71_00_00.emevd.dcx.js nr/m46_71_00_00.emevd.dcx.js
nr1.01.7/m46_71_00_00.emevd.dcx.jsnr/m46_71_00_00.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 46710800, 920910, 46715800, 0, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 46710800, 920910, 46715800, 0, 0);
21 S1: 21 S1:
22     if (0 != 0) { 22     if (0 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 46710800); 25     $InitializeCommonEvent(0, 90015015, 46710800);
26     $InitializeCommonEvent(0, 90015016, 46710800); 26     $InitializeCommonEvent(0, 90015016, 46710800);
27     $InitializeCommonEvent(0, 90015199, 46710800); 27     $InitializeCommonEvent(0, 90015199, 46710800);
28     if (IsPlayMode(2)) {
29         $InitializeCommonEvent(0, 90015040, 0);
30     }
28 }); 31 });
29 32
30 $Event(46712200, Default, function(chrEntityId) { 33 $Event(46712200, Default, function(chrEntityId) {
31     EndIf( 34     EndIf(
32         !(!EventFlag(7603) 35         !(!EventFlag(7603)
33             && (InArea(chrEntityId, 1045392989) 36             && (InArea(chrEntityId, 1045392989)
34                 || InArea(chrEntityId, 1045392988) 37                 || InArea(chrEntityId, 1045392988)
35                 || InArea(chrEntityId, 1044362996) 38                 || InArea(chrEntityId, 1044362996)
36                 || InArea(chrEntityId, 1045382998) 39                 || InArea(chrEntityId, 1045382998)
37                 || InArea(chrEntityId, 1045382997) 40                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_72_00_00.emevd.dcx.js nr/m46_72_00_00.emevd.dcx.js
nr1.01.7/m46_72_00_00.emevd.dcx.jsnr/m46_72_00_00.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 46720800, 920610, 46720800, 0, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 46720800, 920610, 46720800, 0, 0);
21 S1: 21 S1:
22     if (0 != 0) { 22     if (0 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 46720800); 25     $InitializeCommonEvent(0, 90015015, 46720800);
26     $InitializeCommonEvent(0, 90015016, 46720800); 26     $InitializeCommonEvent(0, 90015016, 46720800);
27     $InitializeCommonEvent(0, 90015199, 46720800); 27     $InitializeCommonEvent(0, 90015199, 46720800);
28     if (IsPlayMode(2)) {
29         $InitializeCommonEvent(0, 90015040, 0);
30     }
28 }); 31 });
29 32
30 $Event(46722200, Default, function(chrEntityId) { 33 $Event(46722200, Default, function(chrEntityId) {
31     EndIf( 34     EndIf(
32         !(!EventFlag(7603) 35         !(!EventFlag(7603)
33             && (InArea(chrEntityId, 1045392989) 36             && (InArea(chrEntityId, 1045392989)
34                 || InArea(chrEntityId, 1045392988) 37                 || InArea(chrEntityId, 1045392988)
35                 || InArea(chrEntityId, 1044362996) 38                 || InArea(chrEntityId, 1044362996)
36                 || InArea(chrEntityId, 1045382998) 39                 || InArea(chrEntityId, 1045382998)
37                 || InArea(chrEntityId, 1045382997) 40                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_77_00_00.emevd.dcx.js nr/m46_77_00_00.emevd.dcx.js
nr1.01.7/m46_77_00_00.emevd.dcx.jsnr/m46_77_00_00.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 46770800, 931010, 46770800, 0, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 46770800, 931010, 46770800, 0, 0);
21 S1: 21 S1:
22     if (0 != 0) { 22     if (0 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 46770800); 25     $InitializeCommonEvent(0, 90015015, 46770800);
26     $InitializeCommonEvent(0, 90015016, 46770800); 26     $InitializeCommonEvent(0, 90015016, 46770800);
27     $InitializeCommonEvent(0, 90015199, 46770800); 27     $InitializeCommonEvent(0, 90015199, 46770800);
28     if (IsPlayMode(2)) {
29         $InitializeCommonEvent(0, 90015040, 0);
30     }
28 }); 31 });
29 32
30 $Event(46772200, Default, function(chrEntityId) { 33 $Event(46772200, Default, function(chrEntityId) {
31     EndIf( 34     EndIf(
32         !(!EventFlag(7603) 35         !(!EventFlag(7603)
33             && (InArea(chrEntityId, 1045392989) 36             && (InArea(chrEntityId, 1045392989)
34                 || InArea(chrEntityId, 1045392988) 37                 || InArea(chrEntityId, 1045392988)
35                 || InArea(chrEntityId, 1044362996) 38                 || InArea(chrEntityId, 1044362996)
36                 || InArea(chrEntityId, 1045382998) 39                 || InArea(chrEntityId, 1045382998)
37                 || InArea(chrEntityId, 1045382997) 40                 || InArea(chrEntityId, 1045382997)
diff -rNU 10 nr1.01.7/m46_80_00_00.emevd.dcx.js nr/m46_80_00_00.emevd.dcx.js
nr1.01.7/m46_80_00_00.emevd.dcx.jsnr/m46_80_00_00.emevd.dcx.js
31     $InitializeCommonEvent(0, 90045006, 46800200, 46800201, 46800202, 2); 31     $InitializeCommonEvent(0, 90045006, 46800200, 46800201, 46800202, 2);
32     $InitializeCommonEvent(0, 90045000, 46800200, 46801200, 2, 903575000); 32     $InitializeCommonEvent(0, 90045000, 46800200, 46801200, 2, 903575000);
33     $InitializeCommonEvent(0, 90045001, 46800800, 46800201, 2, 46805800, 46801210, 1); 33     $InitializeCommonEvent(0, 90045001, 46800800, 46800201, 2, 46805800, 46801210, 1);
34     $InitializeCommonEvent(0, 90045002, 46800800, 2, 46805800, 46800820, 1020, 11241, 903575000, 46800950); 34     $InitializeCommonEvent(0, 90045002, 46800800, 2, 46805800, 46800820, 1020, 11241, 903575000, 46800950);
35     $InitializeCommonEvent(0, 90045004, 46800200, 46800202, 46800800, 46800290, 46800291, 46800292, 2, 46805800); 35     $InitializeCommonEvent(0, 90045004, 46800200, 46800202, 46800800, 46800290, 46800291, 46800292, 2, 46805800);
36     $InitializeCommonEvent(0, 90045005, 46800201, 46800202, 46800800, 46801210, 2, 46800290, 46800291); 36     $InitializeCommonEvent(0, 90045005, 46800201, 46800202, 46800800, 46801210, 2, 46800290, 46800291);
37     $InitializeCommonEvent(0, 90015000, 46800201, 46800820, 903560000, 30, 0, 0); 37     $InitializeCommonEvent(0, 90015000, 46800201, 46800820, 903560000, 30, 0, 0);
38     $InitializeCommonEvent(0, 90015000, 46800201, 46800821, 903570000, 30, 0, 0); 38     $InitializeCommonEvent(0, 90015000, 46800201, 46800821, 903570000, 30, 0, 0);
39     $InitializeCommonEvent(0, 90015030, 46800201, 46805800, 30, 921100, 0); 39     $InitializeCommonEvent(0, 90015030, 46800201, 46805800, 30, 921100, 0);
40     $InitializeCommonEvent(0, 90015009, 46800201, 46801200, 2, 2); 40     $InitializeCommonEvent(0, 90015009, 46800201, 46801200, 2, 2);
41     if (IsPlayMode(2)) {
42         if (IsMapVariation(0)) {
43             $InitializeCommonEvent(0, 90015042, 0, 46800200);
44         }
45         if (IsMapVariation(1)) {
46             $InitializeCommonEvent(0, 90015042, 10, 46800200);
47         }
48         if (IsMapVariation(2)) {
49             $InitializeCommonEvent(0, 90015042, 20, 46800200);
50         }
51     }
41 }); 52 });
42 53
43 $Event(46802200, Default, function() { 54 $Event(46802200, Default, function() {
44     EndIf(EventFlag(46802201)); 55     EndIf(EventFlag(46802201));
45     actFlag = ActionButtonInArea(9231, 46801200) || EventFlag(46800200) || EventFlag(46800201); 56     actFlag = ActionButtonInArea(9231, 46801200) || EventFlag(46800200) || EventFlag(46800201);
46     item = PlayerHasItem(ItemType.Goods, 8000); 57     item = PlayerHasItem(ItemType.Goods, 8000);
47     WaitFor(actFlag); 58     WaitFor(actFlag);
48     GotoIf(L2, !item.Passed); 59     GotoIf(L2, !item.Passed);
49     GotoIf(L0, IsMapVariation(0)); 60     GotoIf(L0, IsMapVariation(0));
50     GotoIf(L1, IsMapVariation(1)); 61     GotoIf(L1, IsMapVariation(1));
diff -rNU 10 nr1.01.7/m60_42_36_50.emevd.dcx.js nr/m60_42_36_50.emevd.dcx.js
nr1.01.7/m60_42_36_50.emevd.dcx.jsnr/m60_42_36_50.emevd.dcx.js
44     Goto(S3); 44     Goto(S3);
45 S2: 45 S2:
46     $InitializeCommonEvent(0, 90015008, 0, 1026500810, 931010, 1026500810, 0, 0); 46     $InitializeCommonEvent(0, 90015008, 0, 1026500810, 931010, 1026500810, 0, 0);
47 S3: 47 S3:
48     if (0 != 0) { 48     if (0 != 0) {
49         $InitializeCommonEvent(0, 90015013); 49         $InitializeCommonEvent(0, 90015013);
50     } 50     }
51     $InitializeCommonEvent(0, 90015015, 1026500810); 51     $InitializeCommonEvent(0, 90015015, 1026500810);
52     $InitializeCommonEvent(0, 90015016, 1026500810); 52     $InitializeCommonEvent(0, 90015016, 1026500810);
53     $InitializeCommonEvent(0, 90015017, 1026500810, 15, 0, 1026500810, 72452, 1026500810); 53     $InitializeCommonEvent(0, 90015017, 1026500810, 15, 0, 1026500810, 72452, 1026500810);
54     $InitializeCommonEvent(0, 90015041, 190, 0, 0, 72487);
54     $InitializeCommonEvent(0, 90005201, 1026500810, 30000, 20000, 30, 2, 0, 0, 0, 0); 55     $InitializeCommonEvent(0, 90005201, 1026500810, 30000, 20000, 30, 2, 0, 0, 0, 0);
55     $InitializeCommonEvent(0, 90015000, 0, 1026500850, 904650601, 30, 0, 0); 56     $InitializeCommonEvent(0, 90015000, 0, 1026500850, 904650601, 30, 0, 0);
56     $InitializeCommonEvent(0, 90015030, 0, 1026500850, 30, 920310, 0); 57     $InitializeCommonEvent(0, 90015030, 0, 1026500850, 30, 920310, 0);
57     $InitializeCommonEvent(0, 90015002, 0, 0, 1026500850, 1026500850, 1020, 920310, 11290, 904650601, 1026500850); 58     $InitializeCommonEvent(0, 90015002, 0, 0, 1026500850, 1026500850, 1020, 920310, 11290, 904650601, 1026500850);
58     $InitializeCommonEvent(0, 9005810, 1026500850, 1026500550, 1026501550, 5); 59     $InitializeCommonEvent(0, 9005810, 1026500850, 1026500550, 1026501550, 5);
59     $InitializeCommonEvent(0, 90015005, 1026501550, 1026502850, 1026500850); 60     $InitializeCommonEvent(0, 90015005, 1026501550, 1026502850, 1026500850);
60     GotoIf(S4, Signed(0) != 0); 61     GotoIf(S4, Signed(0) != 0);
61     GotoIf(S4, 0 != 0); 62     GotoIf(S4, 0 != 0);
62     Goto(S5); 63     Goto(S5);
63 S4: 64 S4:
64     $InitializeCommonEvent(0, 90015008, 0, 1026500850, 920310, 1026500850, 0, 0); 65     $InitializeCommonEvent(0, 90015008, 0, 1026500850, 920310, 1026500850, 0, 0);
65 S5: 66 S5:
66     if (1 != 0) { 67     if (1 != 0) {
67         $InitializeCommonEvent(0, 90015013); 68         $InitializeCommonEvent(0, 90015013);
68     } 69     }
69     $InitializeCommonEvent(0, 90015015, 1026500850); 70     $InitializeCommonEvent(0, 90015015, 1026500850);
70     $InitializeCommonEvent(0, 90015016, 1026500850); 71     $InitializeCommonEvent(0, 90015016, 1026500850);
71     $InitializeCommonEvent(0, 90015017, 1026500850, 15, 0, 1026500850, 72451, 1026500850); 72     $InitializeCommonEvent(0, 90015017, 1026500850, 15, 0, 1026500850, 72451, 1026500850);
73     $InitializeCommonEvent(0, 90015041, 200, 0, 0, 72486);
72     $InitializeCommonEvent(0, 90005201, 1026500850, 30000, 20000, 30, 2, 0, 0, 0, 0); 74     $InitializeCommonEvent(0, 90005201, 1026500850, 30000, 20000, 30, 2, 0, 0, 0, 0);
73     $InitializeCommonEvent(0, 90015000, 0, 1026500820, 904020540, 30, 0, 0); 75     $InitializeCommonEvent(0, 90015000, 0, 1026500820, 904020540, 30, 0, 0);
74     $InitializeCommonEvent(0, 90015030, 0, 1026500820, 30, 921210, 0); 76     $InitializeCommonEvent(0, 90015030, 0, 1026500820, 30, 921210, 0);
75     $InitializeCommonEvent(0, 90015002, 0, 0, 1026500820, 1026500820, 1020, 921210, 11290, 904020540, 1026500820); 77     $InitializeCommonEvent(0, 90015002, 0, 0, 1026500820, 1026500820, 1020, 921210, 11290, 904020540, 1026500820);
76     $InitializeCommonEvent(0, 9005810, 1026500820, 1026500520, 1026501520, 5); 78     $InitializeCommonEvent(0, 9005810, 1026500820, 1026500520, 1026501520, 5);
77     $InitializeCommonEvent(0, 90015005, 1026501520, 1026502820, 1026500820); 79     $InitializeCommonEvent(0, 90015005, 1026501520, 1026502820, 1026500820);
78     GotoIf(S6, Signed(0) != 0); 80     GotoIf(S6, Signed(0) != 0);
79     GotoIf(S6, 0 != 0); 81     GotoIf(S6, 0 != 0);
80     Goto(S7); 82     Goto(S7);
81 S6: 83 S6:
98     Goto(S9); 100     Goto(S9);
99 S8: 101 S8:
100     $InitializeCommonEvent(0, 90015008, 0, 1026500860, 921210, 1026500860, 0, 0); 102     $InitializeCommonEvent(0, 90015008, 0, 1026500860, 921210, 1026500860, 0, 0);
101 S9: 103 S9:
102     if (0 != 0) { 104     if (0 != 0) {
103         $InitializeCommonEvent(0, 90015013); 105         $InitializeCommonEvent(0, 90015013);
104     } 106     }
105     $InitializeCommonEvent(0, 90015015, 1026500860); 107     $InitializeCommonEvent(0, 90015015, 1026500860);
106     $InitializeCommonEvent(0, 90015016, 1026500860); 108     $InitializeCommonEvent(0, 90015016, 1026500860);
107     $InitializeCommonEvent(0, 90015017, 1026500860, 0, 1026502530, 1026500860, 72466, 1026500860); 109     $InitializeCommonEvent(0, 90015017, 1026500860, 0, 1026502530, 1026500860, 72466, 1026500860);
110     $InitializeCommonEvent(0, 90015041, 60, 0, 0, 72472);
108     $InitializeCommonEvent(0, 90005211, 1026500860, 30000, 20000, 1026502530, 5, 1, 0, 0, 0, 0); 111     $InitializeCommonEvent(0, 90005211, 1026500860, 30000, 20000, 1026502530, 5, 1, 0, 0, 0, 0);
109     $InitializeCommonEvent(0, 90015000, 0, 1026500830, 902100600, 30, 0, 0); 112     $InitializeCommonEvent(0, 90015000, 0, 1026500830, 902100600, 30, 0, 0);
110     $InitializeCommonEvent(0, 90015030, 0, 1026500830, 30, 921510, 0); 113     $InitializeCommonEvent(0, 90015030, 0, 1026500830, 30, 921510, 0);
111     $InitializeCommonEvent(0, 90015002, 0, 0, 1026500830, 1026500830, 1020, 921510, 11290, 902100600, 1026500830); 114     $InitializeCommonEvent(0, 90015002, 0, 0, 1026500830, 1026500830, 1020, 921510, 11290, 902100600, 1026500830);
112     $InitializeCommonEvent(0, 9005810, 1026500830, 1026500530, 1026501530, 5); 115     $InitializeCommonEvent(0, 9005810, 1026500830, 1026500530, 1026501530, 5);
113     $InitializeCommonEvent(0, 90015005, 1026501530, 1026502830, 1026500830); 116     $InitializeCommonEvent(0, 90015005, 1026501530, 1026502830, 1026500830);
114     GotoIf(S10, Signed(0) != 0); 117     GotoIf(S10, Signed(0) != 0);
115     GotoIf(S10, 0 != 0); 118     GotoIf(S10, 0 != 0);
116     Goto(S11); 119     Goto(S11);
117 S10: 120 S10:
118     $InitializeCommonEvent(0, 90015008, 0, 1026500830, 921510, 1026500830, 0, 0); 121     $InitializeCommonEvent(0, 90015008, 0, 1026500830, 921510, 1026500830, 0, 0);
119 S11: 122 S11:
120     if (0 != 0) { 123     if (0 != 0) {
121         $InitializeCommonEvent(0, 90015013); 124         $InitializeCommonEvent(0, 90015013);
122     } 125     }
123     $InitializeCommonEvent(0, 90015015, 1026500830); 126     $InitializeCommonEvent(0, 90015015, 1026500830);
124     $InitializeCommonEvent(0, 90015016, 1026500830); 127     $InitializeCommonEvent(0, 90015016, 1026500830);
125     $InitializeCommonEvent(0, 90015017, 1026500830, 15, 0, 1026500830, 72464, 1026500830); 128     $InitializeCommonEvent(0, 90015017, 1026500830, 15, 0, 1026500830, 72464, 1026500830);
129     $InitializeCommonEvent(0, 90015041, 0, 0, 0, 72470);
126     $InitializeCommonEvent(0, 90005261, 1026500830, 1026502520, 20, 0, 0); 130     $InitializeCommonEvent(0, 90005261, 1026500830, 1026502520, 20, 0, 0);
127     $InitializeCommonEvent(0, 90015000, 0, 1026500840, 902100600, 30, 0, 0); 131     $InitializeCommonEvent(0, 90015000, 0, 1026500840, 902100600, 30, 0, 0);
128     $InitializeCommonEvent(0, 90015030, 0, 1026500840, 30, 921510, 0); 132     $InitializeCommonEvent(0, 90015030, 0, 1026500840, 30, 921510, 0);
129     $InitializeCommonEvent(0, 90015002, 0, 0, 1026500840, 1026500840, 1020, 921510, 11290, 902100600, 1026500840); 133     $InitializeCommonEvent(0, 90015002, 0, 0, 1026500840, 1026500840, 1020, 921510, 11290, 902100600, 1026500840);
130     $InitializeCommonEvent(0, 9005810, 1026500840, 1026500540, 1026501540, 5); 134     $InitializeCommonEvent(0, 9005810, 1026500840, 1026500540, 1026501540, 5);
131     $InitializeCommonEvent(0, 90015005, 1026501540, 1026502840, 1026500840); 135     $InitializeCommonEvent(0, 90015005, 1026501540, 1026502840, 1026500840);
132     GotoIf(S12, Signed(0) != 0); 136     GotoIf(S12, Signed(0) != 0);
133     GotoIf(S12, 0 != 0); 137     GotoIf(S12, 0 != 0);
134     Goto(S13); 138     Goto(S13);
135 S12: 139 S12:
136     $InitializeCommonEvent(0, 90015008, 0, 1026500840, 921510, 1026500840, 0, 0); 140     $InitializeCommonEvent(0, 90015008, 0, 1026500840, 921510, 1026500840, 0, 0);
137 S13: 141 S13:
138     if (0 != 0) { 142     if (0 != 0) {
139         $InitializeCommonEvent(0, 90015013); 143         $InitializeCommonEvent(0, 90015013);
140     } 144     }
141     $InitializeCommonEvent(0, 90015015, 1026500840); 145     $InitializeCommonEvent(0, 90015015, 1026500840);
142     $InitializeCommonEvent(0, 90015016, 1026500840); 146     $InitializeCommonEvent(0, 90015016, 1026500840);
143     $InitializeCommonEvent(0, 90015017, 1026500840, 15, 0, 1026500840, 72465, 1026500840); 147     $InitializeCommonEvent(0, 90015017, 1026500840, 15, 0, 1026500840, 72465, 1026500840);
148     $InitializeCommonEvent(0, 90015041, 10, 0, 0, 72471);
144     $InitializeCommonEvent(0, 90005261, 1026500840, 1026502540, 20, 0, 0); 149     $InitializeCommonEvent(0, 90005261, 1026500840, 1026502540, 20, 0, 0);
145     $InitializeCommonEvent(0, 90005211, 1026500250, 30001, 20001, 1026502500, 5, 0, 0, 0, 0, 0); 150     $InitializeCommonEvent(0, 90005211, 1026500250, 30001, 20001, 1026502500, 5, 0, 0, 0, 0, 0);
146     $InitializeCommonEvent(0, 90005211, 1026500251, 30001, 20001, 1026502500, 5, 0.5, 0, 0, 0, 0); 151     $InitializeCommonEvent(0, 90005211, 1026500251, 30001, 20001, 1026502500, 5, 0.5, 0, 0, 0, 0);
147     $InitializeCommonEvent(0, 90005201, 1026500300, 30011, 20011, 10, 0.5, 0, 0, 0, 0); 152     $InitializeCommonEvent(0, 90005201, 1026500300, 30011, 20011, 10, 0.5, 0, 0, 0, 0);
148     $InitializeCommonEvent(0, 90005201, 1026500301, 30011, 20011, 10, 0.5, 0, 0, 0, 0); 153     $InitializeCommonEvent(0, 90005201, 1026500301, 30011, 20011, 10, 0.5, 0, 0, 0, 0);
149     $InitializeCommonEvent(0, 90005201, 1026500302, 30011, 20011, 10, 0.5, 0, 0, 0, 0); 154     $InitializeCommonEvent(0, 90005201, 1026500302, 30011, 20011, 10, 0.5, 0, 0, 0, 0);
150     $InitializeCommonEvent(0, 90005201, 1026500303, 30011, 20011, 10, 0.5, 0, 0, 0, 0); 155     $InitializeCommonEvent(0, 90005201, 1026500303, 30011, 20011, 10, 0.5, 0, 0, 0, 0);
151     $InitializeCommonEvent(0, 90005201, 1026500304, 30011, 20011, 10, 0.5, 0, 0, 0, 0); 156     $InitializeCommonEvent(0, 90005201, 1026500304, 30011, 20011, 10, 0.5, 0, 0, 0, 0);
152     $InitializeCommonEvent(0, 90005200, 1026500200, 30001, 20001, 1026502200, 0, 0, 0, 0, 0); 157     $InitializeCommonEvent(0, 90005200, 1026500200, 30001, 20001, 1026502200, 0, 0, 0, 0, 0);
153     $InitializeCommonEvent(0, 90015150, 1026500290, 73094); 158     $InitializeCommonEvent(0, 90015150, 1026500290, 73094);
diff -rNU 10 nr1.01.7/m60_42_37_50.emevd.dcx.js nr/m60_42_37_50.emevd.dcx.js
nr1.01.7/m60_42_37_50.emevd.dcx.jsnr/m60_42_37_50.emevd.dcx.js
30     Goto(S1); 30     Goto(S1);
31 S0: 31 S0:
32     $InitializeCommonEvent(0, 90015008, 0, 1027500800, 920210, 1027500800, 13801, 0); 32     $InitializeCommonEvent(0, 90015008, 0, 1027500800, 920210, 1027500800, 13801, 0);
33 S1: 33 S1:
34     if (1 != 0) { 34     if (1 != 0) {
35         $InitializeCommonEvent(0, 90015013); 35         $InitializeCommonEvent(0, 90015013);
36     } 36     }
37     $InitializeCommonEvent(0, 90015015, 1027500800); 37     $InitializeCommonEvent(0, 90015015, 1027500800);
38     $InitializeCommonEvent(0, 90015016, 1027500800); 38     $InitializeCommonEvent(0, 90015016, 1027500800);
39     $InitializeCommonEvent(0, 90015017, 1027500800, 15, 0, 1027500800, 72458, 1027500800); 39     $InitializeCommonEvent(0, 90015017, 1027500800, 15, 0, 1027500800, 72458, 1027500800);
40     $InitializeCommonEvent(0, 90015041, 0, 0, 0, 72490);
40     $InitializeCommonEvent(0, 90015150, 1027500290, 73096); 41     $InitializeCommonEvent(0, 90015150, 1027500290, 73096);
41     $InitializeCommonEvent(0, 90015151, 1027500290, 74056); 42     $InitializeCommonEvent(0, 90015151, 1027500290, 74056);
42     $InitializeCommonEvent(0, 90015152, 1027500290, 74056); 43     $InitializeCommonEvent(0, 90015152, 1027500290, 74056);
43 }); 44 });
44 45
45 $Event(1027502200, Restart, function(areaEntityId) { 46 $Event(1027502200, Restart, function(areaEntityId) {
46     DisableNetworkSync(); 47     DisableNetworkSync();
47     WaitFor(InArea(20000, areaEntityId)); 48     WaitFor(InArea(20000, areaEntityId));
48     SetSpEffect(20000, 99216); 49     SetSpEffect(20000, 99216);
49     RestartEvent(); 50     RestartEvent();
diff -rNU 10 nr1.01.7/m60_42_38_10.emevd.dcx.js nr/m60_42_38_10.emevd.dcx.js
nr1.01.7/m60_42_38_10.emevd.dcx.jsnr/m60_42_38_10.emevd.dcx.js
22     Goto(S1); 22     Goto(S1);
23 S0: 23 S0:
24     $InitializeCommonEvent(0, 90015008, 0, 1028100810, 920310, 1028100810, 0, 0); 24     $InitializeCommonEvent(0, 90015008, 0, 1028100810, 920310, 1028100810, 0, 0);
25 S1: 25 S1:
26     if (0 != 0) { 26     if (0 != 0) {
27         $InitializeCommonEvent(0, 90015013); 27         $InitializeCommonEvent(0, 90015013);
28     } 28     }
29     $InitializeCommonEvent(0, 90015015, 1028100810); 29     $InitializeCommonEvent(0, 90015015, 1028100810);
30     $InitializeCommonEvent(0, 90015016, 1028100810); 30     $InitializeCommonEvent(0, 90015016, 1028100810);
31     $InitializeCommonEvent(0, 90015017, 1028100810, 25, 0, 1028102810, 72442, 1028102810); 31     $InitializeCommonEvent(0, 90015017, 1028100810, 25, 0, 1028102810, 72442, 1028102810);
32     $InitializeCommonEvent(0, 90015041, 240, 0, 0, 72473);
32     $InitializeEvent(0, 1028102200, 1028105200, 1028102200); 33     $InitializeEvent(0, 1028102200, 1028105200, 1028102200);
33     if (940000 == 0) { 34     if (940000 == 0) {
34         $InitializeCommonEvent(0, 90015000, 0, 1028105820, 903180000, 30, 0, 0); 35         $InitializeCommonEvent(0, 90015021, 0, 1028105820, 903180000, 30, 0, 0, 74962);
35         $InitializeCommonEvent(0, 90015030, 0, 1028105820, 30, 940000, 0); 36         $InitializeCommonEvent(0, 90015030, 0, 1028105820, 30, 940000, 0);
36     } else { 37     } else {
37         $InitializeCommonEvent(0, 90015000, 0, 1028105820, 903180000, 30, 0, 0); 38         $InitializeCommonEvent(0, 90015021, 0, 1028105820, 903180000, 30, 0, 0, 74962);
38         $InitializeCommonEvent(0, 90015030, 0, 1028105820, 30, 940000, 0); 39         $InitializeCommonEvent(0, 90015030, 0, 1028105820, 30, 940000, 0);
39     } 40     }
40     $InitializeCommonEvent(0, 90015002, 0, 0, 1028100820, 1028105820, 1030, 940000, 11200, 903180000, 1028100520); 41     $InitializeCommonEvent(0, 90015002, 0, 0, 1028100820, 1028105820, 1030, 940000, 11200, 903180000, 1028100520);
41     $InitializeCommonEvent(0, 90015006, 1028101520, 1028100520, 1028100820, 5); 42     $InitializeCommonEvent(0, 90015006, 1028101520, 1028100520, 1028100820, 5);
42     $InitializeCommonEvent(0, 90015005, 1028101520, 1028102820, 1028100820); 43     $InitializeCommonEvent(0, 90015005, 1028101520, 1028102820, 1028100820);
43     GotoIf(S2, Signed(0) != 0); 44     GotoIf(S2, Signed(0) != 0);
44     GotoIf(S2, 0 != 0); 45     GotoIf(S2, 0 != 0);
45     Goto(S4); 46     Goto(S4);
46 S2: 47 S2:
47     GotoIf(S3, 940000 != 0); 48     GotoIf(S3, 940000 != 0);
diff -rNU 10 nr1.01.7/m60_42_39_00.emevd.dcx.js nr/m60_42_39_00.emevd.dcx.js
nr1.01.7/m60_42_39_00.emevd.dcx.jsnr/m60_42_39_00.emevd.dcx.js
20     $InitializeCommonEvent(0, 90015162, 1042390850, 1042392900, 1042392901); 20     $InitializeCommonEvent(0, 90015162, 1042390850, 1042392900, 1042392901);
21     $InitializeCommonEvent(0, 90015163, 1042390851, 1042392900, 1042392901, 1042390850); 21     $InitializeCommonEvent(0, 90015163, 1042390851, 1042392900, 1042392901, 1042390850);
22     $InitializeCommonEvent(0, 90015164, 1042390850, 1042392901); 22     $InitializeCommonEvent(0, 90015164, 1042390850, 1042392901);
23     $InitializeCommonEvent(0, 90065901, 1042394890); 23     $InitializeCommonEvent(0, 90065901, 1042394890);
24     $InitializeCommonEvent(0, 90005910, 1042391800, 7677); 24     $InitializeCommonEvent(0, 90005910, 1042391800, 7677);
25     $InitializeCommonEvent(0, 91005505, 1042392510, 7677); 25     $InitializeCommonEvent(0, 91005505, 1042392510, 7677);
26     $InitializeCommonEvent(0, 90015150, 1042390200, 73059); 26     $InitializeCommonEvent(0, 90015150, 1042390200, 73059);
27     $InitializeCommonEvent(0, 90015151, 1042390200, 74019); 27     $InitializeCommonEvent(0, 90015151, 1042390200, 74019);
28     $InitializeCommonEvent(0, 90015152, 1042390200, 74019); 28     $InitializeCommonEvent(0, 90015152, 1042390200, 74019);
29     $InitializeCommonEvent(0, 90015140, 1042391200, 200, 9100, 1042398200); 29     $InitializeCommonEvent(0, 90015140, 1042391200, 200, 9100, 1042398200);
30     $InitializeCommonEvent(0, 90015501, 1042392300, 73991);
30 }); 31 });
31 32
32 $Event(1042392920, Restart, function() { 33 $Event(1042392920, Restart, function() {
33     WaitFor(MissionActive(403)); 34     WaitFor(MissionActive(403));
34     EndIf(EventFlag(1042392930)); 35     EndIf(EventFlag(1042392930));
35     SetSpEffect(1042390280, 99840); 36     SetSpEffect(1042390280, 99840);
36     WaitFor(ActionButtonInArea(4351, 1042390280)); 37     WaitFor(ActionButtonInArea(4351, 1042390280));
37     ClearSpEffect(1042390280, 99840); 38     ClearSpEffect(1042390280, 99840);
38     SetCharacterBackreadState(1042395900, false); 39     SetCharacterBackreadState(1042395900, false);
39 }); 40 });
diff -rNU 10 nr1.01.7/m60_42_39_10.emevd.dcx.js nr/m60_42_39_10.emevd.dcx.js
nr1.01.7/m60_42_39_10.emevd.dcx.jsnr/m60_42_39_10.emevd.dcx.js
33     Goto(S1); 33     Goto(S1);
34 S0: 34 S0:
35     $InitializeCommonEvent(0, 90015008, 0, 1029100820, 931010, 1029100820, 0, 0); 35     $InitializeCommonEvent(0, 90015008, 0, 1029100820, 931010, 1029100820, 0, 0);
36 S1: 36 S1:
37     if (0 != 0) { 37     if (0 != 0) {
38         $InitializeCommonEvent(0, 90015013); 38         $InitializeCommonEvent(0, 90015013);
39     } 39     }
40     $InitializeCommonEvent(0, 90015015, 1029100820); 40     $InitializeCommonEvent(0, 90015015, 1029100820);
41     $InitializeCommonEvent(0, 90015016, 1029100820); 41     $InitializeCommonEvent(0, 90015016, 1029100820);
42     $InitializeCommonEvent(0, 90015017, 1029100820, 25, 0, 1029102820, 72463, 1029102820); 42     $InitializeCommonEvent(0, 90015017, 1029100820, 25, 0, 1029102820, 72463, 1029102820);
43     $InitializeCommonEvent(0, 90015041, 0, 0, 0, 72495);
43     if (MissionActive(802)) { 44     if (MissionActive(802)) {
44         $InitializeCommonEvent(0, 90085020, 802, 8506, 8507, 8505, 1029100280, 99850, 1029100280); 45         $InitializeCommonEvent(0, 90085020, 802, 8506, 8507, 8505, 1029100280, 99850, 1029100280);
45         $InitializeCommonEvent(0, 90085021, 802, 8506, 1029102280, 1029100280); 46         $InitializeCommonEvent(0, 90085021, 802, 8506, 1029102280, 1029100280);
46         if (1 == 1) { 47         if (1 == 1) {
47             $InitializeCommonEvent(0, 90085002, 802, 8507, 8506, 1029100280, 1029105280, 1029100281, 0, 0, 0, 20032); 48             $InitializeCommonEvent(0, 90085002, 802, 8507, 8506, 1029100280, 1029105280, 1029100281, 0, 0, 0, 20032);
48         } 49         }
49         if (2 == 1) { 50         if (2 == 1) {
50             $InitializeCommonEvent(0, 90085002, 802, 8507, 8506, 1029100280, 1029105280, 1029100281, 1029100282, 0, 0, 20032); 51             $InitializeCommonEvent(0, 90085002, 802, 8507, 8506, 1029100280, 1029105280, 1029100281, 1029100282, 0, 0, 20032);
51         } 52         }
52         if (3 == 1) { 53         if (3 == 1) {
diff -rNU 10 nr1.01.7/m60_42_39_20.emevd.dcx.js nr/m60_42_39_20.emevd.dcx.js
nr1.01.7/m60_42_39_20.emevd.dcx.jsnr/m60_42_39_20.emevd.dcx.js
20     $InitializeCommonEvent(0, 90015162, 1042390850, 1042392900, 1042392901); 20     $InitializeCommonEvent(0, 90015162, 1042390850, 1042392900, 1042392901);
21     $InitializeCommonEvent(0, 90015163, 1042390851, 1042392900, 1042392901, 1042390850); 21     $InitializeCommonEvent(0, 90015163, 1042390851, 1042392900, 1042392901, 1042390850);
22     $InitializeCommonEvent(0, 90015164, 1042390850, 1042392901); 22     $InitializeCommonEvent(0, 90015164, 1042390850, 1042392901);
23     $InitializeCommonEvent(0, 90065901, 1042394890); 23     $InitializeCommonEvent(0, 90065901, 1042394890);
24     $InitializeCommonEvent(0, 90005910, 1042391800, 7677); 24     $InitializeCommonEvent(0, 90005910, 1042391800, 7677);
25     $InitializeCommonEvent(0, 91005505, 1042392510, 7677); 25     $InitializeCommonEvent(0, 91005505, 1042392510, 7677);
26     $InitializeCommonEvent(0, 90015150, 1042390200, 73059); 26     $InitializeCommonEvent(0, 90015150, 1042390200, 73059);
27     $InitializeCommonEvent(0, 90015151, 1042390200, 74019); 27     $InitializeCommonEvent(0, 90015151, 1042390200, 74019);
28     $InitializeCommonEvent(0, 90015152, 1042390200, 74019); 28     $InitializeCommonEvent(0, 90015152, 1042390200, 74019);
29     $InitializeCommonEvent(0, 90015140, 1042391200, 200, 9100, 1042398200); 29     $InitializeCommonEvent(0, 90015140, 1042391200, 200, 9100, 1042398200);
30     $InitializeCommonEvent(0, 90015501, 1042392300, 73991);
30 }); 31 });
31 32
32 $Event(1042392920, Restart, function() { 33 $Event(1042392920, Restart, function() {
33     WaitFor(MissionActive(403)); 34     WaitFor(MissionActive(403));
34     EndIf(EventFlag(1042392930)); 35     EndIf(EventFlag(1042392930));
35     SetSpEffect(1042390280, 99840); 36     SetSpEffect(1042390280, 99840);
36     WaitFor(ActionButtonInArea(4351, 1042390280)); 37     WaitFor(ActionButtonInArea(4351, 1042390280));
37     ClearSpEffect(1042390280, 99840); 38     ClearSpEffect(1042390280, 99840);
38     SetCharacterBackreadState(1042395900, false); 39     SetCharacterBackreadState(1042395900, false);
39 }); 40 });
diff -rNU 10 nr1.01.7/m60_42_39_50.emevd.dcx.js nr/m60_42_39_50.emevd.dcx.js
nr1.01.7/m60_42_39_50.emevd.dcx.jsnr/m60_42_39_50.emevd.dcx.js
20     $InitializeCommonEvent(0, 90015162, 1042390850, 1042392900, 1042392901); 20     $InitializeCommonEvent(0, 90015162, 1042390850, 1042392900, 1042392901);
21     $InitializeCommonEvent(0, 90015163, 1042390851, 1042392900, 1042392901, 1042390850); 21     $InitializeCommonEvent(0, 90015163, 1042390851, 1042392900, 1042392901, 1042390850);
22     $InitializeCommonEvent(0, 90015164, 1042390850, 1042392901); 22     $InitializeCommonEvent(0, 90015164, 1042390850, 1042392901);
23     $InitializeCommonEvent(0, 90065901, 1042394890); 23     $InitializeCommonEvent(0, 90065901, 1042394890);
24     $InitializeCommonEvent(0, 90005910, 1042391800, 7677); 24     $InitializeCommonEvent(0, 90005910, 1042391800, 7677);
25     $InitializeCommonEvent(0, 91005505, 1042392510, 7677); 25     $InitializeCommonEvent(0, 91005505, 1042392510, 7677);
26     $InitializeCommonEvent(0, 90015150, 1042390200, 73059); 26     $InitializeCommonEvent(0, 90015150, 1042390200, 73059);
27     $InitializeCommonEvent(0, 90015151, 1042390200, 74019); 27     $InitializeCommonEvent(0, 90015151, 1042390200, 74019);
28     $InitializeCommonEvent(0, 90015152, 1042390200, 74019); 28     $InitializeCommonEvent(0, 90015152, 1042390200, 74019);
29     $InitializeCommonEvent(0, 90015140, 1042391200, 200, 9100, 1042398200); 29     $InitializeCommonEvent(0, 90015140, 1042391200, 200, 9100, 1042398200);
30     $InitializeCommonEvent(0, 90015501, 1042392300, 73991);
30 }); 31 });
31 32
32 $Event(1042392920, Restart, function() { 33 $Event(1042392920, Restart, function() {
33     WaitFor(MissionActive(403)); 34     WaitFor(MissionActive(403));
34     EndIf(EventFlag(1042392930)); 35     EndIf(EventFlag(1042392930));
35     SetSpEffect(1042390280, 99840); 36     SetSpEffect(1042390280, 99840);
36     WaitFor(ActionButtonInArea(4351, 1042390280)); 37     WaitFor(ActionButtonInArea(4351, 1042390280));
37     ClearSpEffect(1042390280, 99840); 38     ClearSpEffect(1042390280, 99840);
38     SetCharacterBackreadState(1042395900, false); 39     SetCharacterBackreadState(1042395900, false);
39 }); 40 });
diff -rNU 10 nr1.01.7/m60_43_36_50.emevd.dcx.js nr/m60_43_36_50.emevd.dcx.js
nr1.01.7/m60_43_36_50.emevd.dcx.jsnr/m60_43_36_50.emevd.dcx.js
21     Goto(S1); 21     Goto(S1);
22 S0: 22 S0:
23     $InitializeCommonEvent(0, 90015008, 0, 1036500800, 920310, 1036500800, 0, 0); 23     $InitializeCommonEvent(0, 90015008, 0, 1036500800, 920310, 1036500800, 0, 0);
24 S1: 24 S1:
25     if (1 != 0) { 25     if (1 != 0) {
26         $InitializeCommonEvent(0, 90015013); 26         $InitializeCommonEvent(0, 90015013);
27     } 27     }
28     $InitializeCommonEvent(0, 90015015, 1036500800); 28     $InitializeCommonEvent(0, 90015015, 1036500800);
29     $InitializeCommonEvent(0, 90015016, 1036500800); 29     $InitializeCommonEvent(0, 90015016, 1036500800);
30     $InitializeCommonEvent(0, 90015017, 1036500800, 15, 0, 1036500800, 72459, 1036500800); 30     $InitializeCommonEvent(0, 90015017, 1036500800, 15, 0, 1036500800, 72459, 1036500800);
31     $InitializeCommonEvent(0, 90015041, 60, 0, 0, 72491);
31     $InitializeCommonEvent(0, 90005201, 1036500800, 30005, 20005, 30, 0, 0, 0, 0, 0); 32     $InitializeCommonEvent(0, 90005201, 1036500800, 30005, 20005, 30, 0, 0, 0, 0, 0);
32     $InitializeCommonEvent(0, 90005201, 1036500200, 30000, 20000, 30, 2, 0, 0, 0, 0); 33     $InitializeCommonEvent(0, 90005201, 1036500200, 30000, 20000, 30, 2, 0, 0, 0, 0);
33     $InitializeCommonEvent(0, 90005200, 1026500300, 30019, 20019, 1037502520, 1, 0, 0, 0, 0); 34     $InitializeCommonEvent(0, 90005200, 1026500300, 30019, 20019, 1037502520, 1, 0, 0, 0, 0);
34     $InitializeCommonEvent(0, 90005200, 1026500301, 30019, 20019, 1037502520, 1, 0, 0, 0, 0); 35     $InitializeCommonEvent(0, 90005200, 1026500301, 30019, 20019, 1037502520, 1, 0, 0, 0, 0);
35     $InitializeCommonEvent(0, 90005200, 1026500302, 30019, 20019, 1037502520, 1, 0, 0, 0, 0); 36     $InitializeCommonEvent(0, 90005200, 1026500302, 30019, 20019, 1037502520, 1, 0, 0, 0, 0);
36     $InitializeCommonEvent(0, 90005201, 1036500210, 30005, 20005, 15, 0, 0, 0, 0, 0); 37     $InitializeCommonEvent(0, 90005201, 1036500210, 30005, 20005, 15, 0, 0, 0, 0, 0);
37     $InitializeCommonEvent(0, 90015150, 1036500290, 73097); 38     $InitializeCommonEvent(0, 90015150, 1036500290, 73097);
38     $InitializeCommonEvent(0, 90015151, 1036500290, 74057); 39     $InitializeCommonEvent(0, 90015151, 1036500290, 74057);
39     $InitializeCommonEvent(0, 90015152, 1036500290, 74057); 40     $InitializeCommonEvent(0, 90015152, 1036500290, 74057);
40 }); 41 });
diff -rNU 10 nr1.01.7/m60_43_37_00.emevd.dcx.js nr/m60_43_37_00.emevd.dcx.js
nr1.01.7/m60_43_37_00.emevd.dcx.jsnr/m60_43_37_00.emevd.dcx.js
44     if (2 == 3) { 44     if (2 == 3) {
45         $InitializeCommonEvent(0, 90085002, 801, 9266, 9256, 9256, 1043375260, 1043370260, 1043370261, 0, 0, 20026); 45         $InitializeCommonEvent(0, 90085002, 801, 9266, 9256, 9256, 1043375260, 1043370260, 1043370261, 0, 0, 20026);
46     } 46     }
47     if (3 == 3) { 47     if (3 == 3) {
48         $InitializeCommonEvent(0, 90085002, 801, 9266, 9256, 9256, 1043375260, 1043370260, 1043370261, 1043370262, 0, 20026); 48         $InitializeCommonEvent(0, 90085002, 801, 9266, 9256, 9256, 1043375260, 1043370260, 1043370261, 1043370262, 0, 20026);
49     } 49     }
50     if (4 == 3) { 50     if (4 == 3) {
51         $InitializeCommonEvent(0, 90085002, 801, 9266, 9256, 9256, 1043375260, 1043370260, 1043370261, 1043370262, 1043370263, 20026); 51         $InitializeCommonEvent(0, 90085002, 801, 9266, 9256, 9256, 1043375260, 1043370260, 1043370261, 1043370262, 1043370263, 20026);
52     } 52     }
53     $InitializeCommonEvent(0, 90085802, 801, 9266, 1043375260); 53     $InitializeCommonEvent(0, 90085802, 801, 9266, 1043375260);
54     $InitializeCommonEvent(0, 90015501, 1043372300, 73992);
54 }); 55 });
55 56
56 $Event(1043372200, Restart, function(chrEntityId, areaEntityId) { 57 $Event(1043372200, Restart, function(chrEntityId, areaEntityId) {
57     SetSpEffect(chrEntityId, 8081); 58     SetSpEffect(chrEntityId, 8081);
58     WaitFor(InArea(10000, areaEntityId)); 59     WaitFor(InArea(10000, areaEntityId));
59     ClearSpEffect(chrEntityId, 8081); 60     ClearSpEffect(chrEntityId, 8081);
60     WaitFor(!InArea(10000, areaEntityId)); 61     WaitFor(!InArea(10000, areaEntityId));
61     RestartEvent(); 62     RestartEvent();
62 }); 63 });
63 64
diff -rNU 10 nr1.01.7/m60_43_37_10.emevd.dcx.js nr/m60_43_37_10.emevd.dcx.js
nr1.01.7/m60_43_37_10.emevd.dcx.jsnr/m60_43_37_10.emevd.dcx.js
44     if (2 == 3) { 44     if (2 == 3) {
45         $InitializeCommonEvent(0, 90085002, 801, 9266, 9256, 9256, 1043375260, 1043370260, 1043370261, 0, 0, 20026); 45         $InitializeCommonEvent(0, 90085002, 801, 9266, 9256, 9256, 1043375260, 1043370260, 1043370261, 0, 0, 20026);
46     } 46     }
47     if (3 == 3) { 47     if (3 == 3) {
48         $InitializeCommonEvent(0, 90085002, 801, 9266, 9256, 9256, 1043375260, 1043370260, 1043370261, 1043370262, 0, 20026); 48         $InitializeCommonEvent(0, 90085002, 801, 9266, 9256, 9256, 1043375260, 1043370260, 1043370261, 1043370262, 0, 20026);
49     } 49     }
50     if (4 == 3) { 50     if (4 == 3) {
51         $InitializeCommonEvent(0, 90085002, 801, 9266, 9256, 9256, 1043375260, 1043370260, 1043370261, 1043370262, 1043370263, 20026); 51         $InitializeCommonEvent(0, 90085002, 801, 9266, 9256, 9256, 1043375260, 1043370260, 1043370261, 1043370262, 1043370263, 20026);
52     } 52     }
53     $InitializeCommonEvent(0, 90085802, 801, 9266, 1043375260); 53     $InitializeCommonEvent(0, 90085802, 801, 9266, 1043375260);
54     $InitializeCommonEvent(0, 90015501, 1043372300, 73992);
54 }); 55 });
55 56
56 $Event(1043372200, Restart, function(chrEntityId, areaEntityId) { 57 $Event(1043372200, Restart, function(chrEntityId, areaEntityId) {
57     SetSpEffect(chrEntityId, 8081); 58     SetSpEffect(chrEntityId, 8081);
58     WaitFor(InArea(10000, areaEntityId)); 59     WaitFor(InArea(10000, areaEntityId));
59     ClearSpEffect(chrEntityId, 8081); 60     ClearSpEffect(chrEntityId, 8081);
60     WaitFor(!InArea(10000, areaEntityId)); 61     WaitFor(!InArea(10000, areaEntityId));
61     RestartEvent(); 62     RestartEvent();
62 }); 63 });
63 64
diff -rNU 10 nr1.01.7/m60_43_37_20.emevd.dcx.js nr/m60_43_37_20.emevd.dcx.js
nr1.01.7/m60_43_37_20.emevd.dcx.jsnr/m60_43_37_20.emevd.dcx.js
44     if (2 == 3) { 44     if (2 == 3) {
45         $InitializeCommonEvent(0, 90085002, 801, 9266, 9256, 9256, 1043375260, 1043370260, 1043370261, 0, 0, 20026); 45         $InitializeCommonEvent(0, 90085002, 801, 9266, 9256, 9256, 1043375260, 1043370260, 1043370261, 0, 0, 20026);
46     } 46     }
47     if (3 == 3) { 47     if (3 == 3) {
48         $InitializeCommonEvent(0, 90085002, 801, 9266, 9256, 9256, 1043375260, 1043370260, 1043370261, 1043370262, 0, 20026); 48         $InitializeCommonEvent(0, 90085002, 801, 9266, 9256, 9256, 1043375260, 1043370260, 1043370261, 1043370262, 0, 20026);
49     } 49     }
50     if (4 == 3) { 50     if (4 == 3) {
51         $InitializeCommonEvent(0, 90085002, 801, 9266, 9256, 9256, 1043375260, 1043370260, 1043370261, 1043370262, 1043370263, 20026); 51         $InitializeCommonEvent(0, 90085002, 801, 9266, 9256, 9256, 1043375260, 1043370260, 1043370261, 1043370262, 1043370263, 20026);
52     } 52     }
53     $InitializeCommonEvent(0, 90085802, 801, 9266, 1043375260); 53     $InitializeCommonEvent(0, 90085802, 801, 9266, 1043375260);
54     $InitializeCommonEvent(0, 90015501, 1043372300, 73992);
54 }); 55 });
55 56
56 $Event(1043372200, Restart, function(chrEntityId, areaEntityId) { 57 $Event(1043372200, Restart, function(chrEntityId, areaEntityId) {
57     SetSpEffect(chrEntityId, 8081); 58     SetSpEffect(chrEntityId, 8081);
58     WaitFor(InArea(10000, areaEntityId)); 59     WaitFor(InArea(10000, areaEntityId));
59     ClearSpEffect(chrEntityId, 8081); 60     ClearSpEffect(chrEntityId, 8081);
60     WaitFor(!InArea(10000, areaEntityId)); 61     WaitFor(!InArea(10000, areaEntityId));
61     RestartEvent(); 62     RestartEvent();
62 }); 63 });
63 64
diff -rNU 10 nr1.01.7/m60_43_37_50.emevd.dcx.js nr/m60_43_37_50.emevd.dcx.js
nr1.01.7/m60_43_37_50.emevd.dcx.jsnr/m60_43_37_50.emevd.dcx.js
29     Goto(S1); 29     Goto(S1);
30 S0: 30 S0:
31     $InitializeCommonEvent(0, 90015008, 0, 1037500800, 920610, 1037500800, 0, 0); 31     $InitializeCommonEvent(0, 90015008, 0, 1037500800, 920610, 1037500800, 0, 0);
32 S1: 32 S1:
33     if (0 != 0) { 33     if (0 != 0) {
34         $InitializeCommonEvent(0, 90015013); 34         $InitializeCommonEvent(0, 90015013);
35     } 35     }
36     $InitializeCommonEvent(0, 90015015, 1037500800); 36     $InitializeCommonEvent(0, 90015015, 1037500800);
37     $InitializeCommonEvent(0, 90015016, 1037500800); 37     $InitializeCommonEvent(0, 90015016, 1037500800);
38     $InitializeCommonEvent(0, 90015017, 1037500800, 15, 0, 1037500800, 72460, 1037500800); 38     $InitializeCommonEvent(0, 90015017, 1037500800, 15, 0, 1037500800, 72460, 1037500800);
39     $InitializeCommonEvent(0, 90015041, 110, 0, 0, 72492);
39 }); 40 });
40 41
41 $Event(100, Default, function() { 42 $Event(100, Default, function() {
42     $InitializeEvent(0, 1037502200, 1037502540, 1037504200, 1037502541, 1037502549); 43     $InitializeEvent(0, 1037502200, 1037502540, 1037504200, 1037502541, 1037502549);
43     $InitializeEvent(1, 1037502200, 1037502540, 1037504201, 1037502541, 1037502549); 44     $InitializeEvent(1, 1037502200, 1037502540, 1037504201, 1037502541, 1037502549);
44     $InitializeEvent(2, 1037502200, 1037502541, 1026504200, 0, 0); 45     $InitializeEvent(2, 1037502200, 1037502541, 1026504200, 0, 0);
45     $InitializeEvent(3, 1037502200, 1037502541, 1026504201, 0, 0); 46     $InitializeEvent(3, 1037502200, 1037502541, 1026504201, 0, 0);
46 }); 47 });
47 48
48 $Event(1037502200, Restart, function(areaEntityId, eventFlagId, areaEntityId2, areaEntityId3) { 49 $Event(1037502200, Restart, function(areaEntityId, eventFlagId, areaEntityId2, areaEntityId3) {
diff -rNU 10 nr1.01.7/m60_43_38_00.emevd.dcx.js nr/m60_43_38_00.emevd.dcx.js
nr1.01.7/m60_43_38_00.emevd.dcx.jsnr/m60_43_38_00.emevd.dcx.js
47         $InitializeCommonEvent(0, 90085002, 602, 9234, 9224, 9224, 1043385280, 1043380281, 1043380282, 0, 0, 20026); 47         $InitializeCommonEvent(0, 90085002, 602, 9234, 9224, 9224, 1043385280, 1043380281, 1043380282, 0, 0, 20026);
48     } 48     }
49     if (3 == 3) { 49     if (3 == 3) {
50         $InitializeCommonEvent(0, 90085002, 602, 9234, 9224, 9224, 1043385280, 1043380281, 1043380282, 1043380283, 0, 20026); 50         $InitializeCommonEvent(0, 90085002, 602, 9234, 9224, 9224, 1043385280, 1043380281, 1043380282, 1043380283, 0, 20026);
51     } 51     }
52     if (4 == 3) { 52     if (4 == 3) {
53         $InitializeCommonEvent(0, 90085002, 602, 9234, 9224, 9224, 1043385280, 1043380281, 1043380282, 1043380283, 1043380284, 20026); 53         $InitializeCommonEvent(0, 90085002, 602, 9234, 9224, 9224, 1043385280, 1043380281, 1043380282, 1043380283, 1043380284, 20026);
54     } 54     }
55     $InitializeCommonEvent(0, 90085613, 602, 9234, 9224, 9224, 1043385280); 55     $InitializeCommonEvent(0, 90085613, 602, 9234, 9224, 9224, 1043385280);
56     $InitializeCommonEvent(0, 90085614, 602, 9234, 1043386280, 1043380280, 8459); 56     $InitializeCommonEvent(0, 90085614, 602, 9234, 1043386280, 1043380280, 8459);
57     $InitializeCommonEvent(0, 90015501, 1043382300, 73993);
57 }); 58 });
58 59
59 $Event(1043382800, Restart, function(areaEntityId) { 60 $Event(1043382800, Restart, function(areaEntityId) {
60     DisableNetworkSync(); 61     DisableNetworkSync();
61     WaitFor(InArea(20000, areaEntityId)); 62     WaitFor(InArea(20000, areaEntityId));
62     SetSpEffect(20000, 99216); 63     SetSpEffect(20000, 99216);
63     RestartEvent(); 64     RestartEvent();
64 }); 65 });
65 66
66 $Event(1043382810, Restart, function(areaEntityId) { 67 $Event(1043382810, Restart, function(areaEntityId) {
diff -rNU 10 nr1.01.7/m60_43_38_10.emevd.dcx.js nr/m60_43_38_10.emevd.dcx.js
nr1.01.7/m60_43_38_10.emevd.dcx.jsnr/m60_43_38_10.emevd.dcx.js
21     Goto(S1); 21     Goto(S1);
22 S0: 22 S0:
23     $InitializeCommonEvent(0, 90015008, 0, 1038100800, 931010, 1038105800, 0, 0); 23     $InitializeCommonEvent(0, 90015008, 0, 1038100800, 931010, 1038105800, 0, 0);
24 S1: 24 S1:
25     if (0 != 0) { 25     if (0 != 0) {
26         $InitializeCommonEvent(0, 90015013); 26         $InitializeCommonEvent(0, 90015013);
27     } 27     }
28     $InitializeCommonEvent(0, 90015015, 1038100800); 28     $InitializeCommonEvent(0, 90015015, 1038100800);
29     $InitializeCommonEvent(0, 90015016, 1038100800); 29     $InitializeCommonEvent(0, 90015016, 1038100800);
30     $InitializeCommonEvent(0, 90015017, 1038100800, 25, 0, 1038102800, 72445, 1038102800); 30     $InitializeCommonEvent(0, 90015017, 1038100800, 25, 0, 1038102800, 72445, 1038102800);
31     $InitializeCommonEvent(0, 90015041, 120, 0, 0, 72476);
32     $InitializeCommonEvent(0, 90015041, 121, 0, 0, 72476);
31     $InitializeEvent(0, 1038102200, 1038105200, 1038102200); 33     $InitializeEvent(0, 1038102200, 1038105200, 1038102200);
32     $InitializeCommonEvent(0, 90005211, 1038100227, 30000, 20000, 1038102202, 2, 1, 0, 0, 0, 0); 34     $InitializeCommonEvent(0, 90005211, 1038100227, 30000, 20000, 1038102202, 2, 1, 0, 0, 0, 0);
33     $InitializeCommonEvent(0, 90005211, 1038100228, 30000, 20000, 1038102202, 2, 1, 0, 0, 0, 0); 35     $InitializeCommonEvent(0, 90005211, 1038100228, 30000, 20000, 1038102202, 2, 1, 0, 0, 0, 0);
34     $InitializeCommonEvent(0, 90005211, 1038100231, 30000, 20000, 1038102202, 2, 1, 0, 0, 0, 0); 36     $InitializeCommonEvent(0, 90005211, 1038100231, 30000, 20000, 1038102202, 2, 1, 0, 0, 0, 0);
35     $InitializeCommonEvent(0, 90005211, 1038100232, 30000, 20000, 1038102202, 2, 1, 0, 0, 0, 0); 37     $InitializeCommonEvent(0, 90005211, 1038100232, 30000, 20000, 1038102202, 2, 1, 0, 0, 0, 0);
36     $InitializeCommonEvent(0, 90015150, 1038100290, 73083); 38     $InitializeCommonEvent(0, 90015150, 1038100290, 73083);
37     $InitializeCommonEvent(0, 90015151, 1038100290, 73043); 39     $InitializeCommonEvent(0, 90015151, 1038100290, 73043);
38     $InitializeCommonEvent(0, 90015152, 1038100290, 73043); 40     $InitializeCommonEvent(0, 90015152, 1038100290, 73043);
39     $InitializeCommonEvent(0, 90005910, 1038101805, 7695); 41     $InitializeCommonEvent(0, 90005910, 1038101805, 7695);
40     $InitializeCommonEvent(0, 91005505, 1038102510, 7695); 42     $InitializeCommonEvent(0, 91005505, 1038102510, 7695);
diff -rNU 10 nr1.01.7/m60_43_38_20.emevd.dcx.js nr/m60_43_38_20.emevd.dcx.js
nr1.01.7/m60_43_38_20.emevd.dcx.jsnr/m60_43_38_20.emevd.dcx.js
7 // @version 3.6 7 // @version 3.6
8 // ==/EMEVD== 8 // ==/EMEVD==
9 9
10 $Event(0, Default, function() { 10 $Event(0, Default, function() {
11     RegisterBonfire(1038201960, 0, 5); 11     RegisterBonfire(1038201960, 0, 5);
12     $InitializeCommonEvent(0, 90015004, 1038201960, 1038200960); 12     $InitializeCommonEvent(0, 90015004, 1038201960, 1038200960);
13     $InitializeEvent(0, 1038202550, 1038201910, 200, 803600); 13     $InitializeEvent(0, 1038202550, 1038201910, 200, 803600);
14     $InitializeCommonEvent(0, 90015009, 1038204700, 1038201501, 0, 1); 14     $InitializeCommonEvent(0, 90015009, 1038204700, 1038201501, 0, 1);
15     $InitializeCommonEvent(0, 90015208, 9328, 1038204700, 9040); 15     $InitializeCommonEvent(0, 90015208, 9328, 1038204700, 9040);
16     $InitializeEvent(0, 1038202520); 16     $InitializeEvent(0, 1038202520);
17     $InitializeCommonEvent(0, 90015501, 1038202300, 74960);
17     $InitializeCommonEvent(0, 90015150, 1038200290, 73084); 18     $InitializeCommonEvent(0, 90015150, 1038200290, 73084);
18     $InitializeCommonEvent(0, 90015151, 1038200290, 74044); 19     $InitializeCommonEvent(0, 90015151, 1038200290, 74044);
19     $InitializeCommonEvent(0, 90015152, 1038200290, 74044); 20     $InitializeCommonEvent(0, 90015152, 1038200290, 74044);
20     $InitializeCommonEvent(0, 90015150, 1038200291, 73085); 21     $InitializeCommonEvent(0, 90015150, 1038200291, 73085);
21     $InitializeCommonEvent(0, 90015151, 1038200291, 74045); 22     $InitializeCommonEvent(0, 90015151, 1038200291, 74045);
22     $InitializeCommonEvent(0, 90015152, 1038200291, 74045); 23     $InitializeCommonEvent(0, 90015152, 1038200291, 74045);
23     if (920910 == 0) { 24     if (920910 == 0) {
24         $InitializeCommonEvent(0, 90015000, 0, 1038200800, 904770000, 30, 0, 0); 25         $InitializeCommonEvent(0, 90015000, 0, 1038200800, 904770000, 30, 0, 0);
25         $InitializeCommonEvent(0, 90015030, 0, 1038200800, 30, 940000, 0); 26         $InitializeCommonEvent(0, 90015030, 0, 1038200800, 30, 940000, 0);
26     } else { 27     } else {
34     GotoIf(S0, 0 != 0); 35     GotoIf(S0, 0 != 0);
35     Goto(S2); 36     Goto(S2);
36 S0: 37 S0:
37     GotoIf(S1, 920910 != 0); 38     GotoIf(S1, 920910 != 0);
38     $InitializeCommonEvent(0, 90015008, 0, 1038202800, 940000, 1038200800, 0, 0); 39     $InitializeCommonEvent(0, 90015008, 0, 1038202800, 940000, 1038200800, 0, 0);
39     Goto(S2); 40     Goto(S2);
40 S1: 41 S1:
41     $InitializeCommonEvent(0, 90015008, 0, 1038202800, 920910, 1038200800, 0, 0); 42     $InitializeCommonEvent(0, 90015008, 0, 1038202800, 920910, 1038200800, 0, 0);
42 S2: 43 S2:
43     $InitializeCommonEvent(0, 90015017, 1038200800, 25, 0, 1038202800, 72448, 1038202800); 44     $InitializeCommonEvent(0, 90015017, 1038200800, 25, 0, 1038202800, 72448, 1038202800);
45     $InitializeCommonEvent(0, 90015041, 310, 0, 0, 72479);
44     $InitializeCommonEvent(1, 91005503, 1038201551); 46     $InitializeCommonEvent(1, 91005503, 1038201551);
45     $InitializeEvent(0, 1038202501); 47     $InitializeEvent(0, 1038202501);
46     $InitializeEvent(0, 1038202206); 48     $InitializeEvent(0, 1038202206);
47 }); 49 });
48 50
49 $Event(200, Default, function() { 51 $Event(200, Default, function() {
50     $InitializeEvent(0, 1238202500); 52     $InitializeEvent(0, 1238202500);
51 }); 53 });
52 54
53 $Event(1238202500, Default, function() { 55 $Event(1238202500, Default, function() {
diff -rNU 10 nr1.01.7/m60_43_38_50.emevd.dcx.js nr/m60_43_38_50.emevd.dcx.js
nr1.01.7/m60_43_38_50.emevd.dcx.jsnr/m60_43_38_50.emevd.dcx.js
47         $InitializeCommonEvent(0, 90085002, 602, 9234, 9224, 9224, 1043385280, 1043380281, 1043380282, 0, 0, 20026); 47         $InitializeCommonEvent(0, 90085002, 602, 9234, 9224, 9224, 1043385280, 1043380281, 1043380282, 0, 0, 20026);
48     } 48     }
49     if (3 == 3) { 49     if (3 == 3) {
50         $InitializeCommonEvent(0, 90085002, 602, 9234, 9224, 9224, 1043385280, 1043380281, 1043380282, 1043380283, 0, 20026); 50         $InitializeCommonEvent(0, 90085002, 602, 9234, 9224, 9224, 1043385280, 1043380281, 1043380282, 1043380283, 0, 20026);
51     } 51     }
52     if (4 == 3) { 52     if (4 == 3) {
53         $InitializeCommonEvent(0, 90085002, 602, 9234, 9224, 9224, 1043385280, 1043380281, 1043380282, 1043380283, 1043380284, 20026); 53         $InitializeCommonEvent(0, 90085002, 602, 9234, 9224, 9224, 1043385280, 1043380281, 1043380282, 1043380283, 1043380284, 20026);
54     } 54     }
55     $InitializeCommonEvent(0, 90085613, 602, 9234, 9224, 9224, 1043385280); 55     $InitializeCommonEvent(0, 90085613, 602, 9234, 9224, 9224, 1043385280);
56     $InitializeCommonEvent(0, 90085614, 602, 9234, 1043386280, 1043380280, 8459); 56     $InitializeCommonEvent(0, 90085614, 602, 9234, 1043386280, 1043380280, 8459);
57     $InitializeCommonEvent(0, 90015501, 1043382300, 73993);
57 }); 58 });
58 59
59 $Event(1043382800, Restart, function(areaEntityId) { 60 $Event(1043382800, Restart, function(areaEntityId) {
60     DisableNetworkSync(); 61     DisableNetworkSync();
61     WaitFor(InArea(20000, areaEntityId)); 62     WaitFor(InArea(20000, areaEntityId));
62     SetSpEffect(20000, 99216); 63     SetSpEffect(20000, 99216);
63     RestartEvent(); 64     RestartEvent();
64 }); 65 });
65 66
66 $Event(1043382810, Restart, function(areaEntityId) { 67 $Event(1043382810, Restart, function(areaEntityId) {
diff -rNU 10 nr1.01.7/m60_43_39_00.emevd.dcx.js nr/m60_43_39_00.emevd.dcx.js
nr1.01.7/m60_43_39_00.emevd.dcx.jsnr/m60_43_39_00.emevd.dcx.js
39     if (2 == 3) { 39     if (2 == 3) {
40         $InitializeCommonEvent(0, 90085002, 801, 9262, 9252, 9252, 1043395260, 1043390260, 1043390261, 0, 0, 20026); 40         $InitializeCommonEvent(0, 90085002, 801, 9262, 9252, 9252, 1043395260, 1043390260, 1043390261, 0, 0, 20026);
41     } 41     }
42     if (3 == 3) { 42     if (3 == 3) {
43         $InitializeCommonEvent(0, 90085002, 801, 9262, 9252, 9252, 1043395260, 1043390260, 1043390261, 1043390262, 0, 20026); 43         $InitializeCommonEvent(0, 90085002, 801, 9262, 9252, 9252, 1043395260, 1043390260, 1043390261, 1043390262, 0, 20026);
44     } 44     }
45     if (4 == 3) { 45     if (4 == 3) {
46         $InitializeCommonEvent(0, 90085002, 801, 9262, 9252, 9252, 1043395260, 1043390260, 1043390261, 1043390262, 1043390263, 20026); 46         $InitializeCommonEvent(0, 90085002, 801, 9262, 9252, 9252, 1043395260, 1043390260, 1043390261, 1043390262, 1043390263, 20026);
47     } 47     }
48     $InitializeCommonEvent(0, 90085802, 801, 9262, 1043395260); 48     $InitializeCommonEvent(0, 90085802, 801, 9262, 1043395260);
49     $InitializeCommonEvent(0, 90015501, 1043392300, 73994);
49 }); 50 });
50 51
51 $Event(1043392200, Default, function(eventFlagId) { 52 $Event(1043392200, Default, function(eventFlagId) {
52     EndIf(!EventFlag(6011)); 53     EndIf(!EventFlag(6011));
53     SetEventFlagID(eventFlagId, ON); 54     SetEventFlagID(eventFlagId, ON);
54 }); 55 });
55 56
56 $Event(1043392201, Restart, function(assetEntityId) { 57 $Event(1043392201, Restart, function(assetEntityId) {
57     EndIf(!EventFlag(6011)); 58     EndIf(!EventFlag(6011));
58     DisableCharacter(assetEntityId); 59     DisableCharacter(assetEntityId);
diff -rNU 10 nr1.01.7/m60_43_39_10.emevd.dcx.js nr/m60_43_39_10.emevd.dcx.js
nr1.01.7/m60_43_39_10.emevd.dcx.jsnr/m60_43_39_10.emevd.dcx.js
18     Goto(S1); 18     Goto(S1);
19 S0: 19 S0:
20     $InitializeCommonEvent(0, 90015008, 0, 1039100810, 920910, 1039105810, 0, 0); 20     $InitializeCommonEvent(0, 90015008, 0, 1039100810, 920910, 1039105810, 0, 0);
21 S1: 21 S1:
22     if (0 != 0) { 22     if (0 != 0) {
23         $InitializeCommonEvent(0, 90015013); 23         $InitializeCommonEvent(0, 90015013);
24     } 24     }
25     $InitializeCommonEvent(0, 90015015, 1039100810); 25     $InitializeCommonEvent(0, 90015015, 1039100810);
26     $InitializeCommonEvent(0, 90015016, 1039100810); 26     $InitializeCommonEvent(0, 90015016, 1039100810);
27     $InitializeCommonEvent(0, 90015017, 1039100810, 25, 0, 1039102810, 72453, 1039102810); 27     $InitializeCommonEvent(0, 90015017, 1039100810, 25, 0, 1039102810, 72453, 1039102810);
28     $InitializeCommonEvent(0, 90015041, 0, 0, 0, 72488);
29     $InitializeCommonEvent(0, 90015041, 1, 0, 0, 72488);
30     $InitializeCommonEvent(0, 90015041, 2, 0, 0, 72488);
28     $InitializeCommonEvent(0, 90015000, 0, 1039100820, 905810000, 30, 0, 0); 31     $InitializeCommonEvent(0, 90015000, 0, 1039100820, 905810000, 30, 0, 0);
29     $InitializeCommonEvent(0, 90015030, 0, 1039100820, 30, 931010, 0); 32     $InitializeCommonEvent(0, 90015030, 0, 1039100820, 30, 931010, 0);
30     $InitializeCommonEvent(0, 90015002, 0, 0, 1039100820, 1039100820, 1020, 931010, 11290, 905810000, 1039100820); 33     $InitializeCommonEvent(0, 90015002, 0, 0, 1039100820, 1039100820, 1020, 931010, 11290, 905810000, 1039100820);
31     $InitializeCommonEvent(0, 9005810, 1039100820, 1039100520, 1039101520, 5); 34     $InitializeCommonEvent(0, 9005810, 1039100820, 1039100520, 1039101520, 5);
32     $InitializeCommonEvent(0, 90015005, 1039101520, 1039102820, 1039100820); 35     $InitializeCommonEvent(0, 90015005, 1039101520, 1039102820, 1039100820);
33     GotoIf(S2, Signed(0) != 0); 36     GotoIf(S2, Signed(0) != 0);
34     GotoIf(S2, 0 != 0); 37     GotoIf(S2, 0 != 0);
35     Goto(S3); 38     Goto(S3);
36 S2: 39 S2:
37     $InitializeCommonEvent(0, 90015008, 0, 1039100820, 931010, 1039100820, 0, 0); 40     $InitializeCommonEvent(0, 90015008, 0, 1039100820, 931010, 1039100820, 0, 0);
38 S3: 41 S3:
39     if (0 != 0) { 42     if (0 != 0) {
40         $InitializeCommonEvent(0, 90015013); 43         $InitializeCommonEvent(0, 90015013);
41     } 44     }
42     $InitializeCommonEvent(0, 90015015, 1039100820); 45     $InitializeCommonEvent(0, 90015015, 1039100820);
43     $InitializeCommonEvent(0, 90015016, 1039100820); 46     $InitializeCommonEvent(0, 90015016, 1039100820);
44     $InitializeCommonEvent(0, 90015017, 1039100820, 25, 0, 1039102820, 72457, 1039102820); 47     $InitializeCommonEvent(0, 90015017, 1039100820, 25, 0, 1039102820, 72457, 1039102820);
48     $InitializeCommonEvent(0, 90015041, 60, 0, 0, 72489);
45     $InitializeCommonEvent(0, 90015400, 1039100800, 1039100200, 1039100201, 1039100206, 1029100201, 1028100201, 1039100211, 1039100204); 49     $InitializeCommonEvent(0, 90015400, 1039100800, 1039100200, 1039100201, 1039100206, 1029100201, 1028100201, 1039100211, 1039100204);
46     $InitializeCommonEvent(0, 90015401, 1039100800, 1039100200, 1039100201, 1039100204, 1039100203, 1039102900, 1039100216); 50     $InitializeCommonEvent(0, 90015401, 1039100800, 1039100200, 1039100201, 1039100204, 1039100203, 1039102900, 1039100216);
47     $InitializeCommonEvent(0, 90015402, 1039102900, 1039100201, 1039100802); 51     $InitializeCommonEvent(0, 90015402, 1039102900, 1039100201, 1039100802);
48     $InitializeCommonEvent(0, 90015403, 1039102900, 1039100201, 1039100802); 52     $InitializeCommonEvent(0, 90015403, 1039102900, 1039100201, 1039100802);
49     $InitializeCommonEvent(0, 90015404, 1039100800, 1039100201, 1039100211, 1039100802); 53     $InitializeCommonEvent(0, 90015404, 1039100800, 1039100201, 1039100211, 1039100802);
50     $InitializeCommonEvent(0, 90015405, 1039100202, 1039100201); 54     $InitializeCommonEvent(0, 90015405, 1039100202, 1039100201);
51     $InitializeCommonEvent(0, 90015406, 1039100201, 1039100802, 1039100800, 1039102900, 30, 904503600, 0, 1039100202); 55     $InitializeCommonEvent(0, 90015406, 1039100201, 1039100802, 1039100800, 1039102900, 30, 904503600, 0, 1039100202);
52     $InitializeCommonEvent(0, 90015407, 0, 1039100201, 1039100800, 1039100800, 1020, 920310, 11200, 904503600, 1039100202); 56     $InitializeCommonEvent(0, 90015407, 0, 1039100201, 1039100800, 1039100800, 1020, 920310, 11200, 904503600, 1039100202);
53     $InitializeCommonEvent(0, 90015031, 1039100201, 1039100800, 1039102900, 30, 920310, 1039100202); 57     $InitializeCommonEvent(0, 90015031, 1039100201, 1039100800, 1039102900, 30, 920310, 1039100202);
54     $InitializeCommonEvent(0, 9005810, 1039100800, 1039100500, 1039101500, 5); 58     $InitializeCommonEvent(0, 9005810, 1039100800, 1039100500, 1039101500, 5);
diff -rNU 10 nr1.01.7/m60_43_39_20.emevd.dcx.js nr/m60_43_39_20.emevd.dcx.js
nr1.01.7/m60_43_39_20.emevd.dcx.jsnr/m60_43_39_20.emevd.dcx.js
23     GotoIf(S0, 0 != 0); 23     GotoIf(S0, 0 != 0);
24     Goto(S2); 24     Goto(S2);
25 S0: 25 S0:
26     GotoIf(S1, 931010 != 0); 26     GotoIf(S1, 931010 != 0);
27     $InitializeCommonEvent(0, 90015008, 0, 1039202800, 940000, 1039200800, 0, 0); 27     $InitializeCommonEvent(0, 90015008, 0, 1039202800, 940000, 1039200800, 0, 0);
28     Goto(S2); 28     Goto(S2);
29 S1: 29 S1:
30     $InitializeCommonEvent(0, 90015008, 0, 1039202800, 931010, 1039200800, 0, 0); 30     $InitializeCommonEvent(0, 90015008, 0, 1039202800, 931010, 1039200800, 0, 0);
31 S2: 31 S2:
32     $InitializeCommonEvent(0, 90015017, 1039200800, 25, 0, 1039202800, 72455, 1039202800); 32     $InitializeCommonEvent(0, 90015017, 1039200800, 25, 0, 1039202800, 72455, 1039202800);
33     $InitializeCommonEvent(0, 90015041, 90, 0, 0, 72481);
33     if (921410 == 0) { 34     if (921410 == 0) {
34         $InitializeCommonEvent(0, 90015000, 0, 1039200810, 903181300, 30, 0, 0); 35         $InitializeCommonEvent(0, 90015000, 0, 1039200810, 903181300, 30, 0, 0);
35         $InitializeCommonEvent(0, 90015030, 0, 1039200810, 30, 940000, 0); 36         $InitializeCommonEvent(0, 90015030, 0, 1039200810, 30, 940000, 0);
36     } else { 37     } else {
37         $InitializeCommonEvent(0, 90015000, 0, 1039200810, 903181300, 30, 0, 0); 38         $InitializeCommonEvent(0, 90015000, 0, 1039200810, 903181300, 30, 0, 0);
38         $InitializeCommonEvent(0, 90015030, 0, 1039200810, 30, 921410, 0); 39         $InitializeCommonEvent(0, 90015030, 0, 1039200810, 30, 921410, 0);
39     } 40     }
40     $InitializeCommonEvent(0, 90015002, 0, 0, 1039202810, 1039200810, 1020, 921410, 11200, 903181300, 1039200810); 41     $InitializeCommonEvent(0, 90015002, 0, 0, 1039202810, 1039200810, 1020, 921410, 11200, 903181300, 1039200810);
41     $InitializeCommonEvent(0, 90015006, 1039201510, 1039200510, 1039202810, 5); 42     $InitializeCommonEvent(0, 90015006, 1039201510, 1039200510, 1039202810, 5);
42     $InitializeCommonEvent(0, 90015005, 1039201510, 1039202810, 1039202810); 43     $InitializeCommonEvent(0, 90015005, 1039201510, 1039202810, 1039202810);
44     GotoIf(S3, 0 != 0); 45     GotoIf(S3, 0 != 0);
45     Goto(S5); 46     Goto(S5);
46 S3: 47 S3:
47     GotoIf(S4, 921410 != 0); 48     GotoIf(S4, 921410 != 0);
48     $InitializeCommonEvent(0, 90015008, 0, 1039202810, 940000, 1039200810, 0, 0); 49     $InitializeCommonEvent(0, 90015008, 0, 1039202810, 940000, 1039200810, 0, 0);
49     Goto(S5); 50     Goto(S5);
50 S4: 51 S4:
51     $InitializeCommonEvent(0, 90015008, 0, 1039202810, 921410, 1039200810, 0, 0); 52     $InitializeCommonEvent(0, 90015008, 0, 1039202810, 921410, 1039200810, 0, 0);
52 S5: 53 S5:
53     $InitializeCommonEvent(0, 90015017, 1039200810, 25, 0, 1039202810, 72467, 1039202810); 54     $InitializeCommonEvent(0, 90015017, 1039200810, 25, 0, 1039202810, 72467, 1039202810);
55     $InitializeCommonEvent(0, 90015041, 130, 0, 0, 72483);
54     $InitializeCommonEvent(0, 90015150, 1039200290, 73088); 56     $InitializeCommonEvent(0, 90015150, 1039200290, 73088);
55     $InitializeCommonEvent(0, 90015151, 1039200290, 74048); 57     $InitializeCommonEvent(0, 90015151, 1039200290, 74048);
56     $InitializeCommonEvent(0, 90015152, 1039200290, 74048); 58     $InitializeCommonEvent(0, 90015152, 1039200290, 74048);
57     $InitializeCommonEvent(0, 90005910, 1039201800, 7687); 59     $InitializeCommonEvent(0, 90005910, 1039201800, 7687);
58     $InitializeCommonEvent(0, 91005505, 1039202510, 7687); 60     $InitializeCommonEvent(0, 91005505, 1039202510, 7687);
59     $InitializeCommonEvent(0, 90065901, 1039204890); 61     $InitializeCommonEvent(0, 90065901, 1039204890);
60     $InitializeCommonEvent(0, 91005503, 1039201550); 62     $InitializeCommonEvent(0, 91005503, 1039201550);
61     $InitializeCommonEvent(1, 91005503, 1039201551); 63     $InitializeCommonEvent(1, 91005503, 1039201551);
62     $InitializeEvent(0, 1039202300, 1039202500); 64     $InitializeEvent(0, 1039202300, 1039202500);
63     $InitializeEvent(0, 1039202220, 1038202350, 1038204350); 65     $InitializeEvent(0, 1039202220, 1038202350, 1038204350);
diff -rNU 10 nr1.01.7/m60_43_39_50.emevd.dcx.js nr/m60_43_39_50.emevd.dcx.js
nr1.01.7/m60_43_39_50.emevd.dcx.jsnr/m60_43_39_50.emevd.dcx.js
39     if (2 == 3) { 39     if (2 == 3) {
40         $InitializeCommonEvent(0, 90085002, 801, 9262, 9252, 9252, 1043395260, 1043390260, 1043390261, 0, 0, 20026); 40         $InitializeCommonEvent(0, 90085002, 801, 9262, 9252, 9252, 1043395260, 1043390260, 1043390261, 0, 0, 20026);
41     } 41     }
42     if (3 == 3) { 42     if (3 == 3) {
43         $InitializeCommonEvent(0, 90085002, 801, 9262, 9252, 9252, 1043395260, 1043390260, 1043390261, 1043390262, 0, 20026); 43         $InitializeCommonEvent(0, 90085002, 801, 9262, 9252, 9252, 1043395260, 1043390260, 1043390261, 1043390262, 0, 20026);
44     } 44     }
45     if (4 == 3) { 45     if (4 == 3) {
46         $InitializeCommonEvent(0, 90085002, 801, 9262, 9252, 9252, 1043395260, 1043390260, 1043390261, 1043390262, 1043390263, 20026); 46         $InitializeCommonEvent(0, 90085002, 801, 9262, 9252, 9252, 1043395260, 1043390260, 1043390261, 1043390262, 1043390263, 20026);
47     } 47     }
48     $InitializeCommonEvent(0, 90085802, 801, 9262, 1043395260); 48     $InitializeCommonEvent(0, 90085802, 801, 9262, 1043395260);
49     $InitializeCommonEvent(0, 90015501, 1043392300, 73994);
49 }); 50 });
50 51
51 $Event(1043392200, Default, function(eventFlagId) { 52 $Event(1043392200, Default, function(eventFlagId) {
52     EndIf(!EventFlag(6011)); 53     EndIf(!EventFlag(6011));
53     SetEventFlagID(eventFlagId, ON); 54     SetEventFlagID(eventFlagId, ON);
54 }); 55 });
55 56
56 $Event(1043392201, Restart, function(assetEntityId) { 57 $Event(1043392201, Restart, function(assetEntityId) {
57     EndIf(!EventFlag(6011)); 58     EndIf(!EventFlag(6011));
58     DisableCharacter(assetEntityId); 59     DisableCharacter(assetEntityId);
diff -rNU 10 nr1.01.7/m60_44_36_00.emevd.dcx.js nr/m60_44_36_00.emevd.dcx.js
nr1.01.7/m60_44_36_00.emevd.dcx.jsnr/m60_44_36_00.emevd.dcx.js
78     $InitializeCommonEvent(0, 90035083, 1044360220, 2); 78     $InitializeCommonEvent(0, 90035083, 1044360220, 2);
79     $InitializeCommonEvent(0, 90035083, 1044360220, 3); 79     $InitializeCommonEvent(0, 90035083, 1044360220, 3);
80     $InitializeCommonEvent(0, 90035084, 1044360220, 1044361211, 1044360210, 1); 80     $InitializeCommonEvent(0, 90035084, 1044360220, 1044361211, 1044360210, 1);
81     $InitializeCommonEvent(0, 90035084, 1044360220, 1044361211, 1044360220, 2); 81     $InitializeCommonEvent(0, 90035084, 1044360220, 1044361211, 1044360220, 2);
82     $InitializeCommonEvent(0, 90035084, 1044360220, 1044361211, 1044360221, 3); 82     $InitializeCommonEvent(0, 90035084, 1044360220, 1044361211, 1044360221, 3);
83     $InitializeCommonEvent(0, 90035087, 1044360220, 1044361211); 83     $InitializeCommonEvent(0, 90035087, 1044360220, 1044361211);
84     $InitializeCommonEvent(0, 90035088, 1044360220, 1044360214); 84     $InitializeCommonEvent(0, 90035088, 1044360220, 1044360214);
85     $InitializeCommonEvent(0, 90035088, 1044360220, 1044360222); 85     $InitializeCommonEvent(0, 90035088, 1044360220, 1044360222);
86     $InitializeCommonEvent(0, 91005504, 1044361500, 7601, 0, 0, 0); 86     $InitializeCommonEvent(0, 91005504, 1044361500, 7601, 0, 0, 0);
87     $InitializeCommonEvent(0, 91005504, 1044361510, 7600, 7602, 7603, 0); 87     $InitializeCommonEvent(0, 91005504, 1044361510, 7600, 7602, 7603, 0);
88     $InitializeCommonEvent(0, 90015501, 1044362300, 73995);
88 }); 89 });
89 90
90 $Event(1044362202, Default, function() { 91 $Event(1044362202, Default, function() {
91     ForceAnimationPlayback(1044360490, 30010, true, false, false); 92     ForceAnimationPlayback(1044360490, 30010, true, false, false);
92     WaitFor(CharacterHasSpEffect(10000, 8971500) && InArea(10000, 1044362651)); 93     WaitFor(CharacterHasSpEffect(10000, 8971500) && InArea(10000, 1044362651));
93     InvokeEnemyGenerator(1044362650); 94     InvokeEnemyGenerator(1044362650);
94     WaitFixedTimeSeconds(1); 95     WaitFixedTimeSeconds(1);
95     ForceCharacterTreasure(1044360650); 96     ForceCharacterTreasure(1044360650);
96     RestartEvent(); 97     RestartEvent();
97 }); 98 });
diff -rNU 10 nr1.01.7/m60_44_36_20.emevd.dcx.js nr/m60_44_36_20.emevd.dcx.js
nr1.01.7/m60_44_36_20.emevd.dcx.jsnr/m60_44_36_20.emevd.dcx.js
78     $InitializeCommonEvent(0, 90035083, 1044360220, 2); 78     $InitializeCommonEvent(0, 90035083, 1044360220, 2);
79     $InitializeCommonEvent(0, 90035083, 1044360220, 3); 79     $InitializeCommonEvent(0, 90035083, 1044360220, 3);
80     $InitializeCommonEvent(0, 90035084, 1044360220, 1044361211, 1044360210, 1); 80     $InitializeCommonEvent(0, 90035084, 1044360220, 1044361211, 1044360210, 1);
81     $InitializeCommonEvent(0, 90035084, 1044360220, 1044361211, 1044360220, 2); 81     $InitializeCommonEvent(0, 90035084, 1044360220, 1044361211, 1044360220, 2);
82     $InitializeCommonEvent(0, 90035084, 1044360220, 1044361211, 1044360221, 3); 82     $InitializeCommonEvent(0, 90035084, 1044360220, 1044361211, 1044360221, 3);
83     $InitializeCommonEvent(0, 90035087, 1044360220, 1044361211); 83     $InitializeCommonEvent(0, 90035087, 1044360220, 1044361211);
84     $InitializeCommonEvent(0, 90035088, 1044360220, 1044360214); 84     $InitializeCommonEvent(0, 90035088, 1044360220, 1044360214);
85     $InitializeCommonEvent(0, 90035088, 1044360220, 1044360222); 85     $InitializeCommonEvent(0, 90035088, 1044360220, 1044360222);
86     $InitializeCommonEvent(0, 91005504, 1044361500, 7601, 0, 0, 0); 86     $InitializeCommonEvent(0, 91005504, 1044361500, 7601, 0, 0, 0);
87     $InitializeCommonEvent(0, 91005504, 1044361510, 7600, 7602, 7603, 0); 87     $InitializeCommonEvent(0, 91005504, 1044361510, 7600, 7602, 7603, 0);
88     $InitializeCommonEvent(0, 90015501, 1044362300, 73995);
88 }); 89 });
89 90
90 $Event(1044362202, Default, function() { 91 $Event(1044362202, Default, function() {
91     ForceAnimationPlayback(1044360490, 30010, true, false, false); 92     ForceAnimationPlayback(1044360490, 30010, true, false, false);
92     WaitFor(CharacterHasSpEffect(10000, 8971500) && InArea(10000, 1044362651)); 93     WaitFor(CharacterHasSpEffect(10000, 8971500) && InArea(10000, 1044362651));
93     InvokeEnemyGenerator(1044362650); 94     InvokeEnemyGenerator(1044362650);
94     WaitFixedTimeSeconds(1); 95     WaitFixedTimeSeconds(1);
95     ForceCharacterTreasure(1044360650); 96     ForceCharacterTreasure(1044360650);
96     RestartEvent(); 97     RestartEvent();
97 }); 98 });
diff -rNU 10 nr1.01.7/m60_44_36_50.emevd.dcx.js nr/m60_44_36_50.emevd.dcx.js
nr1.01.7/m60_44_36_50.emevd.dcx.jsnr/m60_44_36_50.emevd.dcx.js
78     $InitializeCommonEvent(0, 90035083, 1044360220, 2); 78     $InitializeCommonEvent(0, 90035083, 1044360220, 2);
79     $InitializeCommonEvent(0, 90035083, 1044360220, 3); 79     $InitializeCommonEvent(0, 90035083, 1044360220, 3);
80     $InitializeCommonEvent(0, 90035084, 1044360220, 1044361211, 1044360210, 1); 80     $InitializeCommonEvent(0, 90035084, 1044360220, 1044361211, 1044360210, 1);
81     $InitializeCommonEvent(0, 90035084, 1044360220, 1044361211, 1044360220, 2); 81     $InitializeCommonEvent(0, 90035084, 1044360220, 1044361211, 1044360220, 2);
82     $InitializeCommonEvent(0, 90035084, 1044360220, 1044361211, 1044360221, 3); 82     $InitializeCommonEvent(0, 90035084, 1044360220, 1044361211, 1044360221, 3);
83     $InitializeCommonEvent(0, 90035087, 1044360220, 1044361211); 83     $InitializeCommonEvent(0, 90035087, 1044360220, 1044361211);
84     $InitializeCommonEvent(0, 90035088, 1044360220, 1044360214); 84     $InitializeCommonEvent(0, 90035088, 1044360220, 1044360214);
85     $InitializeCommonEvent(0, 90035088, 1044360220, 1044360222); 85     $InitializeCommonEvent(0, 90035088, 1044360220, 1044360222);
86     $InitializeCommonEvent(0, 91005504, 1044361500, 7601, 0, 0, 0); 86     $InitializeCommonEvent(0, 91005504, 1044361500, 7601, 0, 0, 0);
87     $InitializeCommonEvent(0, 91005504, 1044361510, 7600, 7602, 7603, 0); 87     $InitializeCommonEvent(0, 91005504, 1044361510, 7600, 7602, 7603, 0);
88     $InitializeCommonEvent(0, 90015501, 1044362300, 73995);
88 }); 89 });
89 90
90 $Event(1044362202, Default, function() { 91 $Event(1044362202, Default, function() {
91     ForceAnimationPlayback(1044360490, 30010, true, false, false); 92     ForceAnimationPlayback(1044360490, 30010, true, false, false);
92     WaitFor(CharacterHasSpEffect(10000, 8971500) && InArea(10000, 1044362651)); 93     WaitFor(CharacterHasSpEffect(10000, 8971500) && InArea(10000, 1044362651));
93     InvokeEnemyGenerator(1044362650); 94     InvokeEnemyGenerator(1044362650);
94     WaitFixedTimeSeconds(1); 95     WaitFixedTimeSeconds(1);
95     ForceCharacterTreasure(1044360650); 96     ForceCharacterTreasure(1044360650);
96     RestartEvent(); 97     RestartEvent();
97 }); 98 });
diff -rNU 10 nr1.01.7/m60_44_38_00.emevd.dcx.js nr/m60_44_38_00.emevd.dcx.js
nr1.01.7/m60_44_38_00.emevd.dcx.jsnr/m60_44_38_00.emevd.dcx.js
54     $InitializeCommonEvent(0, 90035082, 1044380230, 1044380200, 1044380205, 1044380206); 54     $InitializeCommonEvent(0, 90035082, 1044380230, 1044380200, 1044380205, 1044380206);
55     $InitializeCommonEvent(0, 90035083, 1044380230, 1); 55     $InitializeCommonEvent(0, 90035083, 1044380230, 1);
56     $InitializeCommonEvent(0, 90035083, 1044380230, 2); 56     $InitializeCommonEvent(0, 90035083, 1044380230, 2);
57     $InitializeCommonEvent(0, 90035083, 1044380230, 3); 57     $InitializeCommonEvent(0, 90035083, 1044380230, 3);
58     $InitializeCommonEvent(0, 90035084, 1044380230, 1044381200, 1044380200, 1); 58     $InitializeCommonEvent(0, 90035084, 1044380230, 1044381200, 1044380200, 1);
59     $InitializeCommonEvent(0, 90035084, 1044380230, 1044381200, 1044380205, 2); 59     $InitializeCommonEvent(0, 90035084, 1044380230, 1044381200, 1044380205, 2);
60     $InitializeCommonEvent(0, 90035084, 1044380230, 1044381200, 1044380206, 3); 60     $InitializeCommonEvent(0, 90035084, 1044380230, 1044381200, 1044380206, 3);
61     $InitializeCommonEvent(0, 90035087, 1044380230, 1044381200); 61     $InitializeCommonEvent(0, 90035087, 1044380230, 1044381200);
62     $InitializeCommonEvent(0, 90035088, 1044380230, 1044380204); 62     $InitializeCommonEvent(0, 90035088, 1044380230, 1044380204);
63     $InitializeCommonEvent(0, 90035088, 1044380230, 1044380207); 63     $InitializeCommonEvent(0, 90035088, 1044380230, 1044380207);
64     $InitializeCommonEvent(0, 90015501, 1044382300, 73996);
64 }); 65 });
65 66
66 $Event(50, Default, function() { 67 $Event(50, Default, function() {
67     $InitializeCommonEvent(0, 90035072, 1044380200); 68     $InitializeCommonEvent(0, 90035072, 1044380200);
68 }); 69 });
69 70
70 $Event(1044382350, Restart, function(eventFlagId, eventFlagId2, entityId) { 71 $Event(1044382350, Restart, function(eventFlagId, eventFlagId2, entityId) {
71     DisableNetworkSync(); 72     DisableNetworkSync();
72     if (EventFlag(eventFlagId2)) { 73     if (EventFlag(eventFlagId2)) {
73         ForceAnimationPlayback(entityId, 2, true, false, false); 74         ForceAnimationPlayback(entityId, 2, true, false, false);
diff -rNU 10 nr1.01.7/m60_44_38_20.emevd.dcx.js nr/m60_44_38_20.emevd.dcx.js
nr1.01.7/m60_44_38_20.emevd.dcx.jsnr/m60_44_38_20.emevd.dcx.js
40     GotoIf(S0, 0 != 0); 40     GotoIf(S0, 0 != 0);
41     Goto(S2); 41     Goto(S2);
42 S0: 42 S0:
43     GotoIf(S1, 920910 != 0); 43     GotoIf(S1, 920910 != 0);
44     $InitializeCommonEvent(0, 90015008, 0, 1048202800, 940000, 1048200800, 0, 0); 44     $InitializeCommonEvent(0, 90015008, 0, 1048202800, 940000, 1048200800, 0, 0);
45     Goto(S2); 45     Goto(S2);
46 S1: 46 S1:
47     $InitializeCommonEvent(0, 90015008, 0, 1048202800, 920910, 1048200800, 0, 0); 47     $InitializeCommonEvent(0, 90015008, 0, 1048202800, 920910, 1048200800, 0, 0);
48 S2: 48 S2:
49     $InitializeCommonEvent(0, 90015017, 1048200800, 0, 1048202800, 1048202800, 72446, 1048202800); 49     $InitializeCommonEvent(0, 90015017, 1048200800, 0, 1048202800, 1048202800, 72446, 1048202800);
50     $InitializeCommonEvent(0, 90015041, 230, 0, 0, 72477);
50     if (920810 == 0) { 51     if (920810 == 0) {
51         $InitializeCommonEvent(0, 90015000, 0, 1048200830, 904680320, 30, 0, 0); 52         $InitializeCommonEvent(0, 90015000, 0, 1048200830, 904680320, 30, 0, 0);
52         $InitializeCommonEvent(0, 90015030, 0, 1048200830, 30, 940000, 0); 53         $InitializeCommonEvent(0, 90015030, 0, 1048200830, 30, 940000, 0);
53     } else { 54     } else {
54         $InitializeCommonEvent(0, 90015000, 0, 1048200830, 904680320, 30, 0, 0); 55         $InitializeCommonEvent(0, 90015000, 0, 1048200830, 904680320, 30, 0, 0);
55         $InitializeCommonEvent(0, 90015030, 0, 1048200830, 30, 920810, 0); 56         $InitializeCommonEvent(0, 90015030, 0, 1048200830, 30, 920810, 0);
56     } 57     }
57     $InitializeCommonEvent(0, 90015002, 0, 0, 1048202830, 1048200830, 1020, 920810, 11200, 904680320, 1048200830); 58     $InitializeCommonEvent(0, 90015002, 0, 0, 1048202830, 1048200830, 1020, 920810, 11200, 904680320, 1048200830);
58     $InitializeCommonEvent(0, 90015006, 1048201530, 1048200530, 1048202830, 5); 59     $InitializeCommonEvent(0, 90015006, 1048201530, 1048200530, 1048202830, 5);
59     $InitializeCommonEvent(0, 90015005, 1048201530, 1048202830, 1048202830); 60     $InitializeCommonEvent(0, 90015005, 1048201530, 1048202830, 1048202830);
61     GotoIf(S3, 0 != 0); 62     GotoIf(S3, 0 != 0);
62     Goto(S5); 63     Goto(S5);
63 S3: 64 S3:
64     GotoIf(S4, 920810 != 0); 65     GotoIf(S4, 920810 != 0);
65     $InitializeCommonEvent(0, 90015008, 0, 1048202830, 940000, 1048200830, 0, 0); 66     $InitializeCommonEvent(0, 90015008, 0, 1048202830, 940000, 1048200830, 0, 0);
66     Goto(S5); 67     Goto(S5);
67 S4: 68 S4:
68     $InitializeCommonEvent(0, 90015008, 0, 1048202830, 920810, 1048200830, 0, 0); 69     $InitializeCommonEvent(0, 90015008, 0, 1048202830, 920810, 1048200830, 0, 0);
69 S5: 70 S5:
70     $InitializeCommonEvent(0, 90015017, 1048200830, 25, 0, 1048202830, 72447, 1048202830); 71     $InitializeCommonEvent(0, 90015017, 1048200830, 25, 0, 1048202830, 72447, 1048202830);
72     $InitializeCommonEvent(0, 90015041, 0, 0, 0, 72478);
71     $InitializeEvent(0, 1048202500, 1048200400, 400, 1048202400, 10109, 1048202800, 9194); 73     $InitializeEvent(0, 1048202500, 1048200400, 400, 1048202400, 10109, 1048202800, 9194);
72     $InitializeEvent(0, 1048202501, 1048201300, 807038, 100, 1048202800, 9194, 1048200800); 74     $InitializeEvent(0, 1048202501, 1048201300, 807038, 100, 1048202800, 9194, 1048200800);
73     $InitializeCommonEvent(0, 91005503, 1048201550); 75     $InitializeCommonEvent(0, 91005503, 1048201550);
74     $InitializeEvent(0, 1048202220, 1048202350, 1048204350); 76     $InitializeEvent(0, 1048202220, 1048202350, 1048204350);
75 }); 77 });
76 78
77 $Event(1048202500, Default, function(chrEntityId, operationGuideParamId, entityId, userDispLogParamId, eventFlagId, eventFlagId2) { 79 $Event(1048202500, Default, function(chrEntityId, operationGuideParamId, entityId, userDispLogParamId, eventFlagId, eventFlagId2) {
78     DisableNetworkSync(); 80     DisableNetworkSync();
79     if (EventFlag(eventFlagId2)) { 81     if (EventFlag(eventFlagId2)) {
80         EnableCharacter(chrEntityId); 82         EnableCharacter(chrEntityId);
diff -rNU 10 nr1.01.7/m60_44_38_30.emevd.dcx.js nr/m60_44_38_30.emevd.dcx.js
nr1.01.7/m60_44_38_30.emevd.dcx.jsnr/m60_44_38_30.emevd.dcx.js
54     $InitializeCommonEvent(0, 90035082, 1044380230, 1044380200, 1044380205, 1044380206); 54     $InitializeCommonEvent(0, 90035082, 1044380230, 1044380200, 1044380205, 1044380206);
55     $InitializeCommonEvent(0, 90035083, 1044380230, 1); 55     $InitializeCommonEvent(0, 90035083, 1044380230, 1);
56     $InitializeCommonEvent(0, 90035083, 1044380230, 2); 56     $InitializeCommonEvent(0, 90035083, 1044380230, 2);
57     $InitializeCommonEvent(0, 90035083, 1044380230, 3); 57     $InitializeCommonEvent(0, 90035083, 1044380230, 3);
58     $InitializeCommonEvent(0, 90035084, 1044380230, 1044381200, 1044380200, 1); 58     $InitializeCommonEvent(0, 90035084, 1044380230, 1044381200, 1044380200, 1);
59     $InitializeCommonEvent(0, 90035084, 1044380230, 1044381200, 1044380205, 2); 59     $InitializeCommonEvent(0, 90035084, 1044380230, 1044381200, 1044380205, 2);
60     $InitializeCommonEvent(0, 90035084, 1044380230, 1044381200, 1044380206, 3); 60     $InitializeCommonEvent(0, 90035084, 1044380230, 1044381200, 1044380206, 3);
61     $InitializeCommonEvent(0, 90035087, 1044380230, 1044381200); 61     $InitializeCommonEvent(0, 90035087, 1044380230, 1044381200);
62     $InitializeCommonEvent(0, 90035088, 1044380230, 1044380204); 62     $InitializeCommonEvent(0, 90035088, 1044380230, 1044380204);
63     $InitializeCommonEvent(0, 90035088, 1044380230, 1044380207); 63     $InitializeCommonEvent(0, 90035088, 1044380230, 1044380207);
64     $InitializeCommonEvent(0, 90015501, 1044382300, 73996);
64 }); 65 });
65 66
66 $Event(50, Default, function() { 67 $Event(50, Default, function() {
67     $InitializeCommonEvent(0, 90035072, 1044380200); 68     $InitializeCommonEvent(0, 90035072, 1044380200);
68 }); 69 });
69 70
70 $Event(1044382350, Restart, function(eventFlagId, eventFlagId2, entityId) { 71 $Event(1044382350, Restart, function(eventFlagId, eventFlagId2, entityId) {
71     DisableNetworkSync(); 72     DisableNetworkSync();
72     if (EventFlag(eventFlagId2)) { 73     if (EventFlag(eventFlagId2)) {
73         ForceAnimationPlayback(entityId, 2, true, false, false); 74         ForceAnimationPlayback(entityId, 2, true, false, false);
diff -rNU 10 nr1.01.7/m60_44_38_50.emevd.dcx.js nr/m60_44_38_50.emevd.dcx.js
nr1.01.7/m60_44_38_50.emevd.dcx.jsnr/m60_44_38_50.emevd.dcx.js
54     $InitializeCommonEvent(0, 90035082, 1044380230, 1044380200, 1044380205, 1044380206); 54     $InitializeCommonEvent(0, 90035082, 1044380230, 1044380200, 1044380205, 1044380206);
55     $InitializeCommonEvent(0, 90035083, 1044380230, 1); 55     $InitializeCommonEvent(0, 90035083, 1044380230, 1);
56     $InitializeCommonEvent(0, 90035083, 1044380230, 2); 56     $InitializeCommonEvent(0, 90035083, 1044380230, 2);
57     $InitializeCommonEvent(0, 90035083, 1044380230, 3); 57     $InitializeCommonEvent(0, 90035083, 1044380230, 3);
58     $InitializeCommonEvent(0, 90035084, 1044380230, 1044381200, 1044380200, 1); 58     $InitializeCommonEvent(0, 90035084, 1044380230, 1044381200, 1044380200, 1);
59     $InitializeCommonEvent(0, 90035084, 1044380230, 1044381200, 1044380205, 2); 59     $InitializeCommonEvent(0, 90035084, 1044380230, 1044381200, 1044380205, 2);
60     $InitializeCommonEvent(0, 90035084, 1044380230, 1044381200, 1044380206, 3); 60     $InitializeCommonEvent(0, 90035084, 1044380230, 1044381200, 1044380206, 3);
61     $InitializeCommonEvent(0, 90035087, 1044380230, 1044381200); 61     $InitializeCommonEvent(0, 90035087, 1044380230, 1044381200);
62     $InitializeCommonEvent(0, 90035088, 1044380230, 1044380204); 62     $InitializeCommonEvent(0, 90035088, 1044380230, 1044380204);
63     $InitializeCommonEvent(0, 90035088, 1044380230, 1044380207); 63     $InitializeCommonEvent(0, 90035088, 1044380230, 1044380207);
64     $InitializeCommonEvent(0, 90015501, 1044382300, 73996);
64 }); 65 });
65 66
66 $Event(50, Default, function() { 67 $Event(50, Default, function() {
67     $InitializeCommonEvent(0, 90035072, 1044380200); 68     $InitializeCommonEvent(0, 90035072, 1044380200);
68 }); 69 });
69 70
70 $Event(1044382350, Restart, function(eventFlagId, eventFlagId2, entityId) { 71 $Event(1044382350, Restart, function(eventFlagId, eventFlagId2, entityId) {
71     DisableNetworkSync(); 72     DisableNetworkSync();
72     if (EventFlag(eventFlagId2)) { 73     if (EventFlag(eventFlagId2)) {
73         ForceAnimationPlayback(entityId, 2, true, false, false); 74         ForceAnimationPlayback(entityId, 2, true, false, false);
diff -rNU 10 nr1.01.7/m60_44_39_20.emevd.dcx.js nr/m60_44_39_20.emevd.dcx.js
nr1.01.7/m60_44_39_20.emevd.dcx.jsnr/m60_44_39_20.emevd.dcx.js
23     GotoIf(S0, 0 != 0); 23     GotoIf(S0, 0 != 0);
24     Goto(S2); 24     Goto(S2);
25 S0: 25 S0:
26     GotoIf(S1, 0 != 0); 26     GotoIf(S1, 0 != 0);
27     $InitializeCommonEvent(0, 90015008, 0, 1049202800, 940000, 1049205800, 0, 0); 27     $InitializeCommonEvent(0, 90015008, 0, 1049202800, 940000, 1049205800, 0, 0);
28     Goto(S2); 28     Goto(S2);
29 S1: 29 S1:
30     $InitializeCommonEvent(0, 90015008, 0, 1049202800, 0, 1049205800, 0, 0); 30     $InitializeCommonEvent(0, 90015008, 0, 1049202800, 0, 1049205800, 0, 0);
31 S2: 31 S2:
32     $InitializeCommonEvent(0, 90015017, 1049205800, 25, 0, 1049202800, 72456, 1049202800); 32     $InitializeCommonEvent(0, 90015017, 1049205800, 25, 0, 1049202800, 72456, 1049202800);
33     $InitializeCommonEvent(0, 90015041, 20, 0, 0, 72482);
34     $InitializeCommonEvent(0, 90015041, 21, 0, 0, 72482);
35     $InitializeCommonEvent(0, 90015041, 22, 0, 0, 72482);
33     if (931010 == 0) { 36     if (931010 == 0) {
34         $InitializeCommonEvent(0, 90015000, 0, 1049200810, 904130700, 30, 0, 0); 37         $InitializeCommonEvent(0, 90015000, 0, 1049200810, 904130700, 30, 0, 0);
35         $InitializeCommonEvent(0, 90015030, 0, 1049200810, 30, 940000, 0); 38         $InitializeCommonEvent(0, 90015030, 0, 1049200810, 30, 940000, 0);
36     } else { 39     } else {
37         $InitializeCommonEvent(0, 90015000, 0, 1049200810, 904130700, 30, 0, 0); 40         $InitializeCommonEvent(0, 90015000, 0, 1049200810, 904130700, 30, 0, 0);
38         $InitializeCommonEvent(0, 90015030, 0, 1049200810, 30, 931010, 0); 41         $InitializeCommonEvent(0, 90015030, 0, 1049200810, 30, 931010, 0);
39     } 42     }
40     $InitializeCommonEvent(0, 90015002, 0, 0, 1049202810, 1049200810, 1020, 931010, 11200, 904130700, 1049200810); 43     $InitializeCommonEvent(0, 90015002, 0, 0, 1049202810, 1049200810, 1020, 931010, 11200, 904130700, 1049200810);
41     $InitializeCommonEvent(0, 90015006, 1049201510, 1049200510, 1049202810, 5); 44     $InitializeCommonEvent(0, 90015006, 1049201510, 1049200510, 1049202810, 5);
42     $InitializeCommonEvent(0, 90015005, 1049201510, 1049202810, 1049202810); 45     $InitializeCommonEvent(0, 90015005, 1049201510, 1049202810, 1049202810);
44     GotoIf(S3, 0 != 0); 47     GotoIf(S3, 0 != 0);
45     Goto(S5); 48     Goto(S5);
46 S3: 49 S3:
47     GotoIf(S4, 931010 != 0); 50     GotoIf(S4, 931010 != 0);
48     $InitializeCommonEvent(0, 90015008, 0, 1049202810, 940000, 1049200810, 0, 0); 51     $InitializeCommonEvent(0, 90015008, 0, 1049202810, 940000, 1049200810, 0, 0);
49     Goto(S5); 52     Goto(S5);
50 S4: 53 S4:
51     $InitializeCommonEvent(0, 90015008, 0, 1049202810, 931010, 1049200810, 0, 0); 54     $InitializeCommonEvent(0, 90015008, 0, 1049202810, 931010, 1049200810, 0, 0);
52 S5: 55 S5:
53     $InitializeCommonEvent(0, 90015017, 1049200810, 25, 0, 1049202810, 72454, 1049202810); 56     $InitializeCommonEvent(0, 90015017, 1049200810, 25, 0, 1049202810, 72454, 1049202810);
57     $InitializeCommonEvent(0, 90015041, 130, 0, 0, 72480);
54     if (920310 == 0) { 58     if (920310 == 0) {
55         $InitializeCommonEvent(0, 90015000, 0, 1049200820, 904505000, 30, 0, 0); 59         $InitializeCommonEvent(0, 90015000, 0, 1049200820, 904505000, 30, 0, 0);
56         $InitializeCommonEvent(0, 90015030, 0, 1049200820, 30, 940000, 0); 60         $InitializeCommonEvent(0, 90015030, 0, 1049200820, 30, 940000, 0);
57     } else { 61     } else {
58         $InitializeCommonEvent(0, 90015000, 0, 1049200820, 904505000, 30, 0, 0); 62         $InitializeCommonEvent(0, 90015000, 0, 1049200820, 904505000, 30, 0, 0);
59         $InitializeCommonEvent(0, 90015030, 0, 1049200820, 30, 920310, 0); 63         $InitializeCommonEvent(0, 90015030, 0, 1049200820, 30, 920310, 0);
60     } 64     }
61     $InitializeCommonEvent(0, 90015002, 0, 0, 1049202820, 1049200820, 1020, 920310, 11200, 904505000, 1049200820); 65     $InitializeCommonEvent(0, 90015002, 0, 0, 1049202820, 1049200820, 1020, 920310, 11200, 904505000, 1049200820);
62     $InitializeCommonEvent(0, 90015006, 1049201520, 1049200520, 1049202820, 5); 66     $InitializeCommonEvent(0, 90015006, 1049201520, 1049200520, 1049202820, 5);
63     $InitializeCommonEvent(0, 90015005, 1049201520, 1049202820, 1049202820); 67     $InitializeCommonEvent(0, 90015005, 1049201520, 1049202820, 1049202820);
65     GotoIf(S6, 0 != 0); 69     GotoIf(S6, 0 != 0);
66     Goto(S8); 70     Goto(S8);
67 S6: 71 S6:
68     GotoIf(S7, 920310 != 0); 72     GotoIf(S7, 920310 != 0);
69     $InitializeCommonEvent(0, 90015008, 0, 1049202820, 940000, 1049200820, 0, 0); 73     $InitializeCommonEvent(0, 90015008, 0, 1049202820, 940000, 1049200820, 0, 0);
70     Goto(S8); 74     Goto(S8);
71 S7: 75 S7:
72     $InitializeCommonEvent(0, 90015008, 0, 1049202820, 920310, 1049200820, 0, 0); 76     $InitializeCommonEvent(0, 90015008, 0, 1049202820, 920310, 1049200820, 0, 0);
73 S8: 77 S8:
74     $InitializeCommonEvent(0, 90015017, 1049200820, 25, 0, 1049202820, 72468, 1049202820); 78     $InitializeCommonEvent(0, 90015017, 1049200820, 25, 0, 1049202820, 72468, 1049202820);
79     $InitializeCommonEvent(0, 90015041, 0, 0, 0, 72484);
75     $InitializeCommonEvent(0, 90015150, 1049200290, 73086); 80     $InitializeCommonEvent(0, 90015150, 1049200290, 73086);
76     $InitializeCommonEvent(0, 90015151, 1049200290, 74046); 81     $InitializeCommonEvent(0, 90015151, 1049200290, 74046);
77     $InitializeCommonEvent(0, 90015152, 1049200290, 74046); 82     $InitializeCommonEvent(0, 90015152, 1049200290, 74046);
78     $InitializeEvent(0, 1049202220, 1049202350, 1049204350); 83     $InitializeEvent(0, 1049202220, 1049202350, 1049204350);
79 }); 84 });
80 85
81 $Event(200, Default, function() { 86 $Event(200, Default, function() {
82     $InitializeEvent(0, 1249202500, 1249202511, 1249202510, 350); 87     $InitializeEvent(0, 1249202500, 1249202511, 1249202510, 350);
83 }); 88 });
84 89
diff -rNU 10 nr1.01.7/m60_45_36_30.emevd.dcx.js nr/m60_45_36_30.emevd.dcx.js
nr1.01.7/m60_45_36_30.emevd.dcx.jsnr/m60_45_36_30.emevd.dcx.js
3 // @compress DCX_KRAK 3 // @compress DCX_KRAK
4 // @game Sekiro 4 // @game Sekiro
5 // @string "W:\\CL\\data\\Param\\event\\common_func.emevd\u0000W:\\CL\\data\\Param\\event\\common_macro.emevd\u0000\u0000\u0000\u0000\u0000\u0000" 5 // @string "W:\\CL\\data\\Param\\event\\common_func.emevd\u0000W:\\CL\\data\\Param\\event\\common_macro.emevd\u0000\u0000\u0000\u0000\u0000\u0000"
6 // @linked [0,82] 6 // @linked [0,82]
7 // @version 3.6 7 // @version 3.6
8 // ==/EMEVD== 8 // ==/EMEVD==
9 9
10 $Event(0, Default, function() { 10 $Event(0, Default, function() {
11     $InitializeEvent(0, 1056302529); 11     $InitializeEvent(0, 1056302529);
12     if (0 == 0) { 12     if (0 == 0) {
13         $InitializeCommonEvent(0, 90015000, 0, 1056300800, 904311000, 30, 0, 0); 13         $InitializeCommonEvent(0, 90015021, 0, 1056300800, 904311000, 30, 0, 0, 74961);
14         $InitializeCommonEvent(0, 90015030, 0, 1056300800, 30, 940000, 0); 14         $InitializeCommonEvent(0, 90015030, 0, 1056300800, 30, 940000, 0);
15     } else { 15     } else {
16         $InitializeCommonEvent(0, 90015000, 0, 1056300800, 904311000, 30, 0, 0); 16         $InitializeCommonEvent(0, 90015021, 0, 1056300800, 904311000, 30, 0, 0, 74961);
17         $InitializeCommonEvent(0, 90015030, 0, 1056300800, 30, 0, 0); 17         $InitializeCommonEvent(0, 90015030, 0, 1056300800, 30, 0, 0);
18     } 18     }
19     $InitializeCommonEvent(0, 90015002, 0, 0, 1056300800, 1056300800, 1030, 0, 11200, 904311000, 1056300800); 19     $InitializeCommonEvent(0, 90015002, 0, 0, 1056300800, 1056300800, 1030, 0, 11200, 904311000, 1056300800);
20     $InitializeCommonEvent(0, 90015006, 1056301500, 1056300500, 1056300800, 5); 20     $InitializeCommonEvent(0, 90015006, 1056301500, 1056300500, 1056300800, 5);
21     $InitializeCommonEvent(0, 90015005, 1056301500, 1056302800, 1056300800); 21     $InitializeCommonEvent(0, 90015005, 1056301500, 1056302800, 1056300800);
22     GotoIf(S0, Signed(0) != 0); 22     GotoIf(S0, Signed(0) != 0);
23     GotoIf(S0, 0 != 0); 23     GotoIf(S0, 0 != 0);
24     Goto(S2); 24     Goto(S2);
25 S0: 25 S0:
26     GotoIf(S1, 0 != 0); 26     GotoIf(S1, 0 != 0);
diff -rNU 10 nr1.01.7/m60_45_38_00.emevd.dcx.js nr/m60_45_38_00.emevd.dcx.js
nr1.01.7/m60_45_38_00.emevd.dcx.jsnr/m60_45_38_00.emevd.dcx.js
12     $InitializeCommonEvent(0, 90015004, 1045381950, 1045380950); 12     $InitializeCommonEvent(0, 90015004, 1045381950, 1045380950);
13     RegisterBonfire(1045381951, 0, 5); 13     RegisterBonfire(1045381951, 0, 5);
14     $InitializeCommonEvent(0, 90015004, 1045381951, 1045380951); 14     $InitializeCommonEvent(0, 90015004, 1045381951, 1045380951);
15     $InitializeCommonEvent(0, 90015150, 1045380200, 73077); 15     $InitializeCommonEvent(0, 90015150, 1045380200, 73077);
16     $InitializeCommonEvent(0, 90015151, 1045380200, 74037); 16     $InitializeCommonEvent(0, 90015151, 1045380200, 74037);
17     $InitializeCommonEvent(0, 90015152, 1045380200, 74037); 17     $InitializeCommonEvent(0, 90015152, 1045380200, 74037);
18     $InitializeCommonEvent(0, 90005931, 1045380200, 1045381200, 0, 1045381201); 18     $InitializeCommonEvent(0, 90005931, 1045380200, 1045381200, 0, 1045381201);
19     $InitializeCommonEvent(0, 1045382910, 1045388203, 1045380210); 19     $InitializeCommonEvent(0, 1045382910, 1045388203, 1045380210);
20     $InitializeCommonEvent(1, 1045382910, 1045388204, 1045380211); 20     $InitializeCommonEvent(1, 1045382910, 1045388204, 1045380211);
21     $InitializeEvent(0, 1045382900); 21     $InitializeEvent(0, 1045382900);
22     $InitializeCommonEvent(0, 90015501, 1045382300, 73997);
22 }); 23 });
23 24
24 $Event(1045382900, Restart, function() { 25 $Event(1045382900, Restart, function() {
25     WaitFor(SmallBaseAttached(1045382999, 30300000)); 26     WaitFor(SmallBaseAttached(1045382999, 30300000));
26     EnableAsset(1045381900); 27     EnableAsset(1045381900);
27     EnableAsset(1045381901); 28     EnableAsset(1045381901);
28 }); 29 });
29 30
30 $Event(1045382910, Restart, function(eventFlagId, chrEntityId) { 31 $Event(1045382910, Restart, function(eventFlagId, chrEntityId) {
31     EndIf(EventFlag(eventFlagId)); 32     EndIf(EventFlag(eventFlagId));
diff -rNU 10 nr1.01.7/m60_45_38_20.emevd.dcx.js nr/m60_45_38_20.emevd.dcx.js
nr1.01.7/m60_45_38_20.emevd.dcx.jsnr/m60_45_38_20.emevd.dcx.js
12     $InitializeCommonEvent(0, 90015004, 1045381950, 1045380950); 12     $InitializeCommonEvent(0, 90015004, 1045381950, 1045380950);
13     RegisterBonfire(1045381951, 0, 5); 13     RegisterBonfire(1045381951, 0, 5);
14     $InitializeCommonEvent(0, 90015004, 1045381951, 1045380951); 14     $InitializeCommonEvent(0, 90015004, 1045381951, 1045380951);
15     $InitializeCommonEvent(0, 90015150, 1045380200, 73077); 15     $InitializeCommonEvent(0, 90015150, 1045380200, 73077);
16     $InitializeCommonEvent(0, 90015151, 1045380200, 74037); 16     $InitializeCommonEvent(0, 90015151, 1045380200, 74037);
17     $InitializeCommonEvent(0, 90015152, 1045380200, 74037); 17     $InitializeCommonEvent(0, 90015152, 1045380200, 74037);
18     $InitializeCommonEvent(0, 90005931, 1045380200, 1045381200, 0, 1045381201); 18     $InitializeCommonEvent(0, 90005931, 1045380200, 1045381200, 0, 1045381201);
19     $InitializeCommonEvent(0, 1045382910, 1045388203, 1045380210); 19     $InitializeCommonEvent(0, 1045382910, 1045388203, 1045380210);
20     $InitializeCommonEvent(1, 1045382910, 1045388204, 1045380211); 20     $InitializeCommonEvent(1, 1045382910, 1045388204, 1045380211);
21     $InitializeEvent(0, 1045382900); 21     $InitializeEvent(0, 1045382900);
22     $InitializeCommonEvent(0, 90015501, 1045382300, 73997);
22 }); 23 });
23 24
24 $Event(1045382900, Restart, function() { 25 $Event(1045382900, Restart, function() {
25     WaitFor(SmallBaseAttached(1045382999, 30300000)); 26     WaitFor(SmallBaseAttached(1045382999, 30300000));
26     EnableAsset(1045381900); 27     EnableAsset(1045381900);
27     EnableAsset(1045381901); 28     EnableAsset(1045381901);
28 }); 29 });
29 30
30 $Event(1045382910, Restart, function(eventFlagId, chrEntityId) { 31 $Event(1045382910, Restart, function(eventFlagId, chrEntityId) {
31     EndIf(EventFlag(eventFlagId)); 32     EndIf(EventFlag(eventFlagId));
diff -rNU 10 nr1.01.7/m60_45_38_30.emevd.dcx.js nr/m60_45_38_30.emevd.dcx.js
nr1.01.7/m60_45_38_30.emevd.dcx.jsnr/m60_45_38_30.emevd.dcx.js
12     $InitializeCommonEvent(0, 90015004, 1045381950, 1045380950); 12     $InitializeCommonEvent(0, 90015004, 1045381950, 1045380950);
13     RegisterBonfire(1045381951, 0, 5); 13     RegisterBonfire(1045381951, 0, 5);
14     $InitializeCommonEvent(0, 90015004, 1045381951, 1045380951); 14     $InitializeCommonEvent(0, 90015004, 1045381951, 1045380951);
15     $InitializeCommonEvent(0, 90015150, 1045380200, 73077); 15     $InitializeCommonEvent(0, 90015150, 1045380200, 73077);
16     $InitializeCommonEvent(0, 90015151, 1045380200, 74037); 16     $InitializeCommonEvent(0, 90015151, 1045380200, 74037);
17     $InitializeCommonEvent(0, 90015152, 1045380200, 74037); 17     $InitializeCommonEvent(0, 90015152, 1045380200, 74037);
18     $InitializeCommonEvent(0, 90005931, 1045380200, 1045381200, 0, 1045381201); 18     $InitializeCommonEvent(0, 90005931, 1045380200, 1045381200, 0, 1045381201);
19     $InitializeCommonEvent(0, 1045382910, 1045388203, 1045380210); 19     $InitializeCommonEvent(0, 1045382910, 1045388203, 1045380210);
20     $InitializeCommonEvent(1, 1045382910, 1045388204, 1045380211); 20     $InitializeCommonEvent(1, 1045382910, 1045388204, 1045380211);
21     $InitializeEvent(0, 1045382900); 21     $InitializeEvent(0, 1045382900);
22     $InitializeCommonEvent(0, 90015501, 1045382300, 73997);
22 }); 23 });
23 24
24 $Event(1045382900, Restart, function() { 25 $Event(1045382900, Restart, function() {
25     WaitFor(SmallBaseAttached(1045382999, 30300000)); 26     WaitFor(SmallBaseAttached(1045382999, 30300000));
26     EnableAsset(1045381900); 27     EnableAsset(1045381900);
27     EnableAsset(1045381901); 28     EnableAsset(1045381901);
28 }); 29 });
29 30
30 $Event(1045382910, Restart, function(eventFlagId, chrEntityId) { 31 $Event(1045382910, Restart, function(eventFlagId, chrEntityId) {
31     EndIf(EventFlag(eventFlagId)); 32     EndIf(EventFlag(eventFlagId));
diff -rNU 10 nr1.01.7/m60_45_38_50.emevd.dcx.js nr/m60_45_38_50.emevd.dcx.js
nr1.01.7/m60_45_38_50.emevd.dcx.jsnr/m60_45_38_50.emevd.dcx.js
12     $InitializeCommonEvent(0, 90015004, 1045381950, 1045380950); 12     $InitializeCommonEvent(0, 90015004, 1045381950, 1045380950);
13     RegisterBonfire(1045381951, 0, 5); 13     RegisterBonfire(1045381951, 0, 5);
14     $InitializeCommonEvent(0, 90015004, 1045381951, 1045380951); 14     $InitializeCommonEvent(0, 90015004, 1045381951, 1045380951);
15     $InitializeCommonEvent(0, 90015150, 1045380200, 73077); 15     $InitializeCommonEvent(0, 90015150, 1045380200, 73077);
16     $InitializeCommonEvent(0, 90015151, 1045380200, 74037); 16     $InitializeCommonEvent(0, 90015151, 1045380200, 74037);
17     $InitializeCommonEvent(0, 90015152, 1045380200, 74037); 17     $InitializeCommonEvent(0, 90015152, 1045380200, 74037);
18     $InitializeCommonEvent(0, 90005931, 1045380200, 1045381200, 0, 1045381201); 18     $InitializeCommonEvent(0, 90005931, 1045380200, 1045381200, 0, 1045381201);
19     $InitializeCommonEvent(0, 1045382910, 1045388203, 1045380210); 19     $InitializeCommonEvent(0, 1045382910, 1045388203, 1045380210);
20     $InitializeCommonEvent(1, 1045382910, 1045388204, 1045380211); 20     $InitializeCommonEvent(1, 1045382910, 1045388204, 1045380211);
21     $InitializeEvent(0, 1045382900); 21     $InitializeEvent(0, 1045382900);
22     $InitializeCommonEvent(0, 90015501, 1045382300, 73997);
22 }); 23 });
23 24
24 $Event(1045382900, Restart, function() { 25 $Event(1045382900, Restart, function() {
25     WaitFor(SmallBaseAttached(1045382999, 30300000)); 26     WaitFor(SmallBaseAttached(1045382999, 30300000));
26     EnableAsset(1045381900); 27     EnableAsset(1045381900);
27     EnableAsset(1045381901); 28     EnableAsset(1045381901);
28 }); 29 });
29 30
30 $Event(1045382910, Restart, function(eventFlagId, chrEntityId) { 31 $Event(1045382910, Restart, function(eventFlagId, chrEntityId) {
31     EndIf(EventFlag(eventFlagId)); 32     EndIf(EventFlag(eventFlagId));