Skip to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Don't understand PriceLookup

Featured Replies

40 minutes ago, sudoinit6 said:

So I need to figure out how to make use of this:

 

https://osbot.org/forum/topic/115417-item-id-tofrom-name-api-revised-pricelookup-api/#comment-1297366

 

 

Difficulty: I don't really know java.

 

Do I need to add a class to my script? Add something to my build path? Could someone please explain to me how to incorporate this into my scripts?

It's going to be hard to do stuff like this if you do not understand java. Please consider actually learning Java first :D

1 hour ago, Eagle Scripts said:

It's going to be hard to do stuff like this if you do not understand java. Please consider actually learning Java first :D

 

  • Author

I figured it out. Just needed to play with it I guess.

21 minutes ago, Eagle Scripts said:

It's going to be hard to do stuff like this if you do not understand java. Please consider actually learning Java first :D

You can't make me! :)

 

If you want something easy just use this:

    private static int getPrice(final int id){
        try {
            URL url = new URL("http://api.rsbuddy.com/grandExchange?a=guidePrice&i=" + id);
            URLConnection con = url.openConnection();
            con.setUseCaches(true);
            BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream()));
            String[] data = br.readLine().replace("{", "").replace("}", "").split(",");
            return Integer.parseInt(data[0].split(":")[1]);
        } catch(Exception e){
        	
        }
        return -1;
    }

put in the Item ID when you use it and if the item is tradeable it will return the osb price, if not it will return -1.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.