Lewis Posted November 21, 2016 Posted November 21, 2016 Looking to find out how to tell the difference between these 4 GE slot statuses tried widgets but cannot find the correct one, any help is appreciated
Explv Posted November 21, 2016 Posted November 21, 2016 Looking to find out how to tell the difference between these 4 GE slot statuses tried widgets but cannot find the correct one, any help is appreciated You can get the status for a specific box like so: GrandExchange.Status status = getGrandExchange().getStatus(GrandExchange.Box.BOX_1); Where the Box value is from BOX_1 to BOX_8: And the status' returned are: INITIALIZING_SALE FINISHED_SALE CANCELLING_BUY INITIALIZING_BUY COMPLETING_SALE PENDING_BUY FINISHED_BUY CANCELLING_SALE PENDING_SALE COMPLETING_BUY EMPTY 5
Lewis Posted November 21, 2016 Author Posted November 21, 2016 You can get the status for a specific box like so: GrandExchange.Status status = getGrandExchange().getStatus(GrandExchange.Box.BOX_1); Where the Box value is from BOX_1 to BOX_8: And the status' returned are: INITIALIZING_SALE FINISHED_SALE CANCELLING_BUY INITIALIZING_BUY COMPLETING_SALE PENDING_BUY FINISHED_BUY CANCELLING_SALE PENDING_SALE COMPLETING_BUY EMPTY how would an if statement such as if pending_sale look like
Explv Posted November 21, 2016 Posted November 21, 2016 how would an if statement such as if pending_sale look like if (getGrandExchange().getStatus(GrandExchange.Box.BOX_1) == GrandExchange.Status.PENDING_SALE) { }
Lewis Posted November 21, 2016 Author Posted November 21, 2016 if (getGrandExchange().getStatus(GrandExchange.Box.BOX_1) == GrandExchange.Status.PENDING_SALE) { } thank you