From 07445d9860f29c04edbb7d0caf1a82083b600e1b Mon Sep 17 00:00:00 2001 From: Vincent-Michael Date: Sun, 28 Aug 2016 00:27:16 +0200 Subject: Core/DataStores: Implemented TactKey.db2 --- src/server/database/Database/Implementation/HotfixDatabase.cpp | 4 ++++ src/server/database/Database/Implementation/HotfixDatabase.h | 2 ++ src/server/game/DataStores/DB2Stores.cpp | 2 ++ src/server/game/DataStores/DB2Structure.h | 8 ++++++++ 4 files changed, 16 insertions(+) (limited to 'src') diff --git a/src/server/database/Database/Implementation/HotfixDatabase.cpp b/src/server/database/Database/Implementation/HotfixDatabase.cpp index 66fd71cd5f9..859e8d8e773 100644 --- a/src/server/database/Database/Implementation/HotfixDatabase.cpp +++ b/src/server/database/Database/Implementation/HotfixDatabase.cpp @@ -857,6 +857,10 @@ void HotfixDatabaseConnection::DoPrepareStatements() // SummonProperties.db2 PrepareStatement(HOTFIX_SEL_SUMMON_PROPERTIES, "SELECT ID, Category, Faction, Type, Slot, Flags FROM summon_properties ORDER BY ID DESC", CONNECTION_SYNCH); + // TactKey.db2 + PrepareStatement(HOTFIX_SEL_TACT_KEY, "SELECT ID, Key1, Key2, Key3, Key4, Key5, Key6, Key7, Key8, Key9, Key10, Key11, Key12, Key13, Key14, " + "Key15, Key16 FROM tact_key ORDER BY ID DESC", CONNECTION_SYNCH); + // Talent.db2 PrepareStatement(HOTFIX_SEL_TALENT, "SELECT ID, SpellID, OverridesSpellID, Description, SpecID, TierID, ColumnIndex, Flags, CategoryMask1, " "CategoryMask2, ClassID FROM talent ORDER BY ID DESC", CONNECTION_SYNCH); diff --git a/src/server/database/Database/Implementation/HotfixDatabase.h b/src/server/database/Database/Implementation/HotfixDatabase.h index 4519255a299..499579550bb 100644 --- a/src/server/database/Database/Implementation/HotfixDatabase.h +++ b/src/server/database/Database/Implementation/HotfixDatabase.h @@ -457,6 +457,8 @@ enum HotfixDatabaseStatements HOTFIX_SEL_SUMMON_PROPERTIES, + HOTFIX_SEL_TACT_KEY, + HOTFIX_SEL_TALENT, HOTFIX_SEL_TALENT_LOCALE, diff --git a/src/server/game/DataStores/DB2Stores.cpp b/src/server/game/DataStores/DB2Stores.cpp index 506dccd1f23..f9d3b5095d4 100644 --- a/src/server/game/DataStores/DB2Stores.cpp +++ b/src/server/game/DataStores/DB2Stores.cpp @@ -208,6 +208,7 @@ DB2Storage sSpellTargetRestrictionsStore("S DB2Storage sSpellTotemsStore("SpellTotems.db2", SpellTotemsMeta::Instance(), HOTFIX_SEL_SPELL_TOTEMS); DB2Storage sSpellXSpellVisualStore("SpellXSpellVisual.db2", SpellXSpellVisualMeta::Instance(), HOTFIX_SEL_SPELL_X_SPELL_VISUAL); DB2Storage sSummonPropertiesStore("SummonProperties.db2", SummonPropertiesMeta::Instance(), HOTFIX_SEL_SUMMON_PROPERTIES); +DB2Storage sTactKeyStore("TactKey.db2", TactKeyMeta::Instance(), HOTFIX_SEL_TACT_KEY); DB2Storage sTalentStore("Talent.db2", TalentMeta::Instance(), HOTFIX_SEL_TALENT); DB2Storage sTaxiNodesStore("TaxiNodes.db2", TaxiNodesMeta::Instance(), HOTFIX_SEL_TAXI_NODES); DB2Storage sTaxiPathStore("TaxiPath.db2", TaxiPathMeta::Instance(), HOTFIX_SEL_TAXI_PATH); @@ -481,6 +482,7 @@ void DB2Manager::LoadStores(std::string const& dataPath, uint32 defaultLocale) LOAD_DB2(sSpellTotemsStore); LOAD_DB2(sSpellXSpellVisualStore); LOAD_DB2(sSummonPropertiesStore); + LOAD_DB2(sTactKeyStore); LOAD_DB2(sTalentStore); LOAD_DB2(sTaxiNodesStore); LOAD_DB2(sTaxiPathStore); diff --git a/src/server/game/DataStores/DB2Structure.h b/src/server/game/DataStores/DB2Structure.h index 319d69818f0..39aca717fce 100644 --- a/src/server/game/DataStores/DB2Structure.h +++ b/src/server/game/DataStores/DB2Structure.h @@ -2521,6 +2521,14 @@ struct SummonPropertiesEntry uint32 Flags; }; +#define TACTKEY_SIZE 16 + +struct TactKeyEntry +{ + uint32 ID; + uint8 Key[TACTKEY_SIZE]; +}; + #define MAX_TALENT_TIERS 7 #define MAX_TALENT_COLUMNS 3 -- cgit v1.2.3