• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Problem with auto attacking single mobs (Barb)

    Discussion in 'Archives' started by lucivar7, Feb 16, 2015.

    1. lucivar7

      lucivar7 New Member

      Joined:
      Jul 21, 2014
      Messages:
      14
      Likes Received:
      0
      Trophy Points:
      1
      Basically, the bot will furious charge all the mobs, but when 1 is left, or if i encounter a single mob by itself. My barb just sits there and auto attacks it (or uses frenzy if i have it equipped) until its dead. I'm wondering if there's a way to make the bot only use furious charge on mobs. Because it is the only damaging move in my build.
       
    2. veerdoo

      veerdoo New Member

      Joined:
      May 9, 2014
      Messages:
      21
      Likes Received:
      0
      Trophy Points:
      0
    3. lucivar7

      lucivar7 New Member

      Joined:
      Jul 21, 2014
      Messages:
      14
      Likes Received:
      0
      Trophy Points:
      1
      I'll read up on it, thanks :)
       
    4. lucivar7

      lucivar7 New Member

      Joined:
      Jul 21, 2014
      Messages:
      14
      Likes Received:
      0
      Trophy Points:
      1
      So I understand how to change those values, but the problem is furious charge doesn't have the same criteria as the examples he listed. In that case is it possible to somehow make up special criteria? IE, my furious charge right now is:

      public static bool CanUseFuriousCharge
      {
      get
      {
      if (UseOOCBuff)
      return false;

      var bestTarget = TargetUtil.GetBestPierceTarget(35f);
      int unitsInFrontOfBestTarget = 1;

      if (bestTarget != null)
      unitsInFrontOfBestTarget = bestTarget.CountUnitsInFront();

      return CanCast(SNOPower.Barbarian_FuriousCharge, CanCastFlags.NoTimer) &&
      (unitsInFrontOfBestTarget >= 1 || CurrentTarget.HitPoints >= 100000000);





      Can I add a line from his post to that? For example:
      (iElitesWithinRange[RANGE_30] >= 1 || iAnythingWithinRange[RANGE_30] >= 1 || playerStatus.dCurrentHealthPct <= 1 || (targetCurrent.bThisEliteRareUnique && targetCurrent.fRadiusDistance <= 30f)) &

      I tried messing around with it and didn't notice any changes.
       
    5. lucivar7

      lucivar7 New Member

      Joined:
      Jul 21, 2014
      Messages:
      14
      Likes Received:
      0
      Trophy Points:
      1
      Or maybe if i change the best target values to 0 or.. idk
       
    6. veerdoo

      veerdoo New Member

      Joined:
      May 9, 2014
      Messages:
      21
      Likes Received:
      0
      Trophy Points:
      0
      return CanCast(SNOPower.Barbarian_FuriousCharge, CanCastFlags.NoTimer) &&
      (unitsInFrontOfBestTarget >= 1 || CurrentTarget.HitPoints >= 100000000); < here
      return CanCast(SNOPower.Barbarian_FuriousCharge, CanCastFlags.NoTimer) &&
      (unitsInFrontOfBestTarget >= 0 || CurrentTarget.HitPoints >= 0);

      this should work.
      Cant test it myself cus I am at work atm. post results
       
      Last edited: Feb 18, 2015

    Share This Page