HERE IS MY BATTLEORDER CONFIG. i dont know if you need but if you know where i can change the bo settings can you show me?
i need that my barb makes bo if he go in a tp if bo running 5min np he need to re bo all the time because merc rip or somthing can you say me how?
/**
* @
ame BattleOrders.js
* @
kolton
* @
give or receive Battle Orders buff
*/
function BattleOrders() {
this.giveBO = function (list) {
var i, unit,
failTimer = 60,
tick = getTickCount();
for (i = 0; i < list.length; i += 1) {
unit = getUnit(0, list[i]);
if (unit) {
while (!unit.getState(32) && copyUnit(unit).x) {
if (getTickCount() - tick >= failTimer * 400) {
showConsole();
print("ÿc1BO timeout fail.");
quit();
}
Precast.doPrecast(true);
delay(400);
}
}
}
return true;
};
Town.doChores();
try {
Pather.useWaypoint(35, true); // catacombs
} catch (wperror) {
showConsole();
print("ÿc1Failed to take waypoint.");
quit();
}
Pather.moveTo(me.x + 6, me.y + 6);
var i,
tick = getTickCount(),
failTimer = 60;
MainLoop:
while (true) {
switch (Config.BattleOrders.Mode) {
case 0: // Give BO
for (i = 0; i < Config.BattleOrders.Getters.length; i += 1) {
while (!Misc.inMyParty(Config.BattleOrders.Getters[i]) || !getUnit(0, Config.BattleOrders.Getters[i])) {
if (getTickCount() - tick >= failTimer * 400) {
showConsole();
print("ÿc1BO timeout fail.");
quit();
}
delay(1000);
}
}
if (this.giveBO(Config.BattleOrders.Getters)) {
break MainLoop;
}
break;
case 1: // Get BO
if (me.getState(32)) {
delay(400);
break MainLoop;
}
if (getTickCount() - tick >= failTimer * 400) {
showConsole();
print("ÿc1BO timeout fail.");
quit();
}
break;
}
delay(1000);
}
Pather.useWaypoint(1);
if (Config.BattleOrders.Mode === 0 && Config.BattleOrders.Wait) {
for (i = 0; i < Config.BattleOrders.Getters.length; i += 1) {
while (Misc.inMyParty(Config.BattleOrders.Getters[i])) {
delay(1000);
}
}
}
return true;
}