Jump to content

Return Value?


Recommended Posts

Posted
2 minutes ago, Malcolm said:

getGrandExchange().getOverallPrice(int ID); 

What does this actually return? @Patrick

 

d9b193fb0bfefaafbf36dbb588c7c354.png

If I am correct (and what I've used it for) I think this returns the overall value of the item in the GE (not the actual listed price) but I'm not 100% sure. 

If this is the case it would make any OSBuddy import prices redundant.  

 

the value displayed in the ge interface

Posted
18 minutes ago, Malcolm said:

That can't be as I've tested it and it returns something different than that.

keyboard.typeString(""+getGrandExchange().getOverallPrice(2353));

ff599a3e32c7dc841b86c2a033742c6c.png

nvm i just saw the code.

It pulls from this url with gson

https://storage.googleapis.com/osbuddy-exchange/summary.json

and returns the price

 

do keep in mind that prices always fluctuate 

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...