RuleFunction_ItemLevelBelowAverage - arkayenro/arkinventory GitHub Wiki
Rule Functions > Item Level Below Average
belowaverage( levelsbelow, minimum )
Arguments
-
levelsbelow (numeric) = the number of item levels below your current equipped average level
-
minimum (numeric) = the minimum item level to apply to (defaults to 2 if not supplied)
Return
- boolean - True if the iLevel of an equipable item is equal to or higher than minimum and equal to or lower than the average equipped item level minus levelsbelow, otherwise False
Remarks
-
requires version 30958.4 or higher
-
the iLevel can be found on the debug info menu for that item
-
the average equipped item level can be found in the blizzard character pane (as Item Level)
-
this is a pure item level (stat) check, it does not take into account class or other restrictions
-
this only applies to equipable items
-
no arguments will generate an error
-
if levelsbelow is less than zero it will generate an error
-
if minimum is zero or less it will be reset to 2 without generating an error. why 2? because there are way too many level 1 items that people wont want this to touch, but if you dont care about those items then specifically set this to 1
-
if the calculated item level difference goes below 1 it will be reset to 2
Examples
any equipable item that is between item level 2, and 10 levels below your equipped average item level
belowaverage( 10 )
any equipable item that is between item level 1, and 10 levels below your equipped average item level
belowaverage( 10, 1 )