• Visit Rebornbuddy
  • [Plugin] FlaskHelper

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

    1. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      Negative, AutoFlask is fucked up for that kind of things because it doesn't handle any flask affixes, it's like the plugin just use Normal flasks, not magics or anything. This build includes special affixes like "Dispel frozen and chilled" or "Dispel Burning", or even "Removes Bleeding" (that's why there's some thresholds disabled)

      Just give it a try, compared to autoflask this plugin works with cooldown IN ADDITION TO actual flasks buffs, if RF builds needs a special behavior, I'll add it, this is the purpose of this plugin.

      If you use flasks only for buff removals, don't check "Use Ruby Flask" but the bleeding/shock/burning/frozen ones. If you want to override the flask buff, I can add some settings for RF builds, just let me know ;)

      // EDIT //

      Btw, the bleeding affix is disabled in the code, I need to do some testing it seems like the bleeding aura is fucked up. So no point enabling it ;)
       
      Last edited: Jan 22, 2015
    2. zhenk

      zhenk Member

      Joined:
      Jun 12, 2012
      Messages:
      101
      Likes Received:
      0
      Trophy Points:
      16
      I actually use Ruby Flasks for healing purposes as well as debuff removal for my RF build.
       
    3. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      Then it should work I guess :), just check both Use Ruby Flask (it'll act as life flask since you don't have any life flasks) and other stuff ;) and see what happens. First time I launched the bot with the plugin, I saw him trigger 3 flasks at once (same millisecond) so I guess it's responsive enough to work as intented, even for RF builds ;) lemme know
       
    4. zhenk

      zhenk Member

      Joined:
      Jun 12, 2012
      Messages:
      101
      Likes Received:
      0
      Trophy Points:
      16
      Getting this in my log when I try to load with this plug-in

      [OnStartup] A top-level exception has been caught.System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\William\Desktop\League Patch Notes\Plugins\FlaskHelper\FlaskSettingsForm.xaml'.
      at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
      at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
      at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
      at System.IO.FileStream..ctor(String path, FileMode mode)
      at FlaskHelper.Main.get_Control() in c:\Users\William\Desktop\League Patch Notes\Plugins\FlaskHelper-master\Main.cs:line 55
      at BotGui.Windows.MainWindow.HandleInterfaces(Object obj)
      at BotGui.Windows.MainWindow.<OnStartup>b__19()
      at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
      at System.Windows.Threading.DispatcherOperation.InvokeImpl()
      --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at System.Windows.Threading.DispatcherOperation.Wait(TimeSpan timeout)
      at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout)
      at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
      at System.Windows.Threading.Dispatcher.Invoke(Action callback)
      at BotGui.Windows.MainWindow.<OnStartup>b__6(Object o)
       
    5. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      Your folder should look like this :

      [​IMG]

      Just rename "FlaskHelper-master" to "FlaskHelper"
       
    6. zhenk

      zhenk Member

      Joined:
      Jun 12, 2012
      Messages:
      101
      Likes Received:
      0
      Trophy Points:
      16
      It works well enough, thanks a lot for the help toNyx! Just need it to remove curses/bleeding when updated.
       
    7. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      You mean the "of Warding" Affixe that immunes/Remove curses on use?
       
    8. zhenk

      zhenk Member

      Joined:
      Jun 12, 2012
      Messages:
      101
      Likes Received:
      0
      Trophy Points:
      16
      That I do
       
    9. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      1.0.0.1 is out, changelog is on front page or HERE

      Now working on Warding affixe.

      // EDIT

      Oh god, so much fail in this version lol, next one actually gonna fix all this shit :eek:
       
      Last edited: Jan 22, 2015
    10. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      Alright, 1.0.0.2 is out (Warding support added, please test it and report if not working, I use CurseCount but I feel that something will be wrong with this :))

      Changelog

      That's all (folks) for tonight, any suggestions? Let me know on Github or post it there ;)
       
      Last edited: Jan 22, 2015
    11. Nepthys

      Nepthys Community Developer

      Joined:
      Oct 13, 2014
      Messages:
      89
      Likes Received:
      1
      Trophy Points:
      0
      haven't tested it, using my own custom autoflask. but it looks really good, love the GUI :)

      I would personally make the following changes:

      change orderby to 'flask.CurrentCharges descending' so it uses flasks of a given type evenly. This makes them refill at the same rate (since an equal amount of charges are given to each flask as you kill mobs) so it helps flask uptime and you chicken less

      have the option to town portal to restore charges if flasks are low

      split life flasks into two types with their own criteria. 'immediate' flasks (bubbling / seething affix), and others which heal over time without an immediate component. make sure the immediate flask criteria does not check 'IsUsingHealthFlask', otherwise it won't use an immediate healing flask no matter how low your health gets, until the previous flask healing over time finishes

      When life flasks (and possibly ruby flasks, since an earlier poster requested it) are triggered to be used by your health/es%, check for status ailments (shocked, cursed etc) and use a life flask with the appropriate affix (dousing etc) if available.


      Mine does all the above, but when I coded it I didn't know how to make it configurable for users. I do now but am busy with more interesting projects ;)
      if ya want my code for reference or help with any suggested changes, let me know
       
    12. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      I'll look into this, it seems very good ;)

      Are you using tasks for that? If so, after which one do you add it?

      Does the "instant flask" override the normal one? I think so but I need confirmation ;D

      It's already on, affixes like Burning/Frozen/Bleeding(not yet)/Cursed/Shocked are handled in a separate way, whatever the flask is, it'll search for the affix on flasks and use the one with the dispel ;)

      Good suggestions ! Keep on going !

      // EDIT //

      omfg, what did I just wrote. Ofc instant flask overrides since they don't trigger any sort of buff, nice find tho ;) gonna add it in next build
       
      Last edited: Jan 23, 2015
    13. Nepthys

      Nepthys Community Developer

      Joined:
      Oct 13, 2014
      Messages:
      89
      Likes Received:
      1
      Trophy Points:
      0
    14. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      Yep, just noticed, anyway it's added in my todo list ;)

      btw, for less confusion, GUI now looks like this :

      [​IMG]

      Any opposition to the fact I add your refill task? nice job btw ;)

      // EDIT //

      Changelog so far :

      For those interested in testing/helping with coding, we have for plan to create a room in HipChat to share things, just ask in PM if you wanna join the party ! ;) (not only related to FlaskHelper !)
       
      Last edited: Jan 23, 2015
    15. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      v1.0.0.3 is out !

      NOTE : Make a fresh install of the plugin ! Thanks you.

      Lot of things have changed, file names, folders and stuff so please, consider this note.

      Changelog / Diff
       
    16. thetestdummy

      thetestdummy New Member

      Joined:
      Jan 23, 2015
      Messages:
      5
      Likes Received:
      0
      Trophy Points:
      0
      How do I change the cooldown for life and mana flask? I am dieing because it doesnt use another life pot fast enough.


      EDIT: Found it!
       
      Last edited: Jan 25, 2015
    17. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      There's a little mistake in the .3, the .4 fix it tho, gonna release it today I guess ;)
       
    18. sfrattini

      sfrattini Member

      Joined:
      Oct 4, 2012
      Messages:
      220
      Likes Received:
      4
      Trophy Points:
      18
      Hi,

      I get this from time to time:

      Code:
      Exception during plugin Tick.System.InvalidCastException: Unable to cast object of type 'Loki.Game.Objects.WorldItem' to type 'Loki.Game.Objects.Monster'.
         at FlaskHelper.Helpers.TargetHelpers.get_BestTarget() in d:\Games\Path Of Exile 2015\Messenger\Plugins\FlaskHelper\Helpers\TargetHelpers.cs:line 9
         at FlaskHelper.Usage.ShouldUseDivinationFlask(Int32 flaskId) in d:\Games\Path Of Exile 2015\Messenger\Plugins\FlaskHelper\Usage.cs:line 285
         at FlaskHelper.Usage.CheckFlaskUsage(FlaskTypes flaskType, Single flaskThreshold) in d:\Games\Path Of Exile 2015\Messenger\Plugins\FlaskHelper\Usage.cs:line 78
         at FlaskHelper.Main.Tick() in d:\Games\Path Of Exile 2015\Messenger\Plugins\FlaskHelper\Main.cs:line 157
         at Loki.Bot.PluginManager.(IPlugin )
      
      It happens everytime bot opens a door.
      anything to worry about?

      Cheers
       
      Last edited: Jan 26, 2015
    19. thetestdummy

      thetestdummy New Member

      Joined:
      Jan 23, 2015
      Messages:
      5
      Likes Received:
      0
      Trophy Points:
      0
      I changed the cooldown in /settings/plugins/flaskhelper for hp pots, first to 1000ms then to 100ms, but it will use a pot then after 100ms (or 1000ms) if hp goes below threshold, it wont use another pot again (keep dying)
       
    20. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      Which kind of flasks do you have in your bars? I suspect some unique flasks ;D It was a placeholder I need to fix it, it's an old behavior for the old EB, but atleast I know it's not working :D. I have a little idea how to fix it

      Fixed in the next verion, Changelog :

      You need to register and have one post to see spoilers!
      ETA : Today ;)
       
      Last edited: Jan 27, 2015

    Share This Page