randomuser101 Posted December 30, 2018 Share Posted December 30, 2018 Hi, First time messing with OS-Bot but more than familiar with Java. I am currently trying to find a nice way to check if a trade has been modified. Right now, my method of checking the trade inputs, sleeping then checking if they have change is not optimal and has exploits. I cannot find a getTrade().isModified() on the docs. Can someone help out here? We're dealing with coins by the way. If the amount of coins changes at any point in the trade, I want to instant decline. Quote Link to comment Share on other sites More sharing options...
NoxMerc Posted December 31, 2018 Share Posted December 31, 2018 Use the Widgets debugging tool to find the appropriate widget to indicate a trade has been modified. If I recall right the modification is shown by a red and text letting you know to double-check. You can scan for the existence of the text, or the sprite of the Quote Link to comment Share on other sites More sharing options...
liverare Posted December 31, 2018 Share Posted December 31, 2018 I don't think a listener is necessary: IF trade window = OPEN IF trade window = ACCEPTED WAIT ELSE IF trade items = VERIFIED DO trade accept ELSE IF trade is taking fucking ages DO trade decline You could have a counter tally up the amount of times you've hit 'accept' for somebody who's trying to scam you, then forcefully decline the trade and blacklist that player so that your bot doesn't spend 10 hours trying to deal with the same guy. Quote Link to comment Share on other sites More sharing options...