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.

Need some wisdom

Featured Replies

moved

Edited by TFW

Could it be that the Area you are checking is too small and you may use 4-5 as the argument?

Edited by GaetanoH

  • Author

Could it be that the Area you are checking is too small and you may use 4-5 as the argument?

 

Hmm I'll give it another go with a int of 5. Thanks for some wisdom

I think you're just overseeing something, I do not get what you're doing in the if-statement

I am having some trouble here. It seems that npc.getArea(int).contains(myPosition()) is returning false on me?

 

Anytime the character is in the area of the (filtered NPC OR the interacting) and in melee range -> walk somewhere random

 

 

 

Why don't you just do:

if(npc.getPosition().distance(myPosition()) <= 3) // if npc is less than or equal to 3 tiles away

Edited by Explv

  • Author

 

Why don't you just do:

if(npc.getPosition().distance(myPosition()) <= 3) // if npc is less than or equal to 3 tiles away

 

It's essentially same thing kind of. I just don't want to be in the NPC area everytime I go to attack

  • Author

 

Why don't you just do:

if(npc.getPosition().distance(myPosition()) <= 3) // if npc is less than or equal to 3 tiles away

 

I ended up fixing it 

 

mbgYHQm.png

Guest
This topic is now closed to further replies.

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.