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
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.
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?
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:
Alright, 1.0.0.6 + 1.0.0.7 is out (double build ! fu) Changelog : You need to register and have one post to see spoilers!
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?
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)
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?
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.
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.
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.
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 :-/
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.
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 ?