Jump to content

Grand Exchange


casual

Recommended Posts

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 :)

Link to comment
Share on other sites

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