Jump to content

Ge Cancel offer


Recommended Posts

Posted

This is a little piece of code I use for canceling box 1. First Widget is to open the trade, second is the cancel button.
You'd have to change the first set of widget ID's for each box

 

if (getGrandExchange().getStatus(GrandExchange.Box.BOX_1) == PENDING_BUY) {
                            getWidgets().interact(465, 7, 2, "View Offer");
                            sleep(random(1000, 2500));
                            getWidgets().interact(465, 23, 0, "Abort offer");
                            sleep(random(1000, 2500));
                            getGrandExchange().close();
                        }

 

  • Like 1

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