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.

getWalking().webwalk() problem

Featured Replies

Hello, so I've made a few scripts implementing the webwalking methods, the problem is, when the bot is in the Area he really always wants to click on a certain tile which makes it pretty obvious you're a bot, any suggestions on how to remove the clicking?

Edited by GaetanoH

use webwalkevent smile.png

public static void webWalkEvent(final INodeRouteFinder routeFinder, final Position position, final int treshold, final MethodProvider script) 
    {
     
     WebWalkEvent event = new WebWalkEvent(routeFinder, position);
     event.setBreakCondition(new Condition()
     {
     @Override
     public boolean evaluate() 
     {      
     return script.getMap().distance(position) <= treshold;
     }
     });
 
     script.execute(event);
    }

then use it like this

webWalkEvent(Variables.routeFinder, new Position(2924+ctx.random(1), 3175+ctx.random(5), 0), 5, ctx);

make a routeFinder onStart() , only do this onstart! it will use up a lot of cpu otherwise

INodeRouteFinder routeFinder
public void onStart()
{
    routeFinder  = INodeRouteFinder.createAdvanced();
}

i put my routevinder in my class Variables so i can access it anywhere

public static INodeRouteFinder routeFinder;

ctx being my methodprovider

 

5 being the radius in which it breaks the webwalk so it will bank or do other things smoothly

 

so lets say you're at a fishing spot, and you're using this to walk to a bank, if you're in a radius of 5, it will break webwalking so it doesnt want to walk to that exact tile, and it will attempt to bank 

Edited by The Hero of Time

  • Author

use webwalkevent smile.png

public static void webWalkEvent(final INodeRouteFinder routeFinder, final Position position, final int treshold, final MethodProvider script) 
    {
     
     WebWalkEvent event = new WebWalkEvent(routeFinder, position);
     event.setBreakCondition(new Condition()
     {
     @Override
     public boolean evaluate() 
     {      
     return script.getMap().distance(position) <= treshold;
     }
     });
 
     script.execute(event);
    }

then use it like this

webWalkEvent(Variables.routeFinder, new Position(2924+ctx.random(1), 3175+ctx.random(5), 0), 5, ctx);

ctx being my methodprovider

 

5 being the radius in which it breaks the webwalk so it will bank or do other things smoothly

 

so lets say you're at a fishing spot, and you're using this to walk to a bank, if you're in a radius of 5, it will break webwalking so it doesnt want to walk to that exact tile, and it will attempt to bank 

As always thank you for the fast reply, I'll look into it later!

  • Developer

use webwalkevent smile.png

public static void webWalkEvent(final INodeRouteFinder routeFinder, final Position position, final int treshold, final MethodProvider script) 
    {
     
     WebWalkEvent event = new WebWalkEvent(routeFinder, position);
     event.setBreakCondition(new Condition()
     {
     @Override
     public boolean evaluate() 
     {      
     return script.getMap().distance(position) <= treshold;
     }
     });
 
     script.execute(event);
    }

then use it like this

webWalkEvent(Variables.routeFinder, new Position(2924+ctx.random(1), 3175+ctx.random(5), 0), 5, ctx);

make a routeFinder onStart() , only do this onstart! it will use up a lot of cpu otherwise

INodeRouteFinder routeFinder
public void onStart()
{
    routeFinder  = INodeRouteFinder.createAdvanced();
}

i put my routevinder in my class Variables so i can access it anywhere

public static INodeRouteFinder routeFinder;

ctx being my methodprovider

 

5 being the radius in which it breaks the webwalk so it will bank or do other things smoothly

 

so lets say you're at a fishing spot, and you're using this to walk to a bank, if you're in a radius of 5, it will break webwalking so it doesnt want to walk to that exact tile, and it will attempt to bank 

 

Wow nice, who taught you that? :o

dem genius <3

As note: it's not always the best idea to break your walking when a certain tile is within your radius.

Example:

When you walk to a tile and your next code block is something like interacting with a npc it could be that npc have traveled to a different tile in the meantime.

Now mostly the interact method will solve this by itself but for the example.

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.