Jump to content

Local walker doesn't want to walk...


Vilius

Recommended Posts

	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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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