Closed Nsuidara closed 8 years ago
unfortunately, not easily. The client has no idea about the weight of the individual items. It only receives the total weight of the inventory from the server.
There are two options if I would want to add this:
Thinking of it, I could probably write a small bit of code that would periodically save item inventories and their total weight to file. With a bit of parsing/smart programming I should be able to figure out item weights from that. Will investigate (should have a bit of time for client programming soon!).
You can't do that, since there are containers with unknown content, but with dynamic weight in your inventory.
You are right, of course. I thought about the vegetable sacks and the like just now, so those will will make the earlier idea impossible.
The only possible option is "annoy JC about it"
but cant got weight before pickup item ? amd wjem picked weight
new_weight - old_weight = item_weight ?
as LOMS pointed out, some items don't have a set weight. Also, the split second an item enters the inventory, it is actually a "null" object without any information until the server sends the item info. The weight is also not necessarily updated before or after the item enters the inventory.
Additionally, in some cases multiple items enter the inventory at once, so you can't know how much either weighs on its own.
is possible add weight ? near amounts/count items ?