Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3389
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. You can use node-tf2 to get and craft your inventory.
  2. It's not really recommended to manipulate poll data. TradeOfferManager's job is to emit newOffer once per incoming offer. Errors can be frustrating but it's your responsibility to make sure that they're dealt with properly. You could use offerList to check for offers that should have already been accepted (probably want to keep a list of offers you've attempted to accept and the timestamp so you don't try to accept an offer too frequently).
  3. You aren't assigning anything to BuyKey and FromRef1. forEach doesn't return anything. Also, further on down you're using = when you want to use ==
  4. What's with the nested listeners on newOffer? And on separate emitters?
  5. every will stop executing as soon as it reaches an entry that doesn't return true. Also, return will stop executing the function immediately. You want forEach, and don't return if the name matches the desired value. Instead, use that check in an if.
  6. I'm not really at liberty to say much about that, but to my knowledge it isn't possible through the steamcommunity.com data.
  7. There are multiple ways to do this. You could loop the item arrays and increment counters when you find matching items. You could use filter to filter the arrays for particular items and check the length of the resulting arrays.
  8. I've already told you what can cause that error. I suggest that you double-check everything.
  9. If you're using two-factor authentication (via SDA or whatever), then there's no new-device cooldown, so no. But if you aren't, then the answer is still no because "devices" are remembered by sentry files. Your sentry file is saved by steam-user in your appdata directory, so it will always be reused on the same machine (until you reformat or whatever).
  10. Then Steam is either down or you've had too many failed login attempts.
  11. If you flood Steam, you'll get rate-limited. If you're accepting many offers at once, add a delay between the requests.
  12. No. Please read the documentation. Defindexes aren't currencyids. As far as I know, only Spiral Knights uses "currencies" in trading.
×
×
  • Create New...