Trade Bug/Problem

10/26/2010 10:28 ryuchetval#1
Hey guys...I got a problem...every time somebody trades with some other player and both players press OK the trade cancels (even though the items and silvers are traded)
I made it so that it tells me the Types that are called during the trade...
First Player Pressing Ok --> case 10
Second Player Pressing Ok --> case 10
After they both pressed OK --> case 2 (for both of the players)
Case 10:
Case 2:
Suggestions?
10/26/2010 12:37 Korvacs#2
Errr yeah that CancelTrade method shouldnt be there, you should write a similar method called CompleteTrade or something like that which sends the correct packets to end the trade.
10/26/2010 20:10 ryuchetval#3
well but case 2 is called both when pressing cancel/ both press OK so...how am I supossed to do it...make a bool value (or 2) and in case 2 make if bool1 then cancel else completetrade?
10/26/2010 20:46 Korvacs#4
That would be one way of doing it yes, you would need a check like this anyway to confirm that both members were ready to trade.
10/27/2010 21:18 StefanHAKER#5
Search for [Release] Trade , has been started by WTFIDKBBQ (aKa Arco)...
Press Thanks if it helped.
10/27/2010 22:07 Arcо#6
Quote:
Originally Posted by StefanHAKER View Post
Search for [Release] Trade , has been started by WTFIDKBBQ (aKa Arco)...
Press Thanks if it helped.
That's not even part of the problem :facepalm:
10/28/2010 11:59 StefanHAKER#7
Quote:
Originally Posted by WTFIDKBBQ View Post
That's not even part of the problem :facepalm:
I Don't Know then..
10/28/2010 20:23 ryuchetval#8
Quote:
Originally Posted by StefanHAKER View Post
I Don't Know then..
no need...Korvacs helped me out already