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.

Local walker doesn't want to walk...

Featured Replies

	WALK_TO_BANK("WalkToBank") {

		@Override
		public boolean canProcess(main script) {
			boolean inAreaPickup = !script.BANKZONE.contains(script.myPlayer().getPosition()) && script.inventory.isFull();
			return inAreaPickup;
			}
		

		@Override
		public void process(main script) {
			if(!script.myPlayer().isMoving()){
				script.getLocalWalker().walk(3183, 3437);
			}

		}

	},

i'm not sure whats happening, tried everything checked if everything is starting doing its things. But when inventory is full and its not in bankzone it doesn't walk to the bank. Even when inAreaPickup is true. Maybe something is wrong with LocalWalker?

 

Even the almighty fixthissite doesn't know whats happening.

Edited by Viliuks

  • Author

Doesn't localwalker have to be onscreen for it to walk to the specific tile?

Well its walking to the fish zone when its not on screen.

  • Author

log to make sure it executes and log the return value of localWalker.walk

I tried logging everything, but don't seem to understand what do you want me to log with localwalker?

	WALK_TO_FISH("WalkToFish") {

		@Override
		public boolean canProcess(main script) {
						boolean inArea = script.ZONE.contains(script.myPlayer().getPosition());
			return !inArea;
		}

		@Override
		public void process(main script) {
			if(!script.myPlayer().isMoving()){
			script.getLocalWalker().walk(3109, 3433);
		}
		}
	},

This is how my walk to fish code looks like, it works. It goes where I want it to go

In detail, he has 2 different walking states: WALK_TO_SPOT and WALK_TO_BANK.

He is using the same method for spot as he is for bank.

It walks to spot, but it will not walk to bank, although WALK_TO_BANK is the current state and canProcess returns true.

Edited by fixthissite

There's like a 80 tile difference so you should create a path, localwalker can't walk outside of the loaded region.

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.