MoeJoe111
Member-
Posts
3 -
Joined
-
Last visited
MoeJoe111's Achievements
-
Problem with multiple TradeOfferManagers
MoeJoe111 replied to MoeJoe111's topic in node-steam-tradeoffer-manager
Thanks, Problem solved. -
Problem with multiple TradeOfferManagers
MoeJoe111 replied to MoeJoe111's topic in node-steam-tradeoffer-manager
My bad, i should have explained the surrounding code. The idea is to trade items to the bot with the least amount of items in the inventory. I have a function which will return the index of the TradeOfferManager from the account with the least amount of items, which works 100%. The TradeOffer gets sent without any error, but from a different TradeOfferManager than planned. Is it a problem that these TradeOfferManagers use the same SteamCommunity instance? let x = getTradeOfferManagerIndex(); console.log(x); //correct index let manager = managers[x]; console.log(managers[x].steamID.getSteamID64()); //confirmed bot with least amount of items let offer = managers[x].createOffer(new SteamID(steamId), token); offer.getUserDetails((err, me, them) => { console.log(me.personaName); //steamname of a different bot console.log(managers[x].steamID.getSteamID64()); //still correct steamId //... }); //user gets offer from the bot with me.personaName -
Hello, i have a problem with multiple TradeOfferManagers, in this example the first console.log returns a name for a different account then the second console.log. How is this possible? let offer = managers[x].createOffer(new SteamID(steamId), token); offer.getUserDetails((err, me, them) => { console.log(me.personaName); console.log(managers[x].steamID.getSteamID64());