• Visit Rebornbuddy
  • Request Demonhunter auto recast Preparation

    Discussion in 'Archives' started by windale, Nov 26, 2017.

    1. windale

      windale New Member

      Joined:
      Jan 28, 2012
      Messages:
      29
      Likes Received:
      0
      Trophy Points:
      1
      Is it possible to make my Demon hunter cast preparation when he is below 70% discipline?
      please let me know with detail if how as i do not have any programming skills
       
    2. Benevolene

      Benevolene Member

      Joined:
      May 11, 2013
      Messages:
      282
      Likes Received:
      5
      Trophy Points:
      18
      something like

      public TrinityPower GetBuffPower()
      {
      if (!Player.IsInTown)
      {
      if (Skills.DemonHunter.Discipline.CanCast() && Player.PrimaryResourcePct < 0.70)
      return Discipline(Player.Position);
      }

      return DefaultBuffPower();
      }

      I guess.... I've spent like 10 mins on the scripts though, so I'm probably wrong. Try it and let me know what happens.
       
    3. windale

      windale New Member

      Joined:
      Jan 28, 2012
      Messages:
      29
      Likes Received:
      0
      Trophy Points:
      1
      thank you for reply
      Silly question but where do I add this which folder and file is it in the demonbuddy folder
      I never added a script before
       
    4. Benevolene

      Benevolene Member

      Joined:
      May 11, 2013
      Messages:
      282
      Likes Received:
      5
      Trophy Points:
      18
      You edit whichever combat routine you're using and throw the necessary lines in with the other GetPowerBuff lines. I think.. I mean.. I've tried manipulating the combat routines like twice before and otherwise have 0 coding/scripting experience. I'm just using what's already there and adding words where I feel they're needed.
       

    Share This Page