Go Back   RunUO - Ultima Online Emulation > RunUO > New Join Forum

New Join Forum So your new to RunUO and looking to work with people that are new, this is the place.

Reply
 
Thread Tools Display Modes
Old 01-13-2007, 12:41 AM   #1 (permalink)
Forum Newbie
 
Join Date: Sep 2006
Age: 21
Posts: 24
Default Need new resource boxes

I was wondering if anyone could help me with resource boxes I am in the process of scripting new ores woods etc.. and I added lost alchemy to my shard..but I have no idea how to make resource boxes to hold everything I looked in custom scripts.. and in the archive but cant seem to see any scripts posted with just resource boxes.. usually it comes in a package but I have my own ores and stuff so I didnt really need to do that.. so I was just wondering if anyone has.. or could send me some resource boxes or help me in some way?
DemonII is offline   Reply With Quote
Old 01-14-2007, 10:49 PM   #2 (permalink)
Forum Novice
 
ABTOP's Avatar
 
Join Date: Sep 2006
Location: Ukraine
Posts: 930
Default

Code:
using System; 
using Server; 
using Server.Items;

namespace Server.Items
{ 
	public class RadiantAugmentations : Bag 
	{ 
		[Constructable] 
		public RadiantAugmentations() : this( 1 ) 
		{ 
		} 

		[Constructable] 
		public RadiantAugmentations( int amount ) 
		{ 
			Name = "Radiant Augmentations";
			Hue = 61;
                        Weight = 1.0;
                        LootType = LootType.Blessed;

			   DropItem( new RadiantRhoCrystal() );
		           DropItem( new RadiantRysCrystal());
		           DropItem( new RadiantWyrCrystal());
                           DropItem( new RadiantFreCrystal());
                           DropItem( new RadiantTorCrystal());
                           DropItem( new RadiantVelCrystal());
                           DropItem( new RadiantXenCrystal());
                           DropItem( new RadiantPolCrystal());
                           DropItem( new RadiantWolCrystal());
                           DropItem( new RadiantBalCrystal());
                           DropItem( new RadiantTalCrystal());
                           DropItem( new RadiantJalCrystal());
                           DropItem( new RadiantRalCrystal());
                           DropItem( new RadiantKalCrystal());
                           DropItem( new Socketinfo());

		} 

		public RadiantAugmentations( 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(); 
		} 
	} 
}

Change name of bag and DropItems.
ABTOP is offline   Reply With Quote
Old 01-15-2007, 09:40 AM   #3 (permalink)
Forum Newbie
 
Join Date: Sep 2006
Age: 21
Posts: 24
Default :/

Thanks.. thats a good thing to have.. but what I meant.. wasnt a container that adds in with stuff already in it.. what I meant was.. a container that holds a set amount of resources.. ie leather ingots and stuff like l that.. perhaps I should have exampled myself more thoroughly.. for example.. an ingot chest might hold 20000 of each ingot... a tailor chest might hold 20000 of each leather.. uncut cloth.. and cut cloth.. a tool chest might hold tools where as you add them in the uses add together like start with two hammers with 25 uses add them in and pull one out with 50 uses
DemonII is offline   Reply With Quote
Old 01-15-2007, 10:53 AM   #4 (permalink)
Forum Novice
 
Join Date: Jul 2004
Location: IL, USA
Posts: 581
Default

Daat99 OWL system has many examples of what you ask. Also a very old script, do a search for Toolbox, I posted it in Aug 2004 but still using it today. All other resource boxes are based on the same premise.
haazen is offline   Reply With Quote
Old 01-15-2007, 10:56 AM   #5 (permalink)
Forum Newbie
 
Join Date: Sep 2006
Age: 21
Posts: 24
Default :)

Thanks Haazen
DemonII 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