Jump to content

Return Value?


Malcolm

Recommended Posts

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.  

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 

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