# ArkInventory [Rules] ItemVersion
ArkInventory [Rules] ItemVersion is an extension for [ArkInventory]
(https://www.curseforge.com/wow/addons/ark-inventory)
that allows you to create custom bag categories and sorting rules based on an item's expansion or patch version.
Powered by ItemVersion (https://www.curseforge.com/wow/addons/itemversion),
it automatically tags every item in World of Warcraft from Classic all the way to Midnight!
---
### ๐ Key Features
- ๐ Automatic Expansion Sorting : Instantly sort your bags, bank, and warband bank by expansion using simple ArkInventory rules.
- ๐ Midnight Ready : Native support for Expansion Major 12 (*Midnight*) alongside all past expansions (Classic through TWW).
- ๐ Smart Fallback System : Items not yet indexed in ItemVersion's database automatically fall back to the current expansion (*Midnight*), ensuring new drops are never misplaced!
- ๐ท๏ธ Custom Range Rules : Filter item ranges easily (e.g. legacy expansion ranges, specific past content, etc.).
- ๐ In-Game Diagnostic Commands : Use `/iv` commands to check item IDs, list rules, and verify expansion tags on the fly.
---
### ๐ Available ArkInventory Rules
Use any of the following triggers in your ArkInventory rule definitions:
#### Expansion-Specific Triggers
- `miditem()` — Midnight (Major 12)
- `twwitem()` — The War Within (Major 11)
- `dfitem()` — Dragonflight (Major 10)
- `slitem()`, `bfaitem()`, `legionitem()`, `woditem()`, `mopitem()`, `cataitem()`, `wrathitem()`, `tbcitem()`, `classicitem()`
#### Special & Utility Triggers
- `currentexpitem()` — Matches items from the current active expansion (*Midnight*).
- `fallbackitem()` / `noversionitem()` — Matches items that lack explicit ItemVersion data.
- `expansionrange(min, [max])` — Matches items falling between expansion major numbers (e.g., `expansionrange(1, 6)` for Classic through WoD).
- `itemversion()` — Returns the item's expansion major number directly.
---
### ๐ป Diagnostic Commands (`/iv`)
- `/iv <itemID>` — Inspects an item by ID or link and displays its detected expansion version, build string, and fallback state.
- `/iv rules` — Displays a status check of all registered rules and modules.
- `/iv current` — Prints the current configured major expansion version.
- `/iv list` — Displays all mapped expansions and their rule names.
---
### โ๏ธ Requirements
This rule addon requires the following addons installed and enabled:
1. ArkInventory (https://www.curseforge.com/wow/addons/ark-inventory)
2. ArkInventoryRules *(Included with ArkInventory)*
3. ItemVersion (https://www.curseforge.com/wow/addons/itemversion)
---
### ๐จ๐ป Credits & Author
- Author : Mr Draven

