|
||
|
|||||||
| New Join Forum So your new to RunUO and looking to work with people that are new, this is the place. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Newbie
Join Date: Sep 2006
Age: 21
Posts: 24
|
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?
|
|
|
|
|
|
#2 (permalink) |
|
Forum Novice
Join Date: Sep 2006
Location: Ukraine
Posts: 930
|
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. |
|
|
|
|
|
#3 (permalink) |
|
Forum Newbie
Join Date: Sep 2006
Age: 21
Posts: 24
|
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
|
|
|
|
|
|
#4 (permalink) |
|
Forum Novice
Join Date: Jul 2004
Location: IL, USA
Posts: 581
|
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.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|