-
Posts
3543 -
Joined
-
Last visited
Everything posted by Dr. McKay
-
Missing actions on offer.getReceivedItems
Dr. McKay replied to Katapoka's topic in node-steam-tradeoffer-manager
https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOffer#getreceiveditemsgetactions-callback -
Cancel offer if user wants to select bot items
Dr. McKay replied to joaolucas89's topic in node-steam-tradeoffer-manager
Please, just read the documentation. -
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.
-
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.
-
Cancel offer if user wants to select bot items
Dr. McKay replied to joaolucas89's topic in node-steam-tradeoffer-manager
It's emitted when a new offer is received. Please read the wiki. -
Cancel offer if user wants to select bot items
Dr. McKay replied to joaolucas89's topic in node-steam-tradeoffer-manager
if (offer.itemsToGive.length > 0) { // There are more than 0 items in itemsToGive, so the user requested some items offer.decline(); } -
The profile will only show the first game, but the "recently played" section will show all of them.
-
sentOfferChanged will be emitted when the offer is accepted or declined.
-
sometimes inventory assetids change
Dr. McKay replied to speedy's topic in node-steam-tradeoffer-manager
That's not an offer state, it's an EResult. -
Receive right event offer name
Dr. McKay replied to joaolucas89's topic in node-steam-tradeoffer-manager
sentOfferChanged is emitted when an offer you sent changes. receivedOfferChanged is emitted when an offer you received changes. -
Only accept certain trade offers
Dr. McKay replied to timgfx's topic in node-steam-tradeoffer-manager
What's wrong with the multitude of other threads you have asking this question? -
Cookies sometimes undefined after login following session expired?
Dr. McKay replied to Bheem's topic in node-steamcommunity
You're not returning in your if (err) block, so it'll continue as if nothing was wrong if there was a logon error. -
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
-
Question Auth into steam through steamcommunity.com site
Dr. McKay replied to Swampshark's topic in General
Show your code. If your code is right, then your secret or your clock is wrong, or you're trying to reuse a code. -
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.
-
startConfirmationChecker sometimes glitches
Dr. McKay replied to kaikash's topic in node-steam-tradeoffer-manager
Your session probably expired. Listen for the sessionExpired event and login again when it's emitted.- 1 reply
-
- node.js
- node-steam-tradeoffer-manager
-
(and 1 more)
Tagged with:
-
sometimes inventory assetids change
Dr. McKay replied to speedy's topic in node-steam-tradeoffer-manager
https://steamerrors.com/11 -
sometimes inventory assetids change
Dr. McKay replied to speedy's topic in node-steam-tradeoffer-manager
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. -
https://nodejs.org/api/events.html#events_emitter_removelistener_eventname_listener