• Visit Rebornbuddy
  • Barb EarthQuake Optimization

    Discussion in 'Trinity' started by rimmi2002, Jun 26, 2014.

    1. rimmi2002

      rimmi2002 New Member

      Joined:
      Apr 28, 2014
      Messages:
      138
      Likes Received:
      2
      Trophy Points:
      0
      Barb Leap/EQ/Luts Optimization Guide

      Completed my quake/Luts set a few days ago and realized Trinity is not so good as using Quake with lut socks. Made a few modifcations and it works well now. I use call of arreat run so it pulls everyone in...so all my quakes now happen right on top of each other so everyone gets pulled in and damage stacks 3x. I ran T6 with this and was able to clear with no deaths. Only down side...Barbs are no where as quick as Crusaders still took about 20-25 mins to clear a T6 rift. (low density though)

      Code:
      [COLOR="#008000"]// This will now cast whenever leap is available and an enemy is around. Disable Leap OOC option. The last line will prevent you from leaping on destructibles[/COLOR]
      
      public static bool CanUseLeap
              {
                  get
                  {
                      return
                          !UseOOCBuff &&
                          !Player.IsIncapacitated &&
                          CanCast(SNOPower.Barbarian_Leap) &&
                          [COLOR="#FF0000"]TargetUtil.AnyMobsInRange(15f, 1)[/COLOR];
                  }
              }

      Changes below make it so Leap occurs in relatively small space. Works much better for call of Arreat rune...all 3 quakes stack in the same area. The original line (commented below) might be better for death from above rune

      Code:
      public static TrinityPower PowerLeap
              {
                  get
                  {
                      [COLOR="#FF0000"]Vector3 aoeTarget = TargetUtil.GetBestClusterPoint(7f, 9f, false);[/COLOR] [COLOR="#008000"]// For Call of Arreat rune  will do all quakes on top of each other[/COLOR] 
      		// Vector3 aoeTarget = TargetUtil.GetBestClusterPoint(15f, 35f, false); [COLOR="#008000"]//To Jump around for quakes for Death from Above[/COLOR]. 
      
                      return new TrinityPower(SNOPower.Barbarian_Leap, V.F("Barbarian.Leap.UseRange"), aoeTarget);
                  }
              }
      
      if using HOTA when leap is not active the change below will use HOTA when ever leap is not available and switch back to leap as soon as its off cool down.

      Code:
      public static bool CanUseHammerOfTheAncients
              {
                 get
                  {
                      return [COLOR="#FF0000"]!CanUseLeap[/COLOR] && !UseOOCBuff && !IsCurrentlyAvoiding && !Player.IsIncapacitated && !IsWaitingForSpecial && CanCast(SNOPower.Barbarian_HammerOfTheAncients) &&
                          (Player.PrimaryResource >= V.F("Barbarian.HammerOfTheAncients.MinFury") || LastPowerUsed == SNOPower.Barbarian_HammerOfTheAncients) &&
                          (!Hotbar.Contains(SNOPower.Barbarian_Whirlwind) || (Player.CurrentHealthPct >= Settings.Combat.Barbarian.MinHotaHealth && Hotbar.Contains(SNOPower.Barbarian_Whirlwind)));
                  }
              }
      
      
      public static bool CanUseHammerOfTheAncientsElitesOnly
              {
                  get
                  {
                      bool canUseHota = CanUseHammerOfTheAncients;
      
                      if ([COLOR="#FF0000"]canUseHota && !CanUseLeap)[/COLOR]
                      {
                          bool hotaElites = (CurrentTarget.IsBossOrEliteRareUnique || CurrentTarget.IsTreasureGoblin) && TargetUtil.EliteOrTrashInRange(10f);
      
                          bool hotaTrash = IgnoringElites && CurrentTarget.IsTrashMob &&
                              (TargetUtil.EliteOrTrashInRange(6f) || CurrentTarget.MonsterSize == Zeta.Game.Internals.SNO.MonsterSize.Big);
      
                          return canUseHota && (hotaElites || hotaTrash);
                      }
                      return false;
                  }
              }

      Attached is my combat file. It also includes addition to use ignore pain off cooldown. Excellent when you have pride of cassius.

      View attachment BarbarianCombat.cs
       
      Last edited: Jun 26, 2014
    2. Thrukk

      Thrukk Member

      Joined:
      Apr 27, 2013
      Messages:
      64
      Likes Received:
      0
      Trophy Points:
      6
      Could u plz upload ur barb.cs would be much easier for some to change it. Thx for the patches
       
    3. rimmi2002

      rimmi2002 New Member

      Joined:
      Apr 28, 2014
      Messages:
      138
      Likes Received:
      2
      Trophy Points:
      0
      Done
       
    4. Thrukk

      Thrukk Member

      Joined:
      Apr 27, 2013
      Messages:
      64
      Likes Received:
      0
      Trophy Points:
      6
      Do you know if it is possible to add a rune check for spells? So that i can uncomment ur second leap part?
       
    5. rimmi2002

      rimmi2002 New Member

      Joined:
      Apr 28, 2014
      Messages:
      138
      Likes Received:
      2
      Trophy Points:
      0
      there is....Below is an example for earthquake in the barbcombat.cs. I am sure it can be changed to apply for Leap (its a bool Variable)

      Code:
      HotbarSkills.AssignedSkills.Any(p => p.Power == SNOPower.Barbarian_Earthquake && p.RuneIndex == 4)
      
      
      HotbarSkills.AssignedSkills.Any(p => p.Power == SNOPower.Barbarian_Leap && p.RuneIndex == 3) // Should work for call of arreat
      HotbarSkills.AssignedSkills.Any(p => p.Power == SNOPower.Barbarian_Leap && p.RuneIndex == 4) // Should work for death from above
      
      
       
    6. Thrukk

      Thrukk Member

      Joined:
      Apr 27, 2013
      Messages:
      64
      Likes Received:
      0
      Trophy Points:
      6
      Nice thx i will try it tomorow
       
    7. hsjyes

      hsjyes Member

      Joined:
      May 13, 2014
      Messages:
      398
      Likes Received:
      2
      Trophy Points:
      18
      Nice one, thanks for sharing!
       
    8. TouchMeGently

      TouchMeGently Member

      Joined:
      Feb 17, 2010
      Messages:
      320
      Likes Received:
      0
      Trophy Points:
      16
      Just tested and works well. Thanks!
       
    9. xasabladeze

      xasabladeze New Member

      Joined:
      Jul 9, 2014
      Messages:
      29
      Likes Received:
      0
      Trophy Points:
      0
      where do i put that folder in?
       
    10. rimmi2002

      rimmi2002 New Member

      Joined:
      Apr 28, 2014
      Messages:
      138
      Likes Received:
      2
      Trophy Points:
      0
      Just replace the files in plugins/trinity with the files from here.
       
    11. xasabladeze

      xasabladeze New Member

      Joined:
      Jul 9, 2014
      Messages:
      29
      Likes Received:
      0
      Trophy Points:
      0
      since i am pure eq barb how do i make it so it alway spam eq instead of auto attacking monster with a 500 dps offhand lol
       
    12. barbarian6

      barbarian6 New Member

      Joined:
      Nov 28, 2012
      Messages:
      209
      Likes Received:
      0
      Trophy Points:
      0
      +1 same issue..don't have any attack and it try to hit mobs with 1m heats instead of leaping sometimes
       
    13. rimmi2002

      rimmi2002 New Member

      Joined:
      Apr 28, 2014
      Messages:
      138
      Likes Received:
      2
      Trophy Points:
      0
      What do u mean my spam EQ? Its got a 60 sec cooldown...in the mean time all you can do is wait for your leap to come back or have other attacks to use.
       
    14. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,771
      Likes Received:
      35
      Trophy Points:
      48
      cdr.
       
    15. Cudako

      Cudako New Member

      Joined:
      Jun 12, 2013
      Messages:
      32
      Likes Received:
      0
      Trophy Points:
      0
      Hey there, thank you very much for the .cs.

      But now my Barb wont use Earthquake anymore.
      The jump with the Earthquake works great.

      Anything to help me out?

      Greetz!
       
    16. rimmi2002

      rimmi2002 New Member

      Joined:
      Apr 28, 2014
      Messages:
      138
      Likes Received:
      2
      Trophy Points:
      0
      right now Trinity is configured to use EQ only on Elites...is it using it there when you have enough fury? Also are you using Beserker's rage? In that case you need to be 100% fury to use per trinity setup.
       
    17. Cudako

      Cudako New Member

      Joined:
      Jun 12, 2013
      Messages:
      32
      Likes Received:
      0
      Trophy Points:
      0
    18. merkd

      merkd New Member

      Joined:
      Feb 3, 2012
      Messages:
      38
      Likes Received:
      0
      Trophy Points:
      0
      rimmi2002 can you link your build?
       
    19. jubisman

      jubisman New Member

      Joined:
      Aug 17, 2012
      Messages:
      1,732
      Likes Received:
      28
      Trophy Points:
      0
      Hey, I took rimmi's changes and modded Trinity to have an option (Checkbox under Combat->Barb) for players that use Leap/Quake/Luts that will use his code.

      This is currently part of a bigger project I'm working on, but since I don't have the means to test this myself, I'd like you guys to try it out and tell me whether it works as intended.

      Just let me know if Checked and Unchecked options will do what they're supposed to.

      To use this, replace the three files contained in the attachment.
       
    20. cha1xt3a

      cha1xt3a New Member

      Joined:
      Mar 30, 2013
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      0
      Nice ill give it a try now
       

    Share This Page