I recently implemented the Vendor Tile script and, in exploring the vendor system, noticed that the color scheme in vendor customization is not quite in keeping with the aesthetic of my shard. The colors are a bit bright, it allows for other than naturally colored hair, etc.

It seems that it would be possible to edit the section included below to use a CustomHuePicker (private class PVHuePicker : CustomHuePicker), I have implemented a few groups for various dye tubs,but I am uncertain the precise format required to send a particular group in this context, if it is even possible to do so here. Any help would be greatly appreciated. Thanks in advance!

Code:
private class PVHuePicker : HuePicker
		{
			private Item m_Item;
			private Mobile m_Vendor;
			private Mobile m_Mob;

			public PVHuePicker( Item item, Mobile v, Mobile from ) : base( item.ItemID )
			{
				m_Item = item;
				m_Vendor = v;
				m_Mob = from;
			}

			public override void OnResponse( int hue )
			{
				if ( m_Item.Deleted )
					return;

				if ( m_Vendor is PlayerVendor && !((PlayerVendor)m_Vendor).CanInteractWith( m_Mob, true ) )
					return;

				if ( m_Vendor is PlayerBarkeeper && !((PlayerBarkeeper)m_Vendor).IsOwner( m_Mob ) )
					return;

				m_Item.Hue = hue;
				m_Mob.SendGump( new PlayerVendorCustomizeGump( m_Vendor, m_Mob ) );
			}
		}
 
Back