# Kurast temple

**URL:** <https://blizzhackers.discourse.group/t/kurast-temple/1618>\
**Category:** Support\
**Created:** [April 17, 2023, 12:54pm UTC](https://blizzhackers.discourse.group/t/kurast-temple/1618 "2023-04-17T12:54:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wbeard](https://avatars.discourse-cdn.com/v4/letter/w/a3d4f5/32.png) [@Wbeard](https://blizzhackers.discourse.group/u/Wbeard)\
**Post date:** [April 17, 2023, 12:54pm UTC](https://blizzhackers.discourse.group/t/kurast-temple/1618/1 "2023-04-17T12:54:04Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![theBGuy](https://yyz2.discourse-cdn.com/free1/user_avatar/blizzhackers.discourse.group/thebguy/32/302_2.png) [@theBGuy](https://blizzhackers.discourse.group/u/theBGuy)\
**Post date:** [April 17, 2023, 4:13pm UTC](https://blizzhackers.discourse.group/t/kurast-temple/1618/2 "2023-04-17T16:13:48Z")

</div>

Hard to say without seeing your code. Guess would be you messed up the index calculation for moving to the correct exit.

---

<div class="post-metadata">

**Author:** ![Wbeard](https://avatars.discourse-cdn.com/v4/letter/w/a3d4f5/32.png) [@Wbeard](https://blizzhackers.discourse.group/u/Wbeard)\
**Post date:** [April 17, 2023, 4:48pm UTC](https://blizzhackers.discourse.group/t/kurast-temple/1618/3 "2023-04-17T16:48:55Z")

</div>

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;

```

}

---

<div class="post-metadata">

**Author:** ![theBGuy](https://yyz2.discourse-cdn.com/free1/user_avatar/blizzhackers.discourse.group/thebguy/32/302_2.png) [@theBGuy](https://blizzhackers.discourse.group/u/theBGuy)\
**Post date:** [April 17, 2023, 6:14pm UTC](https://blizzhackers.discourse.group/t/kurast-temple/1618/4 "2023-04-17T18:14:16Z")

</div>

My recommendation is use the newer kolbot repo, and check this commit

[https://github.com/blizzhackers/kolbot/commit/5828394ebc4608e1961241f4a87636d12bf1a0bd](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
