Jump to content
McKay Development

TextDynasty

Member
  • Posts

    144
  • Joined

  • Last visited

Everything posted by TextDynasty

  1. 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?
  2. so there is no way to automatic smelt metals? Since the assetid changes every times...
  3. So.. we need to have the assetid every time? Is there a way to lock the item id?
  4. 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
  5. 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") });
  6. Is there anyway to send a message to admin when finished a trade?
  7. 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") });
  8. 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") });
  9. thanks for reply, do you mean by creating another folder for another account? Thanks
  10. Is there a way to use one trade offer manager for two accounts?
  11. Thanks, I still don't understand how to smelt metals when it is in a low amount. Any help would be very nice
  12. One more question how to response to friends message and invite?
  13. 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(); } }
  14. 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?
  15. 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); }); } });
  16. 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.
  17. It is not 0, the calculation is correct but i don't know why it didn't accept my offer
  18. 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.
  19. Thanks for the reply but what should i assign? return key++ or what? Thanks
×
×
  • Create New...