I have enclosed a script for a dyable custom piece of armor. You should be able to add "IDyable" as follows to your item script:

Code:
[FlipableAttribute( 0x1EFD, 0x1EFE )]
	public class MagicFancyShirt : BaseArmor, IDyable, IScissorable
	{


And you will also need to add the following method to your script (see the enclosed script for an example of placement):

Code:
public bool Dye( Mobile from, DyeTub sender )
	{
		if ( Deleted )
			return false;

		Hue = sender.DyedHue;
			return true;
	}
 

Attachments

  • MagicFancyShirt.cs
    4.1 KB · Views: 8
Yes! I figured it out also while you were posting!

I added the ", IDyable" to public class and then

#region IDyable
public virtual bool Dye(Mobile from, DyeTub sender)
{
if (this.Deleted)
return false;
this.Hue = sender.DyedHue;
return true;
}
#endregion

before the end of script and it seems to work

SOLVED
Thanks! :)
 
I tried for 2 days to get it to work... now I wish I would have posted then because your answer was perfect! LOL Thanks again! :)
 
Back