Nor3g Posted February 8, 2019 Share Posted February 8, 2019 So the bot goes to trade, in the second trading window it accepts the trade and waits for the other player to accept as well. Is there an easy way to check if the other player accepted the trade? Because in this scenario, if the other player either denies or accepts the trade, the trade window closes. Quote Link to comment Share on other sites More sharing options...
Muffins Posted February 8, 2019 Share Posted February 8, 2019 boolean didOtherAcceptTrade() Determines if the other player has accepted. https://osbot.org/api/org/osbot/rs07/api/Trade.html#didOtherAcceptTrade-- 1 Quote Link to comment Share on other sites More sharing options...
Nor3g Posted February 8, 2019 Author Share Posted February 8, 2019 14 minutes ago, Muffins said: boolean didOtherAcceptTrade() Determines if the other player has accepted. https://osbot.org/api/org/osbot/rs07/api/Trade.html#didOtherAcceptTrade-- Thank you so much! I read the API and understood it as if this was during the trade window and not after, however I think I understand how I can make it work now! You've been great help! 1 Quote Link to comment Share on other sites More sharing options...
IDontEB Posted February 8, 2019 Share Posted February 8, 2019 5 minutes ago, Nor3g said: Thank you so much! I read the API and understood it as if this was during the trade window and not after, however I think I understand how I can make it work now! You've been great help! Listen to the chatbox and sleep until the msg "trade successful" or whatever it says exactly and if you see it then it's true. 1 Quote Link to comment Share on other sites More sharing options...
Nor3g Posted February 8, 2019 Author Share Posted February 8, 2019 5 minutes ago, IDontEB said: Listen to the chatbox and sleep until the msg "trade successful" or whatever it says exactly and if you see it then it's true. Thank you! I can try this as well! Quote Link to comment Share on other sites More sharing options...
Nor3g Posted February 9, 2019 Author Share Posted February 9, 2019 1 hour ago, Malcolm said: It may not be the best practice but when I deal with trading I wait to see if they've accepted the trade and then I accept the trade based on them accepting it. Yes but that won't work if they are both waiting to see if the other one accepted the trade, and in my scenario it's actually two bots trading eachother so both of them checking won't work. 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.