aboutsummaryrefslogtreecommitdiff
path: root/src/server/database
diff options
context:
space:
mode:
authorGolrag <golrag.jeremy@gmail.com>2017-08-24 20:39:22 +0200
committerShauren <shauren.trinity@gmail.com>2017-08-24 20:39:22 +0200
commitfd73bedd735596ac6ddb3db4ead3938732b2ec43 (patch)
treecfa9c42b745581128f061607a7f21ff9283341d9 /src/server/database
parenta93a5ad379635bbf4a50d48eee810e7673b07168 (diff)
Core/Transmog: Implemented transmog sets
Closes #20133 Closes #20135
Diffstat (limited to 'src/server/database')
-rw-r--r--src/server/database/Database/Implementation/HotfixDatabase.cpp15
-rw-r--r--src/server/database/Database/Implementation/HotfixDatabase.h10
2 files changed, 25 insertions, 0 deletions
diff --git a/src/server/database/Database/Implementation/HotfixDatabase.cpp b/src/server/database/Database/Implementation/HotfixDatabase.cpp
index 2e7674fcc47..930d215a354 100644
--- a/src/server/database/Database/Implementation/HotfixDatabase.cpp
+++ b/src/server/database/Database/Implementation/HotfixDatabase.cpp
@@ -947,6 +947,21 @@ void HotfixDatabaseConnection::DoPrepareStatements()
PrepareStatement(HOTFIX_SEL_TOY, "SELECT ItemID, Description, Flags, CategoryFilter, ID FROM toy ORDER BY ID DESC", CONNECTION_SYNCH);
PREPARE_LOCALE_STMT(HOTFIX_SEL_TOY, "SELECT ID, Description_lang FROM toy_locale WHERE locale = ?", CONNECTION_SYNCH);
+ // TransmogHoliday.db2
+ PrepareStatement(HOTFIX_SEL_TRANSMOG_HOLIDAY, "SELECT ID, HolidayID FROM transmog_holiday ORDER BY ID DESC", CONNECTION_SYNCH);
+
+ // TransmogSet.db2
+ PrepareStatement(HOTFIX_SEL_TRANSMOG_SET, "SELECT Name, BaseSetID, UIOrder, ExpansionID, ID, Flags, QuestID, ClassMask, ItemNameDescriptionID, "
+ "TransmogSetGroupID FROM transmog_set ORDER BY ID DESC", CONNECTION_SYNCH);
+ PREPARE_LOCALE_STMT(HOTFIX_SEL_TRANSMOG_SET, "SELECT ID, Name_lang FROM transmog_set_locale WHERE locale = ?", CONNECTION_SYNCH);
+
+ // TransmogSetGroup.db2
+ PrepareStatement(HOTFIX_SEL_TRANSMOG_SET_GROUP, "SELECT Label, ID FROM transmog_set_group ORDER BY ID DESC", CONNECTION_SYNCH);
+ PREPARE_LOCALE_STMT(HOTFIX_SEL_TRANSMOG_SET_GROUP, "SELECT ID, Label_lang FROM transmog_set_group_locale WHERE locale = ?", CONNECTION_SYNCH);
+
+ // TransmogSetItem.db2
+ PrepareStatement(HOTFIX_SEL_TRANSMOG_SET_ITEM, "SELECT ID, TransmogSetID, ItemModifiedAppearanceID, Flags FROM transmog_set_item ORDER BY ID DESC", CONNECTION_SYNCH);
+
// TransportAnimation.db2
PrepareStatement(HOTFIX_SEL_TRANSPORT_ANIMATION, "SELECT ID, TransportID, TimeIndex, PosX, PosY, PosZ, SequenceID FROM transport_animation"
" 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 5d2b1f77765..88d43f21476 100644
--- a/src/server/database/Database/Implementation/HotfixDatabase.h
+++ b/src/server/database/Database/Implementation/HotfixDatabase.h
@@ -507,6 +507,16 @@ enum HotfixDatabaseStatements : uint32
HOTFIX_SEL_TOY,
HOTFIX_SEL_TOY_LOCALE,
+ HOTFIX_SEL_TRANSMOG_HOLIDAY,
+
+ HOTFIX_SEL_TRANSMOG_SET,
+ HOTFIX_SEL_TRANSMOG_SET_LOCALE,
+
+ HOTFIX_SEL_TRANSMOG_SET_GROUP,
+ HOTFIX_SEL_TRANSMOG_SET_GROUP_LOCALE,
+
+ HOTFIX_SEL_TRANSMOG_SET_ITEM,
+
HOTFIX_SEL_TRANSPORT_ANIMATION,
HOTFIX_SEL_TRANSPORT_ROTATION,