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

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

    1. Anjin

      Anjin Member

      Joined:
      Sep 23, 2012
      Messages:
      39
      Likes Received:
      3
      Trophy Points:
      8
      One little fix, especially if running maps. Don't use flasks in hideout.
      Line 111 AutoFlask.cs
      Code:
      if (!LokiPoe.IsInGame || LokiPoe.Me.IsInTown || LokiPoe.Me.IsDead [B]|| LokiPoe.Me.IsInHideout[/B])
                      return;
       
    2. mrfuture

      mrfuture Member

      Joined:
      Nov 12, 2014
      Messages:
      86
      Likes Received:
      0
      Trophy Points:
      6
      Thanks for that!
       
    3. zhenk

      zhenk Member

      Joined:
      Jun 12, 2012
      Messages:
      101
      Likes Received:
      0
      Trophy Points:
      16
      anyone have a working autoflask 2.0 plug-in?
       
    4. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      It's working, some features are missing but it loads ;) it's in my/our plan to make it work better and have more options in the future, we may take over the project soon(tm)
       
    5. toNyx

      toNyx Well-Known Member

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

      toNyx Well-Known Member

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

      zhenk Member

      Joined:
      Jun 12, 2012
      Messages:
      101
      Likes Received:
      0
      Trophy Points:
      16
      [OnStartup] A top-level exception has been caught.GreyMagic.InjectionDesyncException: Process must have frozen or gotten out of sync: Injection Finished Event was never fired
      at GreyMagic.Executor.WaitForInjection(Int32 timeout)
      at GreyMagic.Executor.SharedExecuteLogicEnd(Int32 timeout)
      at GreyMagic.Executor.Execute(Int32 timeout)
      at GreyMagic.Executor.GrabFrame()
      at GreyMagic.ExternalProcessMemory.AcquireFrame(Boolean isHardLock)
      at Loki.Game.LokiPoe.AcquireFrame(UInt32 frameDropWaitTimeMs, Int32 executeTimeOut, Boolean clearCache)
      at BotGui.Windows.MainWindow.<OnStartup>b__6(Object o)


      That's my log when I attempt loading with this plugin
       
    8. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      Windowed mode should fix the issue ;) btw this project is no longer supported and the author is MIA, perhaps you didn't know yet. and FlaskHelper is even more advanced for now.
      For example AF2.0 checks for the "ignited" buff before using Ruby flasks, preventing RF builds I guess :s
       
    9. m0rf3

      m0rf3 Member

      Joined:
      Oct 23, 2012
      Messages:
      35
      Likes Received:
      0
      Trophy Points:
      6
      update?
       
    10. toNyx

      toNyx Well-Known Member

      Joined:
      Oct 29, 2011
      Messages:
      3,770
      Likes Received:
      35
      Trophy Points:
      48
      FlaskHelper.
       
    11. seankim

      seankim Member

      Joined:
      Dec 20, 2013
      Messages:
      115
      Likes Received:
      1
      Trophy Points:
      18
      update pls :(
       
    12. Corvius

      Corvius New Member

      Joined:
      Oct 1, 2012
      Messages:
      19
      Likes Received:
      0
      Trophy Points:
      0
      Anyone have problems like when bot didn't use hp flasks?
       
    13. pimpek21

      pimpek21 New Member

      Joined:
      Mar 15, 2015
      Messages:
      99
      Likes Received:
      0
      Trophy Points:
      0
      yes, sometimes stuck on not using flasks.
       
    14. CalifRHCP

      CalifRHCP Member

      Joined:
      Jan 15, 2010
      Messages:
      439
      Likes Received:
      3
      Trophy Points:
      18
      Anyone know how to get this to use instant heal flasks when very low on health? i have oner that fully heals me but this almost never uses it.
       
    15. PainfulDeath

      PainfulDeath Member

      Joined:
      Jul 12, 2012
      Messages:
      489
      Likes Received:
      1
      Trophy Points:
      18
      Well, if I understand the code correctly - whenever it wants to use a life flask (hp lower than treshold) it should use instant flasks and also prioritize them over overtime flasks IF the amount per use is more than amount per second the long ones do. Check that on your flasks...
      Code:
              public static IEnumerable<Item> LifeFlasks
              {
                  get
                  {
                      var inv = LokiPoe.InGameState.QuickFlaskPanel.Flasks;
                      return from item in inv
                          let flask = item as Flask
                          where flask != null && flask.Rarity != Rarity.Unique && flask.HealthRecover > 0 && flask.CanUse
                          [B]orderby flask.IsInstantRecovery ? flask.HealthRecover : flask.HealthRecoveredPerSecond descending[/B]
                          select item;
                  }
              }
      Also flask will not get used if you are akready getting healed by any other long flask due to this line
      Code:
                  if (LokiPoe.Me.HealthPercent < AutoFlaskSettings.Instance.HpFlaskPercentTrigger &&
                      [B]!LokiPoe.Me.IsUsingHealthFlask[/B])
      So if bot already drank a long flask it will not use any life flask while that's active.
       
      Last edited: Jun 16, 2015
    16. StrongBG

      StrongBG Banned

      Joined:
      Mar 13, 2012
      Messages:
      428
      Likes Received:
      0
      Trophy Points:
      16
      Guys can you update autoflask for the new version of the bot?
       
    17. d3vourm3nt

      d3vourm3nt Member

      Joined:
      May 5, 2014
      Messages:
      61
      Likes Received:
      0
      Trophy Points:
      6
      Please update this !!
       
    18. DyingHymn

      DyingHymn New Member

      Joined:
      Apr 12, 2014
      Messages:
      821
      Likes Received:
      14
      Trophy Points:
      0
    19. StrongBG

      StrongBG Banned

      Joined:
      Mar 13, 2012
      Messages:
      428
      Likes Received:
      0
      Trophy Points:
      16
      Tnx alot!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Finaly i wont be so slow!
       
    20. m0rf3

      m0rf3 Member

      Joined:
      Oct 23, 2012
      Messages:
      35
      Likes Received:
      0
      Trophy Points:
      6
      error , send log:

      2015-08-04 14:16:01,997 [4] ERROR CustomLogger (null) - An exception occurred.
      System.IO.IOException: Cannot locate resource 'gui.xaml'.
      at MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access)
      at System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access)
      at System.IO.Packaging.PackagePart.GetStream()
      at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
      at AutoFlask.Gui.InitializeComponent() in c:\Users\m0rf3\Downloads\Gui.xaml:line 1
      at AutoFlask.Gui..ctor() in c:\Users\m0rf3\Downloads\nostale\Plugins\2\Gui.xaml.cs:line 12
      at AutoFlask.AutoFlask.get_Control() in c:\Users\m0rf3\Downloads\nostale\Plugins\2\AutoFlask.cs:line 141
      at Exilebuddy.BotWindow.?????????????????????????????????????????(Object )
      at Exilebuddy.BotWindow.?????????????????????????????????????????()
      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 (Dispatcher , Action )
      at ?????????????????????????????????????????.????????????????????????????????????????.?????????????????????????????????????????(Dispatcher , Action )
      at Exilebuddy.BotWindow.?????????????????????????????????????????(Object )
       

    Share This Page