• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [Plugin] FlaskHelper

    Discussion in 'Archives' started by toNyx, May 26, 2014.

    1. g00fy_goober

      g00fy_goober New Member

      Joined:
      Jun 17, 2012
      Messages:
      281
      Likes Received:
      0
      Trophy Points:
      0
      Hey tony question for you.

      The cooldowns are for however long the flask lasts for right? So for example the default is 3500 which is 3.5 seconds but if say the recovery time is like 8 seconds, we should change this number to 8000 right?

      Also is there a way you can add in a cooldown timer for quicksilver? With quality 20 it lasts 6 seconds, but I noticed that the bot uses it the first time and like 3-4 seconds later uses it again even though I still have 2-3 seconds left on the first one.

      Let me know if im just doing something wrong :D
       
    2. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      No, the cooldowns are just sort of spam protection, it's on YOUR opinion, after how much time you could need to use it again. 3.5 seconds is the default one, and seems to be working well.

      The CD you have to look at is the instant flask, 500 to 1000ms seems good, but 1000 seems a bit long ;) take a look at it.

      For the Quicksilver, it should work whatever the quality is, since I check for the internal buff. So it may be latency or shit.
       
    3. g00fy_goober

      g00fy_goober New Member

      Joined:
      Jun 17, 2012
      Messages:
      281
      Likes Received:
      0
      Trophy Points:
      0
      Well thanks man, good to know, ill keep twiddeling with it and take a look. Quicksilver really does seem to be off though, everytime it uses the 2nd charge I should still have 2-3 seconds left of the first one.

      Sure nothing is broke? :p
       
    4. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      I tested the buff, maybe it have another internal name when the duration is longer? try using it and dump objects in the tools tab. hit refresh when you have it and search for Auras:
       
    5. g00fy_goober

      g00fy_goober New Member

      Joined:
      Jun 17, 2012
      Messages:
      281
      Likes Received:
      0
      Trophy Points:
      0
      Sry man im really new to EB so I don't know what your saying at all.

      To me your speaking Chinese lol
       
    6. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
    7. IeU

      IeU Member

      Joined:
      Jul 20, 2010
      Messages:
      830
      Likes Received:
      11
      Trophy Points:
      18
      Thank you for the effort Tony, keep it coming! :D
       
    8. Darox

      Darox Member

      Joined:
      Nov 7, 2014
      Messages:
      353
      Likes Received:
      2
      Trophy Points:
      18
      Awsome thanks for the awsome plug in and update.
       
    9. kabuto1

      kabuto1 New Member

      Joined:
      Mar 30, 2014
      Messages:
      13
      Likes Received:
      0
      Trophy Points:
      1
      Thank you for this plugin, Tony. It seems to be very good.

      I have one problem however, my bot does not pot fast enough. Now I don't know if this problem will solve itself when I have instant pots but it's still weird. I have lowered the normal hp and instant flask cooldowns to under 1000ms. Yet it seems like it still waits the ingame flask duration before it chucks another potion. This results in my character dying with 2/3 hp flasks at full charges.

      Am I doing something wrong?
       
      Last edited: Feb 12, 2015
    10. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      Ofc it waits. You're wasting your charges if you "pot fast". When you take a sip in your flask, it gives you an internal buff (not visible on the GUI) and while this one is active, you can't have ANOTHER ONE on top of it, except instant flasks, since they don't share the same buff. Duration flasks (normal ones) override themselves when used twice or more. That means you can have 1 healing buff at a time.

      This internal buff fade/disappear when you're full HP or the timer is finished.

      So basically, if it heals during 3-4-5-6-7 seconds, if you're far from full hp it'll wait until the buff disapear.

      The cooldown you can see in FH's GUI is the plugin's cooldown, to avoid pot spam. if you have some passives nodes that give +X% flask healing or whatever it's called, then you should lower it because you'll have a flask usage more "regular".

      If you die and your flasks are full, these can be the issue :

      - You don't have the right ones (they don't recover fast enough)
      - Your build lack of resistance/evasion/armor/defensive nodes
      - Your gear is pretty shitty (shoutout to jyam)
       
    11. kabuto1

      kabuto1 New Member

      Joined:
      Mar 30, 2014
      Messages:
      13
      Likes Received:
      0
      Trophy Points:
      1
      Thank you for this explanation. I was not aware of this mechanic. Used to think that every pot had its own separate buff.

      This cooldown is the time the plugin waits after using a pot before it checks wether to use this type of pot again?
       
    12. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      It's the time the while the plugin will ignore that type of flasks and will never tell the bot to use it if it's not finished.
       
    13. cyberbot

      cyberbot Member

      Joined:
      Mar 15, 2014
      Messages:
      220
      Likes Received:
      2
      Trophy Points:
      18
      Using the Rarity flask in the current version is not ideal. I would suggest adding "flask.Rarity != Rarity.Unique" to both LifeFlasks and ManaFlasks(especially) in the Flasks class.
       
    14. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      Can you please give the context? I don't get it.
       
    15. cyberbot

      cyberbot Member

      Joined:
      Mar 15, 2014
      Messages:
      220
      Likes Received:
      2
      Trophy Points:
      18
      I will PM you for details.
       
    16. Clonkiy

      Clonkiy Member

      Joined:
      Jan 19, 2015
      Messages:
      38
      Likes Received:
      0
      Trophy Points:
      6
      Code:
       public static bool ShouldUseDivinationFlask(int flaskId)
              {
                  var bt = TargetHelpers.BestTarget;
      
                  return
                      DivinationFlaskCd.IsFinished &&
                      Flasks.DivinationDistillate.Count() != 0 &&
                      !MiscHelpers.Me.HasAura(Flasks.FlaskAuras[flaskId]) &&
                      bt != null && 
      		((bt.Rarity == Rarity.Rare && bt.HealthPercent < 30)||(bt.Rarity == Rarity.Unique && bt.HealthPercent < 20));
              }
      Hey,
      will it work like that ?
      if unique mob is under 20% or rare mob is under 30% life the divination distillate flask will be used.
       
    17. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      If it compiles it should work ;) the condition is good I guess
       
    18. Clonkiy

      Clonkiy Member

      Joined:
      Jan 19, 2015
      Messages:
      38
      Likes Received:
      0
      Trophy Points:
      6
      Hey toNyx,
      Code:
      // Reduce CPU Usage
                  if (CheckStuff.ElapsedMilliseconds <= 500)
                      return;
      is that the timer how often he goes through the flasks ?

      and could you help me with a loging of the flask ,i mean like "writes something into the log when , the Divination Distillate got used "

      cant get it to work like i wanted it to do :-/
       
    19. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      No it's the GCD. to avoid cpu spikes (and make it work smoother in VMs)

      Each flask have its own cooldown.

      For the logging take a look at the Initialize/Enabled method in Main. You should find and example of it.
       
    20. Clonkiy

      Clonkiy Member

      Joined:
      Jan 19, 2015
      Messages:
      38
      Likes Received:
      0
      Trophy Points:
      6
      thank you, got the log for the flask running now.
      changed some values in example routine as well for the monster targeting, so he has the rare/unique mobs in focus now and is using the flask more often.
      everthing is running fine now, only thing i dont get to work is that he is using the flask only if he has at least <95% life.
      got any tipp for me ?
       

    Share This Page