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.

2 Questions

Featured Replies

1- How do i get what attack mode im using?

2- How do i get the entity directly under my mouse? I tried - client.getEntitiesOnCursor().get(0).equals(npc) - but the first entity on cursor is not always the one on top

I'm not sure about number 1 (I haven't done anything with that yet)

But as for number 2, do a for each loop like this:

for (Entity e : client.getEntitiesOnCursor()) {
     if (e instanceof NPC) { 
         //whatever you're doing
     }
}

Edited by Pandemic

  • Author

Thanks, but what i mean is that i want to get the first object/npc/whatever that is under my mouse:

For example, if i move my mouse to the npc, but there's a tree in front of it, it will detect that the npc is under my cursor, and will click, and hit the tree..

How do i detect who's in front ( in this case,  the npc or the tree )?

 

EDIT: Crap just realized i posted in wrong section, can someone move?

Edited by Markoz

client.getMenu().get(0).noun

will return the name of the object/NPC you're looking for, what exactly are you planning on doing?

  • Author

A custom attack method, most of the time the API method just keep trying to walk to the npc, this one will move the mouse to npc until it finds it, and then left clicks

A custom attack method, most of the time the API method just keep trying to walk to the npc, this one will move the mouse to npc until it finds it, and then left clicks

If you don't want the interact method to handle walking use: 

boolean interact(boolean isWalkingAllowed, java.lang.String action)
  • Author

 

A custom attack method, most of the time the API method just keep trying to walk to the npc, this one will move the mouse to npc until it finds it, and then left clicks

If you don't want the interact method to handle walking use: 

boolean interact(boolean isWalkingAllowed, java.lang.String action)

 

Thank you, i missed that somehow =/

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.