Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3392
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. if (offer.itemsToGive.length == 0 && offer.itemsToReceive.length > 0) { offer.accept(); } Use that inside of the newOffer event. If you don't know how to do that, check out the examples in the GitHub repo.
  2. Call it by its proper name, "wear value" please. You can't get it from the steamcommunity site, you have to get it from the WebAPI, which is very unreliable.
  3. if (offer.itemsToGive.length > 0) { // There are more than 0 items in itemsToGive, so the user requested some items offer.decline(); }
  4. The profile will only show the first game, but the "recently played" section will show all of them.
  5. You can parse a JSON file in Node using just require('./file.json') It's up to you what you put in it and how you handle it.
  6. sentOfferChanged will be emitted when the offer is accepted or declined.
  7. sentOfferChanged is emitted when an offer you sent changes. receivedOfferChanged is emitted when an offer you received changes.
  8. What's wrong with the multitude of other threads you have asking this question?
  9. You're not returning in your if (err) block, so it'll continue as if nothing was wrong if there was a logon error.
  10. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
  11. Show your code. If your code is right, then your secret or your clock is wrong, or you're trying to reuse a code.
  12. market_hash_name is typically the English version of market_name, but not always (e.g. Steam trading cards, backgrounds, and emoticons have their market_hash_names prefixed with the appid of the owning app). Also note that unmarketable items aren't guaranteed to have a market_hash_name or market_name (they always will for Valve games, at the present moment). Outside of those exceptions, market_hash_name is a good candidate for identifying an item. The item's assetid is just how you refer to the item when you're trading and such. It's unique for every single item in the game, and it changes when you trade it.
  13. Your session probably expired. Listen for the sessionExpired event and login again when it's emitted.
  14. Grab the tradeID property from that offer, then log into Steam as the account which is receiving those items and go to https://steamcommunity.com/trade/tradeid/receipt where tradeid is the tradeID number. Does it list all the items?
  15. Right. The recipient starts accepting the offer, something breaks, and Steam rolls back the items that it already transferred. The offer stays as Active at this time, but since the rolled back items have new IDs, the next time you open the offer page, it's InvalidItems.
  16. https://nodejs.org/api/events.html#events_emitter_removelistener_eventname_listener
  17. There are a few guides for extracting the details from your phone using a backup. Google around for one, I don't know where to find one off-hand.
×
×
  • Create New...