public static void Initialize() { _Zones[0] = new EodonTribeRegion(EodonTribe.Jukari, new Rectangle2D[] { new Rectangle2D(640, 2046, 115, 115) }, 6); _Zones[1] = new EodonTribeRegion(EodonTribe.Kurak, new Rectangle2D[] { new Rectangle2D(291, 1817, 125, 90) }, 6); _Zones[2] = new EodonTribeRegion(EodonTribe.Barrab, new Rectangle2D[] { new Rectangle2D(134, 1767, 33, 20), new Rectangle2D(142, 1786, 57, 80), new Rectangle2D(145, 1750, 20, 20) }, 5); _Zones[3] = new EodonTribeRegion(EodonTribe.Barako, new Rectangle2D[] { new Rectangle2D(620, 1677, 95, 100) }, 5); _Zones[4] = new EodonTribeRegion(EodonTribe.Urali, new Rectangle2D[] { new Rectangle2D(320, 1551, 160, 72) }, 5); _Zones[5] = new EodonTribeRegion(EodonTribe.Sakkhra, new Rectangle2D[] { new Rectangle2D(482, 1375, 200, 200) }, 8); }
public MyrmidexHill(EodonTribeRegion zone, Mobile focus) : base(8754) { Movable = false; Focus = focus; Zone = zone; Spawn = new List <BaseCreature>(); }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); switch (version) { case 1: HasSpawned = reader.ReadInt(); goto case 0; case 0: int count = reader.ReadInt(); if (count > 0) { Spawn = new List <BaseCreature>(); for (int i = 0; i < count; i++) { BaseCreature bc = reader.ReadMobile() as BaseCreature; if (bc != null) { Spawn.Add(bc); } } } break; } if (Spawn == null || Spawn.Count == 0) { Delete(); } else { Timer.DelayCall(TimeSpan.FromSeconds(10), () => { EodonTribeRegion r = Region.Find(this.Location, this.Map) as EodonTribeRegion; if (r != null) { Zone = r; } }); } }