Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Question Getting item prices from the grand exchange

Joined
Sep 11, 2015
Messages
3
So it is a simple question but, maybe due to my inexperience in Java, but I can't figure out how to get the price of an item.

The documentation says there is a getPrice function in the GrandExchange.Item class.
So I have this code:
Code:
int lobsterPrice = GrandExchange.Item.getPrice();

But I'm not really sure how to use it. I assumed I should change this to resemble
Code:
int lobsterPrice = GrandExchange.Item.ITEMNAME.getPrice();

or

Code:
int lobsterPrice = GrandExchange.Item.getPrice(ITEMNAME);

But I am getting this error
9ceZmsO.png

So what instance do I need to create to use that function?

Any help would be greatly appreciated,
Thanks
 
Top