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
    Offline

    Archaaz Member

    Joined:
    Sep 17, 2016
    Messages:
    89
    Likes Received:
    12
    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
Archived Bug Reports New creature named "Blood" causing an issue Sep 7, 2018
Script Support I crashed on using a carpentry tool Aug 31, 2018
3rd Party Support Drop-down Lists using Gump Studio? Jul 16, 2018
Archived Bug Reports Isle of the devide - A no housing zone on EA Jun 24, 2018
Archived Bug Reports approaching players name appear red if using costume Jun 16, 2018
3rd Party Support Tutorial on Map Conversion using EssenceUDK.Tools for CentrED+ Jun 9, 2018
Support Equipment Sets Causing Crash Jun 7, 2018