Page 1 of 1
Trading Bug
Posted: Thu Feb 27, 2020 8:24 pm
by neatz09
Client - AoM
right click a player... no trade option
click drag item starts trade(as intended) item in trade window is busted and displays random numbers + wrong icon
cannot add items to trade with the prior stated method to initiate trade.
Re: Trading Bug
Posted: Fri Feb 28, 2020 9:52 pm
by Cadimiom
WS_PlayerTrade version 1 had a quantity (your_item_quantity and their_item_quantity) of int16, setting to int32 resolves the icon + quantity for sure and multiple items are working. I have not tested other clients so I just branched out a copy of the version 1 structure to 60114 for now on my own testing.
https://imgur.com/a/PN46BRt
obviously the right click trade feature is different, I added it as part of client.cpp Client::HandleVerbRequest below 'add to ignore list'
delete_commands.push_back(player->CreateEntityCommand("Trade", 10, "start_trade", "", 0, 0));
Not sure this is the best approach for adding the command though, seemed like you shouldn't trade with someone you ignored

Also the distance is way too extreme right now I am sure lol..
Edit: 10 or less for distance probably seems more reasonable. /shrug
Re: Trading Bug
Posted: Wed Mar 04, 2020 7:07 pm
by neatz09
appears to work flawlessly! thank you!