Jump to content


Photo

TradeOfferState

node.js node-steam-tradeoffer-manager

  • Please log in to reply
6 replies to this topic

#1 Zorenko

Zorenko

    Member

  • Member
  • PipPip
  • 13 posts

Posted 17 April 2019 - 10:15 AM

https://github.com/D...deOfferState.js

 

If a person received or send trade, he accepted it on the computer, need confirmation on the phone, what is this state?



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,070 posts

Posted 17 April 2019 - 07:44 PM

  • 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 likes this

#3 Zorenko

Zorenko

    Member

  • Member
  • PipPip
  • 13 posts

Posted 20 April 2019 - 10:10 AM

CreatedNeedsConfirmation not workig



#4 Zorenko

Zorenko

    Member

  • Member
  • PipPip
  • 13 posts

Posted 20 April 2019 - 10:11 AM

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



#5 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,070 posts

Posted 20 April 2019 - 01:47 PM

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.



#6 Zorenko

Zorenko

    Member

  • Member
  • PipPip
  • 13 posts

Posted 21 April 2019 - 04:28 AM

I read the documentation, there is no event associated with sendingOffer



#7 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,070 posts

Posted 22 April 2019 - 10:00 AM

Why would there be? You sent the offer, you should know that it was sent.







Also tagged with one or more of these keywords: node.js, node-steam-tradeoffer-manager

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users