• Visit Rebornbuddy
  • Trinity Monk CR help

    Discussion in 'Archives' started by Qam, Feb 27, 2015.

    1. Qam

      Qam Member

      Joined:
      Jul 5, 2014
      Messages:
      36
      Likes Received:
      0
      Trophy Points:
      6
      Could someone please point me to the part of code I would have to change to use Epiphany, Blinding flash and serenity on cooldown?
       
    2. botzor

      botzor Member

      Joined:
      Jan 22, 2011
      Messages:
      155
      Likes Received:
      1
      Trophy Points:
      18
      Serenity Cooldown monk

      I can fix that for you, the file you need to edit is in your demon buddy folder/Plugins/Trinity/Combat/Abilitys/MonkCombat.cs

      Serenity line 77
      Change:
      Code:
      // Serenity if health is low
                  if ((Player.CurrentHealthPct <= 0.50 || (Player.IsIncapacitated && Player.CurrentHealthPct <= 0.90)) && CanCast(SNOPower.Monk_Serenity))
      Into:
      Code:
      // Serenity if health is low
      if (CanCast(SNOPower.Monk_Serenity))
      Epiphany Line 68-71
      Change:
      Code:
                  // Epiphany: spirit regen, dash to targets
                  if (!UseOOCBuff && !IsCurrentlyAvoiding && CanCast(SNOPower.X1_Monk_Epiphany, CanCastFlags.NoTimer) && (Settings.Combat.Monk.EpiphanyOffCD ||
                      (TargetUtil.EliteOrTrashInRange(15f) || TargetUtil.AnyMobsInRange(15f, 5)) &&
                      (Player.PrimaryResourcePct < 0.50 || ((Runes.Monk.DesertShroud.IsActive || Runes.Monk.SoothingMist.IsActive) && Player.CurrentHealthPct < 0.50)))
                      )
      
      Into:
      Code:
      // Epiphany: spirit regen, dash to targets
      if (CanCast(SNOPower.X1_Monk_Epiphany))
      Blinding Flash Line 101-114
      Change:
      Code:
                  // Blinding Flash
                  if (!UseOOCBuff && Player.PrimaryResource >= 20 && CanCast(SNOPower.Monk_BlindingFlash) &&
                      (
                          TargetUtil.AnyElitesInRange(15, 1) ||
                          Player.CurrentHealthPct <= 0.4 ||
                          (TargetUtil.AnyMobsInRange(15, 3)) ||
                          (CurrentTarget.IsBossOrEliteRareUnique && CurrentTarget.RadiusDistance <= 15f) ||
                      // as pre-sweeping wind buff
                          (TargetUtil.AnyMobsInRange(15, 1) && CanCast(SNOPower.Monk_SweepingWind) && !GetHasBuff(SNOPower.Monk_SweepingWind) && _hasInnaSet)
                      ) &&
                      // Check if either we don't have sweeping winds, or we do and it's ready to cast in a moment
                      (CheckAbilityAndBuff(SNOPower.Monk_SweepingWind) ||
                       (!GetHasBuff(SNOPower.Monk_SweepingWind) &&
                       (CanCast(SNOPower.Monk_SweepingWind, CanCastFlags.NoTimer))) ||
                       Player.CurrentHealthPct <= 0.25))
      
      Into (This one wont check if enemys are close or anything it will just use it every time it can but thats kinda what you asked for so i did that):
      Code:
      // Blinding Flash
      if (CanCast(SNOPower.Monk_BlindingFlash))
      [/CODE]
      or (This will use it off CD if 1 or more mobs is in range):
      Code:
      // Blinding Flash
      if (CanCast(SNOPower.Monk_BlindingFlash) && TargetUntil.AnyMobsInRange(15, 1))
      Remeber these changes has not been tested by me except the serenity one but they should all work.
       
      Last edited: Feb 28, 2015
    3. Qam

      Qam Member

      Joined:
      Jul 5, 2014
      Messages:
      36
      Likes Received:
      0
      Trophy Points:
      6
      Thanks
       

    Share This Page