04-09-2011, 06:54 AM
I'm not certain, but I think your problem lies within lines that are similar to
[Type] == jewel && [Quality] == magic # [FireResist]+[LightResist]+[ColdResist]+[PoisonResist] >= 15
This code might be interpreted like this... fire + light + cold + poison resists on a jewel are >= 12
So if just fire was 24, which is greater than or equal to 12, then it would pick it up because it would have met the requirement.
Possibly if fire was 2 light was 4 cold was 3 and poison was 3 it would pick it up as well.
In this type of code || means or, && means and, and + means add values together.
I think a code chunk you would be looking for would be similar to this:
[Type] == jewel && [Quality] == magic # [FireResist] >= 12 && [LightResist] >= 12 && [ColdResist] >= 12 && [PoisonResist] >= 12
[Type] == jewel && [Quality] == magic # [FireResist]+[LightResist]+[ColdResist]+[PoisonResist] >= 15
This code might be interpreted like this... fire + light + cold + poison resists on a jewel are >= 12
So if just fire was 24, which is greater than or equal to 12, then it would pick it up because it would have met the requirement.
Possibly if fire was 2 light was 4 cold was 3 and poison was 3 it would pick it up as well.
In this type of code || means or, && means and, and + means add values together.
I think a code chunk you would be looking for would be similar to this:
[Type] == jewel && [Quality] == magic # [FireResist] >= 12 && [LightResist] >= 12 && [ColdResist] >= 12 && [PoisonResist] >= 12