ForcaNL Posted December 30, 2015 Share Posted December 30, 2015 (edited) Hey guys, I've been looking around in the Grand Exchange API and I stumbled on a something I didn't understand. It's about the grandExchange.getStatus part; how can I make an if statement asking if my sale is finished? I tried using if (grandExchange.getStatus(Box.BOX_1).FINISHED_BUY) but that didn't seem to work. (I'm sorry if this is a newbie mistake) Edited December 30, 2015 by ForcaNL Quote Link to comment Share on other sites More sharing options...
Explv Posted December 30, 2015 Share Posted December 30, 2015 (edited) Hey guys, I've been looking around in the Grand Exchange API and I stumbled on a something I didn't understand. It's about the grandExchange.getStatus part; how can I make an if statement asking if my sale is finished? I tried using if (grandExchange.getStatus(Box.BOX_1).FINISHED_BUY) but that didn't seem to work. (I'm sorry if this is a newbie mistake if(getGrandExchange().getStatus(GrandExchange.Box.BOX_1) == GrandExchange.Status.FINISHED_BUY) Or if you import these: import org.osbot.rs07.api.GrandExchange.Status; import org.osbot.rs07.api.GrandExchange.Box; You can just do: if(getGrandExchange().getStatus(Box.BOX_1) == Status.FINISHED_BUY) Edited December 30, 2015 by Explv Quote Link to comment Share on other sites More sharing options...
Token Posted December 30, 2015 Share Posted December 30, 2015 try if (grandExchange.getStatus(GrandExchange.Box.BOX_1) == GrandExchange.Status.FINISHED_BUY) Quote Link to comment Share on other sites More sharing options...