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.

Choosing between 2 Items

Featured Replies

How I can write that the bot should choose between one of this items?

if inventory"Jug of water", "Bucket of Water"
bank"Jug of water""Bucket of Water", 9;
    sleeprandom110, 320;

 

Thanks for any help!

Not sure if i put it into the right section.

Edited by HastyLife

int theItem = random(0,1);

if (theItem == 0) {

bank bucket of water

} else {

bank jug of water

}

  • Author
2 minutes ago, Lewis said:

int theItem = random(0,1);

if (theItem == 0) {

bank bucket of water

} else {

bank jug of water

}

Thanks gonna try it out.

On 4/15/2017 at 0:05 PM, HastyLife said:

Thanks gonna try it out.

That also works with nextBoolean() where you can just switch the true/false value. 

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.