What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Question about using aura and blood rage

jaff0950

New Member
Joined
Sep 27, 2012
Messages
17
Reaction score
0
Hi,
How do i only use two aura if there are three auras in my gear? The bot always use the wrong aura. Also, is there a way to use blood rage when i see a target?

Please help.
 
Blood Rage is currently used as soon as you have a target to kill, but it doesn't check the distance.

The logic for that is around line 1600 in ExampleRoutine.cs
Code:
// Simply cast Blood Rage if we have it.
                if (_bloodRageSlot != -1)
                {
                    // See if we can use the skill.
                    var skill = LokiPoe.InGameState.SkillBarPanel.Slot(_bloodRageSlot);
                    if (skill.CanUse() && !LokiPoe.Me.HasBloodRageBuff)
                    {
                        var err1 = LokiPoe.InGameState.SkillBarPanel.Use(_bloodRageSlot, true);
                        if (err1 == LokiPoe.InGameState.UseError.None)
                        {
                            await Coroutine.Sleep(Utility.LatencySafeValue(500));

                            await Coroutines.FinishCurrentAction(false);

                            await Coroutine.Sleep(Utility.LatencySafeValue(100));

                            return true;
                        }

                        Log.ErrorFormat("[Logic] Use returned {0} for {1}.", err1, skill.Name);
                    }
                }

You can change:
Code:
if (skill.CanUse() && !LokiPoe.Me.HasBloodRageBuff)
to
Code:
if (skill.CanUse() && !LokiPoe.Me.HasBloodRageBuff && cachedDistance < ExampleRoutineSettings.Instance.CombatRange)

To have it cast only when the target is ~ within combat range, which should make it cast "closer" to the target. This will be in the next version of the bot, but you can change it sooner if you want.

As for your other question about the aura, it's not currently supported in ExampleRoutine. There'll be a small work around you can try in the next version, but it'll require you to make some code changes.
 
Back
Top