Jump to content
McKay Development

Recommended Posts

  • 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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...