Itemcache.wdb

From WoWDev

ATTENTION! This page is not finished!

Contents

Itemcache.wdb

The Itemcache.wdb file stores item information sent to the client by the server.

File Format

The first 20 bytes of the itemcache.wdb are the header, as described on the WDB Main Page.

The actual item data in the Itemcache.wdb file follows this structure, recurring until the end of the file. The strings are null-byte terminated.

Type Name and Description
uint32 Item ID, The Item ID of the item in this record.
uint32 Record Length, The Length of this record.
uint32 Item Class, The Class of the item.
uint32 Item Subclass, The Subclass of the item.
String Item Name, The Name of the item.
String Quest Name, Same as Item Name.
String Name 3, Same as Item Name, unknown use.
String Name 4, Same as Item Name, unknown use.
uint32 Model ID, Item display ID.
uint32 Quality, Item Quality.
uint32 Item Flags, Item Flags, explained below.
uint32 Buy Price, How much the item would cost in a shop.
uint32 Sell Price, How much the item sells for at shops.
uint32 Inventory Type, Where the item equips, explained further below.
int32 Allowable Classes, What classes can use the item, explained below.
int32 Allowable Races, What races can use the item, explained below.
uint32 Item Level, The Item's level.
uint32 Required Level, The required level to use the item.
uint32 Required Skill, The skill ID of the skill required to use the item (eg. Cooking is 185)
uint32 Required Skill Rank, The skill level required of the item's required skill (eg. Leatherworking(300))
uint32 Required Spell, The spell ID of the spell required by the item, explained below.
uint32 Required Faction, The faction ID of the faction required to use the item.
uint32 Required Faction Rank, The standing of the required faction you need to use the item.
uint32 Required PVP Rank 1, Required PVP Rank, unknown association.
uint32 Required PVP Rank 2, Required PVP Rank 2, unknown association.
uint32 Unique, Flag specifying whether the item is unique. 0 = Not Unique, 1 = Unique
uint32 Max Count, How high the item stacks.
uint32 Container Slots, If the item is a bag, how many slots it has.
uint32 Item Stat Type, The Type of Stat
uint32 Item Stat Value, The value of the stat.
▲ The Block of Stat Type and Stat Value are Repeated 10 Times ▲ (Type1, Val1, Type2, Val2, etc)
float Min Damage, The minimum damage of the damage type on the item.
float Max Damage, The maximum damage of the damage type on the item.
uint32 Damage Type, The type of damage the item has, explained below.
▲ Block of Min Dmg, Max Dmg, and Dmg Type are reapeated 5 times ▲ (Min1, Max1, Type1,Min2,Max2,Type2,etc)
uint32 Armor, The armor value of the item.
uint32 Holy Resistance, The holy resistance of the item.
uint32 Fire Resistance, The fire resistance of the item.
uint32 Nature Resistance, The nature resistance of the item.
uint32 Frost Resistance, The frost resistance of the item.
uint32 Shadow Resistance, The shadow resistance of the item.
uint32 Arcane Resistance, The arcance resistance of the item.

More to come

Field Explanations

Item Class

  • Consumable = 0
  • Container = 1
  • Weapon = 2
  • Armor = 4
  • Reagent = 5
  • Projectile = 6
  • Trade Goods = 7
  • Recipe = 9
  • Quiver = 11
  • Quest Item = 12
  • Key = 13
  • Permanent = 14
  • Miscellaneous = 15

Item Subclass

If Item's Class is 2

  • OneHandAxe = 0
  • TwoHandAxe = 1
  • Bow = 2
  • Rifle = 3
  • OneHandMace = 4
  • TwoHandMace = 5
  • Polearm = 6
  • OneHandSword = 7
  • TwoHandSword = 8
  • Staff = 10
  • OneHandExotic = 11
  • TwoHandExotic = 12
  • Fist = 13
  • Misc = 14
  • Dagger = 15
  • Thrown = 16
  • Spear = 17
  • Crossbow = 18
  • Wand = 19
  • FishingPole = 20

If Item's Class is 4

  • Miscellaneous = 0
  • Cloth = 1
  • Leather = 2
  • Mail = 3
  • Plate = 4
  • Buckler = 5
  • Shield = 6

If Item's Class is 6

  • Arrow = 2
  • Bullet = 3

If Item's Class is 7

  • Trade Goods = 0
  • Parts = 1
  • Explosives = 2
  • Devices = 3

If Item's Class is 9

  • Book = 0
  • Leatherworking Pattern = 1
  • Tailoring Pattern = 2
  • Schematic = 3
  • Blacksmithing Plans = 4
  • Cooking Recipe = 5
  • Alchemy Recipe = 6
  • First Aid Manual = 7
  • Enchanting Formula = 8
  • Fishing Book = 9

If Item's Class is 11

  • Quiver = 2
  • Ammo Pouch = 3

If Item's Class is 13

  • Key = 0
  • Lockpick = 1

Quality

  • Poor (Gray) = 0
  • Common (White) = 1
  • Uncommon (Green) = 2
  • Rare (Blue) = 3
  • Epic (Purple) = 4
  • Legendary (Orange) = 5
  • Artifact (Red) = 6

Stat Types

  • Health = 1
  • Unknown = 2
  • Agility = 3
  • Strength = 4
  • Intellect = 5
  • Spirit = 6
  • Stamina = 7
  • Defense Rating = 12
  • Dodge Rating = 13
  • Parry Rating = 14
  • Shield Block Rating = 15
  • Melee Hit Rating = 16
  • Ranged Hit Rating = 17
  • Spell Hit Rating = 18
  • Melee Critical Strike Rating = 19
  • Ranged Critical Strike Rating = 20
  • Spell Critical Strike Rating = 21
  • Melee Hit Avoidance Rating = 22
  • Ranged Hit Avoidance Rating = 23
  • Spell Hit Avoidance Rating = 24
  • Melee Critical Avoidance Rating = 25
  • Ranged Critical Avoidance Rating = 26
  • Spell Critical Avoidance Rating = 27
  • Melee Haste Rating = 28
  • Ranged Haste Rating = 29
  • Spell Haste Rating = 30
  • Hit Rating = 31
  • Critical Strike Rating = 32
  • Hit Avoidance Rating = 33
  • Critical Avoidance Rating = 34
  • Resilience Rating = 35
  • Haste Rating = 3