PlanZed Posted May 10, 2020 Report Posted May 10, 2020 I have been stuck on trying to figure out how have my bot send a trade offer with items the bot has for items the user has. For example (*this is a TF2 trading bot*) I have a hat, I want to sell it for 1 key by sending a trade offer. how would I do this? **I know how to accept one when the user sends the trade offer, but I want to implement being able to use a command in steam chat to have the bot send them a trade offer** Quote
Dr. McKay Posted May 10, 2020 Report Posted May 10, 2020 You need to retrieve both parties' inventories, find the items you want to trade, and add them to the offer using addMyItem and addTheirItem. PlanZed 1 Quote
PlanZed Posted May 10, 2020 Author Report Posted May 10, 2020 Just now, Dr. McKay said: You need to retrieve both parties' inventories, find the items you want to trade, and add them to the offer using addMyItem and addTheirItem. How would I retrieve the other parties inventory? Quote
Dr. McKay Posted May 10, 2020 Report Posted May 10, 2020 https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOffer#getpartnerinventorycontentsappid-contextid-callback PlanZed 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.