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:
    56
    Likes Received:
    6
    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
Bug Reports Mystic's Garb is using wrong itemid Yesterday at 1:46 PM
Bug Reports Some housing lock down / secure issues. Minor Jan 8, 2018
Archived Bug Reports New Magincia Housing Dec 28, 2017
Archived Bug Reports Issue with Convert Mage Armor using the Mage Guildmaster Dec 26, 2017
Archived Bug Reports Terrible housing bug / potential exploit since last publish Dec 22, 2017
Archived Bug Reports Cozy Elven Chair (and guessing a few others) can not be dyed using furniture dye tub Dec 22, 2017
Script Support Removing resist on weapon crafting causing crash when crafts. Nov 21, 2017