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.

Path Problem

Featured Replies

Hi guys

So i'm trying to traverse a dungeon that's a very windy path. At the start of the path. it just try's to skip major parts of the path and then the player stands still against the wall stuck. Anyway around this?

 

 

 cb4c27bdad8fd0b2803f7555c36c67db.png

Here's my code. Any help appreciated. This isn't the actual dungeon becuase i don't really want to give away my method. The dungeon i have has gates hence the code below

public boolean walkToDestination(final Position[] positions, final BooleanSupplier bc, final boolean walkExact){
    WalkingEvent walkingEvent = new WalkingEvent();
    walkingEvent.setPath(new LinkedList<>(Arrays.asList(positions)));
    walkingEvent.setBreakCondition(new Condition() {
        @Override
        public boolean evaluate() {
            return bc.getAsBoolean();
        }
    });
    if (walkExact)
    walkingEvent.setMinDistanceThreshold(0);
    walkingEvent.setMiniMapDistanceThreshold(0);
    walkingEvent.setEnergyThreshold(random(5, 15));
    return execute(walkingEvent).hasFinished();
}

In code
walkToDestination(Paths.TOPSECRETPATH, () -> getInventory().contains("Lobster") && (getSkills().getDynamic(Skill.HITPOINTS) < (getSkills().getStatic(Skill.HITPOINTS) / 1.5) || ((getObjects().closest(o -> o != null && o.getName().contains("Gate") && o.hasAction("Open") && getMap().distance(o) < 5) != null))), false);

Edited by Titan Rs

Split it into blocks

if going right half -> left half

zone 1  = right half

walk to upper zone 2

zone 2 = left half

walk to lower zone 2
 

 

Reverse to go back

"This isn't the actual dungeon becuase i don't really want to give away my method"

"walkToDestination(Paths.DUNGEONENTRANCETOWINES"

:think: 

  • Author
8 minutes ago, ez11 said:

"This isn't the actual dungeon becuase i don't really want to give away my method"

"walkToDestination(Paths.DUNGEONENTRANCETOWINES"

:think: 

lmaooo that was dumb

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.