February 8, 20196 yr 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.
February 8, 20196 yr boolean didOtherAcceptTrade() Determines if the other player has accepted. https://osbot.org/api/org/osbot/rs07/api/Trade.html#didOtherAcceptTrade--
February 8, 20196 yr Author 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!
February 8, 20196 yr 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.
February 8, 20196 yr Author 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!
February 9, 20196 yr Author 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.
Create an account or sign in to comment