Jump to content
McKay Development

How to use 2 appid?


artyak

Recommended Posts

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?

 

Link to comment
Share on other sites

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 by artyak
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...