Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 06-12-2004, 07:01 PM   #1 (permalink)
 
Join Date: Nov 2002
Location: Ohio
Age: 28
Posts: 12
Send a message via ICQ to tangentzero Send a message via AIM to tangentzero
Talking Universal Dye Tub (working)

Summary:
Well basically I got sick of the same old universal dye tub script. You all know the one, that only staff can change. Players can't use dyes on it... well I took the time (all of 5min) to fix that problem. And now here it is... a redyable universal dye tub with a custom color selection.

Description:
If you'd like to change any of the hues used the open the "customhuespicker.cs" file and just scroll down till you see "UniversalDyeTub" below will be a list of titles and hue numbers. If you can't figure out what to do... please, release the mouse, and back away from the computer.

Installation:
- Download Zip file (duh)
- Unzip Zip File (duh)
- Drop Both files [customhuespicker.cs and universaldyetub.cs] into your custom script folder [anywhere under scripts works, but orginization is nice]
- Remove the "customhuespicker.cs" file from "scripts/items/skillitems/tailoritems/dyetubs"
- Boot up server
- Say [add universaldyetub
- Target Ground
- Say [add dyes
- Target Ground
- Double click dyes
- Target Tub
- Select hue
- Enjoy

Note* extended installation instructions due to the fact that I've seen so many people ask the dumbest questions about how things work, might as well kill em off, or as many as I can, before they popup. :-D
Attached Files
File Type: zip unitubfiles.zip (2.8 KB, 1523 views)
tangentzero is offline   Reply With Quote
Old 06-12-2004, 07:17 PM   #2 (permalink)
Hax Your Face.
 
Join Date: Jun 2004
Age: 21
Posts: 820
Default

Quote:
Originally Posted by tangentzero
- Download Zip file (duh)
- Unzip Zip File (duh)
- Drop Both files [customhuespicker.cs and universaldyetub.cs] into your custom script folder [anywhere under scripts works, but orginization is nice]
- Remove the "customhuespicker.cs" file from "scripts/items/skillitems/tailoritems/dyetubs"
- Boot up server
- Say [add universaldyetub
- Target Ground
- Say [add dyes
- Target Ground
- Double click dyes
- Target Tub
- Select hue
- Enjoy
Ok.. So I've installed the script.. just like you said.. Then I added the tub and dyes.. I selected my hue..

But the problem is..

I can't enjoy it like the instructions say, because your instructions didn't tell me how to actually dye the item after changing the hue.


Quote:
Originally Posted by tangentzero
Note* extended installation instructions due to the fact that I've seen so many people ask the dumbest questions about how things work, might as well kill em off, or as many as I can, before they popup. :-D
You've screwed with a smartass with those instructions, and yeh got that ^ response in return. :P


-Waverian.

Sorry.. I just had to do that.. That comment was sitting right there.. taunting me to make a stupid retaliation .. :P

*EDIT : In being a smartass, I completely forgot the moral of the post ... Thanks for the fix. I haven't tried it yet because I'm too damn lazy to restart my server, but I'm sure it works fine.
Waverian is offline   Reply With Quote
Old 06-12-2004, 07:30 PM   #3 (permalink)
 
Join Date: Nov 2002
Location: Ohio
Age: 28
Posts: 12
Send a message via ICQ to tangentzero Send a message via AIM to tangentzero
Default

Ha, gotta love the smartass' of the world. Without them it'd be a dull place... I know the feeling on the "to lazy to restart" the server thing... hence I pissed off a few players w/ a multi reboot when adding in a few scripts today...
tangentzero is offline   Reply With Quote
Old 06-13-2004, 12:47 AM   #4 (permalink)
 
Join Date: Dec 2003
Location: DUBAyou.com
Posts: 61
Default

nice job but u need to learn how to keep ur code clean.
Code:
public class UniversalDyeTub : DyeTub
{
		public override CustomHuePicker CustomHuePicker{ get{ return CustomHuePicker.UniversalDyeTub; } }
private bool m_Redyable;


[Constructable]
public UniversalDyeTub()
{
Weight = 0.0;
Hue = 0;
Name = "Universal Dye Tub";
m_Redyable = true;
}

public UniversalDyeTub( Serial serial ) : base( serial )
{
}

public override void OnDoubleClick( Mobile from )
{

if ( !IsChildOf (from.Backpack))
{
from.Target = new UnivTubTarget( this );
from.SendMessage( "What do you wish to dye?" );
}
else
{
from.Target = new UnivTubTarget( this );
from.SendMessage( "What do you wish to dye?" );

}

}
and it should be like
Code:
	public class UniversalDyeTub : DyeTub
	{
		public override CustomHuePicker CustomHuePicker{ get{ return CustomHuePicker.UniversalDyeTub; } }
		private bool m_Redyable;

		[Constructable]
		public UniversalDyeTub()
		{
			Weight = 0.0;
			Hue = 0;
			Name = "Universal Dye Tub";
			m_Redyable = true;
		}

		public UniversalDyeTub( Serial serial ) : base( serial )
		{
		}

		public override void OnDoubleClick( Mobile from )
		{
	
			if ( !IsChildOf (from.Backpack))
			{
				from.Target = new UnivTubTarget( this );
				from.SendMessage( "What do you wish to dye?" );
			}
			else
			{
				from.Target = new UnivTubTarget( this );
				from.SendMessage( "What do you wish to dye?" );
			}
		}

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( (int) 0 ); // version 
		}
	
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
		}
	}
dubayou is offline   Reply With Quote
Old 06-13-2004, 12:42 PM   #5 (permalink)
 
Join Date: Nov 2002
Location: Ohio
Age: 28
Posts: 12
Send a message via ICQ to tangentzero Send a message via AIM to tangentzero
Default

Quote:
old universal dye tub script
<--- note* that in the original post. I've been meaning to clean up the actual universaldyetub.cs script for a while just no time... lol.
tangentzero is offline   Reply With Quote
Old 12-14-2004, 03:51 PM   #6 (permalink)
 
Join Date: Jul 2004
Posts: 17
Send a message via MSN to wkdlyevl
Default Thank you thank you

thanks a ton for this script i have been trying to edit mine and wind up with fatal errors thanks for shareing your a life saver
wkdlyevl is offline   Reply With Quote
Old 05-12-2005, 11:47 PM   #7 (permalink)
 
Join Date: Mar 2005
Age: 17
Posts: 132
Default

This is awesome! Cool Cool! My friends and me are having fun! Hahaha Thanks!! We can show off with new colours. How can I create my own custom colour? Is there more colours than the ones you've provided in CustomHuePicker.cs?
na12uto is offline   Reply With Quote
Old 05-13-2005, 02:57 AM   #8 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

You would have to code that if you wanted to have more hues in that list.
XxSP1DERxX is offline   Reply With Quote
Old 05-14-2005, 06:39 AM   #9 (permalink)
 
Join Date: Mar 2005
Age: 17
Posts: 132
Default

i learned how to edit/customize it and found an awesome program called huemanager from arya,another pro scripter. so cool prog! i got to add more gradient colors and i know how to code it now with the help of the universal dye tub's format! Thanks guys! This is waay better than all games.
na12uto is offline   Reply With Quote
Old 05-14-2005, 02:41 PM   #10 (permalink)
Forum Newbie
 
Join Date: Feb 2004
Posts: 34
Default

simple question, your script allows only to dye while the tub is in your backpack, fairly new to scripting but i would like to make this where i can look it down in a supply room and players can just use it from there without it being in their backpack, simple fix? or does the whole unidyetub.cs needa be rewritten?
macbeth25 is offline   Reply With Quote
Old 05-31-2005, 01:44 PM   #11 (permalink)
 
Join Date: Nov 2002
Location: Ohio
Age: 28
Posts: 12
Send a message via ICQ to tangentzero Send a message via AIM to tangentzero
Default

Quote:
Originally Posted by macbeth25
simple question, your script allows only to dye while the tub is in your backpack, fairly new to scripting but i would like to make this where i can look it down in a supply room and players can just use it from there without it being in their backpack, simple fix? or does the whole unidyetub.cs needa be rewritten?

I havn't touched the script in a while (since posting it actually) but it shouldn't be all to hard to fix.

Lines 57-70
Code:
		public override void OnDoubleClick( Mobile from )
	{

			if ( !IsChildOf (from.Backpack))
		{
			from.Target = new UnivTubTarget( this );
			from.SendMessage( "What do you wish to dye?" );
		}
			else
		{
			from.Target = new UnivTubTarget( this );
			from.SendMessage( "What do you wish to dye?" );
		}
	}
Dunno why you're getting that message. Unless you modified the code a little yourself. Because at lines 57-70 it "says" if its in your backpack
Code:
if ( !IsChildOf (from.Backpack))
then it'll let you dye... but then the "else" statment
Code:
else
		{
			from.Target = new UnivTubTarget( this );
			from.SendMessage( "What do you wish to dye?" );
		}
is telling you that if its NOT in your backpack you'lre able to dye still.


Post you're
Code:
public override void OnDoubleClick( Mobile from )
(like 57-70 same as above) and we'll find the problem.
tangentzero is offline   Reply With Quote
Old 06-02-2005, 12:03 AM   #12 (permalink)
 
Join Date: Apr 2005
Age: 26
Posts: 36
Default

Great script thanks for adding it =o)
Flutter is offline   Reply With Quote
Old 06-02-2005, 07:52 AM   #13 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Lets stop bumping scripts in the Archive forum shall we
Phantom is offline   Reply With Quote
Old 06-02-2005, 12:26 PM   #14 (permalink)
Forum Expert
 
Shadow1980's Avatar
 
Join Date: Mar 2005
Location: York, UK
Age: 28
Posts: 708
Default

Quote:
Originally Posted by Phantom
Lets stop bumping scripts in the Archive forum shall we
Oh for crying out loud, post something useful someday will you. This thread wasn't even that far down and 1 month lack of activity isn't THAT much in the archives either. Just look the other way and post elsewhere if you have nothing more constructive to say then constantly tell people what they do wrong.

Your most annoying habit is telling people EVERYWHERE to "do a search" so when you actually DO a search the first 40 threads you find on the topic end with Phantom saying "Do a search."
If you want to be witty at least throw in a couple of links as examples so OTHER people who are searching aint negatively affected by this kind of behaviour.
Shadow1980 is offline   Reply With Quote
Old 06-02-2005, 02:06 PM   #15 (permalink)
Master of the Internet
 
bzk90's Avatar
 
Join Date: Jun 2003
Location: Nevada
Age: 18
Posts: 6,630
Send a message via AIM to bzk90 Send a message via MSN to bzk90 Send a message via Yahoo to bzk90
Default

wkdlyevl necroed this thread at the end of 2004, after 5 months of it being dead
na12uto necroed it 5 months after wkdlyevl
theres no reason for these 2 to be necroing, and theres no reason you should be necroing with them

this thread was posted nearly a year ago and died, let it die
bzk90 is offline   Reply With Quote
Old 09-23-2005, 04:34 PM   #16 (permalink)
Account Terminated
 
Join Date: Sep 2005
Age: 52
Posts: 12
Default

Quote:
Originally Posted by Shadow1980
Oh for crying out loud, post something useful someday will you. This thread wasn't even that far down and 1 month lack of activity isn't THAT much in the archives either. Just look the other way and post elsewhere if you have nothing more constructive to say then constantly tell people what they do wrong.

Your most annoying habit is telling people EVERYWHERE to "do a search" so when you actually DO a search the first 40 threads you find on the topic end with Phantom saying "Do a search."
If you want to be witty at least throw in a couple of links as examples so OTHER people who are searching aint negatively affected by this kind of behaviour.

Great Point Sad thing is... after all this time, he & Co are still doin it.
Neutral is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5