• Visit Rebornbuddy
  • How to use Flasks in combat and you get Frozen?

    Discussion in 'Archives' started by kuskner, Mar 24, 2014.

    1. kuskner

      kuskner Member

      Joined:
      Oct 12, 2013
      Messages:
      521
      Likes Received:
      2
      Trophy Points:
      18
      I would like to know if this is posible?

      In The Library you get frozen a lot. It would be nice if the bot you use 1 or all 5 pots to dispel the frozen effect on your char.

      Thanks
       
    2. pushedx

      pushedx Moderator Moderator Buddy Core Dev

      Joined:
      Sep 24, 2013
      Messages:
      4,252
      Likes Received:
      290
      Trophy Points:
      83
      I had to test the current flask mechanics to be sure before I posted something you can use.

      Here is a modified Exile.cs that contains the code that shows how to do this. It will be in the next version of the bot by default, but you have to uncomment the code you want to use.

      Search for "CreateFlaskLogic" and look up first. The following were added: "BleedingFlasks", "ShockFlasks", "BurningFlasks", "FrozenFlasks". Those simply filter flasks by the mods they have to dispel those effects.

      If you look at the new code in "CreateFlaskLogic" now, you'll see:
      Code:
                      // Uncomment this to use any flask which dispels the effect as soon as you have the effect
                      /*new Decorator(ret => _flaskCd.IsFinished && Me.HasAura("frozen") && FrozenFlasks.Count() != 0,
                          new Action(ret =>
                          {
                              FrozenFlasks.First().Use();
                              _flaskCd.Reset();
                          })),*/
      
      Simply uncomment that code, the /* and */ markers, and the bot should now use any flask that dispels frozen when you are frozen and in combat (since the CR executes when you are in combat). By default, chilled is not included, but you can uncommente the next section or any others you want as well.

      Just keep in mind that if your fighting a boss that manages to crit you a lot and inflict those status, or you are standing in a shrine or other harmful AoE effect on the ground, the logic will also be triggered. If you run a corrupted area that has chilled ice patches, you definitely don't want to have chilled enabled.
       
    3. kuskner

      kuskner Member

      Joined:
      Oct 12, 2013
      Messages:
      521
      Likes Received:
      2
      Trophy Points:
      18
      Thank you Pushedx I will try it out later today :)

      Tested: works uber good!
       
      Last edited: Mar 25, 2014

    Share This Page