Cipher Posted October 4, 2023 Report Share Posted October 4, 2023 Hello, While listening to 'sentOfferChanged' event using tradeoffer-manager I call offer.cancel(); method when the offer.state is 4 but when observed the offer is not canceled. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted October 4, 2023 Report Share Posted October 4, 2023 When you counter an offer, a new trade offer is created with a new ID, and the original's state is set to Countered. You need to cancel the new offer. Quote Link to comment Share on other sites More sharing options...
Cipher Posted October 5, 2023 Author Report Share Posted October 5, 2023 Then how can I get hold of the new offer? sentOfferChanged event gives the old offer and the previous state of that offer Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted October 5, 2023 Report Share Posted October 5, 2023 Assuming from your post context that you want to cancel counter offers that weren't sent by your bot, use the unknownOfferSent event. Unfortunately, there's no way using the data provided by Steam to link an offer to the original offer that was countered to create it. 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.