[QUESTION]CCreature::DeleteItemInInventory()
Mcrabben maybe you or someone else could answer this question ...
Basically I'm trying to figure out the way the arguments are passed to this function to delete an item from a players inventory.
What I've gathered so far is that it takes two arguments before the call which I'm guessing are a pointer to the item you want to delete and a value which is the number of that item to delete. Previous calls to that function in the server have the same instructions mov ecx, ebx before the call which should be the pointer to the user struct.
I've gotten it to work, but I get a server error with ObjectDB complaining of an undefined classID followed by another error saying the item does not exist.
Has anyone had any luck using this function or does anyone know any more about the arguments it takes etc? Thanks!
|