Jump to content

GrandExchange functions


Recommended Posts

Posted (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 by ForcaNL
Posted (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 by Explv

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...