- Joined
- Sep 11, 2015
- Messages
- 3
- Thread Author
- #1
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:
But I'm not really sure how to use it. I assumed I should change this to resemble
or
But I am getting this error
So what instance do I need to create to use that function?
Any help would be greatly appreciated,
Thanks
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

So what instance do I need to create to use that function?
Any help would be greatly appreciated,
Thanks