Trading Bug

Post in this forum if you found any bugs with server functionality.

Moderator: Team Members

Forum rules
READ THE STICKY ON PROPER BUG SUBMISSION FORMAT BEFORE POSTING.
Post Reply
neatz09
Content Lead
Posts: 136
Joined: Sun Dec 09, 2018 12:55 pm

Trading Bug

Post by neatz09 » Thu Feb 27, 2020 8:24 pm

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.
You do not have the required permissions to view the files attached to this post.

Cadimiom
Team: Zombie
Posts: 74
Joined: Wed Jul 25, 2007 2:31 pm

Re: Trading Bug

Post by Cadimiom » Fri Feb 28, 2020 9:52 pm

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

neatz09
Content Lead
Posts: 136
Joined: Sun Dec 09, 2018 12:55 pm

Re: Trading Bug

Post by neatz09 » Wed Mar 04, 2020 7:07 pm

appears to work flawlessly! thank you!

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests