casual Posted August 23, 2015 Posted August 23, 2015 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
Flamezzz Posted August 23, 2015 Posted August 23, 2015 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); 1
casual Posted August 24, 2015 Author Posted August 24, 2015 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));
casual Posted August 24, 2015 Author Posted August 24, 2015 I don't know if it works for you guys but with build .101, grandExchange is useless. I started rewriting the library by hand.