FIXED Yet ANOTHER imbuing bug.

DewCono

Apprentice II
Supporter
I'm trying to imbue a 5th mod onto the following 4 items. All 4 items in the imbuing menu, and in the loot inspector show 4/5 mods, and open imbuing weight. NONE of these 4 can fit another mod at all.

1565208766816.png

So I went on OSI to test if Mage armor or MR4 took extra mod slots, or something.


1565208850577.png1565208867915.png

So there's no conflict there. Something is causing these item to not be imbuable on Heritage. Whether it's Mage armor, or MR4 thats the only common trend between all 4 of those items.
 
OP
DewCono

DewCono

Apprentice II
Supporter
Based on the error message I receive when attempting to do the imbue: "You cannot imbue this item with any more item properties." it must be one of these two sections that are behaving improperly.
Lines 348-365
Code:
           {
                var maxWeight = GetMaxWeight(i);
                context.Imbue_IWmax = maxWeight;

                var trueWeight = GetTotalWeight(i, id, false, true);
                var imbuingWeight = GetTotalWeight(i, id, true, true);
                var totalItemMods = GetTotalMods(i, id);
                var maxint = ItemPropertyInfo.GetMaxIntensity(i, id, true);

                var propImbuingweight = (int)(((double)def.Weight / (double)maxint) * value);
                var propTrueWeight = (int)(((double)propImbuingweight / (double)def.Weight) * 100);

                if ((imbuingWeight + propImbuingweight) > maxWeight)
                {
                    from.SendLocalizedMessage(1079772); // You cannot imbue this item with any more item properties.
                    from.CloseGump(typeof(ImbueGump));
                    return;
                }

Lines 114-129
Code:
       public static bool OnBeforeImbue(Mobile from, Item item, int id, int value, int totalprops, int maxprops, int totalitemweight, int maxweight)
        {
            if (totalprops >= maxprops || totalitemweight > maxweight)
            {
                from.SendLocalizedMessage(1079772); // You cannot imbue this item with any more item properties.
                from.CloseGump(typeof(ImbueGump));
                from.EndAction(typeof(Imbuing));
                return false;
            }

            return true;
        }

I feel like it's the first snippet of code that is more at play since the items are under max props, and are under max weight as well.
 
OP
DewCono

DewCono

Apprentice II
Supporter
I literally cannot imbue LRC 1% to any of those 4 items.
It may seem odd, but I feel like for some reason it's behaving as if there are multiple instances of mana regen on it making it think there are 5 mods. If you can log into Discord for a moment I will elaborate.
 

PLAY NOW

Heritage

Address
play.trueuo.com
Port
2593
Uptime
17 hours
Players Online
9
Houses
875
Vendors
281
Gold
4,399,964,371gp
Top Bottom