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!

krone6

Member
Joined
Jun 11, 2012
Messages
441
[Solved] Is there a way to "not" in the item filter?

I don't want my bot to pickup any rares below a certain ilvl, however rare talismans sell and is worth it for me. How can I choose to do the opposite of not picking anything below ilvl40 except talismans without resorting to picking everything up and just not vendoring them?

Thanks (I searched for the item filter guide but didn't really find what I was looking for in it).
 
Last edited:
item.IsRare and item.ItemLevel >= 40
item.IsRare and item.IsTalisman
you dont need not imo. just add that in your aif pickup rules.
 
I don't want my bot to pickup any rares below a certain ilvl, however rare talismans sell and is worth it for me. How can I choose to do the opposite of not picking anything below ilvl40 except talismans without resorting to picking everything up and just not vendoring them?

Thanks (I searched for the item filter guide but didn't really find what I was looking for in it).
item.IsRare and item.ItemLevel >= 40
item.IsRare and item.IsTalisman
you dont need not imo. just add that in your aif pickup rules.

You gave the answer in the thread's title.. LOL

Code:
item.IsRare and not item.IsTalisman

This will pickup any rare but no talismans. :D you just have to negate your condition. but as the guy stated above, no need to negate, just invert the check

So in your case

Code:
item.IsRare and (item.ItemLevel >= 40 or item.IsTalisman)
 
Last edited:
You gave the answer in the thread's title.. LOL

Code:
item.IsRare and not item.IsTalisman

This will pickup any rare but no talismans. :D you just have to negate your condition. but as the guy stated above, no need to negate, just invert the check

So in your case

Code:
item.IsRare and (item.ItemLevel >= 40 or item.IsTalisman)

I have read the first post and was going to do some testing today to see if it works, though just to make sure I put this under item type using regex, correct? It's the first time I've used this type of filter for the itemfilter with it being outside of the code itself (not a programmer). Thanks for a more detailed explanation as well. I may not be a programmer but I make sure to at least study what's given to me so I can use it in the future.
 
I have read the first post and was going to do some testing today to see if it works, though just to make sure I put this under item type using regex, correct? It's the first time I've used this type of filter for the itemfilter with it being outside of the code itself (not a programmer). Thanks for a more detailed explanation as well. I may not be a programmer but I make sure to at least study what's given to me so I can use it in the future.

This is only for AIF users, it's python scripting.

The idea is what dontbeafraid gave you, instead of negating the check try inverting the values, it should work.
 
This is only for AIF users, it's python scripting.

The idea is what dontbeafraid gave you, instead of negating the check try inverting the values, it should work.

Sounds good. I'll check it out in a couple hours when I get back and let you know how it goes.
 
I just did some testing and noticed DontBeAfraid's route worked fine when I put this under the normal item filter's item type. Probably not the most effective way to do it but it works, so I'll stick with this method. If I decide to fine tune my filter further I'll download the advanced item filter.
 
Back
Top