I've been struggling with where to start with this concept, and I figure I'd ask on the forums. I've received a bunch of help from the Discord... But I'm still stuck.

What I'm looking for is a deed that captures the AoS mods from an item, and then applies and overwrites the AoS mods on a second targeted item.

I'd prefer if the targets were restricted by base item type, and truly I'm only looking for Base Armor.

Any help on scripts I could look at for inspiration or guidance would be greatly appreciated. If something like this already exists, let me know where!
 
Looking in BaseArmor I found this

Code:
public override void OnAfterDuped(Item newItem)
        {
            BaseArmor armor = newItem as BaseArmor;

            if (armor == null)
                return;

            armor.m_AosAttributes = new AosAttributes(newItem, m_AosAttributes);
            armor.m_AosArmorAttributes = new AosArmorAttributes(newItem, m_AosArmorAttributes);
            armor.m_AosSkillBonuses = new AosSkillBonuses(newItem, m_AosSkillBonuses);
            armor.m_SAAbsorptionAttributes = new SAAbsorptionAttributes(newItem, m_SAAbsorptionAttributes);
            armor.m_NegativeAttributes = new NegativeAttributes(newItem, m_NegativeAttributes);
            armor.m_TalismanProtection = new TalismanAttribute(m_TalismanProtection);

            armor.m_SetAttributes = new AosAttributes(newItem, m_SetAttributes);
            armor.m_SetSkillBonuses = new AosSkillBonuses(newItem, m_SetSkillBonuses);
}

now the public version of m_AosAttributes is Attributes, and for m_AosArmorAttributes it's ArmorAttributes

so you could maybe take a piece of armor, but change it's ItemID to like a deed or something
then dbl click to target an item

if( targeted is BaseArmor )
{
this.Attributes = new AosAttributes( targeted, Attributes )
 

Active Shards

  • Unchained
    Custom (Classic)
    • Players
    • 153 Online
    • 273 Peak
  • The Crossroads
    Mondain's Legacy
    • Players
    • 87 Online
    • 190 Peak
  • UO Eventine
    Custom (Classic)
    • Players
    • 82 Online
    • 137 Peak
  • Insane UO
    Endless Journey
    • Players
    • 72 Online
    • 105 Peak
  • UO: New Renaissance
    Custom (Classic)
    • Players
    • 28 Online
    • 85 Peak
  • CALYPSO
    Custom (Modern)
    • Players
    • 27 Online
    • 30 Peak
  • Pandora
    Custom (Modern)
    • Players
    • 19 Online
    • 32 Peak
  • UO Enigma
    Custom (Modern)
    • Players
    • 19 Online
    • 172 Peak
  • Arth
    Custom (Modern)
    • Players
    • 19 Online
    • 34 Peak
  • UO Phoenix
    Custom (Classic)
    • Players
    • 17 Online
    • 48 Peak

Donations

Total amount
$0.00
Goal
$500.00
Back