Spell Channeling on Pre-AOS server

Darth Deity

Citizen
Hey guys! I wanted to bring in some AOS attributes to my Pre-AOS server. My goal is to get Artifact weapons to be able to use Spell Channeling. The easiest way I can see this being done is to chance the Layer on each item to something not used by armor, but I'm realizing anything i change it to takes up armor slots, or just doesn't give any AR period.

Has anyone done this successfully, to where they can equip a shield or melee weapon and have it stay equipped through a cast? Running LBR.
 

SimonOmega

Citizen
Not sure if this helps, but on a server where I set the Expansion to UOR (And that is all that I did, not other UOR changes).

The below code created a Template Katana that can be held while casting.

Spell Channeling without AOS Attributes:
using Server.Engines.Craft;

namespace Server.Items
{
    [Alterable(typeof(DefBlacksmithy), typeof(GargishKatana))]
    [Flipable(0x13FF, 0x13FE)]
    public class TestKatana : BaseSword
    {

        public override bool CanRepair => true;

        [Constructable]
        public TestKatana()
            : base(0x13FE)
        {
            Resource = CraftResource.ShadowIron;
            Weight = 5.0;
        }

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

        public override void AddNameProperty( ObjectPropertyList list )
        {
            // Generic Name Override. Keep Name Classic.
            string name = this.Name;
            if ( name == null )
            list.Add( LabelNumber );
            else
            list.Add( name );
            list.Add( "Spell Channeling" );
        }

        public override bool AllowEquipedCast(Mobile from)
        {
            return true;
        }
    }
}
 

Darth Deity

Citizen
It sure did! I found it last night while looking through spellbook.cs. used the allowedequipedcast and it works great. Thank you for looking!