yesworld Posted May 1, 2020 Report Posted May 1, 2020 Hey Dr. McKay, The bot has several identical items in inventory. [{ market_hash_name: 'Inscribed Tormented Staff', pos: 1, // ... other fields }, { market_hash_name: 'Inscribed Tormented Staff', pos: 2, // ... other fields }] My task is to create 2 TradeOffers for different people and send one of the items. The problem is that all requests are asynchronous. And he creates trades offer for the same item, which is in the same bot inventory position (pos = 1). If you accept one trade, then the second trade is no longer available. What is the best way to solve this problem? Thank you for your attention and thank you for your work! Quote
Dr. McKay Posted May 1, 2020 Report Posted May 1, 2020 You need to keep track of the asset IDs of items you already have offers out for, and filter them out of your inventory when you're sending additional offers. Quote
yesworld Posted May 1, 2020 Author Report Posted May 1, 2020 8 minutes ago, Dr. McKay said: You need to keep track of the asset IDs of items you already have offers out for, and filter them out of your inventory when you're sending additional offers. I only thought to keep their position... Thanks Dr. McKay 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.