Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @filename AncientTunnels.js
- * @author kolton
- * @desc clear Ancient Tunnels
- */
- function AncientTunnels() {
- Town.doChores();
- Pather.useWaypoint(44);
- Precast.doPrecast(true);
- if (Config.AncientTunnels.OpenChest && Pather.moveToPreset(me.area, 2, 580) && Misc.openChests(5)) {
- Pickit.pickItems();
- }
- if (Config.AncientTunnels.KillDarkElder && getPresetUnit(me.area, 1, 751) && Pather.moveToPreset(me.area, 1, 751)) {
- Attack.clear(15, 0, getLocaleString(2886));
- }
- if (!Pather.moveToExit(65, true)) {
- throw new Error("Failed to move to Ancient Tunnels");
- }
- Attack.clearLevel(Config.ClearType);
- if (Pather.moveToPreset(me.area, 2, 397) && Misc.openChests(5)) {//dhdadded get chest at end of AT
- Pickit.pickItems();
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment