View difference between Paste ID: EP0xe63e and B2PmpNpi
SHOW: | | - or go back to the newest paste.
1
/**
2
*	@filename	Nihlathak.js
3
*	@author		kolton
4
*	@desc		kill Nihlathak
5
*/
6
7
function Nihlathak() {
8
	Town.goToTown(5);	
9
	// Town.doChores();
10
	Town.move("portalspot");	
11
	
12
	if (!Pather.usePortal(124, null)) {
13
		Pather.useWaypoint(123);
14
		Pather.moveToExit(124, true);
15-
	if (!Pather.moveToExit(124, true)) {
15+
16-
		throw new Error("Failed to go to Nihlathak");
16+
		if (!Pather.moveToExit(124, true)) {
17
			throw new Error("Failed to go to Nihlathak");
18
		}
19
	}
20
21
	Pather.moveToPreset(me.area, 2, 462, 0, 0, false, true);
22
23
	if (Config.Nihlathak.ViperQuit && getUnit(1, 597)) {
24
		print("Tomb Vipers found.");
25
26
		return true;
27
	}
28
29
	Attack.kill(526); // Nihlathak
30
	Pickit.pickItems();
31
32
	return true;
33
}