Core/DataStores: Load PvpTier.db2
Port From (https://github.com/TrinityCore/TrinityCore/commit/8d5356cdeaeaae7dc20bfca71ca24b8134a8e80c)
This commit is contained in:
@@ -836,6 +836,10 @@ namespace Framework.Database
|
|||||||
PrepareStatement(HotfixStatements.SEL_PVP_TALENT_SLOT_UNLOCK, "SELECT ID, Slot, LevelRequired, DeathKnightLevelRequired, DemonHunterLevelRequired" +
|
PrepareStatement(HotfixStatements.SEL_PVP_TALENT_SLOT_UNLOCK, "SELECT ID, Slot, LevelRequired, DeathKnightLevelRequired, DemonHunterLevelRequired" +
|
||||||
" FROM pvp_talent_slot_unlock");
|
" FROM pvp_talent_slot_unlock");
|
||||||
|
|
||||||
|
// PvpTier.db2
|
||||||
|
PrepareStatement(HotfixStatements.SEL_PVP_TIER, "SELECT Name, ID, MinRating, MaxRating, PrevTier, NextTier, BracketID, `Rank`, RankIconFileDataID FROM pvp_tier");
|
||||||
|
PrepareStatement(HotfixStatements.SEL_PVP_TIER_LOCALE, "SELECT ID, Name_lang FROM pvp_tier_locale WHERE locale = ?");
|
||||||
|
|
||||||
// QuestFactionReward.db2
|
// QuestFactionReward.db2
|
||||||
PrepareStatement(HotfixStatements.SEL_QUEST_FACTION_REWARD, "SELECT ID, Difficulty1, Difficulty2, Difficulty3, Difficulty4, Difficulty5, Difficulty6, " +
|
PrepareStatement(HotfixStatements.SEL_QUEST_FACTION_REWARD, "SELECT ID, Difficulty1, Difficulty2, Difficulty3, Difficulty4, Difficulty5, Difficulty6, " +
|
||||||
"Difficulty7, Difficulty8, Difficulty9, Difficulty10 FROM quest_faction_reward");
|
"Difficulty7, Difficulty8, Difficulty9, Difficulty10 FROM quest_faction_reward");
|
||||||
@@ -1624,6 +1628,9 @@ namespace Framework.Database
|
|||||||
|
|
||||||
SEL_PVP_TALENT_SLOT_UNLOCK,
|
SEL_PVP_TALENT_SLOT_UNLOCK,
|
||||||
|
|
||||||
|
SEL_PVP_TIER,
|
||||||
|
SEL_PVP_TIER_LOCALE,
|
||||||
|
|
||||||
SEL_QUEST_FACTION_REWARD,
|
SEL_QUEST_FACTION_REWARD,
|
||||||
|
|
||||||
SEL_QUEST_INFO,
|
SEL_QUEST_INFO,
|
||||||
|
|||||||
@@ -240,6 +240,7 @@ namespace Game.DataStorage
|
|||||||
PvpTalentStorage = ReadDB2<PvpTalentRecord>("PvpTalent.db2", HotfixStatements.SEL_PVP_TALENT, HotfixStatements.SEL_PVP_TALENT_LOCALE);
|
PvpTalentStorage = ReadDB2<PvpTalentRecord>("PvpTalent.db2", HotfixStatements.SEL_PVP_TALENT, HotfixStatements.SEL_PVP_TALENT_LOCALE);
|
||||||
PvpTalentCategoryStorage = ReadDB2<PvpTalentCategoryRecord>("PvpTalentCategory.db2", HotfixStatements.SEL_PVP_TALENT_CATEGORY);
|
PvpTalentCategoryStorage = ReadDB2<PvpTalentCategoryRecord>("PvpTalentCategory.db2", HotfixStatements.SEL_PVP_TALENT_CATEGORY);
|
||||||
PvpTalentSlotUnlockStorage = ReadDB2<PvpTalentSlotUnlockRecord>("PvpTalentSlotUnlock.db2", HotfixStatements.SEL_PVP_TALENT_SLOT_UNLOCK);
|
PvpTalentSlotUnlockStorage = ReadDB2<PvpTalentSlotUnlockRecord>("PvpTalentSlotUnlock.db2", HotfixStatements.SEL_PVP_TALENT_SLOT_UNLOCK);
|
||||||
|
PvpTierStorage = ReadDB2<PvpTierRecord>("PvpTier.db2", HotfixStatements.SEL_PVP_TIER, HotfixStatements.SEL_PVP_TIER_LOCALE);
|
||||||
QuestFactionRewardStorage = ReadDB2<QuestFactionRewardRecord>("QuestFactionReward.db2", HotfixStatements.SEL_QUEST_FACTION_REWARD);
|
QuestFactionRewardStorage = ReadDB2<QuestFactionRewardRecord>("QuestFactionReward.db2", HotfixStatements.SEL_QUEST_FACTION_REWARD);
|
||||||
QuestInfoStorage = ReadDB2<QuestInfoRecord>("QuestInfo.db2", HotfixStatements.SEL_QUEST_INFO, HotfixStatements.SEL_QUEST_INFO_LOCALE);
|
QuestInfoStorage = ReadDB2<QuestInfoRecord>("QuestInfo.db2", HotfixStatements.SEL_QUEST_INFO, HotfixStatements.SEL_QUEST_INFO_LOCALE);
|
||||||
QuestLineXQuestStorage = ReadDB2<QuestLineXQuestRecord>("QuestLineXQuest.db2", HotfixStatements.SEL_QUEST_LINE_X_QUEST);
|
QuestLineXQuestStorage = ReadDB2<QuestLineXQuestRecord>("QuestLineXQuest.db2", HotfixStatements.SEL_QUEST_LINE_X_QUEST);
|
||||||
@@ -610,6 +611,7 @@ namespace Game.DataStorage
|
|||||||
public static DB6Storage<PvpTalentRecord> PvpTalentStorage;
|
public static DB6Storage<PvpTalentRecord> PvpTalentStorage;
|
||||||
public static DB6Storage<PvpTalentCategoryRecord> PvpTalentCategoryStorage;
|
public static DB6Storage<PvpTalentCategoryRecord> PvpTalentCategoryStorage;
|
||||||
public static DB6Storage<PvpTalentSlotUnlockRecord> PvpTalentSlotUnlockStorage;
|
public static DB6Storage<PvpTalentSlotUnlockRecord> PvpTalentSlotUnlockStorage;
|
||||||
|
public static DB6Storage<PvpTierRecord> PvpTierStorage;
|
||||||
public static DB6Storage<QuestFactionRewardRecord> QuestFactionRewardStorage;
|
public static DB6Storage<QuestFactionRewardRecord> QuestFactionRewardStorage;
|
||||||
public static DB6Storage<QuestInfoRecord> QuestInfoStorage;
|
public static DB6Storage<QuestInfoRecord> QuestInfoStorage;
|
||||||
public static DB6Storage<QuestLineXQuestRecord> QuestLineXQuestStorage;
|
public static DB6Storage<QuestLineXQuestRecord> QuestLineXQuestStorage;
|
||||||
|
|||||||
@@ -213,4 +213,17 @@ namespace Game.DataStorage
|
|||||||
public uint DeathKnightLevelRequired;
|
public uint DeathKnightLevelRequired;
|
||||||
public uint DemonHunterLevelRequired;
|
public uint DemonHunterLevelRequired;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public sealed class PvpTierRecord
|
||||||
|
{
|
||||||
|
public LocalizedString Name;
|
||||||
|
public uint Id;
|
||||||
|
public short MinRating;
|
||||||
|
public short MaxRating;
|
||||||
|
public int PrevTier;
|
||||||
|
public int NextTier;
|
||||||
|
public sbyte BracketID;
|
||||||
|
public sbyte Rank;
|
||||||
|
public int RankIconFileDataID;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,46 @@
|
|||||||
|
--
|
||||||
|
-- Table structure for table `pvp_tier`
|
||||||
|
--
|
||||||
|
DROP TABLE IF EXISTS `pvp_tier`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!50503 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `pvp_tier` (
|
||||||
|
`Name` text,
|
||||||
|
`ID` int(10) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`MinRating` smallint(6) NOT NULL DEFAULT '0',
|
||||||
|
`MaxRating` smallint(6) NOT NULL DEFAULT '0',
|
||||||
|
`PrevTier` int(11) NOT NULL DEFAULT '0',
|
||||||
|
`NextTier` int(11) NOT NULL DEFAULT '0',
|
||||||
|
`BracketID` tinyint(4) NOT NULL DEFAULT '0',
|
||||||
|
`Rank` tinyint(4) NOT NULL DEFAULT '0',
|
||||||
|
`RankIconFileDataID` int(11) 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 */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `pvp_tier_locale`
|
||||||
|
--
|
||||||
|
DROP TABLE IF EXISTS `pvp_tier_locale`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!50503 SET character_set_client = utf8mb4 */;
|
||||||
|
CREATE TABLE `pvp_tier_locale` (
|
||||||
|
`ID` int(10) unsigned NOT NULL DEFAULT '0',
|
||||||
|
`locale` varchar(4) NOT NULL,
|
||||||
|
`Name_lang` text,
|
||||||
|
`VerifiedBuild` int(11) NOT NULL DEFAULT '0',
|
||||||
|
PRIMARY KEY (`ID`,`locale`,`VerifiedBuild`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
|
||||||
|
/*!50500 PARTITION BY LIST COLUMNS(locale)
|
||||||
|
(PARTITION deDE VALUES IN ('deDE') ENGINE = InnoDB,
|
||||||
|
PARTITION esES VALUES IN ('esES') ENGINE = InnoDB,
|
||||||
|
PARTITION esMX VALUES IN ('esMX') ENGINE = InnoDB,
|
||||||
|
PARTITION frFR VALUES IN ('frFR') ENGINE = InnoDB,
|
||||||
|
PARTITION itIT VALUES IN ('itIT') ENGINE = InnoDB,
|
||||||
|
PARTITION koKR VALUES IN ('koKR') ENGINE = InnoDB,
|
||||||
|
PARTITION ptBR VALUES IN ('ptBR') ENGINE = InnoDB,
|
||||||
|
PARTITION ruRU VALUES IN ('ruRU') ENGINE = InnoDB,
|
||||||
|
PARTITION zhCN VALUES IN ('zhCN') ENGINE = InnoDB,
|
||||||
|
PARTITION zhTW VALUES IN ('zhTW') ENGINE = InnoDB) */;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
Reference in New Issue
Block a user