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.

Clicking

Featured Replies

Just wanted help on how this method works?

ClickMouseEvent(MouseDestination destination)

What is the destination? Is it like x, y, z? How do I set the coordinates?

Is there a better way to click in a certain spot?

Thanks bois

 

 
org.osbot.rs07.input.mouse
Class MouseDestination

java.lang.Object
org.osbot.rs07.input.mouse.MouseDestination
Direct Known Subclasses:
AreaDestination, BankSlotDestination, DepositBoxSlotDestination, EntityDestination, EquipmentSlotDestination, InventorySlotDestination, MainScreenTileDestination, MiniMapTileDestination, PointDestination, RectangleDestination, StoreSlotDestination, TradeOfferItemDestination, WidgetDestination
  •  

Like Chris posted^^

 

Look through the API docs....find MouseDestination class...check how to implement or the direct subclasses and those will tell you.

  • Author
29 minutes ago, Chris said:
 

org.osbot.rs07.input.mouse
Class MouseDestination

java.lang.Object
org.osbot.rs07.input.mouse.MouseDestination
Direct Known Subclasses:
AreaDestination, BankSlotDestination, DepositBoxSlotDestination, EntityDestination, EquipmentSlotDestination, InventorySlotDestination, MainScreenTileDestination, MiniMapTileDestination, PointDestination, RectangleDestination, StoreSlotDestination, TradeOfferItemDestination, WidgetDestination
  •  

Okay but what if I want to click on a certain spot on my screen, for example, a cake stand?

Class EntityDestination

java.lang.Object
org.osbot.rs07.input.mouse.MouseDestination
org.osbot.rs07.input.mouse.EntityDestination

public class EntityDestination
extends MouseDestination
Represents a mouse destination for entities.

 

https://osbot.org/api/

1 hour ago, phony said:

Okay but what if I want to click on a certain spot on my screen, for example, a cake stand?

A cake stand is an object. You can directly interact with objects so you don't have to do anything with mouse destinations or click mouse event.

Read through this thread: 

 

 

Just try to avoid making your own interaction events. Don't reinvent the wheel                   

To interact with a cake stand...

Objects api 

It's the same sorta stuff if you want to access items/npcs/entity

 

Edited by Zappster

  • Author
1 hour ago, Zappster said:

Just try to avoid making your own interaction events. Don't reinvent the wheel                   

To interact with a cake stand...

Objects api -> objects.closest("cake stand").interact("steal"); (you'll need to null check your cake stand tho ;))

It's the same sorta stuff if you want to access items/npcs/entity

 

Won't that: right click -> steal, I feel like its way more U/D if you just click, as thats what I do when I am training theaving legit

38 minutes ago, phony said:

Won't that: right click -> steal, I feel like its way more U/D if you just click, as thats what I do when I am training theaving legit

I'm not 100% sure since it's been a while that I had to do anything with interacting outside of inventory, but I think it will left click if the wanted interaction is first.

Edited by Zappster

8 hours ago, phony said:

Won't that: right click -> steal, I feel like its way more U/D if you just click, as thats what I do when I am training theaving legit

Nope, if the steal option is the option seen when you hover the object it'll left click it. Honestly the best way to learn these kinds of things is to test them out yourself and see what it does first hand.

On 5/14/2017 at 6:24 PM, d0zza said:

Nope, if the steal option is the option seen when you hover the object it'll left click it. Honestly the best way to learn these kinds of things is to test them out yourself and see what it does first hand.

Not if it selects a click point with another player object behind it ... a player would simply cancel out and pick a better left click spot

2 hours ago, dmmslaver said:

Not if it selects a click point with another player object behind it ... a player would simply cancel out and pick a better left click spot

Well yes but he didn't specify anything like that in his original post?

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.