Kolbot - Pickit trick (very helpful!)

02/11/2020 13:03 Majestroo123#1
It is very difficult to define a good pickit especially for rare items with a lot of affixes like circlets.
However there is one simple trick how you can easily define a very strong pickit rule.
Here is an example. It doesnt make much sense, its just an example to explain how it works:

[type] == circlet # ( [fcr] >= 20 ) + ( [itemmagicbonus] >= 25 ) + ( [maxhp] >= 20 ) >= 2

To abstract it:
[type] == circlet # (boolean1) + (boolean2) + (boolean3) >= 2

--> The circlet is kept if at least 2 booleans are true.

I actually never thought of this possibility before and now that I know I actually edited my whole rare and magic pickit.

Keep in mind that THE BRACKETS ARE MANDATORY!
It will NOT work without brackets for some reason...
05/06/2022 20:14 d2junkie_2008#2
okay, well then you prob know what the name of a war cap is, so i can define them in my .nip
05/31/2022 23:36 web835#3
Quote:
Originally Posted by Majestroo123 View Post
It is very difficult to define a good pickit especially for rare items with a lot of affixes like circlets.
However there is one simple trick how you can easily define a very strong pickit rule.
Here is an example. It doesnt make much sense, its just an example to explain how it works:

[type] == circlet # ( [fcr] >= 20 ) + ( [itemmagicbonus] >= 25 ) + ( [maxhp] >= 20 ) >= 2

To abstract it:
[type] == circlet # (boolean1) + (boolean2) + (boolean3) >= 2

--> The circlet is kept if at least 2 booleans are true.

I actually never thought of this possibility before and now that I know I actually edited my whole rare and magic pickit.

Keep in mind that THE BRACKETS ARE MANDATORY!
It will NOT work without brackets for some reason...
Code:
[type] == circlet && [quality] == rare # [amazonskills]+[assassinskills]+[barbarianskills]+[druidskills]+[necromancerskills]+[paladinskills]+[sorceressskills] == 2 && [frw] >= 10
[type] == circlet && [quality] == rare # [amazonskills]+[assassinskills]+[barbarianskills]+[druidskills]+[necromancerskills]+[paladinskills]+[sorceressskills] == 2 && [fcr] >= 10
[type] == circlet && [quality] == rare # [amazonskills]+[assassinskills]+[barbarianskills]+[druidskills]+[necromancerskills]+[paladinskills]+[sorceressskills] == 2 && [itemtohitpercentperlevel] >= 10
[Type] == Circlet && [Quality] == rare # [PaladinSkills] == 2 && [ItemTohitPercentperLevel] >= 1 && ([Sockets] >= 2 || [ColdResist]+[LightResist]+[FireResist]+[PoisonResist] >= 40 || [MaxHp] >= 50 || [MaxMana] >= 60 || [Strength] >= 20 || [Dexterity] >= 15 || [FCR] == 20)
[Type] == Circlet && [Quality] == rare # [PaladinSkills] == 2 && [FCR] == 20 && ([Dexterity] >= 15 || [MaxHp] >= 40 || [MaxMana] >= 60 || [ColdResist]+[LightResist]+[FireResist]+[PoisonResist] >= 40)
[Type] == Circlet && [Quality] == rare # [PaladinSkills] == 2 && [Sockets] == 2 && (([Strength]+[Dexterity] >= 30 && [MaxHp] >= 40) || [Strength]+[Dexterity] >= 40)