botsbytim Posted February 19, 2017 Report Posted February 19, 2017 I know theres a listener for new confirmations and all, I've tried making it myself but couldn't get it to work. Not at my main system right now so cant provide the code I had written. Help is appreciated Quote
Dr. McKay Posted February 20, 2017 Report Posted February 20, 2017 You can use acceptConfirmationForObject. Quote
botsbytim Posted February 21, 2017 Author Report Posted February 21, 2017 You can use acceptConfirmationForObject.I just tried and and used newConfirmation. Does the listener require checkConfirmations() to be fired to emit confirmations? Quote
botsbytim Posted February 21, 2017 Author Report Posted February 21, 2017 You can use acceptConfirmationForObject.https://gyazo.com/f03fa60a6cdab4307adcd55b968fe3cd That error is thrown after I call checkConfirmations().. Quote
Dr. McKay Posted February 21, 2017 Report Posted February 21, 2017 You have to use startConfirmationChecker before you use checkConfirmations, but I don't generally recommend that anymore due to Steam load concerns. Quote
maraya Posted February 22, 2017 Report Posted February 22, 2017 i use like this, but not work. // Create and send the offervar offer = manager.createOffer("https://steamcommunity.com/tradeoffer/new/?partner=1212121&token=xyxyxyxy");offer.addMyItems(inventory);offer.setMessage("Here, have some items!");offer.send(function(err, status) {if (err) {console.log(err);return;} if (status == 'pending') {// We need to confirm itconsole.log('Offer ' + offer.id +' sent, but requires confirmation');community.acceptConfirmationForObject("my identify_secret", offer.id, function(err) {if (err) {console.log(err);} else {console.log("Offer confirmed");}});} else {console.log('Offer '+ offer.id +' sent successfully');}}); Quote
botsbytim Posted February 22, 2017 Author Report Posted February 22, 2017 i use like this, but not work. // Create and send the offervar offer = manager.createOffer("https://steamcommunity.com/tradeoffer/new/?partner=1212121&token=xyxyxyxy");offer.addMyItems(inventory);offer.setMessage("Here, have some items!");offer.send(function(err, status) {if (err) {console.log(err);return;} if (status == 'pending') {// We need to confirm itconsole.log('Offer ' + offer.id +' sent, but requires confirmation');community.acceptConfirmationForObject("my identify_secret", offer.id, function(err) {if (err) {console.log(err);} else {console.log("Offer confirmed");}});} else {console.log('Offer '+ offer.id +' sent successfully');}}); The confirmation's ID isnt the same as the trade id. Make it check confirmations if the status is pending and use the newConfirmation listener which emits a confirmation object. Then use CConfimation.id as offer id and accept it using that. Quote
Dr. McKay Posted February 22, 2017 Report Posted February 22, 2017 The confirmation's ID isnt the same as the trade id. Make it check confirmations if the status is pending and use the newConfirmation listener which emits a confirmation object. Then use CConfimation.id as offer id and accept it using that. acceptConfirmationForObject takes care of finding the correct confirmation for a given offer ID. @maraya: What's your output? Quote
maraya Posted February 23, 2017 Report Posted February 23, 2017 (edited) @Dr. McKay.nothing. and always awaiting mobile confirmation or do you have any part script for auto accpet mobile confirmation? Edited February 23, 2017 by maraya Quote
Dr. McKay Posted February 23, 2017 Report Posted February 23, 2017 console.log('Offer ' + offer.id +' sent, but requires confirmation'); console.log('Offer '+ offer.id +' sent successfully'); Neither of these are running? Quote
maraya Posted February 23, 2017 Report Posted February 23, 2017 (edited) this is my code; http://pastebin.com/J8Q5JLS8output ==> -removed- and still awaiting confirm. Edited February 23, 2017 by Dr. McKay Removed screenshot Quote
Dr. McKay Posted February 23, 2017 Report Posted February 23, 2017 Your screenshot showed your API key, so I removed it. It doesn't look like you're sending a trade offer at all in your screenshot. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.