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.

API Interact Bug [2.5.31]

Featured Replies

Hey @Maxi,

I'm using the following the stream to identify an NPC but keep getting a weird exception occasionally while interacting with it. It only happens sometimes and it can usually be fixed by pausing and unpausing script. It has also happened to me while interacting with Ground Items and Entities as well. 

I am also 95% sure that it is caused by right click interactions only. So that might be why it is less common.

Also, I know the script worked fine at one point (like a month ago) but I'm not exactly sure which update caused it .

Token suggested that it is a Mirror mode issue. Could you take a look?

Thanks

    private Predicate<NPC> myCat = n -> n != null && n.isVisible() &&
            n.hasAction("Chase") &&
            !n.isAnimating() &&
            basement.contains(n);

       cat =
                npcs.getAll().stream().filter(myCat).min(new Comparator<NPC>() {
                    public int compare(NPC one, NPC two) {
                        return Integer.compare(getMap().distance(one), getMap().distance(two));
                    }
                }).orElse(null);

if(cat!=null){
   cat.get().interact("Chase")
}
    
Error executing event : org.osbot.rs07.event.InteractionEvent@348ff5
java.lang.ArrayIndexOutOfBoundsException: -2922
	at org.osbot.rs07.api.NPCS.getLocalNPC(dn:178)
	at org.osbot.rs07.api.Mouse.getEntitiesOnCursor(tj:401)
	at org.osbot.rs07.api.Mouse.isOnCursor(tj:65)
	at org.osbot.rs07.input.mouse.EntityDestination.evaluate(pg:286)
	at org.osbot.rs07.event.InteractionEvent.IIIIiiiiIIii(zi:185)
	at org.osbot.rs07.event.InteractionEvent.execute(zi:349)
	at org.osbot.rs07.event.EventExecutor$2.run(le:246)
	at org.osbot.rs07.event.EventExecutor.execute(le:171)
	at org.osbot.rs07.api.model.Character.interact(pl:464)
	at RatCatcher.onLoop(RatCatcher.java:131)
	at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(bp:22)
	at java.lang.Thread.run(Unknown Source)

 

On 1/5/2019 at 8:10 PM, DylanSRT said:

Hey @Maxi,

I'm using the following the stream to identify an NPC but keep getting a weird exception occasionally while interacting with it. It only happens sometimes and it can usually be fixed by pausing and unpausing script. It has also happened to me while interacting with Ground Items and Entities as well. 

I am also 95% sure that it is caused by right click interactions only. So that might be why it is less common.

Also, I know the script worked fine at one point (like a month ago) but I'm not exactly sure which update caused it .

Token suggested that it is a Mirror mode issue. Could you take a look?

Thanks


    private Predicate<NPC> myCat = n -> n != null && n.isVisible() &&
            n.hasAction("Chase") &&
            !n.isAnimating() &&
            basement.contains(n);

       cat =
                npcs.getAll().stream().filter(myCat).min(new Comparator<NPC>() {
                    public int compare(NPC one, NPC two) {
                        return Integer.compare(getMap().distance(one), getMap().distance(two));
                    }
                }).orElse(null);

if(cat!=null){
   cat.get().interact("Chase")
}
    

Error executing event : org.osbot.rs07.event.InteractionEvent@348ff5
java.lang.ArrayIndexOutOfBoundsException: -2922
	at org.osbot.rs07.api.NPCS.getLocalNPC(dn:178)
	at org.osbot.rs07.api.Mouse.getEntitiesOnCursor(tj:401)
	at org.osbot.rs07.api.Mouse.isOnCursor(tj:65)
	at org.osbot.rs07.input.mouse.EntityDestination.evaluate(pg:286)
	at org.osbot.rs07.event.InteractionEvent.IIIIiiiiIIii(zi:185)
	at org.osbot.rs07.event.InteractionEvent.execute(zi:349)
	at org.osbot.rs07.event.EventExecutor$2.run(le:246)
	at org.osbot.rs07.event.EventExecutor.execute(le:171)
	at org.osbot.rs07.api.model.Character.interact(pl:464)
	at RatCatcher.onLoop(RatCatcher.java:131)
	at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(bp:22)
	at java.lang.Thread.run(Unknown Source)

 

Yeah, same error i talked about a few months ago if its fixed mirror should work much better.

Also getting this stack trace occasionally. Hoping to see it fixed soon.

23 hours ago, extatus said:

Also getting this stack trace occasionally. Hoping to see it fixed soon.

Welp let me know when that happens, so i can renew vip.

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.