Cruxicon

Initiate
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.
 

Active Shards

  • Unchained
    Custom (Classic)
    • Players
    • 138 Online
    • 273 Peak
  • UO Eventine
    Custom (Classic)
    • Players
    • 90 Online
    • 137 Peak
  • The Crossroads
    Mondain's Legacy
    • Players
    • 87 Online
    • 190 Peak
  • Insane UO
    Endless Journey
    • Players
    • 83 Online
    • 105 Peak
  • UO: New Renaissance
    Custom (Classic)
    • Players
    • 33 Online
    • 85 Peak
  • CALYPSO
    Custom (Modern)
    • Players
    • 28 Online
    • 30 Peak
  • Arth
    Custom (Modern)
    • Players
    • 22 Online
    • 34 Peak
  • Heritage
    New Legacy
    • Players
    • 20 Online
    • 41 Peak
  • UO Phoenix
    Custom (Classic)
    • Players
    • 19 Online
    • 48 Peak
  • UO Enigma
    Custom (Modern)
    • Players
    • 19 Online
    • 172 Peak

Donations

Total amount
$0.00
Goal
$500.00
Back