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.

Get Player Name

Featured Replies

[ERROR][Bot #1][10/12 03:07:53 AM]: Error in script executor!
java.lang.NullPointerException
	at org.osbot.rs07.api.model.Player.getName(vm:172)
	at org.osbot.rs07.api.filter.NameFilter.match(bi:56)
	at org.osbot.rs07.api.filter.NameFilter.match(bi:188)
	at org.osbot.rs07.api.filter.FilterAPI.filter(ag:96)
	at org.osbot.rs07.api.EntityAPI.closest(an:174)
	at org.osbot.rs07.api.EntityAPI.closest(an:100)
	at org.osbot.rs07.api.EntityAPI.closest(an:75)
	at Muling.trade(Muling.java:88)
	at Muling.onLoop(Muling.java:63)
	at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(fo:211)
	at java.lang.Thread.run(Thread.java:748)
	private void trade() {
		if (botName != null) {
			Player player = getPlayers().closest(botName);
			if (player != null && !myPlayer().isMoving() && Banks.GRAND_EXCHANGE.contains(player)) {
				player.interact("Trade with");
				Sleep.sleepUntil(() -> getTrade().isCurrentlyTrading(), 10000);
			}
		}
	}

Anyone know how that NullPointerException could be happening? I've made sure it checks whether the botName string is null or not, then I've made sure to check if the player was null.

What's going on?

There is currently an issue with the client due to the recent update, this could be causing that.

Also if "player" is null, this will cause you an issue:

Banks.GRAND_EXCHANGE.contains(player)

 

if (player != null && !myPlayer().isMoving()) {
        if(Banks.GRAND_EXCHANGE.contains(player) ) {
	         player.interact("Trade with");
	         Sleep.sleepUntil(() -> getTrade().isCurrentlyTrading(), 10000);
        }
}

Edited by ihom

  • Author
Player player = getPlayers().closest(botName);

That's the line and the Grand Exchange part doesn't matter, even if I remove that part it still occurs.

Then yes, your issue is caused by the recent update.
Same problem with "getNpcs()".

2 hours ago, ihom said:

Then yes, your issue is caused by the recent update.
Same problem with "getNpcs()".

hey i have a question not entirely related to this thread, how long does it normally take for the issues with the bots to get resolved after a new update and when would i know it's fixed.  i make my own private scripts for myself and this is the first time i really encountered a big problem with this

5 hours ago, datpigeon said:

hey i have a question not entirely related to this thread, how long does it normally take for the issues with the bots to get resolved after a new update and when would i know it's fixed.  i make my own private scripts for myself and this is the first time i really encountered a big problem with this

I assume it could take a minute, it could take a month.. How long's a piece of string?

If these guys are reverse engineering the client and something major has changed, it could take weeks..

Just sit back and play the game until it's back up ?

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.