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.

canReach(Position p) and canReach(Area a) methods

Featured Replies

API Missing Features: canReach(Position p) and canReach(Area a) methods.

 

Currently I only see canReach(Entity e) in the API. It would be nice to have the Position (and Area) option too.

 

I want to do something like:

 

Position position = new Position(3222, 3222, 0);if(canReach(position)) {   walk(position);}

Edit: I don't think you could change this anymore (as people are already using it), but "isReachable" might be a better name for this method.

 

Thanks!

Edited by sxforce

lol I don't think canReach or isReachable matters :P

API Missing Features: canReach(Position p) and canReach(Area a) methods.

Currently I only see canReach(Entity e) in the API. It would be nice to have the Position (and Area) option too.

I want to do something like:

Position position = new Position(3222, 3222, 0);if(canReach(position)) {   walk(position);}
Edit: I don't think you could change this anymore (as people are already using it), but "isReachable" might be a better name for this method.

Thanks!

Well the walk method returns a boolean, i believe, and you can use that:

If(!walk(someArea){  doSomething // will only activate if cannot reach are}

Edited by zeejfps

  • Author

lol I don't think canReach or isReachable matters tongue.png

 

I know it doesn't not really matter, I was just on my mind so I wrote it down. tongue.png

 

Well the walk method returns a boolean, i believe, and you can use that:


If(!walk(someArea){
doSomething // will only activate if cannot reach are
}

 

If so, that should also be added in the API. wink.png It's not in there now.

 

It's a bit weird that only canReach(Entity e) is available though, as there are methods for walk(Area) and walk(Position). It's a bit consistency I'am talking about.

Edited by sxforce

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.