Esempio n. 1
0
        public override bool OnEquip(Mobile from)
        {
            Item glove = from.FindItemOnLayer(Layer.Gloves);
            Item pants = from.FindItemOnLayer(Layer.Pants);
            Item arms  = from.FindItemOnLayer(Layer.Arms);

            if (glove != null && glove.GetType() == typeof(AcolyteGloves) && pants != null && pants.GetType() == typeof(AcolyteLegs) && arms != null && arms.GetType() == typeof(AcolyteArms))
            {
                Effects.PlaySound(from.Location, from.Map, 503);
                from.FixedParticles(0x376A, 9, 32, 5030, EffectLayer.Waist);

                Hue = 0x2;
                ArmorAttributes.SelfRepair = 3;
                Attributes.Luck            = 100;
                Attributes.NightSight      = 1;
                PhysicalBonus = 3;
                FireBonus     = 3;
                ColdBonus     = 3;
                PoisonBonus   = 3;
                EnergyBonus   = 3;


                AcolyteGloves gloves = from.FindItemOnLayer(Layer.Gloves) as AcolyteGloves;
                AcolyteLegs   legs   = from.FindItemOnLayer(Layer.Pants) as AcolyteLegs;
                AcolyteArms   arm    = from.FindItemOnLayer(Layer.Arms) as AcolyteArms;

                gloves.Hue = 0x2;
                gloves.ArmorAttributes.SelfRepair = 3;
                gloves.PhysicalBonus = 3;
                gloves.FireBonus     = 3;
                gloves.ColdBonus     = 3;
                gloves.PoisonBonus   = 3;
                gloves.EnergyBonus   = 3;

                legs.Hue = 0x2;
                legs.ArmorAttributes.SelfRepair = 3;
                legs.PhysicalBonus = 3;
                legs.FireBonus     = 3;
                legs.ColdBonus     = 3;
                legs.PoisonBonus   = 3;
                legs.EnergyBonus   = 3;

                arm.Hue = 0x2;
                arm.ArmorAttributes.SelfRepair = 3;
                arm.PhysicalBonus = 3;
                arm.FireBonus     = 3;
                arm.ColdBonus     = 3;
                arm.PoisonBonus   = 3;
                arm.EnergyBonus   = 3;


                from.SendLocalizedMessage(1072391);
            }
            this.InvalidateProperties();
            return(base.OnEquip(from));
        }
Esempio n. 2
0
        public override void OnRemoved(object parent)
        {
            if (parent is Mobile)
            {
                Mobile m = ( Mobile )parent;
                Hue                        = 0x0;
                Attributes.Luck            = 0;
                ArmorAttributes.SelfRepair = 0;
                Attributes.NightSight      = 0;
                PhysicalBonus              = 0;
                FireBonus                  = 0;
                ColdBonus                  = 0;
                PoisonBonus                = 0;
                EnergyBonus                = 0;

                if (m.FindItemOnLayer(Layer.Gloves) is AcolyteGloves && m.FindItemOnLayer(Layer.Pants) is AcolyteLegs && m.FindItemOnLayer(Layer.Arms) is AcolyteArms)
                {
                    AcolyteGloves gloves = m.FindItemOnLayer(Layer.Gloves) as AcolyteGloves;
                    gloves.Hue = 0x0;
                    gloves.ArmorAttributes.SelfRepair = 0;
                    gloves.PhysicalBonus = 0;
                    gloves.FireBonus     = 0;
                    gloves.ColdBonus     = 0;
                    gloves.PoisonBonus   = 0;
                    gloves.EnergyBonus   = 0;

                    AcolyteLegs legs = m.FindItemOnLayer(Layer.Pants) as AcolyteLegs;
                    legs.Hue = 0x0;
                    legs.ArmorAttributes.SelfRepair = 0;
                    legs.PhysicalBonus = 0;
                    legs.FireBonus     = 0;
                    legs.ColdBonus     = 0;
                    legs.PoisonBonus   = 0;
                    legs.EnergyBonus   = 0;

                    AcolyteArms arm = m.FindItemOnLayer(Layer.Arms) as AcolyteArms;
                    arm.Hue = 0x0;
                    arm.ArmorAttributes.SelfRepair = 0;
                    arm.PhysicalBonus = 0;
                    arm.FireBonus     = 0;
                    arm.ColdBonus     = 0;
                    arm.PoisonBonus   = 0;
                    arm.EnergyBonus   = 0;
                }
                this.InvalidateProperties();
            }
            base.OnRemoved(parent);
        }
Esempio n. 3
0
        public override void OnRemoved(IEntity parent)
        {
            if (parent is Mobile)
            {
                Mobile m = ( Mobile )parent;
                Hue = 0x0;
                ArmorAttributes.SelfRepair = 0;
                PhysicalBonus = 0;
                FireBonus     = 0;
                ColdBonus     = 0;
                PoisonBonus   = 0;
                EnergyBonus   = 0;
                if (m.FindItemOnLayer(Layer.InnerTorso) is AcolyteChest && m.FindItemOnLayer(Layer.Gloves) is AcolyteGloves && m.FindItemOnLayer(Layer.Arms) is AcolyteArms)
                {
                    AcolyteChest chest = m.FindItemOnLayer(Layer.InnerTorso) as AcolyteChest;
                    chest.Hue                        = 0x0;
                    chest.Attributes.Luck            = 0;
                    chest.Attributes.NightSight      = 0;
                    chest.ArmorAttributes.SelfRepair = 0;
                    chest.PhysicalBonus              = 0;
                    chest.FireBonus                  = 0;
                    chest.ColdBonus                  = 0;
                    chest.PoisonBonus                = 0;
                    chest.EnergyBonus                = 0;

                    AcolyteGloves gloves = m.FindItemOnLayer(Layer.Gloves) as AcolyteGloves;
                    gloves.Hue = 0x0;
                    gloves.ArmorAttributes.SelfRepair = 0;
                    gloves.PhysicalBonus = 0;
                    gloves.FireBonus     = 0;
                    gloves.ColdBonus     = 0;
                    gloves.PoisonBonus   = 0;
                    gloves.EnergyBonus   = 0;

                    AcolyteArms arm = m.FindItemOnLayer(Layer.Arms) as AcolyteArms;
                    arm.Hue = 0x0;
                    arm.ArmorAttributes.SelfRepair = 0;
                    arm.PhysicalBonus = 0;
                    arm.FireBonus     = 0;
                    arm.ColdBonus     = 0;
                    arm.PoisonBonus   = 0;
                    arm.EnergyBonus   = 0;
                }
                this.InvalidateProperties();
            }
            base.OnRemoved(parent);
        }