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.

InteractionEvent getHeight

Featured Replies

Stack trace:

 

[iNFO][bot #1][08/06 01:53:20 PM]: Click Use
[ERROR][bot #1][08/06 01:53:20 PM]: Error executing event : org.osbot.rs07.event.InteractionEvent@2fccac89
java.lang.NullPointerException
at org.osbot.rs07.api.model.Modeled.getHeight(sf:51)
at org.osbot.rs07.input.mouse.EntityDestination.getArea(cd:15)
at org.osbot.rs07.event.InteractionEvent.getEntityDestinationPoint(rf:835)
at org.osbot.rs07.event.InteractionEvent.execute(rf:734)
at org.osbot.rs07.event.EventExecutor$2.run(wf:52)
at org.osbot.rs07.event.EventExecutor.execute(wf:12)
at org.osbot.rs07.api.model.InteractableObject.interact(on:16)
at cmhstronghold.walking.CMHStrongholdWalker.walk(CMHStrongholdWalker.java:216)
at cmhstronghold.actions.WalkAction.run(WalkAction.java:105)
at cmhstronghold.CMHStrongholdMain.onLoop(CMHStrongholdMain.java:223)
at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(sk:58)
at java.lang.Thread.run(Unknown Source)
 
 
The object isn't visible, just behind the chatbox, calling interact does this. Been happening for a month now.

Does this happen with all objects which are in the region but are not visible, or is it specifically behind the chatbox?

  • Author

Does this happen with all objects which are in the region but are not visible, or is it specifically behind the chatbox?

 

Sorry, didn't see this.

 

I'm not sure, I've only seen this happen when it's behind the chatbox, but I haven't checked.

  • Developer

Does this happen with all objects which are in the region but are not visible, or is it specifically behind the chatbox?

 

It happends with all entities smile.png

I tried multiple and they all returned nullpointer on getHeight().

 

Model#getheight(); works properly.

 

Khaleesi

Edited by Khaleesi

It happends with all entities smile.png

I tried multiple and they all returned nullpointer on getHeight().

 

Model#getheight(); works properly.

 

Khaleesi

 

@Khaleesi - Just to clarify and confirm, getHeight() is working correctly?

@Khaleesi - Just to clarify and confirm, getHeight() is working correctly?

 

I've been having the problem as well.. So this was the culprit I guess ;o

AFAIK Model#getHeight is simply a getter while Modeled#getHeight has some code that can throw NPE's for whatever reason before returning Model#getHeight

 

EDIT: Perhaps a call in EntityDestination#getArea was accidentally changed from Model#getHeight to Modeled#getHeight?

Edited by FrostBug

  • Developer

@Khaleesi - Just to clarify and confirm, getHeight() is working correctly?

 

I have recoded all of my script to use Entity#GetModel.getHeight();

 

So I have no idea if Entity#getHeight is having issues.

Currently at work for a few more hours so I can't test it now.

 

Khaleesi

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.