Thanks in advance to any that reply.

I am working on Grimoric's T2A RunUO and I noticed that Mage vendor spells are either mislabeled or incorrectly linked. Example I buy 'Create Food' and the scroll that appears in my inventory is 'Clumsy'.

I am just starting my journey to developing some UO content. Been searching for a while now so I figured I would ask instead of letting my blood pressure skyrocket.
 
SBMage.cs is the script that decides what a mage vendor will sell (and buy).

However, the part where it lists scrolls for sale is a lot less readable than the rest of their inventory.

Code:
                for ( int i = 0; i < circles*8 && i < types.Length; ++i )
                {
                    int itemID = 0x1F2E + i;

                    if ( i == 6 )
                        itemID = 0x1F2D;
                    else if ( i > 6 )
                        --itemID;

                    Add( new GenericBuyInfo( types[i], 12 + ((i / 8) * 10), 20, itemID, 0 ) );
                }

Your example shows us the ItemID being displayed in your gump is off by 1 (the displayed itemID is one higher than the actual scroll being sold.) I'm not quite sure where yours is getting the wrong offset but this is where it's happening.
 
Back