Пример #1
0
        public override bool OnMoveOver(Mobile m)
        {
            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);
        }
Пример #2
0
        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();
        }
Пример #3
0
        public override bool OnMoveOver(Mobile m)
        {
            Container   pack    = m.Backpack;
            bool        found   = false;
            BoneMachete machete = null;

            if (pack != null)
            {
                foreach (Item item in pack.Items)
                {
                    if (item is BoneMachete)
                    {
                        machete = item as BoneMachete;
                        found   = true;
                    }
                }
            }

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

                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);
            }
        }
Пример #4
0
        public override bool OnMoveOver(Mobile m)
        {
            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));
            }

            m.SendLocalizedMessage(1074275); // You are unable to push your way through the tangling roots of the mighty tree.

            return(true);
        }