Nothxbye
Banned User
- Joined
- Jan 22, 2012
- Messages
- 1,124
- Reaction score
- 173
Hello OTlanders,
Anyone know how to get total items weight from table.
For example i've got table with 3 item ids:
rewards = {2544, 2495, 2544}
And now i want total weight of these 3 items. How to do it?
I can do like that but its not flexible with rewards count:
Anyone know how to get total items weight from table.
For example i've got table with 3 item ids:
rewards = {2544, 2495, 2544}
And now i want total weight of these 3 items. How to do it?
I can do like that but its not flexible with rewards count:
Code:
getItemWeightById(rewards[1],1)+getItemWeightById(rewards[2],1)+getItemWeightById(rewards[3],1)