Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3544
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. It's possible to extract that data from a backup of your phone. Google around a little bit, I'm not 100% certain how to do so myself as I've never needed to.
  2. https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOffer#getreceiveditemsgetactions-callback
  3. 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.
  4. 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.
  5. It's emitted when a new offer is received. Please read the wiki.
  6. if (offer.itemsToGive.length > 0) { // There are more than 0 items in itemsToGive, so the user requested some items offer.decline(); }
  7. The profile will only show the first game, but the "recently played" section will show all of them.
  8. 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.
  9. sentOfferChanged will be emitted when the offer is accepted or declined.
  10. sentOfferChanged is emitted when an offer you sent changes. receivedOfferChanged is emitted when an offer you received changes.
  11. What's wrong with the multitude of other threads you have asking this question?
  12. You're not returning in your if (err) block, so it'll continue as if nothing was wrong if there was a logon error.
  13. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
  14. Show your code. If your code is right, then your secret or your clock is wrong, or you're trying to reuse a code.
  15. 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.
  16. Your session probably expired. Listen for the sessionExpired event and login again when it's emitted.
  17. 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?
  18. 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.
  19. https://nodejs.org/api/events.html#events_emitter_removelistener_eventname_listener
×
×
  • Create New...