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.

Hover over and click a specific tile

Featured Replies

Hello, 

I've been having some trouble getting my script to hover over and click a specific tile near the player (in this case in the Al-kharid mine). 

 

new Position(3299, 3273, 0).hover(getBot());
getMouse().click(false);

 

It seems neither of these methods work, even when directly next to the tile. I've cobbled this solution together from a few old threads but perhaps the API has changed? I'm using mirror mode if that makes any difference.

Any help would be appreciated. 

4 hours ago, T0ffee said:

Hello, 

I've been having some trouble getting my script to hover over and click a specific tile near the player (in this case in the Al-kharid mine). 

 


new Position(3299, 3273, 0).hover(getBot());
getMouse().click(false);

 

It seems neither of these methods work, even when directly next to the tile. I've cobbled this solution together from a few old threads but perhaps the API has changed? I'm using mirror mode if that makes any difference.

Any help would be appreciated. 

 

Hello old bean

Are you trying to just walk to said tile? If so you can do it with a WalkingEvent:

 

WalkingEvent walkingEvent = new WalkingEvent(new Position(3299, 3273, 0));
walkingEvent.setMinDistanceThreshold(0);
execute(walkingEvent);

 

Could you please also elaborate on what you mean by "neither of these methods work"? Does it not hover the tile? Does it hover but not click?

  • Author
4 hours ago, Explv said:

 

Hello old bean

Are you trying to just walk to said tile? If so you can do it with a WalkingEvent:

 


WalkingEvent walkingEvent = new WalkingEvent(new Position(3299, 3273, 0));
walkingEvent.setMinDistanceThreshold(0);
execute(walkingEvent);

 

Could you please also elaborate on what you mean by "neither of these methods work"? Does it not hover the tile? Does it hover but not click?

 

Rather embarrassingly my original snippet worked perfectly once I put it inside a skeleton script.

My original intention was to interact with a rather obscure NPC for whom the .interact() method doesn't work (but I could extract its position).

 

Many thanks for your reply, and for your work more generally within the OSBot community. 

 

 

2 hours ago, T0ffee said:

 

Rather embarrassingly my original snippet worked perfectly once I put it inside a skeleton script.

My original intention was to interact with a rather obscure NPC for whom the .interact() method doesn't work (but I could extract its position).

 

Many thanks for your reply, and for your work more generally within the OSBot community. 

 

 

Glad you got it working 👍

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.