Jump to content

Accept when someone sends a trade?


Bobrocket

Recommended Posts

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.

 

Link to comment
Share on other sites

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.

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