August 23, 201510 yr 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
August 23, 201510 yr Well you don't create a GrandExchange instance yourself, it's already there. import org.osbot.rs07.api.GrandExchange; .... grandExchange.buyItems(GrandExchange.Box.BOX_1);
August 24, 201510 yr Author 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));
August 24, 201510 yr Author I don't know if it works for you guys but with build .101, grandExchange is useless. I started rewriting the library by hand.
Create an account or sign in to comment