private void SpawnBoss() { if (Bosses == null) { return; } Point3D p = SpawnPoints[0]; ConvertOffset(ref p); CurrentBoss = Activator.CreateInstance(Bosses[0]) as ShadowguardBoss; Bosses.Remove(Bosses[0]); if (CurrentBoss != null) { CurrentBoss.MoveToWorld(p, Map.TerMur); } if (Bosses.Count == 0) { CurrentBoss.IsLastBoss = true; } if (Minax != null && Minax.Alive) { if (CurrentBoss is Juonar) { Minax.Say(1156258); // You shall burn as Trinsic burned at the hands of the Vile Lich Juo'nar! } else if (CurrentBoss is Anon) { Minax.Say(1156259); // Oh Anon my dear! Deal with these pesky intruders will you? Burn them to ASH! } else if (CurrentBoss is Virtuebane) { Minax.Say(1156260); // You didn't think that ridiculous pie trick would work twice in a row? Virtuebane I command thee destroy these vile creatures! } else { Minax.Say(1156261); // And now you shall bow to the King of Kings! Suffer at the hands of the Feudal Lord Ozymandias! } } }
public override void OnCreatureKilled(BaseCreature bc) { if (Bosses != null && bc is ShadowguardBoss && bc == CurrentBoss) { if (Bosses.Count > 0) { SpawnBoss(); } else { if (Minax != null && Minax.Alive) { Minax.Say(1156257); // How...How could this happen! I shall nay be bested by mere mortals! We shall meet again vile heroes! } GiveRewardTitle(); CompleteEncounter(); } } }