The logic is present..
However, no matter what combination of settings I try in OldRoutine settings it does one of two things: 1) spams the mine (even if it has reached max deployable) and never detonates, or 2) if I set everything to -1 after starting the bot it works sometimes normally, but gets stuck if anything is at a certain range and won't use any skills (spams there are no skills to use) until the mob wanders within range.
Code:
if (_mineSlot == -1 && _mineStopwatch.ElapsedMilliseconds >
OldRoutineSettings.Instance.MineDelayMs &&
myPos.Distance(cachedPosition) < OldRoutineSettings.Instance.MaxMeleeRange)
{
var skill = LokiPoe.InGameState.SkillBarHud.Slot(_mineSlot);
var max = skill.GetStat(StatTypeGGG.SkillDisplayNumberOfRemoteMinesAllowed);
var insta = skill.GetStat(StatTypeGGG.MineDetonationIsInstant) == 1;
if (skill.NumberDeployed < max && skill.CanUse())
{
await DisableAlwaysHiglight();
await Coroutines.FinishCurrentAction();
var err1 = LokiPoe.InGameState.SkillBarHud.Use(_mineSlot, true);
if (err1 == LokiPoe.InGameState.UseResult.None)
{
await Coroutines.LatencyWait();
await Coroutines.FinishCurrentAction(false);
if (!insta)
{
await Coroutines.LatencyWait();
LokiPoe.Input.SimulateKeyEvent(LokiPoe.Input.Binding.detonate_mines, true, false, false);
}
_mineStopwatch.Restart();
return true;
}
_mineStopwatch.Restart();
Log.ErrorFormat("[Logic] UseAt returned {0} for {1}.", err1, skill.Name);
}
}
However, no matter what combination of settings I try in OldRoutine settings it does one of two things: 1) spams the mine (even if it has reached max deployable) and never detonates, or 2) if I set everything to -1 after starting the bot it works sometimes normally, but gets stuck if anything is at a certain range and won't use any skills (spams there are no skills to use) until the mob wanders within range.






