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.

Making a free rooftop agility script, but...

Featured Replies

while it works perfectly... there's one issue.

 

On the third part of the varrock agility course, there is an object called 'Wall' that's meant to be jumped. When I use map.canReach() on this wall, it consistently returns a false value, likely because the rs2object is not placed directly onto the platform that the player is running on.

 

tl;dr - map.canReach() shouldnt be returning false

 

I've even written very messy code to deal with this, but it unnecessarily takes up more memory than necsesary. any suggestions or pointers in the right direction would be very welcome

 

Edit: after around 45 minutes of frustration i just decided to do this:

It works, but I don't like it. If anyone else has a better suggestion, I'm open to it.

	private boolean canReach(RS2Object o) {
		return si.map.canReach(o) || o.getId() == 10777;
	}

Edited by Imateamcape

  • Author

you dont really need canReach for rooftop , i dont use it.

 

but in that case, how are you meant to determine which object is the correct one?

if there are two "Wall" objects next to eachother , use #closest(String name, Area area) , else you dont need to determine it.

Just do:

if (area.contains(myPlayer()) {
obstacle = getObjects().closest("name of obstacle");
 if (obstacle != null) {
      if (obstacle.interact()) {
           new ConditionalSleep(4000) {
                 @Override
                  public boolean condition() throws InterruptedException {
                          return nextArea.contains(myPlayer());
                          }
                       }
                    }
                }
            }

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.