RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Problem with female/male armors

greymeister

Wanderer
Problem with female/male armors

Hello, quick question for any Ultima SDK folks. I'm using the following code in my status page:

Code:
	private class ItemEntry
	{
		private int m_LayerID, m_ItemID, m_ItemHue;
	
		public int Hue{ get{ return m_ItemHue; } }
	
		public ItemEntry( int layerID, int itemID, int itemHue )
		{
			m_LayerID = layerID;
			m_ItemID = itemID;
			m_ItemHue = itemHue;
		}
		
		public Bitmap CompileBitmap( bool female )
		{
			int gumpID = ( female ? 60000 : 50000 ) + Ultima.TileData.ItemTable[ m_ItemID ].Animation;
			return Ultima.Gumps.GetGump( gumpID );
		}
	}

It looks like this code works correctly except for showing items such as a chainmail tunic that has a different appearance on males and females. If I decrease the itemID by one, the chainmail shows up correctly, but of course it also offsets most of the other items.

Any ideas or suggestions would be greatly appreciated! :D
 
Top