PenUltima Online

It is currently Sat Sep 06, 2008 11:03 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Weight member on items.
PostPosted: Mon Apr 23, 2007 12:38 am 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1127
Location: Southern Central USA
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.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl