• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • AutoFlask 2.0

    Discussion in 'Archives' started by naut, Oct 12, 2014.

    1. naut

      naut Community Developer

      Joined:
      Feb 9, 2012
      Messages:
      277
      Likes Received:
      21
      Trophy Points:
      18
      Hey guys, I updated the Autoflask plugin for considerably more support for many flasks.

      The plugin will now support the use of:
      -Rarity Flask
      -Topaz Flask - Health and ES supported
      -Ruby Flask - Health and ES supported
      -Granite Flask - Health and ES supported
      -Quicksilver Flask
      -Diamond Flask
      -Atziri Flask
      -Jade Flask
      -Lavianga's Spirit Flask

      By default:
      -Granite/Jade flasks will be used at 90% hp / 50% ES
      -Quicksilver flasks will be used when there are zero mobs within 50 yards.
      -Topaz flask will be used when below 90% hp / 50% ES and shocked
      -Ruby flask will be used when below 90% hp / 50% ES and ignited
      -Rarity flask will be used when Piety/Dominus fall below 10% health
      -Diamond flask will be used when Piety/Dominus/Kole fall below 90% health
      -Atziri flask will be used when player hits 90%health/50% ES
      -Lavianga's Spirit Flask at 90% mana

      Rarity/Diamond are hard cases to deal with and while I would prefer they be used on all rare mobs, this is all I am able to do for now.

      Set the % to 0 if you do not want to use that flask based on ES or Health.

      View attachment AutoFlask.zip
       
      Last edited: Nov 6, 2014
      seankim likes this.
    2. Synchro

      Synchro Member

      Joined:
      Mar 13, 2014
      Messages:
      70
      Likes Received:
      1
      Trophy Points:
      8
      You sir, are a god amongst men!
       
    3. zamup

      zamup New Member

      Joined:
      Mar 20, 2014
      Messages:
      114
      Likes Received:
      0
      Trophy Points:
      0
      Sick, thanks for this :)
       
    4. Sh33p

      Sh33p Member

      Joined:
      Mar 4, 2012
      Messages:
      31
      Likes Received:
      1
      Trophy Points:
      8
      I love your work ! :)
      is it possible you can add the usage of "Atziri's Promise Amethyst Flask" - like use it if you are in a fight and if it got enough charges to use it

      thanks in advance
       
    5. zamup

      zamup New Member

      Joined:
      Mar 20, 2014
      Messages:
      114
      Likes Received:
      0
      Trophy Points:
      0
      Edit 2 :

      When I run outside sandbox, no problem,

      but inside sandbox

      Code:
      [AutoFlask] Initialize
      [AutoFlask] Enable
      [SettingsControl] SetupTextBoxBinding failed for 'GraniteFlaskPercentTriggerTextBox'.
      [OnStartup] A top-level exception has been caught.System.Exception: The SettingsControl could not be created.
         at AutoFlask.AutoFlask.get_Control()
         at BotGui.Windows.MainWindow.HandleInterfaces(Object obj)
         at BotGui.Windows.MainWindow.<OnStartup>b__14()
         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__5(Object o)
      
      I do not have any issue with another plugin, any idea?

      Edit 3 : Renaming folder in sandbox fixed the problem
      Edit 4 : Works like a charm! Tyvm :)
       
      Last edited: Oct 12, 2014
    6. naut

      naut Community Developer

      Joined:
      Feb 9, 2012
      Messages:
      277
      Likes Received:
      21
      Trophy Points:
      18
      Atziri's flask would need to be used on specific cases similar to how the rarity flask is set up.

      I can add that in and upload it a bit later.
       
    7. naut

      naut Community Developer

      Joined:
      Feb 9, 2012
      Messages:
      277
      Likes Received:
      21
      Trophy Points:
      18
      New version posted in the original post.

      Plugin now supports atziri flasks as well as providing both ES and health support for granite and topaz flasks.
       
    8. Nixon233

      Nixon233 New Member

      Joined:
      Sep 30, 2013
      Messages:
      320
      Likes Received:
      2
      Trophy Points:
      0
      Holy fuck! is today Christmas ? thanks for the releases naut!
       
    9. thrilla15

      thrilla15 New Member

      Joined:
      Dec 6, 2012
      Messages:
      21
      Likes Received:
      0
      Trophy Points:
      1
      Thank you kind sir, please update your donation link cause lunch is on me tomorrow :)
       
    10. naut

      naut Community Developer

      Joined:
      Feb 9, 2012
      Messages:
      277
      Likes Received:
      21
      Trophy Points:
      18
      Hah thanks buddy, I didn't realise the link wasn't working :)
       
    11. zamup

      zamup New Member

      Joined:
      Mar 20, 2014
      Messages:
      114
      Likes Received:
      0
      Trophy Points:
      0
      Thanks for all this works sir, you are the man
       
    12. thab0mb

      thab0mb New Member

      Joined:
      Mar 30, 2014
      Messages:
      14
      Likes Received:
      0
      Trophy Points:
      0
      this plugin is awesome man. Thx a bunch!


      There is one problem though:
      -Divination Distilatte is used on Domi's first form, which of course, is pointless and kills the charges for the second form.
       
    13. thenotorious

      thenotorious Member

      Joined:
      Aug 23, 2014
      Messages:
      85
      Likes Received:
      0
      Trophy Points:
      6
      there is a way to add unique flask ?
       
    14. seankim

      seankim Member

      Joined:
      Dec 20, 2013
      Messages:
      115
      Likes Received:
      1
      Trophy Points:
      18

      // Rarity
      var Piety = LokiPoe.ObjectManager.GetObjectByName<Monster>("Piety");
      var Dom = LokiPoe.ObjectManager.GetObjectByName<Monster>("Dominus, High Templar");
      var Doms = LokiPoe.ObjectManager.GetObjectByName<Monster>("Dominus, Ascendant");

      Change code

      // Rarity
      var Piety = LokiPoe.ObjectManager.GetObjectByName<Monster>("Piety");
      var Dom = LokiPoe.ObjectManager.GetObjectByName<Monster>("Dominus, Ascendant");
      var Doms = LokiPoe.ObjectManager.GetObjectByName<Monster>("Dominus, Ascendant");

      it works fine :)
       
    15. zamup

      zamup New Member

      Joined:
      Mar 20, 2014
      Messages:
      114
      Likes Received:
      0
      Trophy Points:
      0
      It break Topaz flask, I suggest to comment this instead

      Code:
      /*
      			if (Dom != null)
      				{
      					if (!Dom.IsDead && (Dom.HealthPercent < AutoFlaskSettings.Instance.RarityFlaskPercentTrigger))
      					{
      						if (FlaskHelper(_rarityFlaskCd, AutoFlaskSettings.Instance.RarityFlaskCooldownMs, RarityFlasks))
      						{
      							// ReSharper disable once RedundantJumpStatement
      							return;
      						}
      					}
      				}*/
      
       
    16. thenotorious

      thenotorious Member

      Joined:
      Aug 23, 2014
      Messages:
      85
      Likes Received:
      0
      Trophy Points:
      6
      is it possible to add Ruby flask as well ?
       
    17. naut

      naut Community Developer

      Joined:
      Feb 9, 2012
      Messages:
      277
      Likes Received:
      21
      Trophy Points:
      18
      Doms first form removed.

      Ruby flask added.

      Topaz flask logic changed.

      Ruby flask will now trigger if you are ignited and at the HP/ES % trigger chosen in settings.
      Topaz flask will now trigger if you are shocked and at the HP/ES % trigger chosen in settings.


      Download updated in original post.
       
      Last edited: Oct 23, 2014
    18. naut

      naut Community Developer

      Joined:
      Feb 9, 2012
      Messages:
      277
      Likes Received:
      21
      Trophy Points:
      18
      Had some compile errors I did not notice when making the changes because the bot was not up and running.

      Errors fixed and new version uploaded.
       
    19. thenotorious

      thenotorious Member

      Joined:
      Aug 23, 2014
      Messages:
      85
      Likes Received:
      0
      Trophy Points:
      6
      even with the new version I still get this

      Compiler Error: c:\temp\d3\ExilebuddyBETA 0.1.2740.914\Plugins\AutoFlask\AutoFlask.cs(257,8) : error CS0103: The name 'Dom' does not exist in the current context
      Compiler Error: c:\temp\d3\ExilebuddyBETA 0.1.2740.914\Plugins\AutoFlask\AutoFlask.cs(259,11) : error CS0103: The name 'Dom' does not exist in the current context
      Compiler Error: c:\temp\d3\ExilebuddyBETA 0.1.2740.914\Plugins\AutoFlask\AutoFlask.cs(259,26) : error CS0103: The name 'Dom' does not exist in the current context
      Compiler Error: c:\temp\d3\ExilebuddyBETA 0.1.2740.914\Plugins\AutoFlask\AutoFlask.cs(306,8) : error CS0103: The name 'Dom' does not exist in the current context
      Compiler Error: c:\temp\d3\ExilebuddyBETA 0.1.2740.914\Plugins\AutoFlask\AutoFlask.cs(308,11) : error CS0103: The name 'Dom' does not exist in the current context
      Compiler Error: c:\temp\d3\ExilebuddyBETA 0.1.2740.914\Plugins\AutoFlask\AutoFlask.cs(308,26) : error CS0103: The name 'Dom' does not exist in the current context
      Compiler Error: c:\temp\d3\ExilebuddyBETA 0.1.2740.914\Plugins\AutoFlask\AutoFlaskSettings.cs(445,26) : error CS0103: The name '_rubyFlaskHealthPercentTrigger' does not exist in the current context
      Compiler Error: c:\temp\d3\ExilebuddyBETA 0.1.2740.914\Plugins\AutoFlask\AutoFlaskSettings.cs(448,34) : error CS0103: The name '_rubyFlaskHealthPercentTrigger' does not exist in the current context
      Compiler Error: c:\temp\d3\ExilebuddyBETA 0.1.2740.914\Plugins\AutoFlask\AutoFlaskSettings.cs(452,17) : error CS0103: The name '_rubyFlaskHealthPercentTrigger' does not exist in the current context
       
    20. naut

      naut Community Developer

      Joined:
      Feb 9, 2012
      Messages:
      277
      Likes Received:
      21
      Trophy Points:
      18
      Hmm.. I will reupload to confirm I did not post the wrong version.. but that issue should be fixed.

      Redownload the link in the first post.
       

    Share This Page