Core/DataStores: Load ItemModifiedAppearanceExtra.db2
Port From (https://github.com/TrinityCore/TrinityCore/commit/b607bb0a93892734c6a2ce16afc5ea92ffb7fe50)
This commit is contained in:
@@ -629,6 +629,10 @@ namespace Framework.Database
|
|||||||
PrepareStatement(HotfixStatements.SEL_ITEM_MODIFIED_APPEARANCE, "SELECT ID, ItemID, ItemAppearanceModifierID, ItemAppearanceID, OrderIndex, " +
|
PrepareStatement(HotfixStatements.SEL_ITEM_MODIFIED_APPEARANCE, "SELECT ID, ItemID, ItemAppearanceModifierID, ItemAppearanceID, OrderIndex, " +
|
||||||
"TransmogSourceTypeEnum FROM item_modified_appearance");
|
"TransmogSourceTypeEnum FROM item_modified_appearance");
|
||||||
|
|
||||||
|
// ItemModifiedAppearanceExtra.db2
|
||||||
|
PrepareStatement(HotfixStatements.SEL_ITEM_MODIFIED_APPEARANCE_EXTRA, "SELECT ID, IconFileDataID, UnequippedIconFileDataID, SheatheType, " +
|
||||||
|
"DisplayWeaponSubclassID, DisplayInventoryType FROM item_modified_appearance_extra");
|
||||||
|
|
||||||
// ItemNameDescription.db2
|
// ItemNameDescription.db2
|
||||||
PrepareStatement(HotfixStatements.SEL_ITEM_NAME_DESCRIPTION, "SELECT ID, Description, Color FROM item_name_description");
|
PrepareStatement(HotfixStatements.SEL_ITEM_NAME_DESCRIPTION, "SELECT ID, Description, Color FROM item_name_description");
|
||||||
PrepareStatement(HotfixStatements.SEL_ITEM_NAME_DESCRIPTION_LOCALE, "SELECT ID, Description_lang FROM item_name_description_locale WHERE locale = ?");
|
PrepareStatement(HotfixStatements.SEL_ITEM_NAME_DESCRIPTION_LOCALE, "SELECT ID, Description_lang FROM item_name_description_locale WHERE locale = ?");
|
||||||
@@ -1514,6 +1518,8 @@ namespace Framework.Database
|
|||||||
|
|
||||||
SEL_ITEM_MODIFIED_APPEARANCE,
|
SEL_ITEM_MODIFIED_APPEARANCE,
|
||||||
|
|
||||||
|
SEL_ITEM_MODIFIED_APPEARANCE_EXTRA,
|
||||||
|
|
||||||
SEL_ITEM_NAME_DESCRIPTION,
|
SEL_ITEM_NAME_DESCRIPTION,
|
||||||
SEL_ITEM_NAME_DESCRIPTION_LOCALE,
|
SEL_ITEM_NAME_DESCRIPTION_LOCALE,
|
||||||
|
|
||||||
|
|||||||
@@ -195,6 +195,7 @@ namespace Game.DataStorage
|
|||||||
ItemLimitCategoryStorage = ReadDB2<ItemLimitCategoryRecord>("ItemLimitCategory.db2", HotfixStatements.SEL_ITEM_LIMIT_CATEGORY, HotfixStatements.SEL_ITEM_LIMIT_CATEGORY_LOCALE);
|
ItemLimitCategoryStorage = ReadDB2<ItemLimitCategoryRecord>("ItemLimitCategory.db2", HotfixStatements.SEL_ITEM_LIMIT_CATEGORY, HotfixStatements.SEL_ITEM_LIMIT_CATEGORY_LOCALE);
|
||||||
ItemLimitCategoryConditionStorage = ReadDB2<ItemLimitCategoryConditionRecord>("ItemLimitCategoryCondition.db2", HotfixStatements.SEL_ITEM_LIMIT_CATEGORY_CONDITION);
|
ItemLimitCategoryConditionStorage = ReadDB2<ItemLimitCategoryConditionRecord>("ItemLimitCategoryCondition.db2", HotfixStatements.SEL_ITEM_LIMIT_CATEGORY_CONDITION);
|
||||||
ItemModifiedAppearanceStorage = ReadDB2<ItemModifiedAppearanceRecord>("ItemModifiedAppearance.db2", HotfixStatements.SEL_ITEM_MODIFIED_APPEARANCE);
|
ItemModifiedAppearanceStorage = ReadDB2<ItemModifiedAppearanceRecord>("ItemModifiedAppearance.db2", HotfixStatements.SEL_ITEM_MODIFIED_APPEARANCE);
|
||||||
|
ItemModifiedAppearanceExtraStorage = ReadDB2<ItemModifiedAppearanceExtraRecord>("ItemModifiedAppearanceExtra.db2", HotfixStatements.SEL_ITEM_MODIFIED_APPEARANCE_EXTRA);
|
||||||
ItemNameDescriptionStorage = ReadDB2<ItemNameDescriptionRecord>("ItemNameDescription.db2", HotfixStatements.SEL_ITEM_NAME_DESCRIPTION, HotfixStatements.SEL_ITEM_NAME_DESCRIPTION_LOCALE);
|
ItemNameDescriptionStorage = ReadDB2<ItemNameDescriptionRecord>("ItemNameDescription.db2", HotfixStatements.SEL_ITEM_NAME_DESCRIPTION, HotfixStatements.SEL_ITEM_NAME_DESCRIPTION_LOCALE);
|
||||||
ItemPriceBaseStorage = ReadDB2<ItemPriceBaseRecord>("ItemPriceBase.db2", HotfixStatements.SEL_ITEM_PRICE_BASE);
|
ItemPriceBaseStorage = ReadDB2<ItemPriceBaseRecord>("ItemPriceBase.db2", HotfixStatements.SEL_ITEM_PRICE_BASE);
|
||||||
ItemSearchNameStorage = ReadDB2<ItemSearchNameRecord>("ItemSearchName.db2", HotfixStatements.SEL_ITEM_SEARCH_NAME, HotfixStatements.SEL_ITEM_SEARCH_NAME_LOCALE);
|
ItemSearchNameStorage = ReadDB2<ItemSearchNameRecord>("ItemSearchName.db2", HotfixStatements.SEL_ITEM_SEARCH_NAME, HotfixStatements.SEL_ITEM_SEARCH_NAME_LOCALE);
|
||||||
@@ -563,6 +564,7 @@ namespace Game.DataStorage
|
|||||||
public static DB6Storage<ItemLimitCategoryRecord> ItemLimitCategoryStorage;
|
public static DB6Storage<ItemLimitCategoryRecord> ItemLimitCategoryStorage;
|
||||||
public static DB6Storage<ItemLimitCategoryConditionRecord> ItemLimitCategoryConditionStorage;
|
public static DB6Storage<ItemLimitCategoryConditionRecord> ItemLimitCategoryConditionStorage;
|
||||||
public static DB6Storage<ItemModifiedAppearanceRecord> ItemModifiedAppearanceStorage;
|
public static DB6Storage<ItemModifiedAppearanceRecord> ItemModifiedAppearanceStorage;
|
||||||
|
public static DB6Storage<ItemModifiedAppearanceExtraRecord> ItemModifiedAppearanceExtraStorage;
|
||||||
public static DB6Storage<ItemNameDescriptionRecord> ItemNameDescriptionStorage;
|
public static DB6Storage<ItemNameDescriptionRecord> ItemNameDescriptionStorage;
|
||||||
public static DB6Storage<ItemPriceBaseRecord> ItemPriceBaseStorage;
|
public static DB6Storage<ItemPriceBaseRecord> ItemPriceBaseStorage;
|
||||||
public static DB6Storage<ItemSearchNameRecord> ItemSearchNameStorage;
|
public static DB6Storage<ItemSearchNameRecord> ItemSearchNameStorage;
|
||||||
|
|||||||
@@ -272,6 +272,16 @@ namespace Game.DataStorage
|
|||||||
public sbyte TransmogSourceTypeEnum;
|
public sbyte TransmogSourceTypeEnum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public sealed class ItemModifiedAppearanceExtraRecord
|
||||||
|
{
|
||||||
|
public uint Id;
|
||||||
|
public int IconFileDataID;
|
||||||
|
public int UnequippedIconFileDataID;
|
||||||
|
public byte SheatheType;
|
||||||
|
public sbyte DisplayWeaponSubclassID;
|
||||||
|
public sbyte DisplayInventoryType;
|
||||||
|
}
|
||||||
|
|
||||||
public sealed class ItemNameDescriptionRecord
|
public sealed class ItemNameDescriptionRecord
|
||||||
{
|
{
|
||||||
public uint Id;
|
public uint Id;
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
--
|
||||||
|
-- Table structure for table `item_modified_appearance_extra`
|
||||||
|
--
|
||||||
|
DROP TABLE IF EXISTS `item_modified_appearance_extra`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!50503 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `item_modified_appearance_extra` (
|
||||||
|
`ID` int(10) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`IconFileDataID` int(11) NOT NULL DEFAULT '0',
|
||||||
|
`UnequippedIconFileDataID` int(11) NOT NULL DEFAULT '0',
|
||||||
|
`SheatheType` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`DisplayWeaponSubclassID` tinyint(4) NOT NULL DEFAULT '0',
|
||||||
|
`DisplayInventoryType` tinyint(4) NOT NULL DEFAULT '0',
|
||||||
|
`VerifiedBuild` int(11) NOT NULL DEFAULT '0',
|
||||||
|
PRIMARY KEY (`ID`,`VerifiedBuild`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
Reference in New Issue
Block a user