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!

[RunUO 2.0 RC1] Crazy, Morphing Dyetub

Ashlar

Sorceror
Crazy, Morphing Dyetub

I still exist, thought i would release a couple things for Halloween :)

This is just a dyetub....
Really! Just a dyetub, nothing to see here, go away..... :p

Edit: I have marked this for RunUO 2.0, but i think it will work with any version... not tested though.

[add CyclingDyetub
Appears as a zero hued Dyetub. (grey in bucket)
Doubleclick opens gump:


This is one item, intended to eliminate dyetub hue houses.

Up and Down arrows allow you to step thru the hue numbers. (visually changes the hue of the dyetub each step)
Text entry allows you to go straight to your choice of hue.
Preview Item Update morphs the ItemID of the Dyetub to match targeted item.
Auto Cycle Hues changes the hue of the dyetub every .3 sec to narrow in on prefered hue. (click again to stop there)
Get Hue allows you to discover the hue of other items for easy matching.
Optional HasCost bool settable in-script.
Apply to Target does the actual hue change to the targeted item.
Quit closes the gump and resets the hue and the ItemID of the dyetub back to default for the next user.

Happy Halloween everybody!
 

Attachments

  • CyclingDyetub.cs
    18.1 KB · Views: 426

Sparkin

Sorceror
woot there frees up 5k items! great idea


i was thinking of using your robe to do the hue tubs keke

btw nice gump :)
 

Johan Smith

Wanderer
great script! for those of you interested, you can make it single use by adding in the following :

Code:
protected override void OnTarget( Mobile from, object targeted )
            {
                if ( !CheckRange( from, m_CD ) )
                    return;

                if ( targeted is Item )
                {
                    i = ( Item )targeted;
                    if ( from.AccessLevel > AccessLevel.Player )
                    {
                        i.Hue = m_CD.Hue;
[COLOR=#ff0000]m_CD.Delete();[/COLOR]
                    }
                    else if ( i.RootParent == from )
                    {
                        if ( TakePayment( from, m_CD ) )
                            i.Hue = m_CD.Hue;
[COLOR=#ff0000]m_CD.Delete();[/COLOR]
                    }
                    else
                        from.SendMessage( "That is not in your posession." );
                }
                else
                    from.SendMessage( "You can only change the hue of items." );

                from.CloseGump( typeof( CyclingDyetubGump ) );
                from.SendGump( new CyclingDyetubGump( from, m_CD ) );
            }
 
Top