Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3408
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. Fetch the inventory for only tradable items, then call addTheirItems with the raw array of items. I believe there is an example in the repo that does exactly this.
  2. The numbers which precede the market_hash_name are indeed the item's corresponding appid. All trading cards have that. You can also use the market_fee_app property.
  3. You could if you had some kind of delimiter, but I don't know why you'd want to do that. You can't just naively assign the same data to multiple bots' pollData property.
  4. Node version? npm version? steam-user version? OS? OS version?
  5. For #1, do you want to log users into your site using their Steam accounts, or do you want to login to Steam using a bot? For #2, you can use steam-tradeoffer-manager. At a low level, it's just polling requests to an API endpoint.
  6. You're trying to send an offer without putting any items in it. My guess is that there's no matching item in your inventory when you loop it to find the item.
  7. Line 53: if(offer.itemsToGive.length!=0) offer.itemsToGive.length will never not be zero immediately after you create the offer. All offers start empty.
  8. It looks like your Steam Guard Mobile Authenticator is providing incorrect Steam Guard codes. This could be caused by an inaccurate clock or bad timezone settings on your device.
  9. You'd need to retrieve the TradeOffer object using getOffer or getOffers then call cancel() on that object.
  10. Even with a user's consent, you should absolutely not be logging into their account.
  11. There is no way you can login to a user's account without asking for their password. You shouldn't even be trying to do this in the first place.
  12. No, not really. I see in your output that tradable is also false (which obviously cannot be true if it's in a trade offer). You may consider just failing the entire trade and trying again later if any item has that property as false.
  13. I can't reproduce this. You say it only happens sometimes, not all the time for the same item?
  14. You can get your friends list from the myFriends property, by enumerating the object and pulling SteamIDs which have a friend relationship of Friend, example: Object.keys(user.myFriends).forEach(function(steamid) { if (user.myFriends[steamid] == SteamUser.EFriendRelationship.Friend) { // this guy is a friend } }); You can pretty easily push those SteamIDs into an array and then pull a random value from the array.
  15. It's possible Steam occasionally returns bad information (wouldn't be unheard of). It would be more helpful to have a full json dump of the item in question when this happens.
  16. node-steamstore has a method which retrieves that URL. But yes, please do open an issue on GitHub (linking to this thread) about this as there should be some level of support for distinguishing family-shared games.
×
×
  • Create New...