
TextDynasty
Member-
Posts
144 -
Joined
-
Last visited
Everything posted by TextDynasty
-
But it means I need to change the code every time when smelter or crafted a metal? Is there a way to get the assetid automatically without having to change the code every time?
-
so there is no way to automatic smelt metals? Since the assetid changes every times...
-
So.. we need to have the assetid every time? Is there a way to lock the item id?
-
What means by "recipe"? var tf2 = new TeamFortress2(user); var user = new SteamUser(); tf2.on('crafting', function (craft) { if (item.name == "Refined Metal") { return Refined++ } if (Refined > 10) { tf2.craft("5002"); console.log("Smelted Some Refined Metals"); }}); Did i do anythings wrong here? It didn't seems working
-
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") });
-
Is there anyway to send a message to admin when finished a trade?
-
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") });
-
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") });
-
but how about the login?
-
thanks for reply, do you mean by creating another folder for another account? Thanks
-
Is there a way to use one trade offer manager for two accounts?
-
Thanks, I still don't understand how to smelt metals when it is in a low amount. Any help would be very nice
-
One more question how to response to friends message and invite?
-
Thanks for reply.
-
Thanks for reply. Sorry i don't really understand how to use it. Where do i need to put the "them" in the code? function getUserDetails (callback) { if (escrowDays > 0){ offer.decline(); } }
-
How to declined others offers if they got trade hold?
-
Sorry i don't know how to use it. i have tried this client.on('craft', function (craft) { craft(5002) }) Any examples? Thanks. And also how to make a list of my backpack?
-
How to auto smelt and craft metals?
-
cannot declined the wrong offer
TextDynasty replied to TextDynasty's topic in node-steam-tradeoffer-manager
Problems Solved... -
Hi McKay, idk why my offer was declined everytime i sent a correct offer Here is my code manager.on("newOffer", function(offer) { var metal = 0 var key = 0 var BuyKey = (offer.itemsToReceive.forEach(function(item) { if (item.name == "Mann Co. Supply Crate Key") return key++ })); var FromRef1 = (offer.itemsToGive.forEach(function(item) { if (item.name == "Refined Metal") return metal += 9 if (item.name == "Reclaimed Metal") return metal += 3 if (item.name == "Scrap Metal") return metal++ })); if (BuyKey && FromRef1) { if (metal == key) { offer.accept(function(err) { if (err) console.log(err); else console.log("They are selling " + key + " keys for " + buykeyprice * key + " refined metal."); console.log(colors.red("Accepting the trade offer.")); console.log(colors.green("Trade offer accepted.")); }); }} else { console.log("Trade offer not validated. Declining"); console.log("They offered " + key + " keys and " + metal + " refined metals. ") offer.decline(function(err) { if (err) console.log(err); }); } });
-
cannot declined the wrong offer
TextDynasty replied to TextDynasty's topic in node-steam-tradeoffer-manager
Whats wrong with my code?? manager.on("newOffer", function(offer) { var metal = 0 var key = 0 var BuyKey = (offer.itemsToReceive.forEach(function(item) { if (item.name == "Mann Co. Supply Crate Key") return key++ })); var FromRef1 = (offer.itemsToGive.forEach(function(item) { if (item.name == "Refined Metal") return metal += 9 if (item.name == "Reclaimed Metal") return metal += 3 if (item.name == "Scrap Metal") return metal++ })); if (BuyKey && FromRef1) { if (metal == key) { offer.accept(function(err) { if (err) console.log(err); else console.log("They are selling " + key + " keys for " + buykeyprice * key + " refined metal."); console.log(colors.red("Accepting the trade offer.")); console.log(colors.green("Trade offer accepted.")); }); }} else { console.log("Trade offer not validated. Declining"); console.log("They offered " + key + " keys and " + metal + " refined metals. ") offer.decline(function(err) { if (err) console.log(err); }); } }); Trade offer not validated. Declining They offered 1 keys and 198 refined metals. -
cannot declined the wrong offer
TextDynasty replied to TextDynasty's topic in node-steam-tradeoffer-manager
Can you help me correct it a bit?Thanks -
cannot declined the wrong offer
TextDynasty replied to TextDynasty's topic in node-steam-tradeoffer-manager
It is not 0, the calculation is correct but i don't know why it didn't accept my offer -
cannot declined the wrong offer
TextDynasty replied to TextDynasty's topic in node-steam-tradeoffer-manager
Maybe somethings wrong here? if (BuyKey && FromRef1) { if (metal == key * buykeyprice) { offer.accept(function(err) { if (err) console.log(err); else console.log("They are selling " + key + " keys for " + buykeyprice * key + " refined metal."); console.log(colors.red("Accepting the trade offer.")); console.log(colors.green("Trade offer accepted.")); }); }} (the buykeyprice set to 198 and this shows up when received offer) Trade offer not validated. Declining They offered 1 keys and 198 refined metals. -
cannot declined the wrong offer
TextDynasty replied to TextDynasty's topic in node-steam-tradeoffer-manager
Thanks for the reply but what should i assign? return key++ or what? Thanks