Attacler
-
Posts
3 -
Joined
-
Last visited
Posts posted by Attacler
-
-
I used the wrong item id its fixed now!, thanks!
-
That example is old and won't work with v2 (v1 is now unsupported).
Code for sending an offer to a friend (without a trade token) with v2 looks like this:
var offer = manager.createOffer("[U:1:46143802]"); offer.addMyItem({"appid": 440, "contextid": "assetid": 1234567890}); offer.send(function(err, status) { if (err) { console.log(err); } else { console.log("Offer #" + offer.id + " " + status); } });
Hi there,
I use this method, but i keep getting error 26.
My code:
var offer = manager.createOffer(result[0].url); offer.addMyItem({"appid": 730, "contextid": 2,"assetid": result[0].itemid}); offer.send(function(err, status) { if (err) { console.log(err); } else { console.log("Offer #" + offer.id + " " + status); } });
the result[0].url is a steam trade url and the result[0].itemid is an item id, i have this ran after the bot setted his cookies.
Please help.
Bye,
Bart
How to createOffer properly?
in node-steam-tradeoffer-manager
Posted · Edited by Attacler
How can i confirm the trade?
i have this function:
but it says: Unable to accept offer null: Cannot accept an unsent offer.
If i try it after its send, it says that it cant confirm trade null, trade offer doesnt exist, but the trade offer is waiting for a confirmation
if i do it after console.log("Offer #" + offer.id + " " + status); , it says: Unable to accept offer 2282084226: Offer #2282084226 is not active, so it may not be accepted
Bye,
Bart