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.

Bug - interaction event not working correctly

Featured Replies

1. OSBot Version (do NOT put "current version", be specific)

  2.5.90

2. A description of the issue. Include relevant logs.

  An interaction event with camera operation disabled and walk-to enabled will fail to execute if the entity is on the screen but not visible.

  2.5.89 works perfectly, so this is new.

  Issue on .90: (door is not visible because it is behind the widget)

4CYz9mN.gif

  running fine on .89:

V63w1Pd.gif

  code run:

    @Override
    public int onLoop() throws InterruptedException {
        RS2Object door = getObjects().closest("Door");
        if (door != null) {
            log("Door not null");
            InteractionEvent event = new InteractionEvent(door, "Examine");
            event.setWalkTo(true);
            event.setOperateCamera(false);
            if (execute(event).hasFinished()) {
                log("Event completed successfully");
            } else {
                log("Event failed");
            }
        } else {
            log("Null door");
        }
        return 1000;
    }

3. Are you receiving any errors in the client canvas or the logger? 

  n/a

4. How can you replicate the issue?

  Execute an interaction event with camera disabled and walk-to enabled on an entity that is on the screen but not visible. 

5. Has this issue persisted through multiple versions? If so, how far back?

  .89 works fine

  • 2 weeks later...
  • Developer

The InteractionEvent didn't change between .89 and .90 so I think that's just bad luck.

Could you get back in the position where it wasn't working and log door.isVisible()?

  • Author

@Patrick ive recreated this with another object. I positioned the camera such that the position the object is on is not on the screen, but part of the object itself is on the screen. Added .isVisible() and also getDisplay().isVisibleOnMainScreen() to the log. The original gifs were recorded on injection, and these are on mirror mode. Not an injection/mirror specific issue.

.90

pg6umzL.gif

.87

h2Va2Lk.gif

code

    @Override
    public int onLoop() throws InterruptedException {
        RS2Object object = getObjects().closest("Statue");
        if (object != null) {
            log("object not null");
            if (object.isVisible()) {
                log("object is visible");
            } else {
                log("object is NOT visible");
            }
            if (getDisplay().isVisibleOnMainScreen(object)) {
                log("object is visible on main screen");
            } else {
                log("object is NOT visible on main screen");
            }
            InteractionEvent event = new InteractionEvent(object, "Examine");
            event.setWalkTo(true);
            event.setOperateCamera(false);
            if (execute(event).hasFinished()) {
                log("Event completed successfully");
            } else {
                log("Event failed");
            }
        } else {
            log("Null object");
        }
        return 1000;
    }

 

  • 2 weeks later...

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.