internal static void Process(SpawnNpcServerMessage message) { PacketProcessor.Instance.EntityTracker.Update(message); DamageTracker.Instance.UpdateEntities(message); if (message.NpcArea == 950 && message.NpcId == 9501) { var bosses = Database.Database.Instance.AllEntity().Select(x => PacketProcessor.Instance.EntityTracker.GetOrNull(x)).OfType <NpcEntity>().ToList(); var vergosPhase2Part1 = bosses.FirstOrDefault(x => x.Info.HuntingZoneId == 950 && x.Info.TemplateId == 1000); var vergosPhase2Part2 = bosses.FirstOrDefault(x => x.Info.HuntingZoneId == 950 && x.Info.TemplateId == 2000); DataExporter.AutomatedExport(vergosPhase2Part1, PacketProcessor.Instance.AbnormalityStorage); DataExporter.AutomatedExport(vergosPhase2Part2, PacketProcessor.Instance.AbnormalityStorage); } if (message.NpcArea == 950 && message.NpcId == 9502) { var bosses = Database.Database.Instance.AllEntity().Select(x => PacketProcessor.Instance.EntityTracker.GetOrNull(x)).OfType <NpcEntity>(); var vergosPhase3 = bosses.FirstOrDefault(x => x.Info.HuntingZoneId == 950 && x.Info.TemplateId == 3000); DataExporter.AutomatedExport(vergosPhase3, PacketProcessor.Instance.AbnormalityStorage); } if ((message.NpcArea == 26 && message.NpcId == 5001) || (message.NpcArea == 39 && message.NpcId == 501) || (message.NpcArea == 51 && message.NpcId == 4001)) { PacketProcessor.Instance.InvokeGeneralDataDisplayChanged(true, message.Id); } }
internal S_DESPAWN_NPC(SDespawnNpc message) { PacketProcessor.Instance.AbnormalityTracker.Update(message); NotifyProcessor.Instance.DespawnNpc(message); DataExporter.AutomatedExport(message, PacketProcessor.Instance.AbnormalityStorage); RichPresence.Instance.DespawnNpc(message); }
internal S_DESPAWN_NPC(SDespawnNpc message) { PacketProcessor.Instance.AbnormalityTracker.Update(message); NotifyProcessor.Instance.DespawnNpc(message); DataExporter.AutomatedExport(message, PacketProcessor.Instance.AbnormalityStorage); RichPresence.Instance.DespawnNpc(message); PacketProcessor.Instance.InvokeGeneralDataDisplayChanged(false, message.Npc); }
internal static void Process(SpawnNpcServerMessage message) { NetworkController.Instance.EntityTracker.Update(message); DamageTracker.Instance.UpdateEntities(message); if (message.NpcArea == 950 && message.NpcId == 9501) { var bosses = Database.Database.Instance.AllEntity().Select(x => NetworkController.Instance.EntityTracker.GetOrNull(x)).OfType <NpcEntity>().ToList(); var vergosPhase2Part1 = bosses.FirstOrDefault(x => x.Info.HuntingZoneId == 950 && x.Info.TemplateId == 1000); var vergosPhase2Part2 = bosses.FirstOrDefault(x => x.Info.HuntingZoneId == 950 && x.Info.TemplateId == 2000); DataExporter.AutomatedExport(vergosPhase2Part1, NetworkController.Instance.AbnormalityStorage); DataExporter.AutomatedExport(vergosPhase2Part2, NetworkController.Instance.AbnormalityStorage); } if (message.NpcArea == 950 && message.NpcId == 9502) { var bosses = Database.Database.Instance.AllEntity().Select(x => NetworkController.Instance.EntityTracker.GetOrNull(x)).OfType <NpcEntity>(); var vergosPhase3 = bosses.FirstOrDefault(x => x.Info.HuntingZoneId == 950 && x.Info.TemplateId == 3000); DataExporter.AutomatedExport(vergosPhase3, NetworkController.Instance.AbnormalityStorage); } }
internal S_DESPAWN_NPC(SDespawnNpc message) { NetworkController.Instance.AbnormalityTracker.Update(message); NotifyProcessor.Instance.DespawnNpc(message); DataExporter.AutomatedExport(message, NetworkController.Instance.AbnormalityStorage); }