What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Could someone explain macro rules for item rule to me?

TouchMeGently

Member
Joined
Feb 17, 2010
Messages
320
Reaction score
0
Please check my item rule macro and see if anything's wrong.

Taken from a rule file I found:

@GOODAMMY := [MAXSTAT].dual+[SKILLDMG%].dual+[CRIT%].dual+[CRITDMG%].dual+[AS%].dual+[CDRED%].dual+[SOCKETS].dual
@GOODBRACER := [MAXSTAT].dual+[SKILLDMG%].dual+[CRIT%].dual
@GOODRING := [CRIT%].dual+[CRITDMG%].dual+[AS%].dual+[CDRED%].dual+[AVGDMG].dual+[SOCKETS].dual

What does that mean?

If I want to set a rule for amulet to have at least two of the following: crit % > 9%, crit dmg > 90%, socket > 0, elemental dmg > 18%, how do I go about it? What if I want to set a rule to have at least 3 of those affixes?

Bracer rule - at least two of the following: vit > 480, crit = 6%, elmental dmg > 18%, how do I set it?

The documentation for item rule is incomplete, there are no rules for CDR or Resource Reduction, does anyone have a complete list of available settings?
 
Last edited:
So I searched around and got a little bit of information on how to make macros, wondering if any of you can see if anything's wrong.

Rule 1: An amulet must have 3 of the following

Elemental damage is higher than 18%
Crit Chance is higher or equal to 9%
Crit Damage is higher or equal to 80%
Socketed

PHP:
@DMGAMMY := ([SKILLDMG%] < 18 && [CRITDMG%] < 80 && [CRIT%] < 9) || ([SKILLDMG%] < 18 && [CRITDMG%] < 80 && [SOCKETS] == 0) || ([SKILLDMG%] < 18 && [CRIT%] < 9 && [SOCKETS] == 0) || ([CRITDMG%] < 80 && [CRIT%] < 9 && [SOCKETS] == 0)

Rule 2: An amulet must have 3 of the following
CDR is higher or equal to 7%
Crit Chance is higher or equal to 9%
Crit Damage is higher or equal to 80%
Socketed

PHP:
@CDRAMMY := ([CDRED%] < 7 && [CRITDMG%] < 80 && [CRIT%] < 9) || ([CDRED%] < 7 && [CRITDMG%] < 80 && [SOCKETS] == 0) || ([CDRED%] < 7 && [CRIT%] < 9 && [SOCKETS] == 0) || ([CRITDMG%] < 80 && [CRIT%] < 9 && [SOCKETS] == 0)

Example, if a Duncraig Cross matches either of the above macros, it is trashed.
PHP:
[QUALITY] == "Legendary" && [NAME] == "Blackthorne's Duncraig Cross" #[@DMGAMMY] || [@CDRAMMY] -> [TRASH]

Do I have it correct? It might be a bit confusing but I made the rules for trashing not for keeping.
 
Back
Top