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

onStart() Breakhandler error

Featured Replies

Trying to override my break handler so I can pick up traps before logging out. This works perfect for me on my end with zero errors, however users on my script are running into errors. I'm overriding the break handler so I can pick up traps before logging out to break.

Here is the error in my AIO Hunter:

https://gyazo.com/b68610ce7b1510439c18a7164508c6b5

What version is this error? Also mind giving me the text version (or typing it out the first few lines)?

  • Author

What version is this error? Also mind giving me the text version (or typing it out the first few lines)?

 

I'm using OSBot 2.3.116 injection with Debug mode.

 

 

I just did a reverse stack trace of it and it said:

java.lang.NullPointerException
at org.osbot.rs07.script.RandomBehaviorHook.setSolver(od:74)
at org.osbot.rs07.event.RandomExecutor.registerHook(zf:144)
at projectpact.hunter.HunterScript.onStart(HunterScript.java:56)
at org.osbot.rs07.event.ScriptExecutor.onStart(lj:110)
at org.osbot.rs07.event.ScriptExecutor.start(lj:194)
at org.osbot.com1.run(gi:140)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

So I went to line 56 of HunterScript.java and the code that was seen there was:

getBot().getRandomExecutor().registerHook(new RandomBehaviourHook(RandomEvent.BREAK_MANAGER){

Edited by ProjectPact

 

I'm using OSBot 2.3.116 injection with Debug mode.

 

 

I just did a reverse stack trace of it and it said:

java.lang.NullPointerException
at org.osbot.rs07.script.RandomBehaviorHook.setSolver(od:74)
at org.osbot.rs07.event.RandomExecutor.registerHook(zf:144)
at projectpact.hunter.HunterScript.onStart(HunterScript.java:56)
at org.osbot.rs07.event.ScriptExecutor.onStart(lj:110)
at org.osbot.rs07.event.ScriptExecutor.start(lj:194)
at org.osbot.com1.run(gi:140)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

So I went to line 56 of HunterScript.java and the code that was seen there was:

getBot().getRandomExecutor().registerHook(new RandomBehaviourHook(RandomEvent.BREAK_MANAGER){

 

I know why some botters are having issues. Simply put, nobody should be trying to override break manager. I'll work on a method to grab time remaining until logout, don't know when that will be though (maybe tomorrow, maybe next week).

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.