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

[Plugin] AdvancedItemFilter RELOADED !

Status
Not open for further replies.
Im not eperienced in JSON, but if I want my bot to pick up all white gold rings and keep them would this do the trick?

{
"Enabled": true,
"Type": 2,
"Rule": "item.IsRing and item.FullName == "Gold Ring"",
"ShouldLog": false
},
{
"Enabled": true,
"Type": 0,
"Rule": "item.IsRing and item.FullName == "Gold Ring"",
"ShouldLog": false
},
 
Im not eperienced in JSON, but if I want my bot to pick up all white gold rings and keep them would this do the trick?

{
"Enabled": true,
"Type": 2,
"Rule": "item.IsRing and item.FullName == "Gold Ring"",
"ShouldLog": false
},
{
"Enabled": true,
"Type": 0,
"Rule": "item.IsRing and item.FullName == "Gold Ring"",
"ShouldLog": false
},

Why not use the GUI ? it should be something more like :

Code:
"Rule": "item.IsRing and item.FullName == \"Gold Ring\""

after formatting by the plugin.
 
Thanks for this awesome plugin. I have a question/request/suggestion. Could you make it to sell Portal Scrolls or/and Transmutation Stones if it can't find enough scroll of wisdoms? I have the problem of having tons of these while being always out of wisdoms causing the bot to sell unidentified items.
 
Thanks for this awesome plugin. I have a question/request/suggestion. Could you make it to sell Portal Scrolls or/and Transmutation Stones if it can't find enough scroll of wisdoms? I have the problem of having tons of these while being always out of wisdoms causing the bot to sell unidentified items.

Well, not a priority but maybe later.
 
After i added the gold ring rule I kept getting this error:

Code:
[Tick] Exception during execution:Buddy.Coroutines.CoroutineUnhandledException: Exception was thrown by coroutine ---> Microsoft.Scripting.SyntaxErrorException: unexpected token ':'
   ved IronPython.Runtime.ThrowingErrorSink.Add(SourceUnit sourceUnit, String message, SourceSpan span, Int32 errorCode, Severity severity)
   ved IronPython.Compiler.Parser.ReportSyntaxError(Int32 start, Int32 end, String message, Int32 errorCode)
   ved IronPython.Compiler.Parser.ReportSyntaxError(Token t, IndexSpan span, Int32 errorCode, Boolean allowIncomplete)
   ved IronPython.Compiler.Parser.ReportSyntaxError(TokenWithSpan t, Int32 errorCode)
   ved IronPython.Compiler.Parser.EatEndOfInput()
   ved IronPython.Compiler.Parser.ParseTestListAsExpression()
   ved IronPython.Compiler.Parser.ParseTopExpression()
   ved IronPython.Runtime.PythonContext.ParseAndBindAst(CompilerContext context)
   ved IronPython.Runtime.PythonContext.CompilePythonCode(SourceUnit sourceUnit, CompilerOptions options, ErrorSink errorSink)
   ved IronPython.Runtime.FunctionCode.FromSourceUnit(SourceUnit sourceUnit, PythonCompilerOptions options, Boolean register)
   ved IronPython.Modules.Builtin.eval(CodeContext context, String expression, PythonDictionary globals, Object locals)
   ved IronPython.Modules.Builtin.eval(CodeContext context, String expression)
   ved CallSite.Target(Closure , CallSite , CodeContext , Object , Object )
   ved System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   ved Microsoft.Scripting.Interpreter.DynamicInstruction`4.Run(InterpretedFrame frame)
   ved Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   ved Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
   ved IronPython.Compiler.PythonCallTargets.OriginalCallTarget0(PythonFunction function)
   ved System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
   ved _Scripting_(Object[] )
   ved AdvancedItemFilter.Python.ConditionParserPython.EvaluateCondition(Item i, String cond, RuleType type, Boolean onlyEvaluating) i f:\EB\Plugins\AdvancedItemFilter\Python\ConditionParserPython.cs:linje 59
   ved AdvancedItemFilter.MyItemEvaluator.Match(Item item, EvaluationType type, IItemFilter& filter) i f:\EB\Plugins\AdvancedItemFilter\MyItemEvaluator.cs:linje 1034
   ved Loki.Bot.ItemEvaluator.Match(Item item, EvaluationType type, IItemFilter& filter)
   ved Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.‬*‫‎‎‫‬‏‫‪‬‬​‎*‏‪​‎*‫​**(Item , Object )
   ved Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.​*‏**‪‬‪*‎*​‏**‎**​​‫‬*‫*‬*(Item )
   ved System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
   ved Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.**‪‫‪****‏‬*‏*‫‪**​‎‫*‫‪‫*()
   ved Loki.Bot.Logic.Bots.OldGrindBot.SellTask.Zx?(15h\,oN9#^2%%\[\]\&G;VO($.MoveNext()
--- Afslutningen på staksporingen fra den tidligere placering, hvor undtagelsen blev udløst ---
   ved System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   ved System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   ved Loki.Bot.TaskManager._d8h-mLy'dYG\,?m\,"(s\[y{\.6'.MoveNext()
--- Afslutningen på staksporingen fra den tidligere placering, hvor undtagelsen blev udløst ---
   ved System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   ved System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   ved System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   ved Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.(0\[l`\]3U5ID5|U53J=c_:sPN!.MoveNext()
--- Afslutningen på staksporingen fra den tidligere placering, hvor undtagelsen blev udløst ---
   ved System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   ved System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   ved Buddy.Coroutines.Coroutine.2Nj8;6%E{o1n\]}VLC/cLC4Bm$.xi@FL3cF(lr\]t~\*(\&8<kA"1F-.MoveNext()
   --- Slut på staksporing af indre undtagelser ---
   ved Buddy.Coroutines.Coroutine.‫*​*‏‫‪*‪‪*‎**‫**​*‫*‬‪*‏‫‪‎*(Boolean )
   ved Buddy.Coroutines.Coroutine.‪‬*‏**‏*‎‪*‫‏‪‪****‪‏*‎**(Boolean )
   ved Buddy.Coroutines.Coroutine.Resume()
   ved Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.Tick()
   ved Loki.Bot.BotManager.‪*‏‏‎‏‎​‏‎‬​‬‫*‎​*​‎*​​‬*‪**(IBot )
 
After i added the gold ring rule I kept getting this error:

Code:
[Tick] Exception during execution:Buddy.Coroutines.CoroutineUnhandledException: Exception was thrown by coroutine ---> Microsoft.Scripting.SyntaxErrorException: unexpected token ':'
   ved IronPython.Runtime.ThrowingErrorSink.Add(SourceUnit sourceUnit, String message, SourceSpan span, Int32 errorCode, Severity severity)
   ved IronPython.Compiler.Parser.ReportSyntaxError(Int32 start, Int32 end, String message, Int32 errorCode)
   ved IronPython.Compiler.Parser.ReportSyntaxError(Token t, IndexSpan span, Int32 errorCode, Boolean allowIncomplete)
   ved IronPython.Compiler.Parser.ReportSyntaxError(TokenWithSpan t, Int32 errorCode)
   ved IronPython.Compiler.Parser.EatEndOfInput()
   ved IronPython.Compiler.Parser.ParseTestListAsExpression()
   ved IronPython.Compiler.Parser.ParseTopExpression()
   ved IronPython.Runtime.PythonContext.ParseAndBindAst(CompilerContext context)
   ved IronPython.Runtime.PythonContext.CompilePythonCode(SourceUnit sourceUnit, CompilerOptions options, ErrorSink errorSink)
   ved IronPython.Runtime.FunctionCode.FromSourceUnit(SourceUnit sourceUnit, PythonCompilerOptions options, Boolean register)
   ved IronPython.Modules.Builtin.eval(CodeContext context, String expression, PythonDictionary globals, Object locals)
   ved IronPython.Modules.Builtin.eval(CodeContext context, String expression)
   ved CallSite.Target(Closure , CallSite , CodeContext , Object , Object )
   ved System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   ved Microsoft.Scripting.Interpreter.DynamicInstruction`4.Run(InterpretedFrame frame)
   ved Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   ved Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
   ved IronPython.Compiler.PythonCallTargets.OriginalCallTarget0(PythonFunction function)
   ved System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
   ved _Scripting_(Object[] )
   ved AdvancedItemFilter.Python.ConditionParserPython.EvaluateCondition(Item i, String cond, RuleType type, Boolean onlyEvaluating) i f:\EB\Plugins\AdvancedItemFilter\Python\ConditionParserPython.cs:linje 59
   ved AdvancedItemFilter.MyItemEvaluator.Match(Item item, EvaluationType type, IItemFilter& filter) i f:\EB\Plugins\AdvancedItemFilter\MyItemEvaluator.cs:linje 1034
   ved Loki.Bot.ItemEvaluator.Match(Item item, EvaluationType type, IItemFilter& filter)
   ved Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.‬*‫‎‎‫‬‏‫‪‬‬​‎*‏‪​‎*‫​**(Item , Object )
   ved Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.​*‏**‪‬‪*‎*​‏**‎**​​‫‬*‫*‬*(Item )
   ved System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
   ved Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.**‪‫‪****‏‬*‏*‫‪**​‎‫*‫‪‫*()
   ved Loki.Bot.Logic.Bots.OldGrindBot.SellTask.Zx?(15h\,oN9#^2%%\[\]\&G;VO($.MoveNext()
--- Afslutningen på staksporingen fra den tidligere placering, hvor undtagelsen blev udløst ---
   ved System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   ved System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   ved Loki.Bot.TaskManager._d8h-mLy'dYG\,?m\,"(s\[y{\.6'.MoveNext()
--- Afslutningen på staksporingen fra den tidligere placering, hvor undtagelsen blev udløst ---
   ved System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   ved System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   ved System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   ved Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.(0\[l`\]3U5ID5|U53J=c_:sPN!.MoveNext()
--- Afslutningen på staksporingen fra den tidligere placering, hvor undtagelsen blev udløst ---
   ved System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   ved System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   ved Buddy.Coroutines.Coroutine.2Nj8;6%E{o1n\]}VLC/cLC4Bm$.xi@FL3cF(lr\]t~\*(\&8<kA"1F-.MoveNext()
   --- Slut på staksporing af indre undtagelser ---
   ved Buddy.Coroutines.Coroutine.‫*​*‏‫‪*‪‪*‎**‫**​*‫*‬‪*‏‫‪‎*(Boolean )
   ved Buddy.Coroutines.Coroutine.‪‬*‏**‏*‎‪*‫‏‪‪****‪‏*‎**(Boolean )
   ved Buddy.Coroutines.Coroutine.Resume()
   ved Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.Tick()
   ved Loki.Bot.BotManager.‪*‏‏‎‏‎​‏‎‬​‬‫*‎​*​‎*​​‬*‪**(IBot )

consider using the GUI to create your rules...

Code:
item.IsRing and item.FullName == "Gold Ring"
 
I'm having an issue with the bot not withdrawing wisdom scrolls from stash when running aif with map runner.

The option to replenish scrolls is on in old grind bot.

I have a lot of iir and basically it just keeps running maps from hideout until it runs out of scrolls of wisdom in inventory and doesn't pull more from the stash, is this a known issue?

I couldn't figure out what was filling up all my tabs with unidentified items and then I looked closely and saw what was happening.

Is there a work-around for this maybe?
 
I'm having an issue with the bot not withdrawing wisdom scrolls from stash when running aif with map runner.

The option to replenish scrolls is on in old grind bot.

I have a lot of iir and basically it just keeps running maps from hideout until it runs out of scrolls of wisdom in inventory and doesn't pull more from the stash, is this a known issue?

I couldn't figure out what was filling up all my tabs with unidentified items and then I looked closely and saw what was happening.

Is there a work-around for this maybe?

It doesnt withdraw because there's none. You should care about running out of wisdom when running the bot :)
 
It doesnt withdraw because there's none. You should care about running out of wisdom when running the bot :)

No ... there are scrolls of wisdom in all 4 tabs I just put it to test it, it just doesn't withdraw any after finishing map or town run.

edit: it only refills scroll of wisdom stack when I initially press start on the bot if there's fewer than 40 in inventory, after that it just keeps going until it runs out and never withdraws, that's why I asked.
 
Normally, this isn't an issue unless I run a lot of IIR, because the scroll drops within a map run are more or less enough to keep up with identifying the drops in the map, but when more IIR kicks in, the inventory stack will become used up very fast and then the bot doesn't withdraw any from stash.
 
No ... there are scrolls of wisdom in all 4 tabs I just put it to test it, it just doesn't withdraw any after finishing map or town run.

edit: it only refills scroll of wisdom stack when I initially press start on the bot if there's fewer than 40 in inventory, after that it just keeps going until it runs out and never withdraws, that's why I asked.
Normally, this isn't an issue unless I run a lot of IIR, because the scroll drops within a map run are more or less enough to keep up with identifying the drops in the map, but when more IIR kicks in, the inventory stack will become used up very fast and then the bot doesn't withdraw any from stash.

Weird issues, I fixed it a while ago pre2.0 and never happened since. which version of AIF are you running?
 
Also, how does it behave for you? Does it replenish the scroll stack after every map run to 40 in inventory? Or hideout sell run or, how does it do it for you?
 
Also, how does it behave for you? Does it replenish the scroll stack after every map run to 40 in inventory? Or hideout sell run or, how does it do it for you?

Every townrun if needed.
 
I've been getting a lot of this lately, my bot just stands still. I dont know what is the cause but I hope Tony can help :)


[Tick] Exception during execution:System.Exception: Only part of a ReadProcessMemory or WriteProcessMemory request was completed, at addr: 0621FF88, Size: 132
at GreyMagic.ExternalProcessMemory.ReadByteBuffer(IntPtr addr, Void* buffer, Int32 count)
at GreyMagic.MemoryBase.Read[T](IntPtr addr)
at Loki.Game.Objects.BaseObject..ctor(IntPtr address)
at Loki.Game.LokiPoe.BaseObjectManager.Get(IntPtr address)
at Loki.Game.Objects.Item..ctor(IntPtr entry)
at Loki.Game.Objects.Components.WorldItemComponent.get_Item()
at Loki.Bot.Logic.Bots.OldGrindBot.AreaStateCache.‪‎‎*‬‪​‎*‬‎*‪‬‫‬‬**​**‎​*()
at Loki.Bot.Logic.Bots.OldGrindBot.AreaStateCache.Tick()
at Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.Tick()
at Loki.Bot.BotManager.‪*‏‏‎‏‎​‏‎‬​‬‫*‎​*​‎*​​‬*‪**(IBot )
 

Attachments

Last edited:
I've been getting a lot of this lately, my bot just stands still. I dont know what is the cause but I hope Tony can help :)


[Tick] Exception during execution:System.Exception: Only part of a ReadProcessMemory or WriteProcessMemory request was completed, at addr: 0621FF88, Size: 132
at GreyMagic.ExternalProcessMemory.ReadByteBuffer(IntPtr addr, Void* buffer, Int32 count)
at GreyMagic.MemoryBase.Read[T](IntPtr addr)
at Loki.Game.Objects.BaseObject..ctor(IntPtr address)
at Loki.Game.LokiPoe.BaseObjectManager.Get(IntPtr address)
at Loki.Game.Objects.Item..ctor(IntPtr entry)
at Loki.Game.Objects.Components.WorldItemComponent.get_Item()
at Loki.Bot.Logic.Bots.OldGrindBot.AreaStateCache.‪‎‎*‬‪​‎*‬‎*‪‬‫‬‬**​**‎​*()
at Loki.Bot.Logic.Bots.OldGrindBot.AreaStateCache.Tick()
at Loki.Bot.Logic.Bots.OldGrindBot.OldGrindBot.Tick()
at Loki.Bot.BotManager.‪*‏‏‎‏‎​‏‎‬​‬‫*‎​*​‎*​​‬*‪**(IBot )

DeathLogger may cause this, you shouldn't really use this plugin xD
 
Status
Not open for further replies.
Back
Top