Esempio n. 1
0
		public static bool IsMondain(IEntity e)
		{
            if (e == null)
                return false;

			return MondainsLegacy.IsMLRegion(Region.Find(e.Location, e.Map));
		}
Esempio n. 2
0
        public override void OnResponse(NetState sender, RelayInfo info)
        {
            switch (info.ButtonID)
            {
            case 0: MondainsLegacy.SaveSetings(); break;

            case 1: MondainsLegacy.PalaceOfParoxysmus = !MondainsLegacy.PalaceOfParoxysmus; break;

            case 2: MondainsLegacy.TwistedWeald = !MondainsLegacy.TwistedWeald; break;

            case 3: MondainsLegacy.BlightedGrove = !MondainsLegacy.BlightedGrove; break;

            case 4: MondainsLegacy.Bedlam = !MondainsLegacy.Bedlam; break;

            case 5: MondainsLegacy.PrismOfLight = !MondainsLegacy.PrismOfLight; break;

            case 6: MondainsLegacy.TheCitadel = !MondainsLegacy.TheCitadel; break;

            case 7: MondainsLegacy.PaintedCaves = !MondainsLegacy.PaintedCaves; break;

            case 8: MondainsLegacy.Labyrinth = !MondainsLegacy.Labyrinth; break;

            case 9: MondainsLegacy.Sanctuary = !MondainsLegacy.Sanctuary; break;

            case 10: MondainsLegacy.Spellweaving = !MondainsLegacy.Spellweaving; break;

            case 11: MondainsLegacy.PublicDonations = !MondainsLegacy.PublicDonations; break;
            }

            if (info.ButtonID > 0)
            {
                sender.Mobile.SendGump(new MondainsLegacyGump());
            }
        }
Esempio n. 3
0
        public static void OnKilledBy(OnKilledByEventArgs e)
        {
            BaseCreature killed = e.Killed as BaseCreature;
            Mobile       killer = e.KilledBy;

            if (killed != null && killer != null && killer.Alive && killed.GivesMLMinorArtifact && CheckArtifactChance(killer, killed))
            {
                MondainsLegacy.GiveArtifactTo(killer);
            }
        }
Esempio n. 4
0
 private static bool IsMondain(Mobile m)
 {
     return(m != null && MondainsLegacy.IsMLRegion(m.Region));
 }