What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

AutoFlask 2.0

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;
 
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;

Thanks for that!
 
anyone have a working autoflask 2.0 plug-in?

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)
 
[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
 
[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

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
 
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.
 
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:
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 )
 
Back
Top