Hello Guys,
Title says all
I want to write a code:
For Exemple I want to keep an Amulet wich has 3 of these 4 stats:
1-CritDMG
2-CritChance
3-Soket
4-Stat(Dex,Int,Str)
And if some amulet drops like this:
-Amulet-
600 Dex
%10 CritChance
Soket
%5 Atack Speed ==> (I am able enchant this stat to CritDMG in Mystic vendor)
Can you please write me simple code so that I can copy and adjust for other items?
If you can help I will be glad! Thank you!
Title says all

I want to write a code:
For Exemple I want to keep an Amulet wich has 3 of these 4 stats:
1-CritDMG
2-CritChance
3-Soket
4-Stat(Dex,Int,Str)
And if some amulet drops like this:
-Amulet-
600 Dex
%10 CritChance
Soket
%5 Atack Speed ==> (I am able enchant this stat to CritDMG in Mystic vendor)
Can you please write me simple code so that I can copy and adjust for other items?
If you can help I will be glad! Thank you!
