DB/CurrencyTypes: Difference between revisions

From wowdev
Jump to navigation Jump to search
(Undo revision 21223 by Rangorn (talk))
(finally..)
Line 33: Line 33:


==7.0.3.21384==  
==7.0.3.21384==  
  struct ChrClassesRec {
  struct CurrencyTypesRec {
   uint32_t m_ID;
   uint32_t m_ID;
   {{Template:Type|stringref}} m_name_lang;
   {{Template:Type|stringref}} m_name_lang;

Revision as of 16:42, 13 April 2016

This file lists currencies that are now listed out of the inventory but on a tab in the character frame.

Structure

Column Field Type Notes
1 ID Integer They include some kind of groups too. See below. Real id in column 4.
2 Item iRefID The itemd displayed.
3 Category iRefID Yes, there are non-existant categories in here.
4 bitIndex Integer These are getting shifted and used as bitmasks for "currencyTokensBackpack" resulting in a maximum of 32 * 2 types.

6.0.1.18179

struct CurrencyTypesRec {
  uint32_t m_ID;
  uint32_t m_categoryID;
  stringref m_name_lang;
  stringref m_inventoryIcon[2];
  uint32_t m_spellWeight;
  uint32_t m_spellCategory;
  uint32_t m_maxQty;
  uint32_t m_maxEarnablePerWeek;
  uint32_t m_flags;
  uint32_t m_quality;
  stringref m_description_lang;
};

7.0.3.21384

struct CurrencyTypesRec {
  uint32_t m_ID;
  stringref m_name_lang;
  stringref m_inventoryIcon[2];
  uint32_t m_maxQty;
  uint32_t m_maxEarnablePerWeek;
  uint32_t m_flags;
  stringref m_description_lang;
  uint8_t m_categoryID;
  uint8_t m_spellWeight;
  uint8_t m_spellCategory;
  uint8_t m_quality;

};


ID

The id is always seperatable into three digits. The least significant is some kind of real id for that category. The other two define the category. They always increase in steps of 20.

Example

12* are Marks of Honor.

10* are WotLK marks and basic PvP currencies.