Dyetub Reset

Locked
User avatar
Cree A'dor
Journeyman Scribe
Posts: 29
Joined: Thu Jan 01, 2009 10:51 pm

Dyetub Reset

Post by Cree A'dor »

I think it would be cool if you could double click a dye tub and target the tub to set it's hue back to 0. There is no way of doing this unless you have a GM come and set the hue back for you. Sometimes, you just want a regular colored something or another. :D Thanks.
Image
+Solomon
Novice Scribe
Posts: 6
Joined: Fri Jan 23, 2009 7:24 pm

Re: Dyetub Reset

Post by +Solomon »

I have scripted this. I hope that +Colibri will implement it in the server soon to suit the players needs. Enjoy.
DyeTub.cs.zip
(1.64 KiB) Downloaded 220 times
User avatar
+Colibri
Administrator
Posts: 3958
Joined: Sat Feb 25, 2006 4:08 pm
Location: static void Main

Re: Dyetub Reset

Post by +Colibri »

Will be in at server version 36.12

Actual code added:

Code: Select all

										if ( item is DyeTub )
					{
						if ( !item.IsChildOf( from.Backpack ) )
						{
							from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
						}
						else if ( m_Tub.Redyable )
						{
							m_Tub.DyedHue = 0;
							from.PlaySound( 0x23E );
						}
						else
						{
							from.SendMessage( "That dyetub cannot be rehued." );
						}
					}
					else if ( item is IDyable && m_Tub.AllowDyables )
Thank you for research and the idea :mrgreen:
+Colibri, Administrator of UO Excelsior Shard

Don't know what the purpose of your life is? Well then make something up! ;)
(Old Colibrian proverb)
Locked