Armor Item Class menu wrong
mbattersby opened this issue ยท 4 comments
Please include as much of the following information as possible to help me fix the bug:
Brief Description of Bug
Wrong third level menu on Extended Search Item Class when second level selection is Armor.
The menu needs to be different per second-level. Not all of the options are the same. It should match what the Blizzard AH UI presents. As far as I can see there is currently no way to select a cloak, neck or ring item, and there's a confusing and unnecessary third level for Shields (which Blizzard groups under Miscellaneous).
The sort order is strange on the second level menu too.
Steps to Reproduce
Shopping Tab -> Extended Search -> Use the menus.
Loaded Addons
N/A
Back Trace (LUA Error Output)
N/A
I am fairly sure you can use the AuctionCategories
global once the (retail) AH is loaded.
Edit: complication, some categories have multiple classid+subclassid filters.
local function printCategory(t, indent)
indent = indent or ''
local txt = { indent, t.name }
for _,f in ipairs(t.filters or {}) do
local filterText = { f.classID, f.subClassID, f.inventoryType }
table.insert(txt, table.concat(filterText, '/'))
end
print(table.concat(txt, ' '))
for _, s in ipairs(t.subCategories or {}) do
printCategory(s, indent .. ' ')
end
end
for _,t in ipairs(AuctionCategories) do
printCategory(t)
end
Output:
Weapons 2/0 2/4 2/7 2/9 2/15 2/13 2/19 2/1 2/5 2/8 2/6 2/10 2/2 2/18 2/3 2/16 2/20 2/14
One-Handed 2/0 2/4 2/7 2/9 2/15 2/13 2/19
One-Handed Axes 2/0
One-Handed Maces 2/4
One-Handed Swords 2/7
Warglaives 2/9
Daggers 2/15
Fist Weapons 2/13
Wands 2/19
Two-Handed 2/1 2/5 2/8 2/6 2/10
Two-Handed Axes 2/1
Two-Handed Maces 2/5
Two-Handed Swords 2/8
Polearms 2/6
Staves 2/10
Ranged 2/2 2/18 2/3 2/16
Bows 2/2
Crossbows 2/18
Guns 2/3
Thrown 2/16
Miscellaneous 2/20 2/14
Fishing Poles 2/20
Other 2/14
Armor 4/4 4/4/1 4/4/3 4/4/5 4/4/6 4/4/7 4/4/8 4/4/9 4/4/10 4/4/20 4/3 4/3/1 4/3/3 4/3/5 4/3/6 4/3/7 4/3/8 4/3/9 4/3/10 4/3/20 4/2 4/2/1 4/2/3 4/2/5 4/2/6 4/2/7 4/2/8 4/2/9 4/2/10 4/2/20 4/1 4/1/1 4/1/3 4/1/5 4/1/6 4/1/7 4/1/8 4/1/9 4/1/10 4/1/20 4/0/2 4/1/16 4/0/11 4/0/12 4/0/23 4/6 4/0/4 4/0/1 4/5
Plate 4/4 4/4/1 4/4/3 4/4/5 4/4/6 4/4/7 4/4/8 4/4/9 4/4/10 4/4/20
Runecarving 4/4 4/4/1 4/4/3 4/4/5 4/4/6 4/4/7 4/4/8 4/4/9 4/4/10 4/4/20
Head 4/4/1
Shoulder 4/4/3
Chest 4/4/5 4/4/20
Waist 4/4/6
Legs 4/4/7
Feet 4/4/8
Wrist 4/4/9
Hands 4/4/10
Mail 4/3 4/3/1 4/3/3 4/3/5 4/3/6 4/3/7 4/3/8 4/3/9 4/3/10 4/3/20
Runecarving 4/3 4/3/1 4/3/3 4/3/5 4/3/6 4/3/7 4/3/8 4/3/9 4/3/10 4/3/20
Head 4/3/1
Shoulder 4/3/3
Chest 4/3/5 4/3/20
Waist 4/3/6
Legs 4/3/7
Feet 4/3/8
Wrist 4/3/9
Hands 4/3/10
Leather 4/2 4/2/1 4/2/3 4/2/5 4/2/6 4/2/7 4/2/8 4/2/9 4/2/10 4/2/20
Runecarving 4/2 4/2/1 4/2/3 4/2/5 4/2/6 4/2/7 4/2/8 4/2/9 4/2/10 4/2/20
Head 4/2/1
Shoulder 4/2/3
Chest 4/2/5 4/2/20
Waist 4/2/6
Legs 4/2/7
Feet 4/2/8
Wrist 4/2/9
Hands 4/2/10
Cloth 4/1 4/1/1 4/1/3 4/1/5 4/1/6 4/1/7 4/1/8 4/1/9 4/1/10 4/1/20
Runecarving 4/1 4/1/1 4/1/3 4/1/5 4/1/6 4/1/7 4/1/8 4/1/9 4/1/10 4/1/20
Head 4/1/1
Shoulder 4/1/3
Chest 4/1/5 4/1/20
Waist 4/1/6
Legs 4/1/7
Feet 4/1/8
Wrist 4/1/9
Hands 4/1/10
Miscellaneous 4/0/2 4/1/16 4/0/11 4/0/12 4/0/23 4/6 4/0/4 4/0/1
Runecarving 4/0/2 4/1/16 4/0/11 4/0/12 4/0/23 4/6 4/0/4 4/0/1
Neck 4/0/2
Cloak 4/1/16
Finger 4/0/11
Trinket 4/0/12
Held In Off-hand 4/0/23
Shields 4/6
Shirt 4/0/4
Head 4/0/1
Cosmetic 4/5
Containers 1/0 1/6 1/9 1/8 1/7 1/2 1/3 1/4 1/5 1/10
Bag 1/0
Mining Bag 1/6
Tackle Box 1/9
Inscription Bag 1/8
Leatherworking Bag 1/7
Herb Bag 1/2
Enchanting Bag 1/3
Engineering Bag 1/4
Gem Bag 1/5
Cooking Bag 1/10
Gems 3/11 3/0 3/1 3/2 3/3 3/5 3/6 3/7 3/8 3/9 3/10
Artifact Relic 3/11
Intellect 3/0
Agility 3/1
Strength 3/2
Stamina 3/3
Critical Strike 3/5
Mastery 3/6
Haste 3/7
Versatility 3/8
Other 3/9
Multiple Stats 3/10
Item Enhancements 8/4 8/5 8/6 8/14 8/1 8/0 8/12 8/13 8/2 8/3 8/11 8/10 8/9 8/8 8/7
Chest 8/4
Wrist 8/5
Hands 8/6
Misc 8/14
Neck 8/1
Head 8/0
Two-Handed Weapon 8/12
Shield/Off-hand 8/13
Shoulder 8/2
Cloak 8/3
Weapon 8/11
Finger 8/10
Feet 8/9
Legs 8/8
Waist 8/7
Consumables 0/9 0/3 0/0 0/1 0/2 0/5 0/7 0/8
Vantus Runes 0/9
Flask 0/3
Explosives and Devices 0/0
Potion 0/1
Elixir 0/2
Food & Drink 0/5
Bandage 0/7
Other 0/8
Glyphs 16/11 16/9 16/8 16/7 16/5 16/4 16/3 16/2 16/6 16/10 16/1 16/12
Druid 16/11
Warlock 16/9
Mage 16/8
Shaman 16/7
Priest 16/5
Rogue 16/4
Hunter 16/3
Paladin 16/2
Death Knight 16/6
Monk 16/10
Warrior 16/1
Demon Hunter 16/12
Trade Goods 7/5 7/6 7/7 7/8 7/9 7/12 7/16 7/4 7/1 7/10 7/18 7/11
Cloth 7/5
Leather 7/6
Metal & Stone 7/7
Cooking 7/8
Herb 7/9
Enchanting 7/12
Inscription 7/16
Jewelcrafting 7/4
Parts 7/1
Elemental 7/10
Optional Reagents 7/18
Other 7/11
Recipes 9/11 9/2 9/1 9/0 9/10 9/6 9/4 9/3 9/8 9/5 9/7 9/9
Inscription 9/11
Tailoring 9/2
Leatherworking 9/1
Jewelcrafting 9/10
Alchemy 9/6
Blacksmithing 9/4
Engineering 9/3
Enchanting 9/8
Cooking 9/5
First Aid 9/7
Fishing 9/9
Book 9/0
Battle Pets 17/0 17/1 17/2 17/3 17/4 17/5 17/6 17/7 17/8 17/9 15/2
Humanoid 17/0
Dragonkin 17/1
Flying 17/2
Undead 17/3
Critter 17/4
Magic 17/5
Elemental 17/6
Beast 17/7
Aquatic 17/8
Mechanical 17/9
Companion Pets 15/2
Quest Items 12
Miscellaneous 15/0 15/1 15/3 15/4 15/5 15/6
Junk 15/0
Reagent 15/1
Holiday 15/3
Other 15/4
Mount 15/5
Mount Equipment 15/6
WoW Token
It looks like there's an equivalent table in TBC AuctionCategories
, and your print code works with that too.
- Implement compatibility function to translate from current category strings into new strings (Retail and TBC)
- Implement FilterKeySelector with new categories
- Decide whether to store category filters as numerical values or to stick to the string values.