Core/DataStore: Load ItemNameDescription
Port From (https://github.com/TrinityCore/TrinityCore/commit/0969e93d151533fa8a74bb88b04ab8ee7c4602d9)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -166,6 +166,7 @@ namespace Game.DataStorage
|
||||
ItemLimitCategoryStorage = DBReader.Read<ItemLimitCategoryRecord>("ItemLimitCategory.db2", HotfixStatements.SEL_ITEM_LIMIT_CATEGORY, HotfixStatements.SEL_ITEM_LIMIT_CATEGORY_LOCALE);
|
||||
ItemLimitCategoryConditionStorage = DBReader.Read<ItemLimitCategoryConditionRecord>("ItemLimitCategoryCondition.db2", HotfixStatements.SEL_ITEM_LIMIT_CATEGORY_CONDITION);
|
||||
ItemModifiedAppearanceStorage = DBReader.Read<ItemModifiedAppearanceRecord>("ItemModifiedAppearance.db2", HotfixStatements.SEL_ITEM_MODIFIED_APPEARANCE);
|
||||
ItemNameDescriptionStorage = DBReader.Read<ItemNameDescriptionRecord>("ItemNameDescription.db2", HotfixStatements.SEL_ITEM_NAME_DESCRIPTION, HotfixStatements.SEL_ITEM_NAME_DESCRIPTION_LOCALE);
|
||||
ItemPriceBaseStorage = DBReader.Read<ItemPriceBaseRecord>("ItemPriceBase.db2", HotfixStatements.SEL_ITEM_PRICE_BASE);
|
||||
ItemSearchNameStorage = DBReader.Read<ItemSearchNameRecord>("ItemSearchName.db2", HotfixStatements.SEL_ITEM_SEARCH_NAME, HotfixStatements.SEL_ITEM_SEARCH_NAME_LOCALE);
|
||||
ItemSetStorage = DBReader.Read<ItemSetRecord>("ItemSet.db2", HotfixStatements.SEL_ITEM_SET, HotfixStatements.SEL_ITEM_SET_LOCALE);
|
||||
@@ -523,6 +524,7 @@ namespace Game.DataStorage
|
||||
public static DB6Storage<ItemLimitCategoryRecord> ItemLimitCategoryStorage;
|
||||
public static DB6Storage<ItemLimitCategoryConditionRecord> ItemLimitCategoryConditionStorage;
|
||||
public static DB6Storage<ItemModifiedAppearanceRecord> ItemModifiedAppearanceStorage;
|
||||
public static DB6Storage<ItemNameDescriptionRecord> ItemNameDescriptionStorage;
|
||||
public static DB6Storage<ItemPriceBaseRecord> ItemPriceBaseStorage;
|
||||
public static DB6Storage<ItemSearchNameRecord> ItemSearchNameStorage;
|
||||
public static DB6Storage<ItemSetRecord> ItemSetStorage;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user