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

How to setup EB for builds that use 3+ aoe/single skills?

fabcard

Member
Joined
Nov 7, 2013
Messages
131
Reaction score
1
Hello there, friends.

As in title, I would like to know how I can do that. Is it actually possible?
I remember that older versions of EB were able to handle my trapper build which had 4 traps (5 or more months ago). We didn't have to tell bot ranged/melee skills as it is now. The bot was cycling all the traps on skill bar perfectly. Now with that ExampleRoutine, I don't see how to figure that out since all my skills are aoe and ranged and we can only set 1 skill for ranged aoe. I've tried changing melee aoe to ranged aoe by increasing the range so now I can use only 2 skills.
Could some one please tell me what I have to do? Or is there any routine for traps or for any other build that is similar to this?
Thanks in advance.
 
If you tell me your skill names, and the logic in detail how you want it to work, i can try to put up a simple logic for you as an example.

By logic I mean do you want to use each of them in order or do you want to switch to other one if you have no traps left etc.
 
Hello Urgent2009,

Thank you for the help. I would like the bot to use traps like fire trap, bear trap, cold snap, lightning trap, for example.
For the logic, cycling all traps to get advantage from elemental equilibrium and bear trap on rare+ mobs, if possible. Like 1,2,3,4,1,2,3,4...
Again, thank you.
 
Hey man, sorry I totally forgot about this. Here, I'm posting the code:

Code:
               List<string> skillsToUse = new List<string>();

                skillsToUse.Add("Fire Trap");
                skillsToUse.Add("Lightning Trap");
                skillsToUse.Add("Cold Snap");
                skillsToUse.Add("Bear Trap");


                if (skillsToUse.Any())
                {
                    //get any skill from skillsToUse except latestSkillUsed
                    var skill = LokiPoe.Me.GetSkillByName(skillsToUse.FirstOrDefault(s => s != _latestSkillUsed));

                    //make sure skill is on skill bar and we can use it
                    if (skill.Slot != -1 && skill.CanUse())
                    {
                        // Use the skill
                        var useError = LokiPoe.InGameState.SkillBarPanel.UseAt(skill.Slot, false,
                            bestTarget.Position);

                        if (useError != LokiPoe.InGameState.UseError.None)
                        {
                            Log.ErrorFormat("[Logic] UseAt returned {0} for {1}.", useError, skill.Name);
                        }

                        // Store skillname so we sont use the same one again
                        _latestSkillUsed = skill.Name;
                        return true;
                    }
                }


You can post this right above the "// Handle trap logic." line in ExampleRoutine.cs

Also, you need a global variable. So post the following line somewhere above the line: "public async Task<bool> Logic(string type)" in ExampleRoutine.cs

Code:
String _latestSkillUsed = "";

This should use any skill you add to 'skillsToUse' in order. It might not work as it is since I've not tested it but it should give you the idea to do how. Still, if it won't work, tell me and I'll try to fix it...
 
Thank you very much for this. Much appreciated.
I'll try it right now and let you know if it works or not. :D
 
Back
Top