From e740174d640a1564e9d3cd68e232247a1fe1a31e Mon Sep 17 00:00:00 2001 From: ModoX Date: Fri, 1 Mar 2024 16:07:20 +0100 Subject: [PATCH] Allow generation of quest_offer_reward_locale sql data for patch 8.x, 9.x, 10.x --- .../Parsers/QuestHandler.cs | 11 +++++++++++ .../Parsers/QuestHandler.cs | 11 +++++++++++ .../Parsers/QuestHandler.cs | 11 +++++++++++ 3 files changed, 33 insertions(+) diff --git a/WowPacketParserModule.V10_0_0_46181/Parsers/QuestHandler.cs b/WowPacketParserModule.V10_0_0_46181/Parsers/QuestHandler.cs index 0b4d21dc2d..850a5fb105 100644 --- a/WowPacketParserModule.V10_0_0_46181/Parsers/QuestHandler.cs +++ b/WowPacketParserModule.V10_0_0_46181/Parsers/QuestHandler.cs @@ -268,6 +268,17 @@ public static void QuestGiverOfferReward(Packet packet) packet.ReadWoWString("PortraitTurnInName", portraitTurnInNameLen); Storage.QuestOfferRewards.Add(questOfferReward, packet.TimeSpan); + + if (ClientLocale.PacketLocale != LocaleConstant.enUS && questOfferReward.RewardText != string.Empty) + { + QuestOfferRewardLocale localesQuestOfferReward = new QuestOfferRewardLocale + { + ID = questOfferReward.ID, + RewardText = questOfferReward.RewardText + }; + + Storage.LocalesQuestOfferRewards.Add(localesQuestOfferReward, packet.TimeSpan); + } } [Parser(Opcode.CMSG_QUEST_GIVER_STATUS_TRACKED_QUERY)] diff --git a/WowPacketParserModule.V8_0_1_27101/Parsers/QuestHandler.cs b/WowPacketParserModule.V8_0_1_27101/Parsers/QuestHandler.cs index fec35d2433..a34519f812 100644 --- a/WowPacketParserModule.V8_0_1_27101/Parsers/QuestHandler.cs +++ b/WowPacketParserModule.V8_0_1_27101/Parsers/QuestHandler.cs @@ -599,6 +599,17 @@ public static void QuestGiverOfferReward(Packet packet) packet.ReadWoWString("PortraitTurnInName", portraitTurnInNameLen); Storage.QuestOfferRewards.Add(questOfferReward, packet.TimeSpan); + + if (ClientLocale.PacketLocale != LocaleConstant.enUS && questOfferReward.RewardText != string.Empty) + { + QuestOfferRewardLocale localesQuestOfferReward = new QuestOfferRewardLocale + { + ID = questOfferReward.ID, + RewardText = questOfferReward.RewardText + }; + + Storage.LocalesQuestOfferRewards.Add(localesQuestOfferReward, packet.TimeSpan); + } } [Parser(Opcode.SMSG_DISPLAY_PLAYER_CHOICE)] diff --git a/WowPacketParserModule.V9_0_1_36216/Parsers/QuestHandler.cs b/WowPacketParserModule.V9_0_1_36216/Parsers/QuestHandler.cs index 1316e2d638..b9af7d5294 100644 --- a/WowPacketParserModule.V9_0_1_36216/Parsers/QuestHandler.cs +++ b/WowPacketParserModule.V9_0_1_36216/Parsers/QuestHandler.cs @@ -433,6 +433,17 @@ public static void QuestGiverOfferReward(Packet packet) packet.ReadWoWString("PortraitTurnInName", portraitTurnInNameLen); Storage.QuestOfferRewards.Add(questOfferReward, packet.TimeSpan); + + if (ClientLocale.PacketLocale != LocaleConstant.enUS && questOfferReward.RewardText != string.Empty) + { + QuestOfferRewardLocale localesQuestOfferReward = new QuestOfferRewardLocale + { + ID = questOfferReward.ID, + RewardText = questOfferReward.RewardText + }; + + Storage.LocalesQuestOfferRewards.Add(localesQuestOfferReward, packet.TimeSpan); + } } [Parser(Opcode.CMSG_QUEST_GIVER_CHOOSE_REWARD)]