|
||
|
|||||||
| Script Support Get support for modifying RunUO Scripts, or writing your own! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#2 (permalink) | |
|
Account Terminated
|
Quote:
Please post the code so we can help otherwise it might not be the way you want to do it. |
|
|
|
|
|
|
#3 (permalink) |
|
its really basic:
[code:1] using System; using Server; using Server.Items; using Server.Mobiles; namespace Server.Items { public class ArmorBag : Bag { [Constructable] public ArmorBag() : this( 1 ) { Movable = true; Hue = 0x0481; } [Constructable] public ArmorBag( int amount ) { DropItem( new LeatherChest() ); DropItem( new LeatherGorget() ); DropItem( new LeatherArms() ); DropItem( new LeatherGloves() ); DropItem( new LeatherLegs() ); DropItem( new LeatherCap() ); } public ArmorBag( Serial serial ) : base( serial ) { } 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(); } } } [/code:1][/code] |
|
|
|
|
|
|
#4 (permalink) |
|
Forum Expert
Join Date: Oct 2002
Location: Naples,FL
Age: 32
Posts: 1,552
|
Pass the item to a variable then set it's hue. For example[code:1]LeatherChest lc = new LeatherChest();
lc.Hue = Hue; // If you want the armour to be the same color as the bag DropItem( lc );[/code:1] |
|
|
|
|
|
#5 (permalink) |
|
Thanks alot. But i have a question. I dont have a script or anything but could it be possible to make a gump that when you choose leather armor from it another gump could come up with a range or colors then when you select it, it gives you a full set of hued armor?
|
|
|
|
|
|
|
#6 (permalink) |
|
Join Date: Oct 2002
Age: 29
Posts: 393
|
Ya it possable. When they chose leatherarmor. It would open another gump. Or it could be like a radio button, i think is the term, and u check leather armor then check the hue. When you press ok, it saves the hue # to a int, and that int is then passed over to when you make the item.
Also, I could be mistaken, but I think you can change the hue in the DropItem command. I thought i saw a script do that, but I'm not sure. If not, UOT's way will diff work. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|