|
||
|
|
#1 (permalink) |
|
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 |
|
|
|
|
|
|
#2 (permalink) | ||
|
Hax Your Face.
Join Date: Jun 2004
Age: 21
Posts: 820
|
Quote:
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:
-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. ![]() |
||
|
|
|
|
|
#4 (permalink) |
|
Join Date: Dec 2003
Location: DUBAyou.com
Posts: 61
|
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?" );
}
}
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();
}
}
|
|
|
|
|
|
#7 (permalink) |
|
Join Date: Mar 2005
Age: 17
Posts: 132
|
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?
|
|
|
|
|
|
#9 (permalink) |
|
Join Date: Mar 2005
Age: 17
Posts: 132
|
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. |
|
|
|
|
|
#10 (permalink) |
|
Forum Newbie
Join Date: Feb 2004
Posts: 34
|
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?
|
|
|
|
|
|
#11 (permalink) | |
|
Quote:
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?" );
}
}
Code:
if ( !IsChildOf (from.Backpack)) Code:
else
{
from.Target = new UnivTubTarget( this );
from.SendMessage( "What do you wish to dye?" );
}
Post you're Code:
public override void OnDoubleClick( Mobile from ) |
||
|
|
|
|
|
#14 (permalink) | |
|
Forum Expert
Join Date: Mar 2005
Location: York, UK
Age: 28
Posts: 708
|
Quote:
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. |
|
|
|
|
|
|
#15 (permalink) |
|
Master of the Internet
|
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 |
|
|
|
|
|
#16 (permalink) | |
|
Account Terminated
Join Date: Sep 2005
Age: 52
Posts: 12
|
Quote:
Great Point Sad thing is... after all this time, he & Co are still doin it. |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|