Jump to content

Trade Modification


Recommended Posts

Posted

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.

 

Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...