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.

Pick up items above X gp

Featured Replies

Im making a wilderness looting script. I was wondering if it is possible to make it pickup all items above X gp?

  • Find items.
  • Grab prices for items.
  • Cache them.
  • Calculate whether item is worth taking.
  • Take item.
6 minutes ago, liverare said:
  • Find items.
  • Grab prices for items.
  • Cache them.
  • Calculate whether item is worth taking.
  • Take item.

the cashe part is most likely the most inportant part :) otherwise script will be slow af

Anything is possible

 

-Barnical Boy

@MarWo22 I have a looting script i can just give you the source code too its not completed still needs to have banking completed, and some other stuff but u can rip what u want from it, it can grab prices of all in game items, and has a price setting in GUI so it will only loot items that are more then whatever you set it too, just send me a PM if u want it or not.

Something like this should work, but you'd need to check that your price grabber always returns an integer.

HashMap<String, Integer> itemPrices = new HashMap<>();
  
  private Integer getPrice(String item){
        Integer itemPrice;
        if (itemPrices.containsKey(item))
            return itemPrices.get(item);
        else {
           itemPrice = yourGetPriceMethod(item);
           itemPrices.put(item, itemPrice);
        }
        return itemPrice;
    }

 

10 hours ago, HeyImJamie said:

Something like this should work, but you'd need to check that your price grabber always returns an integer.


HashMap<String, Integer> itemPrices = new HashMap<>();
  
  private Integer getPrice(String item){
        Integer itemPrice;
        if (itemPrices.containsKey(item))
            return itemPrices.get(item);
        else {
           itemPrice = yourGetPriceMethod(item);
           itemPrices.put(item, itemPrice);
        }
        return itemPrice;
    }

 

You should have 2 levels of cache. First one pulls all the prices and you store it in some data structure. The second one would be this ^.

You don't want to make an x number of GET requests while botting.

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.