These functions (of which i've tested so far) do not work when you try to use them to add an existing item, like for trading.
However adding a new item based on another items template works fine. Exactly which of the 18 different versions of them that works I haven't tested.
The functions however have some strange effects. No errors are generated and it mostly returns InventoryError.OK, however it doesnt do its job and takes away inventory space.
Trying to find the problem, but with little to no luck.
1. It does work in the tests and in a lot of occasions. Such as the ItemCommand.
2. You are missing information.
What code did you use exactly that showed this behavior?
How to reproduce the bug with 100% success?
When debugging, what happens to the Item? Is it being deleted? Is it being added but just not shown client-side?
I've gone through the looting system, the item commands system and other systems that gave people items with success. What all these systems have in common are that they create a new item based on a template.
However for trading a new id for the item is not acceptable (iam told), which makes sense. However trying to add the same item to the inventory fails. Basically you cannot see the item in your inventory but you loose a slot. Based on the fact that the blizzard GUI tells you this and trying to trade alot of items to the person ends up saying that his inventory is full. Im not fully aware of everything that goes on in wcell or in the DB, however it seems like whatever keeps track of whats in the inventory finds out that the character doesn't actually have these items and therefor you don't have the problem anymore. On other occusions we have gotten errors that resulted in the character not being able to login the error saying that another item id existed already of that item.
Basically this error can be reproduced just by reenabling the trade system in its current form. I just went through the code line by line checking if there were an error.
You are however told that you recieve the item and the inventory error system reports OK.
Limited to the trade system, we currently remove the item from the inventory using the remove command before adding it to the other inventory.
So far what i've experienced is that beyond the system complaining about multiple items exist with that ID, we end up with no items. But how it looks in the DB im not sure.