Jump to content

Local walker doesn't want to walk...


Recommended Posts

Posted (edited)
	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
Posted

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

Posted (edited)

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
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...