jasontian

Citizen
ServUO Version
Publish 57
Ultima Expansion
Endless Journey
Greetings,

There's a problem for me...
In BandanaBearingTheCrestOfBlackthorn.cs

C#:
namespace Server.Items
{
    public class BandanaBearingTheCrestOfBlackthorn2 : Bandana
    {
        public override bool IsArtifact { get { return true; } }

        [Constructable]
        public BandanaBearingTheCrestOfBlackthorn2()
            : base()
        {
            ReforgedSuffix = ReforgedSuffix.Blackthorn;
            WeaponAttributes.HitLowerDefend = 30;
            Attributes.BonusStr = 10;
            Attributes.BonusDex = 5;
            StrRequirement = 45;
            Hue = 66;
        }

'WeaponAttributes.HitLowerDefend = 30' doesn't work. Then I tested all Blackthorn Artifact Hats, they are all inoperative. But the Glasses and Helmets are working properly. I tried many times to fix it but couldn't succeed.

Is there an easy way to fix it?
 
Last edited:

jasontian

Citizen
Solved.

RunicReforging.cs
C#:
        public static AosWeaponAttributes GetAosWeaponAttributes(Item item)
        {
            if (item is BaseWeapon)
                return ((BaseWeapon)item).WeaponAttributes;

            if (item is Glasses)
                return ((Glasses)item).WeaponAttributes;

            if (item is GargishGlasses)
                return ((GargishGlasses)item).WeaponAttributes;

            if(item is ElvenGlasses)
                return ((ElvenGlasses)item).WeaponAttributes;

            if (item is BaseArmor)
                return ((BaseArmor)item).WeaponAttributes;

            return null;
        }

Add the following code...

C#:
            if (item is BaseClothing)
                return ((BaseClothing)item).WeaponAttributes;

Then it works.

It can also be used for jewelry, etc.