Exemple #1
0
        public override bool OnMoveOver(Mobile m)
        {
            if (m.NetState == null || !m.NetState.SupportsExpansion(Expansion.ML))
            {
                m.SendLocalizedMessage(1072608); // You must upgrade to the Mondain's Legacy expansion in order to enter here.
                return(true);
            }
            else if (!MondainsLegacy.BlightedGrove && (int)m.AccessLevel < (int)AccessLevel.GameMaster)
            {
                m.SendLocalizedMessage(1042753, "Blighted Grove"); // ~1_SOMETHING~ has been temporarily disabled.
                return(true);
            }

            BoneMachete machete = GetBoneMachete(m);

            if (machete != null)
            {
                if (0.6 > Utility.RandomDouble())
                {
                    m.SendLocalizedMessage(1075008); // Your bone handled machete has grown dull but you still manage to force your way past the venomous branches.
                }
                else
                {
                    machete.Delete();
                    m.SendLocalizedMessage(1075007); // Your bone handled machete snaps in half as you force your way through the poisonous undergrowth.
                }

                return(base.OnMoveOver(m));
            }
            else
            {
                m.SendLocalizedMessage(1074275); // You are unable to push your way through the tangling roots of the mighty tree.
            }
            return(true);
        }
        public override void GiveEquipment()
        {
            var machete = new BoneMachete();
            machete.Name = "a chaos blade";
            machete.Hue = 1920;
            machete.Identified = true;
            machete.Movable = false;
            AddItem(Immovable(machete));

            var shield = new ChaosShield();
            shield.Name = "a corrupted chaos shield";
            shield.Hue = 1920;
            shield.Identified = true;
            shield.Movable = false;
            AddItem(Immovable(shield));

            base.GiveEquipment();

        }