Go Back   RunUO - Ultima Online Emulation > RunUO > Core Modifications > Other

Other Cant find a category above, use this one! Core mods not listed above go here!

Reply
 
Thread Tools Display Modes
Old 08-09-2006, 04:55 AM   #1 (permalink)
Forum Expert
 
Join Date: Dec 2005
Posts: 465
Default [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.
Attached Files
File Type: zip ItemWeightProperty.zip (676 Bytes, 52 views)
snicker7 is offline   Reply With Quote
Old 08-26-2006, 06:55 AM   #2 (permalink)
Forum Novice
 
Prohor Meletevich's Avatar
 
Join Date: Jan 2006
Location: Ashkelon, Israel
Age: 27
Posts: 143
Send a message via ICQ to Prohor Meletevich Send a message via Skype™ to Prohor Meletevich
Default

Quote:
Originally Posted by snicker7
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
  }

Last edited by Prohor Meletevich; 08-26-2006 at 08:07 AM.
Prohor Meletevich is offline   Reply With Quote
Old 08-26-2006, 03:13 PM   #3 (permalink)
Forum Expert
 
Join Date: Dec 2005
Posts: 465
Default

Weight is TotalWeight + Weight of the bag, which is what is displayed on OSI.
snicker7 is offline   Reply With Quote
Old 08-26-2006, 05:05 PM   #4 (permalink)
Forum Novice
 
Prohor Meletevich's Avatar
 
Join Date: Jan 2006
Location: Ashkelon, Israel
Age: 27
Posts: 143
Send a message via ICQ to Prohor Meletevich Send a message via Skype™ to Prohor Meletevich
Default

Quote:
Originally Posted by snicker7
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.
Prohor Meletevich is offline   Reply With Quote
Old 08-26-2006, 08:02 PM   #5 (permalink)
Forum Expert
 
Join Date: Dec 2005
Posts: 465
Default

hm, in that case just totalweight should do. i will play with it later.
snicker7 is offline   Reply With Quote
Old 09-24-2006, 06:54 AM   #6 (permalink)
Forum Newbie
 
Join Date: Aug 2006
Age: 23
Posts: 13
Default

How and where i can write down this file for public weight ? Example please
piratishee 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