TextDynasty Posted October 23, 2016 Report Posted October 23, 2016 Is there a way to use one trade offer manager for two accounts? Quote
Dr. McKay Posted October 23, 2016 Report Posted October 23, 2016 No, you'd need to create two separate TradeOfferManager objects. Quote
TextDynasty Posted October 23, 2016 Author Report Posted October 23, 2016 No, you'd need to create two separate TradeOfferManager objects.thanks for reply, do you mean by creating another folder for another account? Thanks Quote
Dr. McKay Posted October 23, 2016 Report Posted October 23, 2016 No, I mean you need to do new TradeOfferManager twice. Quote
TextDynasty Posted October 23, 2016 Author Report Posted October 23, 2016 but how about the login? Quote
Dr. McKay Posted October 24, 2016 Report Posted October 24, 2016 You'd need two of whatever you're using to login too. Quote
TextDynasty Posted October 24, 2016 Author Report Posted October 24, 2016 client.logOn({ accountName: config.username1, password: config.password1, "twoFactorCode": SteamTotp.getAuthCode("shared_secret") }); client.logOn({ accountName: config.username2, password: config.password2, "twoFactorCode": SteamTotp.getAuthCode("shared_secret") }); Quote
TextDynasty Posted October 24, 2016 Author Report Posted October 24, 2016 You'd need two of whatever you're using to login too.Thanks for the fast reply. But do you mean by that? client.logOn({ accountName: config.username1, password: config.password1, "twoFactorCode": SteamTotp.getAuthCode("config.shared_secret") }); client.logOn({ accountName: config.username2, password: config.password2, "twoFactorCode": SteamTotp.getAuthCode("config.shared_secret") }); Quote
Dr. McKay Posted October 24, 2016 Report Posted October 24, 2016 var client1 = new SteamUser(); var client2 = new SteamUser(); Quote
TextDynasty Posted October 24, 2016 Author Report Posted October 24, 2016 Thanks for the fast reply. So the code should be this? var client1 = new SteamUser(); var client2 = new SteamUser(); client1.logOn({ accountName: config.username1, password: config.password1, "twoFactorCode": SteamTotp.getAuthCode("config.shared_secret") }); client2.logOn({ accountName: config.username2, password: config.password2, "twoFactorCode": SteamTotp.getAuthCode("config.shared_secret") }); Quote
Dr. McKay Posted October 24, 2016 Report Posted October 24, 2016 Yes, that looks correct enough, minus the secrets. 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.