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

Selling Loot Script Start

Featured Replies

Hi, I am making something fun, a script that sells the loot that I pick up from wherever I might be (i.e. wildy).

I have created two string "groups"

where Item group 5 consists of higher value and Item group 6 consists of lower value.

I want the script to sell the items from group 5 only to a certain number, and then want the script to sell Item group 6, the problem is the way I have written it I believe, for example I do not know how to get it to now go to sell ITEMS6. Where would I insert the code? 

 

Any help is appreciated and I understand this code might not be efficient, still trying to learn :) 

 

Below is the code;

 

if (getInventory().contains(ITEMS5)){
    if (getStore().contains(ITEMS5)){
        if (getStore().getAmount(ITEMS5) <= 4){
            getStore().sell(String.valueOf(ITEMS5), 1);
            new ConditionalSleep(250, 125) {
                @Override
                public boolean condition() throws InterruptedException {
                    return (getStore().getAmount(ITEMS5) >= 5);
                }
            }.sleep();

        }
    } else {
        if(!getStore().contains(ITEMS5)){
            getStore().sell(String.valueOf(ITEMS5), 5);
            new ConditionalSleep(250, 125) {
                @Override
                public boolean condition() throws InterruptedException {
                    return (getStore().getAmount(ITEMS5) >= 5);
                }
            }.sleep();
        }
    }
}

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

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.