• Log in or sign up for an account here: https://www.sythe.org/login

[RSBOT] [HELP] walkPathMM doesn't work right?

basfreak

Newcomer
Joined
Apr 26, 2007
Sythe Gold
0
Messages
14
Hi,

I'm using:
Code:
RSTile[] toField = new RSTile[] {
	new RSTile(3105, 3251), new RSTile(3118, 3258), 
	new RSTile(3133, 3265),	new RSTile(3134, 3281), 
	new RSTile(3145, 3292)
};
To declare my path.
And:
Code:
public final RSTile[] toBank = reversePath(toField);
To reverse it. It walks the path (toField) nicely but when he's done on the field and have to return this happens:
thumbns3.png

The red dot is where RSBot clicks
The black dot is my player
The blue dot is a gate.
This works but what if the gate is closed? It will just stay in the corner where I am now.
While, new RSTile(3145, 3292) is right before the gate. (Last tile of toField)
So why does it click there?
Walk code:
Code:
				if(distanceTo(gateObj) < 5) {
						walkTileMM(gateObj.getLocation());
						int rotate = random(170, 190);
						setCameraRotation(rotate);
						atObject(gateObj, "Open");
                }

				walkPathMM(randomizePath(toBank, 2, 2), 20);

				if(distanceTo(toBank[toBank.length - 1]) < 4) {
					log("Bank detected!");
					state = 0;
					return random(1231,4332);
				}

				return random(0, 2000);
 
Runescape Gamblingrunescape gambling
Back
Top