Code:(item.IsChest or item.IsHelmet or item.IsBoots) and item.TotalArmor >= X and item.MaximumLife >= Y and (item.IsTriRes or item.OverallResistancesPct >= Z)
Replace X/Y/Z
Hey ToNyx,
New to how the AIF rules work. Where you've got "or" "and" etc in the code above, is that just short handing it for the sake of the explanation, or can we substitute words instead of operators in the actual rule? I ask because you only mention to change X/Y/Z, not fix the operators.
Also, this question might be redundant by the time you reply, but I'd like to verify that all I need to do to setup a rule is simply copy pasta code like the above into the create rule box, checkbox what type of rule it is and create rule correct? There's nothing that would need to be added to code above other than change values (and possibly operators?). Mainly asking as my bot is currently running and do not want to stop it yet, but I'd like to start writing out rule code for when I do stop it.
Edit:
Is this an acceptable format? What I am trying to achieve is getting at least 2/3 of the affixes including life so I can craft the third.
Code:
item.IsRing && item.MaximumLife >= 50 && (item.CastSpeed >= 5 || item.IncreasedRarity >= 15) && (item.IncreasedRarity >= 15 || item.IncreasedFireDamage >= 7) && (item.CastSpeed >= 5 || item.IncreasedFireDamage >= 7)