Hi,
I'm using:
To declare my path.
And:
To reverse it. It walks the path (toField) nicely but when he's done on the field and have to return this happens:
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:
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)
};
And:
Code:
public final RSTile[] toBank = reversePath(toField);
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);

