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

Delay on Vaal Skills

judge001

Member
Joined
Mar 25, 2012
Messages
97
Reaction score
1
Greetings,

Looking for a bit of help. I am noticing that whenever the bot uses Vaal Molten Shell, it pauses before the usage and after the usage, long enough that at times it will take quite a bit of damage. Is this a bug, working as intended, something I can fix perhaps through some simple editing of the CR, etc.? Thanks for any help you may be able to provide.
 
It's currently by design, but there's no easy fix; you'd have to add vaal specific logic for the skills you want to use. The issue was noticed a while ago when I added AutoCastVaalSkills to support people using any vaal skills once they were ready. The problem is, the vaal skill use mechanics vary skill to skill. Without the delays it was possible for the skill to start casting, then be interrupted over and over and the bot would get stuck.

The actual logic for that can be found around line 1773:
Code:
                // Auto-cast any vaal skill at the best target as soon as it's usable.
                if (ExampleRoutineSettings.Instance.AutoCastVaalSkills && _vaalStopwatch.ElapsedMilliseconds > 1000)
                {
                    foreach (var skill in LokiPoe.InGameState.SkillBarPanel.Skills)
                    {
                        if (skill.SkillTags.Contains("vaal"))
                        {
                            if (skill.CanUse())
                            {
                                await DisableAlwaysHiglight();

                                var err1 = LokiPoe.InGameState.SkillBarPanel.UseAt(skill.Slot, false, cachedPosition);
                                if (err1 == LokiPoe.InGameState.UseError.None)
                                {
                                    await Coroutine.Sleep(Utility.LatencySafeValue(250));

                                    await Coroutines.FinishCurrentAction(false);

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

                                    return true;
                                }

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

If you were to start lowering the 1000 down, say 750, 500, 250, until you found something that didn't result in anything going wrong with the skill you were using, it should be a lot faster. Vaal auras I think were one class of skills that were causing issues, but if you're not using those, the rest should be ok I think.
 
Hmmm, I also have a vaal skill (Trap - GMP - Added Lightning - Vaal Spark) but it never triggers.
 
Hmmm, I also have a vaal skill (Trap - GMP - Added Lightning - Vaal Spark) but it never triggers.

Anyway you could upload the the routine?

I tried editing the routine...but it kept messing up. :/

I managed to stop the delay time on vaal spark, but want the bot to just go around the map vaal sparking before it starts picking up items.

If yours was efficient enough, i'd love to try it out.
 
Back
Top