From 7db70dd9695da052b254e7101596bef4d3548d49 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Thu, 7 Jul 2011 03:31:18 +0400 Subject: [PATCH] [11713] Load ItemClass.dbc Signed-off-by: VladimirMangos --- src/game/DBCStores.cpp | 4 +++- src/game/DBCStores.h | 1 + src/game/DBCStructure.h | 9 +++++++++ src/game/DBCfmt.h | 1 + src/shared/revision_nr.h | 2 +- 5 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/game/DBCStores.cpp b/src/game/DBCStores.cpp index ea0e0449c..c17f1fdcd 100644 --- a/src/game/DBCStores.cpp +++ b/src/game/DBCStores.cpp @@ -108,6 +108,7 @@ DBCStorage sHolidaysStore(Holidaysfmt); DBCStorage sItemStore(Itemfmt); DBCStorage sItemBagFamilyStore(ItemBagFamilyfmt); +DBCStorage sItemClassStore(ItemClassfmt); //DBCStorage sItemCondExtCostsStore(ItemCondExtCostsEntryfmt); //DBCStorage sItemDisplayInfoStore(ItemDisplayTemplateEntryfmt); -- not used currently DBCStorage sItemExtendedCostStore(ItemExtendedCostEntryfmt); @@ -362,7 +363,7 @@ void LoadDBCStores(const std::string& dataPath) exit(1); } - const uint32 DBCFilesCount = 92; + const uint32 DBCFilesCount = 93; BarGoLink bar(DBCFilesCount); @@ -444,6 +445,7 @@ void LoadDBCStores(const std::string& dataPath) LoadDBC(availableDbcLocales,bar,bad_dbc_files,sHolidaysStore, dbcPath,"Holidays.dbc"); LoadDBC(availableDbcLocales,bar,bad_dbc_files,sItemStore, dbcPath,"Item.dbc"); LoadDBC(availableDbcLocales,bar,bad_dbc_files,sItemBagFamilyStore, dbcPath,"ItemBagFamily.dbc"); + LoadDBC(availableDbcLocales,bar,bad_dbc_files,sItemClassStore, dbcPath,"ItemClass.dbc"); //LoadDBC(availableDbcLocales,bar,bad_dbc_files,sItemDisplayInfoStore, dbcPath,"ItemDisplayInfo.dbc"); -- not used currently //LoadDBC(availableDbcLocales,bar,bad_dbc_files,sItemCondExtCostsStore, dbcPath,"ItemCondExtCosts.dbc"); LoadDBC(availableDbcLocales,bar,bad_dbc_files,sItemExtendedCostStore, dbcPath,"ItemExtendedCost.dbc"); diff --git a/src/game/DBCStores.h b/src/game/DBCStores.h index bd3b60664..daf1d5840 100644 --- a/src/game/DBCStores.h +++ b/src/game/DBCStores.h @@ -141,6 +141,7 @@ extern DBCStorage sGtRegenMPPerSptStore; extern DBCStorage sHolidaysStore; extern DBCStorage sItemStore; extern DBCStorage sItemBagFamilyStore; +extern DBCStorage sItemClassStore; //extern DBCStorage sItemDisplayInfoStore; -- not used currently extern DBCStorage sItemExtendedCostStore; extern DBCStorage sItemLimitCategoryStore; diff --git a/src/game/DBCStructure.h b/src/game/DBCStructure.h index 08e05b9ab..92bf8b11e 100644 --- a/src/game/DBCStructure.h +++ b/src/game/DBCStructure.h @@ -1060,6 +1060,15 @@ struct ItemBagFamilyEntry // // 17 name flags }; +struct ItemClassEntry +{ + uint32 ID; // 0 m_ID + //uint32 unk1; // 1 + //uint32 unk2; // 2 only weapon have 1 in field, other 0 + char* name[16]; // 3-19 m_name_lang + // // 20 name flags +}; + struct ItemDisplayInfoEntry { uint32 ID; // 0 m_ID diff --git a/src/game/DBCfmt.h b/src/game/DBCfmt.h index ee84fdd59..faa32abef 100644 --- a/src/game/DBCfmt.h +++ b/src/game/DBCfmt.h @@ -65,6 +65,7 @@ const char GtRegenMPPerSptfmt[]="f"; const char Holidaysfmt[]="nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; const char Itemfmt[]="niiiiiii"; const char ItemBagFamilyfmt[]="nxxxxxxxxxxxxxxxxx"; +const char ItemClassfmt[]="nxxssssssssssssssssx"; //const char ItemDisplayTemplateEntryfmt[]="nxxxxxxxxxxixxxxxxxxxxx"; //const char ItemCondExtCostsEntryfmt[]="xiii"; const char ItemExtendedCostEntryfmt[]="niiiiiiiiiiiiiix"; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 14378a490..801b43ea6 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11712" + #define REVISION_NR "11713" #endif // __REVISION_NR_H__