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.

How to set up cli parameters?

Featured Replies

java -jar "osbot 2.4.81.jar" -login xx:xx -bot zz:zz:1234 -debug 5005 -script tests:10,20

    String pars;
    String[] parsSplitted;

    @[member='Override']
    public void onStart() throws InterruptedException {
        if (getParameters() != null) {

            pars = getParameters();
            parsSplitted = pars.split(",");

            log("First param: " + parsSplitted[0]);
            log("Second param: " + parsSplitted[1]);

        }

    }

After logging in im getting this: 

[INFO][Bot #1][08/06 01:38:27 PM]: Terminating script tests...java.lang.NullPointerException


[INFO][Bot #1][08/06 01:38:27 PM]: Script tests has exited!     at main.onStart(main.java:37)


        at org.osbot.rs07.event.ScriptExecutor.IIIIIiiIIiIi(vi:251)

        at org.osbot.rs07.event.ScriptExecutor.start(vi:10)

        at org.osbot.C.run(ur:39)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)

[INFO][Bot #1][08/06 01:38:27 PM]: Started script : tests

Edited by nowster

  • Author

What is line 37?

log("Second param: " + parsSplitted[1]);

Edited by nowster

  • 3 weeks later...

Did you end up solving this nowster? 

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.