Skip to content

The rule builder

The rule builder edits one rule as a form. It opens in place of the deal feed on the Sniper tab, from Add rule, a rule’s Edit, or a preset. Read it from top to bottom: start from a preset, set the conditions, read what the rule does, then save.

In-game screenshot to comeThe addon's rule builder: conditions as rows, and This rule below reading the rule as a sentence and as text, with how many listed items it would match.

Optional, at most 40 characters. It is shown in the rule list and on the deals the rule finds.

A preset fills in the conditions for you, replacing any already there:

  • Cheap gear for my level
  • Under half its usual price
  • Profit of at least 1g
  • Cloth armor
  • A specific item
  • Blank

“Cheap gear for my level” takes your character’s level when the game gives it, and 60 otherwise.

A rule needs at least one condition, and every condition must match (All must match). Add a condition offers these, each with its comparisons:

ConditionComparisons offeredWritten as
Categoryis any ofcat
Subcategoryis any ofsub
Slotis any ofslot
Qualityat least, exactly, at most, betweenquality
Item levelbetween, at least, at mostilvl
Required levelbetween, at least, at mostreq
Priceat most, under, at least, overprice
Percent of usualunder, at most, at least, overpct
Profitat least, over, at most, underprofit
Namecontainsname
Itemis any ofitem
  • Category, Subcategory and Slot are lists from your game client, in its language. You can pick several: the condition matches any of them. A subcategory needs its category picked too. The rule saves the game’s own numbers for them (such as cat 4 for armour), which read the same in every language.
  • Item takes item IDs, such as 2589 for Linen Cloth.
  • Amounts of money are typed like 5g20s3c, 1.5g, 50s or 5 (a bare number is gold).
  • Percent of usual and Profit need a usual price; see The usual price.
  • not turns a condition around.

A condition that cannot be saved yet is marked, and the footer says why (for example “Pick at least one Category.” or “Give a whole number for Item level.”).

As you change the conditions, the builder reads the rule back three ways:

  • as a sentence, such as “Cloth armor, uncommon or better, under 60% of its usual price”;
  • as text, the exact line that is saved, with Copy: this is the rule language, so you learn it by watching it;
  • as a preview, “Would match N of M items listed now”, from the last list the sniper read. Start the sniper once to see it. It also says how many listed items have no usual price yet and so never match a rule on percent or profit.

Save rule saves it, as a new rule at the end of the profile or in place of the one you opened. Save is off while anything stops the rule from being saved, with the reason in the footer. Cancel or Escape leaves the profile as it was.

A rule that the form cannot show (free text, an “or” across different fields, nested groups, or a category written by a name this client does not know exactly) opens as text instead; see Sniper and profiles.