Im trying to only hit lvl85 areas so i deleted the first three kurast temples and i changed the area wp from 80 to 81 and she goes to the first temple but after clearing it i get the error
“Failed to move to the temple”
What am i missing?
Im trying to only hit lvl85 areas so i deleted the first three kurast temples and i changed the area wp from 80 to 81 and she goes to the first temple but after clearing it i get the error
“Failed to move to the temple”
What am i missing?
Hard to say without seeing your code. Guess would be you messed up the index calculation for moving to the correct exit.
soo this works but when i remove temple 96 and tick down lines for i<4 and i<3 it causes everything to go goofy because it wants to do two temples per area
function KurastTemples() {
Town.doChores();
Pather.useWaypoint(81);
Precast.doPrecast(true);
var i,
areas = [96, 97, 98, 99];
for (i = 0; i < 4; i += 1) {
if (me.area !== 81 + Math.floor(i / 2 )) {
if (!Pather.moveToExit(81 + Math.floor(i / 2), true)) {
throw new Error("Failed to change area");
}
}
if (!Pather.moveToExit(areas[i], true)) {
throw new Error("Failed to move to the temple");
}
if (i === 3) {
Precast.doPrecast(true);
}
Attack.clearLevel(Config.ClearType);
if (i < 3 && !Pather.moveToExit(81 + Math.floor(i / 2), true)) {
throw new Error("Failed to move out of the temple");
}
}
return true;
}
My recommendation is use the newer kolbot repo, and check this commit
https://github.com/blizzhackers/kolbot/commit/5828394ebc4608e1961241f4a87636d12bf1a0bd
It’ll be a bit more straightforward for you to modify. All you’d need to do is comment out the array element with rhe base area you wish to avoid and change the starting wp