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.

[2.3.71] Interaction error

Featured Replies

OSBot version number: 2.3.71

Description of the bug/error:

Attempts at interaction with a Position that is not visible on the screen throws an NPE.

java.lang.NullPointerException
	at org.osbot.rs07.event.InteractionEvent.getPoint(ng:284)
	at org.osbot.rs07.event.InteractionEvent.execute(ng:442)
	at org.osbot.rs07.event.EventExecutor$2.run(ui:135)
	at org.osbot.rs07.event.EventExecutor.execute(ui:14)
	at org.osbot.rs07.api.map.Position.interact(kk:375)
	at scripttest.ScriptTest.onLoop(ScriptTest.java:17)
	at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(ip:182)
	at java.lang.Thread.run(Unknown Source)

Instructions how to replicate the bug/error:

Interact with a position located right outside of the viewport (not visible)

(IF APPLICABLE) SSCCE that causes the bug/error:

import org.osbot.rs07.api.map.Position;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;

/**
 *
 * @author FrostBug
 */
@ScriptManifest(author = "FrostBug", info = "Testing script", logo = "", name = "Testing", version = 0)
public class ScriptTest extends Script {

	@Override
	public int onLoop() throws InterruptedException {
		Position pos = new Position(X, Y, Z);
		pos.interact(bot, "Walk here");
		return 4000;
	}
	
}



(IF APPLICABLE) Script name ran causing the bug/error. Optionally include relevant parts of source code:

Frost Barrows

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.