1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Using CustomHuePicker with PlayerVendorCustomizeGump

Discussion in 'Script Support' started by Archaaz, Jan 30, 2017.

  1. Archaaz
    Online

    Archaaz Member

    Joined:
    Sep 17, 2016
    Messages:
    67
    Likes Received:
    7
    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 (C#):
    1. private class PVHuePicker : HuePicker
    2.         {
    3.             private Item m_Item;
    4.             private Mobile m_Vendor;
    5.             private Mobile m_Mob;
    6.  
    7.             public PVHuePicker( Item item, Mobile v, Mobile from ) : base( item.ItemID )
    8.             {
    9.                 m_Item = item;
    10.                 m_Vendor = v;
    11.                 m_Mob = from;
    12.             }
    13.  
    14.             public override void OnResponse( int hue )
    15.             {
    16.                 if ( m_Item.Deleted )
    17.                     return;
    18.  
    19.                 if ( m_Vendor is PlayerVendor && !((PlayerVendor)m_Vendor).CanInteractWith( m_Mob, true ) )
    20.                     return;
    21.  
    22.                 if ( m_Vendor is PlayerBarkeeper && !((PlayerBarkeeper)m_Vendor).IsOwner( m_Mob ) )
    23.                     return;
    24.  
    25.                 m_Item.Hue = hue;
    26.                 m_Mob.SendGump( new PlayerVendorCustomizeGump( m_Vendor, m_Mob ) );
    27.             }
    28.         }
    29.  
     
Similar Threads: Using CustomHuePicker
Forum Title Date
ServUO Discussion Switching Facets Causing Containers to Open Yesterday at 2:46 AM
Script Support Housing Question...hopefully someone can help Tuesday at 3:52 PM
ServUO Discussion help with a fresh start using uo2.3 Mar 19, 2018
3rd Party Support Using CentrED to edit a map other than Map0 (Felucca) Mar 17, 2018
Archived Bug Reports Mystic's Garb is using wrong itemid Jan 20, 2018
Archived Bug Reports Some housing lock down / secure issues. Minor Jan 8, 2018
Archived Bug Reports New Magincia Housing Dec 28, 2017