by Drakia on Wed Sep 26, 2007 5:59 pm
That's not possible Core.
What this function does is call the GetNewItemSlot function for PlayerA, which goes through the inventory looking for either a blank slot, or one with the same item in it. It then returns this slot number. It takes away the item from PlayerB, checks to see if they have 0 of that item left and if so, deletes it from their inventory. It then sets the item in the slot retrieved from the earlier function call for PlayerA to what PlayerB was trading, adds how many were traded to it (This is what I changed, it used to set it to that amount. Maybe instead of replacing this line before, you had added an addition below it?) Then it sends PlayerA a packet updating their inventory. This is repeated for PlayerB.
There is no way my fix will cause PlayerA to get double of what PlayerB was giving them.
My favorite skill is
scaring new users away.
If you haven't
SEARCHED expect me to yell at you.