Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3575
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. You would probably want to do something like this: Initialize a variable to 0 to count the user's owned metal Loop over the user's inventory, and add 9 to that variable for every refined, 3 for every reclaimed, and 1 for every scrap If that variable is If it's >=, then loop over their inventory again, starting with refined and add ref until they don't have any more or the amount you need Keep going with rec and eventually scrap If, at the end, you're short a bit, add the smallest currency unit to go above your required price
  2. You probably need to set logonID in the logOn method to some nonzero value.
  3. It's unlikely that chat in node-steamcommunity will be fixed since everything goes through the CM now, and that's what node-steam-user is designed for.
  4. You can use Array.prototype.filter to filter out things you don't want.
  5. Dr. McKay

    Steam update

    It's a normal CM connection using normal CM protobuf messages. node-steam-user does all this. At some point I'll add support for new chat to steam-user but it'll be a bit.
  6. You could always call the API yourself. But your bot is getting killed because you don't have enough memory.
  7. https://github.com/DoctorMcKay/node-steam-user#mynicknames
  8. Nickname as in the private name you gave the user, or nickname as in the user's profile (persona) name?
  9. https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOfferManager#sentofferchanged
  10. You're probably running out of memory.
  11. I dunno what to tell you. Everything you posted looks good, so you must be doing something wrong elsewhere.
  12. Are you using the cookies on the same IP as where they were created? I find generally you have to use the same IP.
  13. I'm not 100% certain, but I think: Blocked = You blocked themIgnoredFriend = They're a friend, and you blocked themSuggestedFriend = Dunno, maybe unusedMax = Not a real value, just the maximum that enum goes up to
  14. The appid for the item is 753. You should prefix the game's appid to the market_hash_name, e.g.: community.getMarketItem(753, "629960-:SoraSummerFlowerGaze2:", (err, item) => { });
  15. https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOffer#getuserdetailscallback
  16. That generally happens when there's no longer anything happening in the script. For example: it got disconnected from Steam and there wasn't anything reconnecting or something.
  17. I don't believe that's presently possible.
  18. Of the account you're logged into? client.steamID.accountid
×
×
  • Create New...