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.

Quick question(s)

Featured Replies

3 questions i believe are fairly simple.

First question: (Main reason for posting)

How do i randomize my getWalking().webWalk? Every time my bot runs back from the bank to my "Area" that i have defined, he always stands on the same block upon reaching his destination. So how would i randomize this so that he always walks somewhere withing my defined area, but not to the same point every time?

 

Second question being: when i level up, how do i get the bot to click continue instead of ignoring it and continuing it's grind?

 

Third: Why is my onMessage not working? Tried several things and can't seem to get it to register at all.

	public void onMessage(String message)
    {
        if(message.contains("You get some willow logs."))
        {
            itemsGained++;
        }
    }
	

Edited by HexMurder

1. afaik webwalk is randomized

 

2. 

if (getDialogues().isPendingContinuation())
    getDialogues().clickContinue();

 

3. onMessage parameter is a Message object, you need to get the string first. fyi it also has other useful info: getTime(), getType(), getTypeId(), getUsername()

public void onMessage(Message m) throws InterruptedException {
    String message = m.getMessage();
}

 

1 hour ago, Stimpack said:

1. afaik webwalk is randomized

 

2. 


if (getDialogues().isPendingContinuation())
    getDialogues().clickContinue();

 

3. onMessage parameter is a Message object, you need to get the string first. fyi it also has other useful info: getTime(), getType(), getTypeId(), getUsername()


public void onMessage(Message m) throws InterruptedException {
    String message = m.getMessage();
}

 

Also make sure to do a check to see if m != null as it does become null sometimes.

Edited by Prozen

1 hour ago, Prozen said:

Also make sure to do a check to see if m != null as it does become null sometimes.

good to know. curious, in which kinds of situations would this happen?

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.