romatello
-
Posts
4 -
Joined
-
Last visited
Posts posted by romatello
-
-
var cookies = db_data.cookies.split(","); // cookies in db stored as string
var steam_community = new SteamCommunity();
var offer_manager = new TradeOfferManager({
"community": steam_community
});
offer_manager.setCookies(cookies, function(err) {
if (err) {
console.log(err);
console.log(cookies);
return;
}
console.log("Got API key: " + offer_manager.apiKey);
}); -
I've cookies array like this:
[ 'sessionid=7030e64a53d6f7860bc69038', 'steamLogin=76561198447561491%7c%7c3B5AF02B12EC2F367974917BC090EB7F0E6B3B91', 'steamLoginSecure=76561198447561491%7c%7c1CC92BDD67243C7E761681E40E3B8419416AA858' ]
I get an error "not logged in" when I try to log in trade offer manager through cookies using setCookies method. I take cookies a minute before using setCookies method
Can someone explain why i get an error? -
I've making my bot and I need to check item market hash name within trade offer, but in offer.itemsToGive and offer.itemsToReceive contains only following information:
EconItem { appid: 730, contextid: '2', assetid: '13984115215', classid: '310777179', instanceid: '302028390', amount: 1, missing: false, est_usd: '1', id: '13984115215', fraudwarnings: [], descriptions: [], owner_descriptions: [], actions: [], owner_actions: [], market_actions: [], tags: [], tradable: false, marketable: false, commodity: false, market_tradable_restriction: 0, market_marketable_restriction: 0 }
So my question is: How to get market_hash_name?
Resuming session using cookies
in node-steam-tradeoffer-manager
Posted · Edited by romatello
for the test, I use two scripts on the same server. first one writes cookies to db, second one tries to log in trade offer manager using cookies. IP is the same.