View Single Post
Old 08-24-2009, 08:10 AM   #8 (permalink)
oiii88
Forum Novice
 
Join Date: Jul 2006
Age: 30
Posts: 746
Default

Quote:
Originally Posted by Lord_Greywolf View Post
it should stack right BUT will still allow to go overweight though

this is how i fixed that problem

make this section look simular

Code:
		public static void DropLoot( Mobile from, Item loot, Container lootBag )
		{
			List<Item> list = lootBag.Items;
			for ( int i = 0; i < list.Count; ++i )
			{
				Item item1 = list[i];
				if ( !(item1 is Container) && item1.StackWith( from, loot, false ) )
				{
					from.PlaySound( 0x2E6 );
					return;
				}
			}
			if ( !lootBag.TryDropItem( from, loot, false ) ) loot.MoveToWorld( from.Location, from.Map );
			from.PlaySound( 0x2E6 );
		}
and i think that should fix you up then
can do gold and silver drop simular also so they do not go overweight also

and that is in claim.cs
Thanks much for the snippet of code. I will give it a shot this evening once the work day ends and see how it goes.
__________________
Friends Come and go but Enemies accumulate
oiii88 is offline   Reply With Quote