Zorenko Posted April 17, 2019 Report Share Posted April 17, 2019 https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/blob/master/resources/ETradeOfferState.js If a person received or send trade, he accepted it on the computer, need confirmation on the phone, what is this state? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted April 18, 2019 Report Share Posted April 18, 2019 If it's a trade you sent but haven't confirmed yet, that's CreatedNeedsConfirmation. The other party can't see it. If it's a trade you received that you accepted but haven't confirmed yet, it's still Active. The confirmationMethod property is how you can tell if an incoming trade has an outstanding confirmation. Zorenko 1 Quote Link to comment Share on other sites More sharing options...
Zorenko Posted April 20, 2019 Author Report Share Posted April 20, 2019 CreatedNeedsConfirmation not workig Quote Link to comment Share on other sites More sharing options...
Zorenko Posted April 20, 2019 Author Report Share Posted April 20, 2019 manager.on('newOffer', function(offer) { if (offer.state == 9) { console.log('Offer Sented'); } }); manager.on('sentOfferChanged', function(offer) { if (offer.state == 9) { console.log('Offer Sented'); } }); manager.on('receivedOfferChanged', function(offer) { if (offer.state == 9) { console.log('Offer Sented'); } }); When I send a trade, not a single log does not come Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted April 20, 2019 Report Share Posted April 20, 2019 Of course that isn't going to work. No incoming trades that you can see will ever be in state 9 (CreatedNeedsConfirmation), so newOffer and receivedOfferChanged aren't going to emit with that state. Trades that you send that require confirmation are created in state 9, so sentOfferChanged isn't going to emit with that state because a trade can't change into state 9. Quote Link to comment Share on other sites More sharing options...
Zorenko Posted April 21, 2019 Author Report Share Posted April 21, 2019 I read the documentation, there is no event associated with sendingOffer Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted April 22, 2019 Report Share Posted April 22, 2019 Why would there be? You sent the offer, you should know that it was sent. Quote Link to comment Share on other sites More sharing options...
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.