Skip to content

Commit

Permalink
Allow generation of quest_offer_reward_locale sql data for patch 8.x,…
Browse files Browse the repository at this point in the history
… 9.x, 10.x
  • Loading branch information
mdX7 committed Mar 1, 2024
1 parent 5b2fdd8 commit e740174
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
11 changes: 11 additions & 0 deletions WowPacketParserModule.V10_0_0_46181/Parsers/QuestHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
11 changes: 11 additions & 0 deletions WowPacketParserModule.V8_0_1_27101/Parsers/QuestHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
11 changes: 11 additions & 0 deletions WowPacketParserModule.V9_0_1_36216/Parsers/QuestHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit e740174

Please sign in to comment.