artyak Posted February 18, 2020 Report Share Posted February 18, 2020 Hi all. I use TradeOfferManager = require('steam-tradeoffer-manager'), for my Dota 2 project. Now i want use one bot for processing Dota 2 + CS:GO trades. At bot i use appid: 570. How i can use appid: with Dota 2 and CS:GO? I try to use appid: 570 || 730, and appid: 570 && 730, but all time he proceed only request from last number (730). How i can make it? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted February 19, 2020 Report Share Posted February 19, 2020 Show your code. Quote Link to comment Share on other sites More sharing options...
artyak Posted February 21, 2020 Author Report Share Posted February 21, 2020 (edited) On 2/19/2020 at 6:06 AM, Dr. McKay said: Show your code. Here: function sendWithdrawOffer(data) { var sendItems = []; for(var i = 0; i < data.items.length; i++) { sendItems.push({ appid : 570, contextid : 2, assetid : data.items[i] }); } var offer = manager.createOffer(data.url); offer.addMyItems(sendItems); offer.setMessage('CODE: ' + data.code); sentWithdrawOfferNoErr(offer, data.items, data.code, data.user, data.price); } Edited February 21, 2020 by artyak Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted February 23, 2020 Report Share Posted February 23, 2020 That doesn't really make a lot of sense. You're sending an array of asset IDs? There's no way to just figure out which app a given asset ID belongs to. You'd need to also send the appid. Quote Link to comment Share on other sites More sharing options...
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.