PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
Weight member on items.

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> General Discussion
Display posts from previous:   

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1094
Location: Southern Central USA

PostPosted: Mon Apr 23, 2007 4:38 am    Post subject: Weight member on items. Reply with quote

Thought I might suggest a change in the docs for the itemdesc.cfg file info concerning weight.

In the docs it states that weight is an integer value. I have found this to be true sometimes.

Here is what I have discovered:
On single, non-stackable items the weight is indeed an integer value.
On stackable items you can specify a weight as a fraction and POL will round up to the nearest integer. For example if you set a diamond to 1/3 and you place 4 diamonds in your pack your weight will increase by 2 stones. You can add 2 more diamonds to the stack and your weight will not increase. Apparently POL stores the weight correctly internally but rounds up only on the value sent to the client. It should be noted that weight values for stackables less than a stone must be defined as a fraction and not a decimal equivalent.

1/4 is acceptable.
0.25 is not.

I assume the reason single non-stackables are only allowed integer weights is due to the rounding up situation I noted earlier.

Post new topic   Reply to topic    PenUltima Online Forum Index -> General Discussion All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty