Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3591
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. promptSteamGuardCode is an option that must be set in the constructor, not in the logOn call.
  2. 1. For authenticating users through Steam's OpenID provider, you can use the attached PHP class. I don't know where it originally came from, but it works well (although it could benefit from being updated to use curl instead of file_get_contents). This particular version of it was edited by me to authenticate the return domain, otherwise you could be vulnerable to spoof attacks. For logging in a bot to Steam, you can use steam-user or steamcommunity. Or if you really want to, you can look at the source of those to see what they do to implement it yourself. 2. It polls however frequently you tell it to. The rate-limit on the API domain is much higher than on the community domain. You can reasonably safely poll every 1-2 seconds, although for sake of being a good citizen, you probably don't want to do that. SteamSignIn.php
  3. loadUserInventory is deprecated. Use getUserInventoryContents instead.
  4. Try installing from npm now; you shouldn't have any issues. You might need to manually specify the version: npm install [email protected]
  5. 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.
  6. market_hash_name will be present on every trading card.
  7. 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.
  8. 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.
  9. 30 active outgoing total, 5 active outgoing to a single user.
  10. Node version? npm version? steam-user version? OS? OS version?
  11. 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.
  12. 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.
  13. 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.
  14. 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.
  15. You'd need to retrieve the TradeOffer object using getOffer or getOffers then call cancel() on that object.
  16. Even with a user's consent, you should absolutely not be logging into their account.
  17. 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.
  18. 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.
  19. I can't reproduce this. You say it only happens sometimes, not all the time for the same item?
  20. 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.
  21. 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.
  22. The npm name is just steamcommunity.
×
×
  • Create New...