Пример #1
0
        public override void OnDoubleClick(Mobile from)
        {
            if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
            }
            else
            {
                if (ItemID == 0xF6B)
                {
                    ItemID = 0xA12;
                }
                else if (ItemID == 0xA12)
                {
                    ItemID = 0xF6B;
                }
            }

            var parent = Parent as Mobile;

            if (parent == from && Burning)
            {
                Mobiles.MeerMage.StopEffect(parent, true);
                SwarmContext.CheckRemove(parent);
            }
        }
Пример #2
0
        public override void OnAdded(object parent)
        {
            base.OnAdded(parent);

            if (parent is Mobile && Burning)
            {
                Mobiles.MeerMage.StopEffect((Mobile)parent, true);
                SwarmContext.CheckRemove((Mobile)parent);
            }
        }
Пример #3
0
        public override void Ignite()
        {
            base.Ignite();

            if (Parent is Mobile && Burning)
            {
                Mobiles.MeerMage.StopEffect((Mobile)Parent, true);
                SwarmContext.CheckRemove((Mobile)Parent);
            }
        }
Пример #4
0
        public override void OnAdded(object parent)
        {
            if (parent is Mobile mobile)
            {
                var holding = mobile.FindItemOnLayer(Layer.TwoHanded);

                if (holding is Torch && Burning)
                {
                    Mobiles.MeerMage.StopEffect(mobile, true);
                    SwarmContext.CheckRemove(mobile);
                }
            }
        }
Пример #5
0
        public override void Ignite()
        {
            base.Ignite();

            if (Parent is Mobile mobile)
            {
                var holding = mobile.FindItemOnLayer(Layer.TwoHanded);

                if (holding is Torch && Burning)
                {
                    Mobiles.MeerMage.StopEffect(mobile, true);
                    SwarmContext.CheckRemove(mobile);
                }
            }
        }