public Mobile Spawn() { Type[][] types = MiniChampInfo.GetInfo(this.m_Type).SpawnTypes; int v = this.Level; if (v >= 0 && v < types.Length) { return(Spawn(types[v])); } return(null); }
public void SpawnChampion() { this.m_Kills = 0; Spwnd = 0; this.m_Level = 0; InvalidateProperties(); try { if (this.m_Type == MiniChampType.EnslavedGoblins) { this.m_Champion = new GrayGoblinMageRenowned() as Mobile; this.m_Champion2 = new GreenGoblinAlchemistRenowned() as Mobile; } else { this.m_Champion = Activator.CreateInstance(MiniChampInfo.GetInfo(this.m_Type).Champion) as Mobile; } } catch { } if (this.m_Type == MiniChampType.MeraktusTheTormented) { if (this.m_Champion != null) { this.m_Champion.MoveToWorld(new Point3D(383, 1932, 10), Map.Malas); } } else { if (this.m_Champion != null) { this.m_Champion.MoveToWorld(new Point3D(X - 1, Y - 1, Z), Map); } if (this.m_Champion2 != null) { this.m_Champion2.MoveToWorld(new Point3D(X + 1, Y + 1, Z), Map); } } }