Jump to content

GrandExchange functions


ForcaNL

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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