/// <summary> /// Loads the world events time table file /// </summary> /// <returns>The loaded event time table data</returns> public static WorldBossEventTimeTable LoadTable(bool adjustedTimes) { string filename; if (adjustedTimes) { filename = AdjustedFilename; } else { filename = StandardFilename; } XmlSerializer deserializer = new XmlSerializer(typeof(WorldBossEventTimeTable)); TextReader reader = new StreamReader(filename); WorldBossEventTimeTable loadedData = null; try { object obj = deserializer.Deserialize(reader); loadedData = (WorldBossEventTimeTable)obj; } finally { reader.Close(); } return(loadedData); }
/// <summary> /// Creates the world events time table file /// </summary> /// <returns></returns> public static void CreateTable(bool adjustedTimes) { string filename; WorldBossEventTimeTable tt = new WorldBossEventTimeTable(); tt.WorldEvents = new List<WorldBossEvent>(); var megadestroyer = new WorldBossEvent() { Name = "Megadestroyer", ID = WorldBossID.Megadestroyer, MapID = 39, WaypointCode = "[&BM0CAAA=]", CompletionLocations = new List<Point>() { new Point(-317.3, -271.8, 15.4185) }, CompletionRadius = 50 }; var tequatl = new WorldBossEvent() { Name = "Tequatl", ID = WorldBossID.Tequatl, MapID = 53, WaypointCode = "[&BNABAAA=]", CompletionLocations = new List<Point>() { new Point(-562.4, -907.4, 0.3) }, CompletionRadius = 50 }; var karkaQueen = new WorldBossEvent() { Name = "Karka Queen", ID = WorldBossID.KarkaQueen, MapID = 873, WaypointCode = "[&BNcGAAA=]", CompletionLocations = new List<Point>() { new Point(605.74, 313.42, 2.24), new Point(490.17, 121.94, 28.21), new Point(92.86, -5.77, 43.5), new Point(20.34, -311.43, 21.48) }, CompletionRadius = 75 }; var evolvedJungleWurm = new WorldBossEvent() { Name = "Evolved Jungle Wurm", ID = WorldBossID.EvolvedJungleWurm, MapID = 73, WaypointCode = "[&BKoBAAA=]", CompletionLocations = new List<Point>() { new Point(217.04, -430.25, 16.22), new Point(-263.30, -861.60, 0.31), new Point(657.93, -599.51, 0.5) }, CompletionRadius = 75 }; var shatterer = new WorldBossEvent() { Name = "Shatterer", ID = WorldBossID.Shatterer, MapID = 20, WaypointCode = "[&BE4DAAA=]", CompletionLocations = new List<Point>() { new Point(-269.9, 928.2, 3.2) }, CompletionRadius = 50 }; var clawOfJormag = new WorldBossEvent() { Name = "Claw of Jormag", ID = WorldBossID.ClawOfJormag, MapID = 30, WaypointCode = "[&BHoCAAA=]", CompletionLocations = new List<Point>() { new Point(449.9, 468.4, 23.2) }, CompletionRadius = 75 }; var modniirUlgoth = new WorldBossEvent() { Name = "Modniir Ulgoth", ID = WorldBossID.ModniirUlgoth, MapID = 17, WaypointCode = "[&BLEAAAA=]", CompletionLocations = new List<Point>() { new Point(803.02, 663.3, 143.8) }, CompletionRadius = 50 }; var inquestGolemMarkII = new WorldBossEvent() { Name = "Inquest Golem Mark II", ID = WorldBossID.InquestGolemMarkII, MapID = 39, WaypointCode = "[&BNQCAAA=]", CompletionLocations = new List<Point>() { new Point(926.17, 51.20, 10.72) }, CompletionRadius = 50 }; var taidhaCovington = new WorldBossEvent() { Name = "Taidha Covington", ID = WorldBossID.TaidhaCovington, MapID = 73, WaypointCode = "[&BKgBAAA=]", CompletionLocations = new List<Point>() { new Point(-178.4, 229.5, 18.5) }, CompletionRadius = 50 }; var jungleWurm = new WorldBossEvent() { Name = "Jungle Wurm", ID = WorldBossID.JungleWurm, MapID = 34, WaypointCode = "[&BEEFAAA=]", CompletionLocations = new List<Point>() { new Point(-401.6, 841.7, 0) }, CompletionRadius = 50 }; var shadowBehemoth = new WorldBossEvent() { Name = "Shadow Behemoth", ID = WorldBossID.ShadowBehemoth, MapID = 15, WaypointCode = "[&BPwAAAA=]", CompletionLocations = new List<Point>() { new Point(261.9, -432.2, -0.75) }, CompletionRadius = 50 }; var fireElemental = new WorldBossEvent() { Name = "Fire Elemental", ID = WorldBossID.FireElemental, MapID = 35, WaypointCode = "[&BEYAAAA=]", CompletionLocations = new List<Point>() { new Point(-371.9, 885.8, 21.63) }, CompletionRadius = 50 }; var frozenMaw = new WorldBossEvent() { Name = "Frozen Maw", ID = WorldBossID.FrozenMaw, MapID = 28, WaypointCode = "[&BH4BAAA=]", CompletionLocations = new List<Point>() { new Point(390.7, 345.2, 71.9) }, CompletionRadius = 50 }; if (adjustedTimes) { megadestroyer.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(0, 35, 0), new SerializableTimespan(3, 35, 0), new SerializableTimespan(6, 35, 0), new SerializableTimespan(9, 35, 0), new SerializableTimespan(12, 35, 0), new SerializableTimespan(15, 35, 0), new SerializableTimespan(18, 35, 0), new SerializableTimespan(21, 35, 0) }; megadestroyer.Duration = new SerializableTimespan(0, 10, 0); megadestroyer.WarmupDuration = new SerializableTimespan(0, 7, 0); tequatl.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(0, 0, 0), new SerializableTimespan(3, 0, 0), new SerializableTimespan(7, 0, 0), new SerializableTimespan(11, 30, 0), new SerializableTimespan(16, 0, 0), new SerializableTimespan(19, 0, 0) }; tequatl.Duration = new SerializableTimespan(0, 15, 0); tequatl.WarmupDuration = new SerializableTimespan(0, 0, 0); karkaQueen.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(2, 3, 0), new SerializableTimespan(6, 3, 0), new SerializableTimespan(10, 33, 0), new SerializableTimespan(15, 3, 0), new SerializableTimespan(18, 3, 0), new SerializableTimespan(23, 3, 0) }; karkaQueen.Duration = new SerializableTimespan(0, 5, 0); karkaQueen.WarmupDuration = new SerializableTimespan(0, 5, 0); evolvedJungleWurm.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(1, 0, 0), new SerializableTimespan(4, 0, 0), new SerializableTimespan(8, 0, 0), new SerializableTimespan(12, 30, 0), new SerializableTimespan(17, 0, 0), new SerializableTimespan(20, 0, 0) }; evolvedJungleWurm.Duration = new SerializableTimespan(0, 15, 0); evolvedJungleWurm.WarmupDuration = new SerializableTimespan(0, 10, 0); shatterer.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(1, 8, 0), new SerializableTimespan(4, 8, 0), new SerializableTimespan(7, 8, 0), new SerializableTimespan(10, 8, 0), new SerializableTimespan(13, 8, 0), new SerializableTimespan(16, 8, 0), new SerializableTimespan(19, 8, 0), new SerializableTimespan(22, 8, 0) }; shatterer.Duration = new SerializableTimespan(0, 7, 0); shatterer.WarmupDuration = new SerializableTimespan(0, 6, 0); clawOfJormag.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(2, 33, 0), new SerializableTimespan(5, 33, 0), new SerializableTimespan(8, 33, 0), new SerializableTimespan(11, 33, 0), new SerializableTimespan(14, 33, 0), new SerializableTimespan(17, 33, 0), new SerializableTimespan(20, 33, 0), new SerializableTimespan(23, 33, 0) }; clawOfJormag.Duration = new SerializableTimespan(0, 17, 0); clawOfJormag.WarmupDuration = new SerializableTimespan(0, 3, 0); modniirUlgoth.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(1, 30, 0), new SerializableTimespan(4, 30, 0), new SerializableTimespan(7, 30, 0), new SerializableTimespan(10, 30, 0), new SerializableTimespan(13, 30, 0), new SerializableTimespan(16, 30, 0), new SerializableTimespan(19, 30, 0), new SerializableTimespan(22, 30, 0) }; modniirUlgoth.Duration = new SerializableTimespan(0, 4, 0); modniirUlgoth.WarmupDuration = new SerializableTimespan(0, 15, 0); inquestGolemMarkII.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(2, 4, 0), new SerializableTimespan(5, 4, 0), new SerializableTimespan(8, 4, 0), new SerializableTimespan(11, 4, 0), new SerializableTimespan(14, 4, 0), new SerializableTimespan(17, 4, 0), new SerializableTimespan(20, 4, 0), new SerializableTimespan(23, 4, 0) }; inquestGolemMarkII.Duration = new SerializableTimespan(0, 6, 0); inquestGolemMarkII.WarmupDuration = new SerializableTimespan(0, 2, 0); taidhaCovington.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(0, 10, 0), new SerializableTimespan(3, 10, 0), new SerializableTimespan(6, 10, 0), new SerializableTimespan(9, 10, 0), new SerializableTimespan(12, 10, 0), new SerializableTimespan(15, 10, 0), new SerializableTimespan(18, 10, 0), new SerializableTimespan(21, 10, 0) }; taidhaCovington.Duration = new SerializableTimespan(0, 10, 0); taidhaCovington.WarmupDuration = new SerializableTimespan(0, 10, 0); jungleWurm.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(1, 15, 0), new SerializableTimespan(3, 15, 0), new SerializableTimespan(5, 15, 0), new SerializableTimespan(7, 15, 0), new SerializableTimespan(9, 15, 0), new SerializableTimespan(11, 15, 0), new SerializableTimespan(13, 15, 0), new SerializableTimespan(15, 15, 0), new SerializableTimespan(17, 15, 0), new SerializableTimespan(19, 15, 0), new SerializableTimespan(21, 15, 0), new SerializableTimespan(23, 15, 0) }; jungleWurm.Duration = new SerializableTimespan(0, 5, 0); jungleWurm.WarmupDuration = new SerializableTimespan(0, 2, 0); shadowBehemoth.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(1, 46, 0), new SerializableTimespan(3, 46, 0), new SerializableTimespan(5, 46, 0), new SerializableTimespan(7, 46, 0), new SerializableTimespan(9, 46, 0), new SerializableTimespan(11, 46, 0), new SerializableTimespan(13, 46, 0), new SerializableTimespan(15, 46, 0), new SerializableTimespan(17, 46, 0), new SerializableTimespan(19, 46, 0), new SerializableTimespan(21, 46, 0), new SerializableTimespan(23, 46, 0) }; shadowBehemoth.Duration = new SerializableTimespan(0, 9, 0); shadowBehemoth.WarmupDuration = new SerializableTimespan(0, 1, 0); fireElemental.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(0, 57, 0), new SerializableTimespan(2, 57, 0), new SerializableTimespan(4, 57, 0), new SerializableTimespan(6, 57, 0), new SerializableTimespan(8, 57, 0), new SerializableTimespan(10, 57, 0), new SerializableTimespan(12, 57, 0), new SerializableTimespan(14, 57, 0), new SerializableTimespan(16, 57, 0), new SerializableTimespan(18, 57, 0), new SerializableTimespan(20, 57, 0), new SerializableTimespan(22, 57, 0) }; fireElemental.Duration = new SerializableTimespan(0, 3, 0); fireElemental.WarmupDuration = new SerializableTimespan(0, 12, 0); frozenMaw.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(0, 17, 0), new SerializableTimespan(2, 17, 0), new SerializableTimespan(4, 17, 0), new SerializableTimespan(6, 17, 0), new SerializableTimespan(8, 17, 0), new SerializableTimespan(10, 17, 0), new SerializableTimespan(12, 17, 0), new SerializableTimespan(14, 17, 0), new SerializableTimespan(16, 17, 0), new SerializableTimespan(18, 17, 0), new SerializableTimespan(20, 17, 0), new SerializableTimespan(22, 17, 0) }; frozenMaw.Duration = new SerializableTimespan(0, 3, 30); frozenMaw.WarmupDuration = new SerializableTimespan(0, 2, 0); filename = AdjustedFilename; } else { megadestroyer.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(0, 30, 0), new SerializableTimespan(3, 30, 0), new SerializableTimespan(6, 30, 0), new SerializableTimespan(9, 30, 0), new SerializableTimespan(12, 30, 0), new SerializableTimespan(15, 30, 0), new SerializableTimespan(18, 30, 0), new SerializableTimespan(21, 30, 0) }; megadestroyer.Duration = new SerializableTimespan(0, 12, 0); megadestroyer.WarmupDuration = new SerializableTimespan(0, 0, 0); tequatl.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(0, 0, 0), new SerializableTimespan(3, 0, 0), new SerializableTimespan(7, 0, 0), new SerializableTimespan(11, 30, 0), new SerializableTimespan(16, 0, 0), new SerializableTimespan(19, 0, 0) }; tequatl.Duration = new SerializableTimespan(0, 15, 0); tequatl.WarmupDuration = new SerializableTimespan(0, 0, 0); karkaQueen.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(2, 0, 0), new SerializableTimespan(6, 0, 0), new SerializableTimespan(10, 30, 0), new SerializableTimespan(15, 0, 0), new SerializableTimespan(18, 0, 0), new SerializableTimespan(23, 0, 0) }; karkaQueen.Duration = new SerializableTimespan(0, 5, 0); karkaQueen.WarmupDuration = new SerializableTimespan(0, 0, 0); evolvedJungleWurm.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(1, 0, 0), new SerializableTimespan(4, 0, 0), new SerializableTimespan(8, 0, 0), new SerializableTimespan(12, 30, 0), new SerializableTimespan(17, 0, 0), new SerializableTimespan(20, 0, 0) }; evolvedJungleWurm.Duration = new SerializableTimespan(0, 15, 0); evolvedJungleWurm.WarmupDuration = new SerializableTimespan(0, 0, 0); shatterer.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(1, 0, 0), new SerializableTimespan(4, 0, 0), new SerializableTimespan(7, 0, 0), new SerializableTimespan(10, 0, 0), new SerializableTimespan(13, 0, 0), new SerializableTimespan(16, 0, 0), new SerializableTimespan(19, 0, 0), new SerializableTimespan(22, 0, 0) }; shatterer.Duration = new SerializableTimespan(0, 7, 0); shatterer.WarmupDuration = new SerializableTimespan(0, 0, 0); clawOfJormag.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(2, 30, 0), new SerializableTimespan(5, 30, 0), new SerializableTimespan(8, 30, 0), new SerializableTimespan(11, 30, 0), new SerializableTimespan(14, 30, 0), new SerializableTimespan(17, 30, 0), new SerializableTimespan(20, 30, 0), new SerializableTimespan(23, 30, 0) }; clawOfJormag.Duration = new SerializableTimespan(0, 17, 0); clawOfJormag.WarmupDuration = new SerializableTimespan(0, 0, 0); modniirUlgoth.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(1, 30, 0), new SerializableTimespan(4, 30, 0), new SerializableTimespan(7, 30, 0), new SerializableTimespan(10, 30, 0), new SerializableTimespan(13, 30, 0), new SerializableTimespan(16, 30, 0), new SerializableTimespan(19, 30, 0), new SerializableTimespan(22, 30, 0) }; modniirUlgoth.Duration = new SerializableTimespan(0, 8, 0); modniirUlgoth.WarmupDuration = new SerializableTimespan(0, 0, 0); inquestGolemMarkII.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(2, 0, 0), new SerializableTimespan(5, 0, 0), new SerializableTimespan(8, 0, 0), new SerializableTimespan(11, 0, 0), new SerializableTimespan(14, 0, 0), new SerializableTimespan(17, 0, 0), new SerializableTimespan(20, 0, 0), new SerializableTimespan(23, 0, 0) }; inquestGolemMarkII.Duration = new SerializableTimespan(0, 7, 0); inquestGolemMarkII.WarmupDuration = new SerializableTimespan(0, 0, 0); taidhaCovington.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(0, 0, 0), new SerializableTimespan(3, 0, 0), new SerializableTimespan(6, 0, 0), new SerializableTimespan(9, 0, 0), new SerializableTimespan(12, 0, 0), new SerializableTimespan(15, 0, 0), new SerializableTimespan(18, 0, 0), new SerializableTimespan(21, 0, 0) }; taidhaCovington.Duration = new SerializableTimespan(0, 10, 0); taidhaCovington.WarmupDuration = new SerializableTimespan(0, 0, 0); jungleWurm.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(1, 15, 0), new SerializableTimespan(3, 15, 0), new SerializableTimespan(5, 15, 0), new SerializableTimespan(7, 15, 0), new SerializableTimespan(9, 15, 0), new SerializableTimespan(11, 15, 0), new SerializableTimespan(13, 15, 0), new SerializableTimespan(15, 15, 0), new SerializableTimespan(17, 15, 0), new SerializableTimespan(19, 15, 0), new SerializableTimespan(21, 15, 0), new SerializableTimespan(23, 15, 0) }; jungleWurm.Duration = new SerializableTimespan(0, 8, 0); jungleWurm.WarmupDuration = new SerializableTimespan(0, 0, 0); shadowBehemoth.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(1, 45, 0), new SerializableTimespan(3, 45, 0), new SerializableTimespan(5, 45, 0), new SerializableTimespan(7, 45, 0), new SerializableTimespan(9, 45, 0), new SerializableTimespan(11, 45, 0), new SerializableTimespan(13, 45, 0), new SerializableTimespan(15, 45, 0), new SerializableTimespan(17, 45, 0), new SerializableTimespan(19, 45, 0), new SerializableTimespan(21, 45, 0), new SerializableTimespan(23, 45, 0) }; shadowBehemoth.Duration = new SerializableTimespan(0, 10, 0); shadowBehemoth.WarmupDuration = new SerializableTimespan(0, 0, 0); fireElemental.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(0, 45, 0), new SerializableTimespan(2, 45, 0), new SerializableTimespan(4, 45, 0), new SerializableTimespan(6, 45, 0), new SerializableTimespan(8, 45, 0), new SerializableTimespan(10, 45, 0), new SerializableTimespan(12, 45, 0), new SerializableTimespan(14, 45, 0), new SerializableTimespan(16, 45, 0), new SerializableTimespan(18, 45, 0), new SerializableTimespan(20, 45, 0), new SerializableTimespan(22, 45, 0) }; fireElemental.Duration = new SerializableTimespan(0, 8, 0); fireElemental.WarmupDuration = new SerializableTimespan(0, 0, 0); frozenMaw.ActiveTimes = new List<SerializableTimespan>() { new SerializableTimespan(0, 15, 0), new SerializableTimespan(2, 15, 0), new SerializableTimespan(4, 15, 0), new SerializableTimespan(6, 15, 0), new SerializableTimespan(8, 15, 0), new SerializableTimespan(10, 15, 0), new SerializableTimespan(12, 15, 0), new SerializableTimespan(14, 15, 0), new SerializableTimespan(16, 15, 0), new SerializableTimespan(18, 15, 0), new SerializableTimespan(20, 15, 0), new SerializableTimespan(22, 15, 0) }; frozenMaw.Duration = new SerializableTimespan(0, 5, 0); frozenMaw.WarmupDuration = new SerializableTimespan(0, 0, 0); filename = StandardFilename; } tt.WorldEvents.Add(megadestroyer); tt.WorldEvents.Add(tequatl); tt.WorldEvents.Add(karkaQueen); tt.WorldEvents.Add(evolvedJungleWurm); tt.WorldEvents.Add(shatterer); tt.WorldEvents.Add(clawOfJormag); tt.WorldEvents.Add(modniirUlgoth); tt.WorldEvents.Add(inquestGolemMarkII); tt.WorldEvents.Add(taidhaCovington); tt.WorldEvents.Add(jungleWurm); tt.WorldEvents.Add(shadowBehemoth); tt.WorldEvents.Add(fireElemental); tt.WorldEvents.Add(frozenMaw); XmlSerializer serializer = new XmlSerializer(typeof(WorldBossEventTimeTable)); TextWriter textWriter = new StreamWriter(filename); serializer.Serialize(textWriter, tt); textWriter.Close(); }
public void MegaserverEventTimeTable_Constructor() { WorldBossEventTimeTable mett = new WorldBossEventTimeTable(); Assert.IsNotNull(mett); Assert.IsNotNull(mett.WorldEvents); }
/// <summary> /// Creates the world events time table file /// </summary> /// <returns></returns> public static void CreateTable(bool adjustedTimes) { string filename; WorldBossEventTimeTable tt = new WorldBossEventTimeTable(); tt.WorldEvents = new List <WorldBossEvent>(); var megadestroyer = new WorldBossEvent() { Name = "Megadestroyer", ID = WorldBossID.Megadestroyer, MapID = 39, WaypointCode = "[&BM0CAAA=]", CompletionLocations = new List <Point>() { new Point(-317.3, -271.8, 15.4185) }, CompletionRadius = 50 }; var tequatl = new WorldBossEvent() { Name = "Tequatl", ID = WorldBossID.Tequatl, MapID = 53, WaypointCode = "[&BNABAAA=]", CompletionLocations = new List <Point>() { new Point(-562.4, -907.4, 0.3) }, CompletionRadius = 50 }; var karkaQueen = new WorldBossEvent() { Name = "Karka Queen", ID = WorldBossID.KarkaQueen, MapID = 873, WaypointCode = "[&BNcGAAA=]", CompletionLocations = new List <Point>() { new Point(605.74, 313.42, 2.24), new Point(490.17, 121.94, 28.21), new Point(92.86, -5.77, 43.5), new Point(20.34, -311.43, 21.48) }, CompletionRadius = 75 }; var evolvedJungleWurm = new WorldBossEvent() { Name = "Evolved Jungle Wurm", ID = WorldBossID.EvolvedJungleWurm, MapID = 73, WaypointCode = "[&BKoBAAA=]", CompletionLocations = new List <Point>() { new Point(217.04, -430.25, 16.22), new Point(-263.30, -861.60, 0.31), new Point(657.93, -599.51, 0.5) }, CompletionRadius = 75 }; var shatterer = new WorldBossEvent() { Name = "Shatterer", ID = WorldBossID.Shatterer, MapID = 20, WaypointCode = "[&BE4DAAA=]", CompletionLocations = new List <Point>() { new Point(-269.9, 928.2, 3.2) }, CompletionRadius = 50 }; var clawOfJormag = new WorldBossEvent() { Name = "Claw of Jormag", ID = WorldBossID.ClawOfJormag, MapID = 30, WaypointCode = "[&BHoCAAA=]", CompletionLocations = new List <Point>() { new Point(449.9, 468.4, 23.2) }, CompletionRadius = 75 }; var modniirUlgoth = new WorldBossEvent() { Name = "Modniir Ulgoth", ID = WorldBossID.ModniirUlgoth, MapID = 17, WaypointCode = "[&BLEAAAA=]", CompletionLocations = new List <Point>() { new Point(803.02, 663.3, 143.8) }, CompletionRadius = 50 }; var inquestGolemMarkII = new WorldBossEvent() { Name = "Inquest Golem Mark II", ID = WorldBossID.InquestGolemMarkII, MapID = 39, WaypointCode = "[&BNQCAAA=]", CompletionLocations = new List <Point>() { new Point(926.17, 51.20, 10.72) }, CompletionRadius = 50 }; var taidhaCovington = new WorldBossEvent() { Name = "Taidha Covington", ID = WorldBossID.TaidhaCovington, MapID = 73, WaypointCode = "[&BKgBAAA=]", CompletionLocations = new List <Point>() { new Point(-178.4, 229.5, 18.5) }, CompletionRadius = 50 }; var jungleWurm = new WorldBossEvent() { Name = "Jungle Wurm", ID = WorldBossID.JungleWurm, MapID = 34, WaypointCode = "[&BEEFAAA=]", CompletionLocations = new List <Point>() { new Point(-401.6, 841.7, 0) }, CompletionRadius = 50 }; var shadowBehemoth = new WorldBossEvent() { Name = "Shadow Behemoth", ID = WorldBossID.ShadowBehemoth, MapID = 15, WaypointCode = "[&BPwAAAA=]", CompletionLocations = new List <Point>() { new Point(261.9, -432.2, -0.75) }, CompletionRadius = 50 }; var fireElemental = new WorldBossEvent() { Name = "Fire Elemental", ID = WorldBossID.FireElemental, MapID = 35, WaypointCode = "[&BEYAAAA=]", CompletionLocations = new List <Point>() { new Point(-371.9, 885.8, 21.63) }, CompletionRadius = 50 }; var frozenMaw = new WorldBossEvent() { Name = "Frozen Maw", ID = WorldBossID.FrozenMaw, MapID = 28, WaypointCode = "[&BH4BAAA=]", CompletionLocations = new List <Point>() { new Point(390.7, 345.2, 71.9) }, CompletionRadius = 50 }; if (adjustedTimes) { megadestroyer.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(0, 35, 0), new SerializableTimespan(3, 35, 0), new SerializableTimespan(6, 35, 0), new SerializableTimespan(9, 35, 0), new SerializableTimespan(12, 35, 0), new SerializableTimespan(15, 35, 0), new SerializableTimespan(18, 35, 0), new SerializableTimespan(21, 35, 0) }; megadestroyer.Duration = new SerializableTimespan(0, 10, 0); megadestroyer.WarmupDuration = new SerializableTimespan(0, 7, 0); tequatl.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(0, 0, 0), new SerializableTimespan(3, 0, 0), new SerializableTimespan(7, 0, 0), new SerializableTimespan(11, 30, 0), new SerializableTimespan(16, 0, 0), new SerializableTimespan(19, 0, 0) }; tequatl.Duration = new SerializableTimespan(0, 15, 0); tequatl.WarmupDuration = new SerializableTimespan(0, 0, 0); karkaQueen.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(2, 3, 0), new SerializableTimespan(6, 3, 0), new SerializableTimespan(10, 33, 0), new SerializableTimespan(15, 3, 0), new SerializableTimespan(18, 3, 0), new SerializableTimespan(23, 3, 0) }; karkaQueen.Duration = new SerializableTimespan(0, 5, 0); karkaQueen.WarmupDuration = new SerializableTimespan(0, 5, 0); evolvedJungleWurm.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(1, 0, 0), new SerializableTimespan(4, 0, 0), new SerializableTimespan(8, 0, 0), new SerializableTimespan(12, 30, 0), new SerializableTimespan(17, 0, 0), new SerializableTimespan(20, 0, 0) }; evolvedJungleWurm.Duration = new SerializableTimespan(0, 15, 0); evolvedJungleWurm.WarmupDuration = new SerializableTimespan(0, 10, 0); shatterer.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(1, 8, 0), new SerializableTimespan(4, 8, 0), new SerializableTimespan(7, 8, 0), new SerializableTimespan(10, 8, 0), new SerializableTimespan(13, 8, 0), new SerializableTimespan(16, 8, 0), new SerializableTimespan(19, 8, 0), new SerializableTimespan(22, 8, 0) }; shatterer.Duration = new SerializableTimespan(0, 7, 0); shatterer.WarmupDuration = new SerializableTimespan(0, 6, 0); clawOfJormag.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(2, 33, 0), new SerializableTimespan(5, 33, 0), new SerializableTimespan(8, 33, 0), new SerializableTimespan(11, 33, 0), new SerializableTimespan(14, 33, 0), new SerializableTimespan(17, 33, 0), new SerializableTimespan(20, 33, 0), new SerializableTimespan(23, 33, 0) }; clawOfJormag.Duration = new SerializableTimespan(0, 17, 0); clawOfJormag.WarmupDuration = new SerializableTimespan(0, 3, 0); modniirUlgoth.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(1, 30, 0), new SerializableTimespan(4, 30, 0), new SerializableTimespan(7, 30, 0), new SerializableTimespan(10, 30, 0), new SerializableTimespan(13, 30, 0), new SerializableTimespan(16, 30, 0), new SerializableTimespan(19, 30, 0), new SerializableTimespan(22, 30, 0) }; modniirUlgoth.Duration = new SerializableTimespan(0, 4, 0); modniirUlgoth.WarmupDuration = new SerializableTimespan(0, 15, 0); inquestGolemMarkII.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(2, 4, 0), new SerializableTimespan(5, 4, 0), new SerializableTimespan(8, 4, 0), new SerializableTimespan(11, 4, 0), new SerializableTimespan(14, 4, 0), new SerializableTimespan(17, 4, 0), new SerializableTimespan(20, 4, 0), new SerializableTimespan(23, 4, 0) }; inquestGolemMarkII.Duration = new SerializableTimespan(0, 6, 0); inquestGolemMarkII.WarmupDuration = new SerializableTimespan(0, 2, 0); taidhaCovington.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(0, 10, 0), new SerializableTimespan(3, 10, 0), new SerializableTimespan(6, 10, 0), new SerializableTimespan(9, 10, 0), new SerializableTimespan(12, 10, 0), new SerializableTimespan(15, 10, 0), new SerializableTimespan(18, 10, 0), new SerializableTimespan(21, 10, 0) }; taidhaCovington.Duration = new SerializableTimespan(0, 10, 0); taidhaCovington.WarmupDuration = new SerializableTimespan(0, 10, 0); jungleWurm.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(1, 15, 0), new SerializableTimespan(3, 15, 0), new SerializableTimespan(5, 15, 0), new SerializableTimespan(7, 15, 0), new SerializableTimespan(9, 15, 0), new SerializableTimespan(11, 15, 0), new SerializableTimespan(13, 15, 0), new SerializableTimespan(15, 15, 0), new SerializableTimespan(17, 15, 0), new SerializableTimespan(19, 15, 0), new SerializableTimespan(21, 15, 0), new SerializableTimespan(23, 15, 0) }; jungleWurm.Duration = new SerializableTimespan(0, 5, 0); jungleWurm.WarmupDuration = new SerializableTimespan(0, 2, 0); shadowBehemoth.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(1, 46, 0), new SerializableTimespan(3, 46, 0), new SerializableTimespan(5, 46, 0), new SerializableTimespan(7, 46, 0), new SerializableTimespan(9, 46, 0), new SerializableTimespan(11, 46, 0), new SerializableTimespan(13, 46, 0), new SerializableTimespan(15, 46, 0), new SerializableTimespan(17, 46, 0), new SerializableTimespan(19, 46, 0), new SerializableTimespan(21, 46, 0), new SerializableTimespan(23, 46, 0) }; shadowBehemoth.Duration = new SerializableTimespan(0, 9, 0); shadowBehemoth.WarmupDuration = new SerializableTimespan(0, 1, 0); fireElemental.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(0, 57, 0), new SerializableTimespan(2, 57, 0), new SerializableTimespan(4, 57, 0), new SerializableTimespan(6, 57, 0), new SerializableTimespan(8, 57, 0), new SerializableTimespan(10, 57, 0), new SerializableTimespan(12, 57, 0), new SerializableTimespan(14, 57, 0), new SerializableTimespan(16, 57, 0), new SerializableTimespan(18, 57, 0), new SerializableTimespan(20, 57, 0), new SerializableTimespan(22, 57, 0) }; fireElemental.Duration = new SerializableTimespan(0, 3, 0); fireElemental.WarmupDuration = new SerializableTimespan(0, 12, 0); frozenMaw.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(0, 17, 0), new SerializableTimespan(2, 17, 0), new SerializableTimespan(4, 17, 0), new SerializableTimespan(6, 17, 0), new SerializableTimespan(8, 17, 0), new SerializableTimespan(10, 17, 0), new SerializableTimespan(12, 17, 0), new SerializableTimespan(14, 17, 0), new SerializableTimespan(16, 17, 0), new SerializableTimespan(18, 17, 0), new SerializableTimespan(20, 17, 0), new SerializableTimespan(22, 17, 0) }; frozenMaw.Duration = new SerializableTimespan(0, 3, 30); frozenMaw.WarmupDuration = new SerializableTimespan(0, 2, 0); filename = AdjustedFilename; } else { megadestroyer.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(0, 30, 0), new SerializableTimespan(3, 30, 0), new SerializableTimespan(6, 30, 0), new SerializableTimespan(9, 30, 0), new SerializableTimespan(12, 30, 0), new SerializableTimespan(15, 30, 0), new SerializableTimespan(18, 30, 0), new SerializableTimespan(21, 30, 0) }; megadestroyer.Duration = new SerializableTimespan(0, 12, 0); megadestroyer.WarmupDuration = new SerializableTimespan(0, 0, 0); tequatl.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(0, 0, 0), new SerializableTimespan(3, 0, 0), new SerializableTimespan(7, 0, 0), new SerializableTimespan(11, 30, 0), new SerializableTimespan(16, 0, 0), new SerializableTimespan(19, 0, 0) }; tequatl.Duration = new SerializableTimespan(0, 15, 0); tequatl.WarmupDuration = new SerializableTimespan(0, 0, 0); karkaQueen.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(2, 0, 0), new SerializableTimespan(6, 0, 0), new SerializableTimespan(10, 30, 0), new SerializableTimespan(15, 0, 0), new SerializableTimespan(18, 0, 0), new SerializableTimespan(23, 0, 0) }; karkaQueen.Duration = new SerializableTimespan(0, 5, 0); karkaQueen.WarmupDuration = new SerializableTimespan(0, 0, 0); evolvedJungleWurm.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(1, 0, 0), new SerializableTimespan(4, 0, 0), new SerializableTimespan(8, 0, 0), new SerializableTimespan(12, 30, 0), new SerializableTimespan(17, 0, 0), new SerializableTimespan(20, 0, 0) }; evolvedJungleWurm.Duration = new SerializableTimespan(0, 15, 0); evolvedJungleWurm.WarmupDuration = new SerializableTimespan(0, 0, 0); shatterer.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(1, 0, 0), new SerializableTimespan(4, 0, 0), new SerializableTimespan(7, 0, 0), new SerializableTimespan(10, 0, 0), new SerializableTimespan(13, 0, 0), new SerializableTimespan(16, 0, 0), new SerializableTimespan(19, 0, 0), new SerializableTimespan(22, 0, 0) }; shatterer.Duration = new SerializableTimespan(0, 7, 0); shatterer.WarmupDuration = new SerializableTimespan(0, 0, 0); clawOfJormag.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(2, 30, 0), new SerializableTimespan(5, 30, 0), new SerializableTimespan(8, 30, 0), new SerializableTimespan(11, 30, 0), new SerializableTimespan(14, 30, 0), new SerializableTimespan(17, 30, 0), new SerializableTimespan(20, 30, 0), new SerializableTimespan(23, 30, 0) }; clawOfJormag.Duration = new SerializableTimespan(0, 17, 0); clawOfJormag.WarmupDuration = new SerializableTimespan(0, 0, 0); modniirUlgoth.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(1, 30, 0), new SerializableTimespan(4, 30, 0), new SerializableTimespan(7, 30, 0), new SerializableTimespan(10, 30, 0), new SerializableTimespan(13, 30, 0), new SerializableTimespan(16, 30, 0), new SerializableTimespan(19, 30, 0), new SerializableTimespan(22, 30, 0) }; modniirUlgoth.Duration = new SerializableTimespan(0, 8, 0); modniirUlgoth.WarmupDuration = new SerializableTimespan(0, 0, 0); inquestGolemMarkII.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(2, 0, 0), new SerializableTimespan(5, 0, 0), new SerializableTimespan(8, 0, 0), new SerializableTimespan(11, 0, 0), new SerializableTimespan(14, 0, 0), new SerializableTimespan(17, 0, 0), new SerializableTimespan(20, 0, 0), new SerializableTimespan(23, 0, 0) }; inquestGolemMarkII.Duration = new SerializableTimespan(0, 7, 0); inquestGolemMarkII.WarmupDuration = new SerializableTimespan(0, 0, 0); taidhaCovington.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(0, 0, 0), new SerializableTimespan(3, 0, 0), new SerializableTimespan(6, 0, 0), new SerializableTimespan(9, 0, 0), new SerializableTimespan(12, 0, 0), new SerializableTimespan(15, 0, 0), new SerializableTimespan(18, 0, 0), new SerializableTimespan(21, 0, 0) }; taidhaCovington.Duration = new SerializableTimespan(0, 10, 0); taidhaCovington.WarmupDuration = new SerializableTimespan(0, 0, 0); jungleWurm.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(1, 15, 0), new SerializableTimespan(3, 15, 0), new SerializableTimespan(5, 15, 0), new SerializableTimespan(7, 15, 0), new SerializableTimespan(9, 15, 0), new SerializableTimespan(11, 15, 0), new SerializableTimespan(13, 15, 0), new SerializableTimespan(15, 15, 0), new SerializableTimespan(17, 15, 0), new SerializableTimespan(19, 15, 0), new SerializableTimespan(21, 15, 0), new SerializableTimespan(23, 15, 0) }; jungleWurm.Duration = new SerializableTimespan(0, 8, 0); jungleWurm.WarmupDuration = new SerializableTimespan(0, 0, 0); shadowBehemoth.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(1, 45, 0), new SerializableTimespan(3, 45, 0), new SerializableTimespan(5, 45, 0), new SerializableTimespan(7, 45, 0), new SerializableTimespan(9, 45, 0), new SerializableTimespan(11, 45, 0), new SerializableTimespan(13, 45, 0), new SerializableTimespan(15, 45, 0), new SerializableTimespan(17, 45, 0), new SerializableTimespan(19, 45, 0), new SerializableTimespan(21, 45, 0), new SerializableTimespan(23, 45, 0) }; shadowBehemoth.Duration = new SerializableTimespan(0, 10, 0); shadowBehemoth.WarmupDuration = new SerializableTimespan(0, 0, 0); fireElemental.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(0, 45, 0), new SerializableTimespan(2, 45, 0), new SerializableTimespan(4, 45, 0), new SerializableTimespan(6, 45, 0), new SerializableTimespan(8, 45, 0), new SerializableTimespan(10, 45, 0), new SerializableTimespan(12, 45, 0), new SerializableTimespan(14, 45, 0), new SerializableTimespan(16, 45, 0), new SerializableTimespan(18, 45, 0), new SerializableTimespan(20, 45, 0), new SerializableTimespan(22, 45, 0) }; fireElemental.Duration = new SerializableTimespan(0, 8, 0); fireElemental.WarmupDuration = new SerializableTimespan(0, 0, 0); frozenMaw.ActiveTimes = new List <SerializableTimespan>() { new SerializableTimespan(0, 15, 0), new SerializableTimespan(2, 15, 0), new SerializableTimespan(4, 15, 0), new SerializableTimespan(6, 15, 0), new SerializableTimespan(8, 15, 0), new SerializableTimespan(10, 15, 0), new SerializableTimespan(12, 15, 0), new SerializableTimespan(14, 15, 0), new SerializableTimespan(16, 15, 0), new SerializableTimespan(18, 15, 0), new SerializableTimespan(20, 15, 0), new SerializableTimespan(22, 15, 0) }; frozenMaw.Duration = new SerializableTimespan(0, 5, 0); frozenMaw.WarmupDuration = new SerializableTimespan(0, 0, 0); filename = StandardFilename; } tt.WorldEvents.Add(megadestroyer); tt.WorldEvents.Add(tequatl); tt.WorldEvents.Add(karkaQueen); tt.WorldEvents.Add(evolvedJungleWurm); tt.WorldEvents.Add(shatterer); tt.WorldEvents.Add(clawOfJormag); tt.WorldEvents.Add(modniirUlgoth); tt.WorldEvents.Add(inquestGolemMarkII); tt.WorldEvents.Add(taidhaCovington); tt.WorldEvents.Add(jungleWurm); tt.WorldEvents.Add(shadowBehemoth); tt.WorldEvents.Add(fireElemental); tt.WorldEvents.Add(frozenMaw); XmlSerializer serializer = new XmlSerializer(typeof(WorldBossEventTimeTable)); TextWriter textWriter = new StreamWriter(filename); serializer.Serialize(textWriter, tt); textWriter.Close(); }