Jump to content

Grand Exchange


Recommended Posts

Posted

I started experimenting with GE and

	public void onStart(){
		GrandExchange x = new GrandExchange();
		x.buyItems(BOX_1);
	}

It says 'BOX_1' cannot be resolved to a variable, but that variable cannot be created anyhow. At least I get a bunch of errors everytime I try.

 

If you have any GE related snippets I'd highly appreciate it :)

Posted

Thanks, okay. buyItems() opens the buying interface but afterwards none of the methods work:

 

getItemPrice() always returns 0

confirm() does not click on confirm button

getAmountSpent() always returns 0

setItemPrice() opens up the interface but does not set the price

 

so it's all messed up right now

 

Even though I managed to mimic button clicks, I hardly can extract the prices myself. 

 

code example:

log(grandExchange.getItemPrice(GrandExchange.Box.BOX_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...