diff --git a/Source/Framework/Database/Databases/HotfixDatabase.cs b/Source/Framework/Database/Databases/HotfixDatabase.cs index 2019044eb..725bba284 100644 --- a/Source/Framework/Database/Databases/HotfixDatabase.cs +++ b/Source/Framework/Database/Databases/HotfixDatabase.cs @@ -585,6 +585,10 @@ namespace Framework.Database PrepareStatement(HotfixStatements.SEL_ITEM_MODIFIED_APPEARANCE, "SELECT ID, ItemID, ItemAppearanceModifierID, ItemAppearanceID, OrderIndex, " + "TransmogSourceTypeEnum FROM item_modified_appearance ORDER BY ID DESC"); + // ItemNameDescription.db2 + PrepareStatement(HotfixStatements.SEL_ITEM_NAME_DESCRIPTION, "SELECT ID, Description, Color FROM item_name_description ORDER BY ID DESC"); + PrepareStatement(HotfixStatements.SEL_ITEM_NAME_DESCRIPTION_LOCALE, "SELECT ID, Description_lang FROM item_name_description_locale WHERE locale = ?"); + // ItemPriceBase.db2 PrepareStatement(HotfixStatements.SEL_ITEM_PRICE_BASE, "SELECT ID, ItemLevel, Armor, Weapon FROM item_price_base ORDER BY ID DESC"); @@ -1422,6 +1426,9 @@ namespace Framework.Database SEL_ITEM_MODIFIED_APPEARANCE, + SEL_ITEM_NAME_DESCRIPTION, + SEL_ITEM_NAME_DESCRIPTION_LOCALE, + SEL_ITEM_PRICE_BASE, SEL_ITEM_SEARCH_NAME, diff --git a/Source/Game/DataStorage/CliDB.cs b/Source/Game/DataStorage/CliDB.cs index 58930b484..ccee770ad 100644 --- a/Source/Game/DataStorage/CliDB.cs +++ b/Source/Game/DataStorage/CliDB.cs @@ -166,6 +166,7 @@ namespace Game.DataStorage ItemLimitCategoryStorage = DBReader.Read("ItemLimitCategory.db2", HotfixStatements.SEL_ITEM_LIMIT_CATEGORY, HotfixStatements.SEL_ITEM_LIMIT_CATEGORY_LOCALE); ItemLimitCategoryConditionStorage = DBReader.Read("ItemLimitCategoryCondition.db2", HotfixStatements.SEL_ITEM_LIMIT_CATEGORY_CONDITION); ItemModifiedAppearanceStorage = DBReader.Read("ItemModifiedAppearance.db2", HotfixStatements.SEL_ITEM_MODIFIED_APPEARANCE); + ItemNameDescriptionStorage = DBReader.Read("ItemNameDescription.db2", HotfixStatements.SEL_ITEM_NAME_DESCRIPTION, HotfixStatements.SEL_ITEM_NAME_DESCRIPTION_LOCALE); ItemPriceBaseStorage = DBReader.Read("ItemPriceBase.db2", HotfixStatements.SEL_ITEM_PRICE_BASE); ItemSearchNameStorage = DBReader.Read("ItemSearchName.db2", HotfixStatements.SEL_ITEM_SEARCH_NAME, HotfixStatements.SEL_ITEM_SEARCH_NAME_LOCALE); ItemSetStorage = DBReader.Read("ItemSet.db2", HotfixStatements.SEL_ITEM_SET, HotfixStatements.SEL_ITEM_SET_LOCALE); @@ -523,6 +524,7 @@ namespace Game.DataStorage public static DB6Storage ItemLimitCategoryStorage; public static DB6Storage ItemLimitCategoryConditionStorage; public static DB6Storage ItemModifiedAppearanceStorage; + public static DB6Storage ItemNameDescriptionStorage; public static DB6Storage ItemPriceBaseStorage; public static DB6Storage ItemSearchNameStorage; public static DB6Storage ItemSetStorage; diff --git a/Source/Game/DataStorage/Structs/I_Records.cs b/Source/Game/DataStorage/Structs/I_Records.cs index 6ace726df..432033166 100644 --- a/Source/Game/DataStorage/Structs/I_Records.cs +++ b/Source/Game/DataStorage/Structs/I_Records.cs @@ -267,6 +267,13 @@ namespace Game.DataStorage public sbyte TransmogSourceTypeEnum; } + public sealed class ItemNameDescriptionRecord + { + public uint Id; + public LocalizedString Description; + public int Color; + } + public sealed class ItemPriceBaseRecord { public uint Id; diff --git a/sql/updates/hotfixes/master/2020_03_26_00_hotfixes.sql b/sql/updates/hotfixes/master/2020_03_26_00_hotfixes.sql new file mode 100644 index 000000000..808075ed1 --- /dev/null +++ b/sql/updates/hotfixes/master/2020_03_26_00_hotfixes.sql @@ -0,0 +1,23 @@ +-- +-- Table structure for table `item_name_description` +-- +DROP TABLE IF EXISTS `item_name_description`; +CREATE TABLE `item_name_description` ( + `ID` int(10) unsigned NOT NULL DEFAULT '0', + `Description` text, + `Color` int(11) NOT NULL DEFAULT '0', + `VerifiedBuild` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `item_name_description_locale` +-- +DROP TABLE IF EXISTS `item_name_description_locale`; +CREATE TABLE `item_name_description_locale` ( + `ID` int(10) unsigned NOT NULL DEFAULT '0', + `locale` varchar(4) NOT NULL, + `Description_lang` text, + `VerifiedBuild` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`,`locale`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8;