Jump to content

Accept when someone sends a trade?


Recommended Posts

Posted

In short, I want to be able to accept a trade when someone sends it. Is there any way to do this without using onMessage?

 

Thanks QwPha8E.png

I've never used this before, but just from looking at the api http://osbot.org/api/ in the trade section, it looks like it will be something like:

if(trade.getTheirOffers() == itemYouWant)
trade.acceptTrade();

Although i'm not sure what geetTheirOffers returns, so I don't know howt o check it.

 

Posted

I've never used this before, but just from looking at the api http://osbot.org/api/ in the trade section, it looks like it will be something like:

if(trade.getTheirOffers() == itemYouWant)
trade.acceptTrade();

Although i'm not sure what geetTheirOffers returns, so I don't know howt o check it.

 

What I mean is initiate a trade when I am traded. I know how to accept the trade, but when someone requests a trade. Sorry for being confusing.

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...