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.

Black screen upon booting OSBot 2.5.7

Featured Replies

Hello, Upon trying to teach a friend of mine java with this botting framework I found this error and am quite confused!

Basically we are running the same code that has always worked but upon testing our script recently after a break(Very minimal but I am wondering if this is a recent issue)

we come across this black screen. https://i.imgur.com/C33IW7L.png

What on earth have I done to bork it? Or is this a common issue. I will provide any source if needed but it is using basic classes extending MethodProvider with the safe exchangemethod (onStart) provided by explv

package Script;

import Tasks.GetBond;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import Methods.*;

@ScriptManifest(author = "Schepto", name = "Schepto", info = "", version = 1, logo = "")
public final class Main extends Script
{
    private Initialize init = new Initialize(); // Initialization logic to be ran onStart
    private Evaluate eval = new Evaluate();     // Evaluation logic to determine needed Tasks
    private Lib lib = new Lib();                // Library of generic functions and methods.
    private GetBond bond = new GetBond();


    private void ExchangeContext() {
        init.exchangeContext(getBot());
        eval.exchangeContext(getBot());
        lib.exchangeContext(getBot());
        bond.exchangeContext(getBot());
    }

    @Override
    public final void onStart() { // Happens only once when you first start the bot and after it logs in
        ExchangeContext(); // This must always be first, Prevents NullPointers via black magic.
        try {
            init.Init(); // Initialization
        }
        catch (NullPointerException n) { // Error Handling
            log("Null Pointer, Check for missing exchangeContext's " + n);
        }
    }

    @Override
    public final int onLoop() { // Gets executed once every 1~2s
        int randomDelay = random(1000, 2000); // Assigning a local var each iteration is faster then re-rolling into a global field.
        // Main logic body
        try {
            bond.Run();
        }
        // Error handling
        catch (NullPointerException n) {
            log(n.getCause() + " " + n.getMessage());
        }
        return randomDelay;
    }
}

 

package Methods;

import org.osbot.rs07.api.map.constants.Banks;
import org.osbot.rs07.api.model.RS2Object;
import org.osbot.rs07.script.MethodProvider;

public class Lib extends MethodProvider {

    private void find_bank() {
        walking.webWalk(Banks.LUMBRIDGE_UPPER);
    }

    private void withdraw_item(String item, Integer amount) {
        try {
            if (!bank.open()) {
                find_bank();
                RS2Object booth = objects.closest("Bank booth");
                if (booth != null) {
                    booth.interact();
                }
            } else {
                log("Withdrawing " + amount + " " + item);
                bank.withdraw(item, amount);
            }
        } catch (InterruptedException error) {
            log(error);
        }
    }

    protected void withdraw_item(String item) {
        withdraw_item(item, 1);
    }
}

 

  • Author

 

2 minutes ago, devilsouler said:

Cause osbot hasn't updated yet be patient till new update

Yay!!! Thank you so much. I was hoping this was not on me

Edited by Schepto

1 minute ago, Burundanga said:

it is thursday, just gotta wait for fix

do you have any idea how long it is usually takes for a fix release after an update?

  • Author
5 minutes ago, HippYV said:

do you have any idea how long it is usually takes for a fix release after an update?

It is done when it is done. Your accounts are worth more then an early release.

9 minutes ago, Burundanga said:

it is thursday, just gotta wait for fix

Dunno what thursday means in terms of OSRS botting. Is this downtime normal? ( I am a noob in this scene )

Not always they always do a small fix update on Thursday, sometimes it breaks the bot other times it doesn't

5 minutes ago, Schepto said:

It is done when it is done. Your accounts are worth more then an early release.

Dunno what thursday means in terms of OSRS botting. Is this downtime normal? ( I am a noob in this scene )

Jagex pushes game udates on thursdays regularly, and sometimes the update breaks the osb client. fix usually takes a couple hours to a day. but sometimes it can take up to a couple of days if unlucky

Edited by Burundanga

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.