Is there a setting I can add or change to the chestmania that will force the bot to attack enemies around the chest? As it is now the bot goes to the chest, opens, the chest, scans the ground for pikit items, and moves on. Many times I am surrounded by hoards, and end up chicken exit because the bot is not fighting or killing monsters near the chest area.
maybe you could insert a new line in this part of Misc.openChestsInArea (which is called in line 17 of Chestmania.js), like the 2nd line:
Pather.moveToUnit(coords[0], 1, 2);
Attack.clear(20, false, false, false, true);
this.openChests(20);
error in chestmania.
coords is not defined
this works
function ChestMania() {
var prop, i;
Town.doChores();
for (prop in Config.ChestMania) {
if (Config.ChestMania.hasOwnProperty(prop)) {
for (i = 0; i < Config.ChestMania[prop].length; i += 1) {
Pather.journeyTo(Config.ChestMania[prop][i]);
Precast.doPrecast(i == 0 ? true : false);
Misc.openChestsInArea (Config.ChestMania[prop][i]) ;
Attack.clear(20, false, false, false, true);
}
Town.doChores();
}
}
return true;
}
ok ![]()
Did you try to change the 2nd and 3rd lines between them?
Pather.moveToUnit(coords[0], 1, 2);
this.openChests(20);
Attack.clear(20, false, false, false, true);
its all working now, but I had to alter the pather because coords were undefined and I couldn’t figure it out. so I just set it to journey to where I wanted it to go.