• Visit Honorbuddy
  • Visit Rebornbuddy
  • Visit Demonbuddy
  • Visit Exilebuddy
  • Visit Hearthbuddy
  • Visit Pokefarmer
  • Visit Buddystore

KB + Barrage rare.unique! Need help!

Discussion in 'Combat Routines' started by aljuce, Aug 27, 2017.

  1. aljuce

    aljuce New Member

    Joined:
    Mar 9, 2014
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    3
    Hi guys!
    I need some help to configure the routine...
    I want the routine to only used barrage vs rare or unique monster.
    @WiN Say :
    edit the Combat routine and add that to the condition for the skill to be used
    like: && (cachedNumberOfMobsNear >= 1 && cachedRarity == Rarity.Unique)

    But i cant manage to do this, everytime i try something that doesnt work...

    Thx!
     
  2. ninjaking

    ninjaking New Member

    Joined:
    Dec 18, 2015
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Did you make it work?
     
  3. jaksemurf

    jaksemurf Member

    Joined:
    Apr 5, 2014
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Disclaimer: I am not a programmer, even in the most amateur of senses. However, with some troubleshooting on your part to fix whatever I've inevitably fucked up here, this should get you at least on the right track.

    My suggestion would be to make a function specifically for barrage, like a lot of specialized abilities in OldRoutine have. I'm too lazy to write the code for you, but you'd need to:

    Declare
    Code:
    int _barrageSlot = -1;
    with all the rest of the abilities. This var will hold your barrage hotbar location

    Go to where old routine registers abilities to those ints and register your barrage skill slot.

    Code:
    var bar = LokiPoe.InGameState.SkillBarHud.Skills.FirstOrDefault(s => s.Name == "Barrage");
                    if (IsCastableHelper(bar))
                    {
                        _barrageSlot = bar.Slot;
                    }
    Go down to your async area and code up a little logic for your barrage. E.G.

    Code:
    if(_barrageSlot != -1 && myPos.Distance(cachedPosition) < OldRoutineSettings.Instance.MaxRangeRange && cachedRarity >= Rarity.Rare) 
     {
      
                        var skill = LokiPoe.InGameState.SkillBarHud.Slot(_barrageSlot);
                        if (skill.CanUse())
                            {
                                
                            await DisableAlwaysHiglight();
    
                            await Coroutines.FinishCurrentAction();
    
    
                                        var err1 = LokiPoe.InGameState.SkillBarHud.UseAt(_barrageSlot, false, targetPosition);
    
                                                            var skillName = skill.Name;
                                                            Log.ErrorFormat("[Logic] Use returned {0} for {1}.", err1, skillName);
                            }
      }
     
  4. demonviper

    demonviper Member

    Joined:
    Apr 8, 2014
    Messages:
    116
    Likes Received:
    10
    Trophy Points:
    18
    This looks good I would try it right now but I am at work. If anyone has tried it and it works let me know. If not I'll try and make this work later.
     
  5. aljuce

    aljuce New Member

    Joined:
    Mar 9, 2014
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    3
    Did someone sucess to make it run? i failed so many times...
     
  6. lyvewyre

    lyvewyre Member

    Joined:
    Jan 3, 2013
    Messages:
    392
    Likes Received:
    9
    Trophy Points:
    18
    It works, technically, but there are issues. The bot prioritises its main attacks, so as soon as it is finished casting barrage, it tries to cast one of its 'main attack' skills. This is especially the case if there is minions around a boss/unique. The only way I've found this to work is if you set Ranged AoE to your preferred skill, Ranged ST to barrage with a short distance while manually setting the 'barrage skill' above to be a greater distance. It'll still aoe down, but is better at chain casting barrage, at least for my testing.

    So for example I've got Ranged ST set to 20, barrage skill set to 50. Above 40 is questionable, but it has worked for me so far.
     
  7. jaksemurf

    jaksemurf Member

    Joined:
    Apr 5, 2014
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    To be honest I think a lot of the fault for it not performing well is that, whenever OldRoutine/EB was redesigned (I took a long break from exilebuddy but it's quite a bit different than it used to be) it strikes me as being significantly less effective.

    I've been working on creating/updating a custom routine I had made for myself back in the day that could handle all of these "special needs" builds (stuff like Cyclone, Barrage, Mines, Totems, SRS, Curse on hit, etc) and quite frankly either oldroutine and/or exilebuddy itself just doesn't seem to perform as well as I remember it once did. I really struggle to get it to use or chain abilities smoothly or logically, and I used to be able to do it in the past.

    Granted, I'm not a great programmer and I don't have a monster machine so that could be part of the problem, but to me the difference in EB performance is tangible. I used to be able to bot to 97-98, maybe higher, in softcore using a custom routine and not very tanky builds, and nowadays I struggle to even pass 90 with crazy tanky builds just because of the sheer number of silly deaths / stucks / bot lag and empty loops the bot seems to find itself in. Obviously, this could be user error and/or gameplay mechanic changes but I doubt I've gone retarded in the year since I used it last and GGG seems to have nerfed at least of a few of the instagib mechanics.

    Hopefully I'll figure out my routine and public release it before I bore of this season, but I'm finding it currently impossible to get performance from it past a certain point just due to how slow OldRoutine really is.
     
  8. demonviper

    demonviper Member

    Joined:
    Apr 8, 2014
    Messages:
    116
    Likes Received:
    10
    Trophy Points:
    18
  9. demonviper

    demonviper Member

    Joined:
    Apr 8, 2014
    Messages:
    116
    Likes Received:
    10
    Trophy Points:
    18
    I think and I could be way off here but when you were here years ago I assume the devs were much more "in the trenches" now most of the time it's the community making all the "need to have" stuff instead of working side by side. That is not to say the devs are slacking, I think it is just a job to them now I'm assuming
     

Share This Page