Jump to content

Trade Modification


randomuser101

Recommended Posts

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.

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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