07-19-2014, 02:38 AM
(This post was last modified: 07-19-2014, 02:40 AM by Seadragon91.)
I found a "way" to remove a item or change the amount over the method AddItem(cItem)
1) Copy the item
2) Make the variable m_ItemCount negativ (item.m_ItemCount = item.m_ItemCount * -1)
3) Add the item over AddItem
Nice it accepts negative integers
Only problem sometimes the items amount is not changing and this cause sync errors
Edit: But yes a remove method would be much better.
1) Copy the item
2) Make the variable m_ItemCount negativ (item.m_ItemCount = item.m_ItemCount * -1)
3) Add the item over AddItem
Nice it accepts negative integers
Only problem sometimes the items amount is not changing and this cause sync errors
Edit: But yes a remove method would be much better.