RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[2.0] Weight Property on Items Patch

snicker7

Sorceror
[2.0] Weight Property on Items Patch

needed a place to upload the patch file for the issue tracker...

this patch is meant to be applied to REVISION 66 of the current RunUO 2.0 SVN for ITEM.CS


If you don't know what the above means, don't download this file.
 

Attachments

  • ItemWeightProperty.zip
    676 bytes · Views: 58
snicker7 said:
needed a place to upload the patch file for the issue tracker...

this patch is meant to be applied to REVISION 66 of the current RunUO 2.0 SVN for ITEM.CS


If you don't know what the above means, don't download this file.

And what about total weight for containers? Something like this:

Code:
  public virtual void AddWeightProperty( ObjectPropertyList list )
  {
   double weight = Weight * Amount + TotalWeight;
 
   if( weight == 0 )
    return;
 
   if ( weight == 1 )
    list.Add( 1072788, weight.ToString() ); //Weight: ~1_WEIGHT~ stone
   else
    list.Add( 1072789, weight.ToString() ); //Weight: ~1_WEIGHT~ stones
  }
 
snicker7 said:
Weight is TotalWeight + Weight of the bag, which is what is displayed on OSI.

No, Weight is only weight of the item without TotalWeight, Ive tested it. But I think it's not needed to add Weight+Total because any cotainer already shows property like "3 items, 25 stones". But you must use Weight * Amount to show normaly the weight of stacked items.
 
Top