jayates

Member
Any idea how i'd add random protection to this shield as in http://www.uoguide.com/Grugor’s_Shield. Here's my script:
Code:
using System;
using Server;

namespace Server.Items
{
    public class GrugorShield : BaseShield
    {
                public override int ArtifactRarity { get { return Utility.RandomMinMax(20, 1000); } }
        public override int BasePhysicalResistance{ get{ return 18; } }
        public override int BaseFireResistance{ get{ return 14; } }
        public override int BaseColdResistance{ get{ return 12; } }
        public override int BasePoisonResistance{ get{ return 15; } }
        public override int BaseEnergyResistance{ get{ return 13; } }

        public override int InitMinHits{ get{ return 255; } }
        public override int InitMaxHits{ get{ return 255; } }

        public override int AosStrReq{ get{ return 20; } }

        public override int ArmorBase{ get{ return 8; } }

        [Constructable]
        public GrugorShield() : base( 0x1B7A )
        {
                        Name = "Grugor's Shield";
            Weight = 5.0;
            Attributes.BonusStr = 10;
          
                        Attributes.BonusStam = 10;
                        Attributes.RegenHits = 5;
            Attributes.WeaponSpeed = 10;
            StrRequirement = 20;

                switch (Utility.Random(1))
                {
                case 0: SkillBonuses.SetValues(0, SkillName.Parry, 10.0); break;
                     }
        }

        public GrugorShield( Serial serial ) : base(serial)
        {
        }

        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadInt();
        }

        public override void Serialize( GenericWriter writer )
        {
            base.Serialize( writer );

            writer.Write( (int)0 );//version
        }
    }
}
 
As far as I can tell, Random Protection doesn't exist on UO
Uoguide is wrong [ dun, dun, dun ]

Several sites show it should be: Eodon Tribe Protection +60%
Which means you take less damage from human tribal mobs
 

Active Shards

Donations

Total amount
$0.00
Goal
$500.00
Back