
A possible cause is that you logged into this account from a browser on another computer. Node-steam-trade has received a bad response while polling, assumed that your cookie has expired, and stopped polling. Stops polling if succeeds, so no 'end' event will be emitted. Will silently fail if either side is not ready. Presses the big green "Make Trade" button. Again, use the callback if you want to confirm as well. It will be provided an array of responses - one for each added item, in the same order. callback will be called once all the items have been added. addItems(items, )Īdds the specified items from your inventory. If you are adding multiple items, async.each or async.map might be useful. Readying won't work if any of your added items' callbacks haven't fired yet. If you want to add a certain amount, modify the item's amount property. If the item is stackable (Spiral Knights crap), it will add the whole available amount. addItem(item, )Īdds the specified item from your inventory. Use callback if you want to add some items immediately after opening the trade. Don't use any other methods until you've opened a trade. The trade handshake must have completed at this point - in node-steam, listen for a sessionStarted event. Initializes a trade with the specified SteamID. Failure implies that your cookie has expired (see 'error' event). The first argument to callback will be the g_rgAppContextData object extracted from the trading page (its structure can be more easily understood from a look at it rather from a description) in case of success, otherwise a falsy value. The first argument to callback will be an array of item objects in case of success, otherwise a falsy value. The specified inventory must already exist for this account, use getContexts if you need to check it at runtime. For example, use 440 and 2 for TF2, or 570 and 2 for Dota 2. Loads your inventory for the given app and context. loadInventory(appid, contextid, callback) You can either log into manually, or, if using node-steam, use the WebAPI's AuthenticateUser method. SteamTrade needs the "steamLogin" and "sessionid" cookies to operate. Sets a cookie that must be in the "name=value" form. Your trade partner's SteamID if a trade is ongoing or was interrupted (see 'error' event), otherwise a falsy value. The order of items in the array corresponds to their order in the trade window, but empty spaces are not preserved. themAssetsĪn array of the other party's offered items. Must match the value of the "sessionid" cookie. You can use it for error checking: if something went wrong, res.success will be false and res.error should be a human-readable string. Unless specified otherwise, callbacks receive the parsed JSON response from Steam as the first argument ( res in this example). Trading with this ratio (ex.Var SteamTrade = require ( 'steam-trade' ) var steamTrade = new SteamTrade ( ) īefore you use it, make sure it has the necessary session information. Willing/want/wish to gift, alternatively Want to get Other items that cannot be traded include tokens and minerals. Materials bought from Brinks do not bind. The description of a bound item will include the sentence "This item is bound to you." Items that have been equipped will bind to the knight who wear them, and equipment bought from Brinks for tokens is also bound to its owner. Items which are bound to a knight cannot be traded. At any time, either knight may click the red x in the top right corner to cancel the trade.

When both sides have clicked Confirm, the trade goes through.

The button cannot be pressed for about three seconds after the other knight has made a change. If you have clicked Confirm and the other knight changes their items, it will automatically undo the Confirm on your side so you can review any changes.
#Spiral knights steam trading windows#
This will change the arrow between the trade windows white. If you deem the trade terms acceptable, click Confirm. If you do not have 10 of that item, then all of the pieces will be added/removed. To add or remove 10 of an item at a time, hold down the SHIFT or CTRL key while clicking on the item. Click on the item in the trade window to remove one from the trade. Once all of an item has been moved to the trade window, a 0 will appear on the item in your arsenal. Unlike materials and other items, recipes do not stack and each one will take up a separate slot. Regardless of how many items you click on, the trade window can only hold the first 15. If the trade includes crowns or energy, type the number into the space next to the appropriate symbol. Simply click the item in the arsenal to move it to the trade screen. The trade window will open on the left side of the screen, and your arsenal will automatically open on the right. The trade window (top) and chat confirmation of the trade (bottom).
