TrinityCore
Quest Class Reference

#include <QuestDef.h>

Public Member Functions

 Quest (Field *questRecord)
 
 ~Quest ()
 
void LoadRewardDisplaySpell (Field *fields)
 
void LoadRewardChoiceItems (Field *fields)
 
void LoadQuestDetails (Field *fields)
 
void LoadQuestRequestItems (Field *fields)
 
void LoadQuestOfferReward (Field *fields)
 
void LoadQuestTemplateAddon (Field *fields)
 
void LoadQuestMailSender (Field *fields)
 
void LoadQuestObjective (Field *fields)
 
void LoadQuestObjectiveVisualEffect (Field *fields)
 
void LoadConditionalConditionalQuestDescription (Field *fields)
 
void LoadConditionalConditionalRequestItemsText (Field *fields)
 
void LoadConditionalConditionalOfferRewardText (Field *fields)
 
void LoadConditionalConditionalQuestCompletionLog (Field *fields)
 
uint32 XPValue (Player const *player) const
 
uint32 MoneyValue (Player const *player) const
 
uint32 MaxMoneyValue () const
 
uint32 GetMaxMoneyReward () const
 
Optional< QuestTagTypeGetQuestTag () const
 
bool IsImportant () const
 
bool HasFlag (QuestFlags flag) const
 
bool HasFlagEx (QuestFlagsEx flag) const
 
bool HasFlagEx2 (QuestFlagsEx2 flag) const
 
bool HasSpecialFlag (QuestSpecialFlags flag) const
 
void SetSpecialFlag (QuestSpecialFlags flag)
 
bool HasQuestObjectiveType (QuestObjectiveType type) const
 
bool IsAutoPush () const
 
bool IsWorldQuest () const
 
bool IsUnavailable () const
 
uint32 GetQuestId () const
 
uint32 GetQuestType () const
 
uint32 GetQuestPackageID () const
 
uint32 GetContentTuningId () const
 
int32 GetZoneOrSort () const
 
uint32 GetMaxLevel () const
 
uint32 GetQuestInfoID () const
 
uint32 GetAllowableClasses () const
 
Trinity::RaceMask< uint64GetAllowableRaces () const
 
uint32 GetRequiredSkill () const
 
uint32 GetRequiredSkillValue () const
 
uint32 GetRequiredMinRepFaction () const
 
int32 GetRequiredMinRepValue () const
 
uint32 GetRequiredMaxRepFaction () const
 
int32 GetRequiredMaxRepValue () const
 
uint32 GetSuggestedPlayers () const
 
int64 GetLimitTime () const
 
int32 GetPrevQuestId () const
 
uint32 GetNextQuestId () const
 
int32 GetExclusiveGroup () const
 
int32 GetBreadcrumbForQuestId () const
 
uint32 GetNextQuestInChain () const
 
int32 GetRewArenaPoints () const
 
uint32 GetXPDifficulty () const
 
float GetXPMultiplier () const
 
float GetMoneyMultiplier () const
 
uint32 GetSrcItemId () const
 
uint32 GetSrcItemCount () const
 
uint32 GetSrcSpell () const
 
std::string const & GetLogTitle () const
 
std::string const & GetLogDescription () const
 
std::string const & GetQuestDescription () const
 
std::vector< QuestConditionalText > const & GetConditionalQuestDescription () const
 
std::string const & GetAreaDescription () const
 
std::string const & GetOfferRewardText () const
 
std::vector< QuestConditionalText > const & GetConditionalOfferRewardText () const
 
std::string const & GetRequestItemsText () const
 
std::vector< QuestConditionalText > const & GetConditionalRequestItemsText () const
 
std::string const & GetQuestCompletionLog () const
 
std::vector< QuestConditionalText > const & GetConditionalQuestCompletionLog () const
 
std::string const & GetPortraitGiverText () const
 
std::string const & GetPortraitGiverName () const
 
std::string const & GetPortraitTurnInText () const
 
std::string const & GetPortraitTurnInName () const
 
QuestObjectives const & GetObjectives () const
 
uint32 GetRewMoneyDifficulty () const
 
uint32 GetRewHonor () const
 
uint32 GetRewKillHonor () const
 
uint32 GetArtifactXPDifficulty () const
 
float GetArtifactXPMultiplier () const
 
uint32 GetArtifactCategoryId () const
 
uint32 GetRewMoneyMaxLevel () const
 
uint32 GetRewSpell () const
 
uint32 GetRewMailTemplateId () const
 
uint32 GetRewMailDelaySecs () const
 
uint32 GetRewMailSenderEntry () const
 
uint32 GetRewTitle () const
 
uint32 GetPOIContinent () const
 
float GetPOIx () const
 
float GetPOIy () const
 
uint32 GetPOIPriority () const
 
uint32 GetSoundAccept () const
 
uint32 GetSoundTurnIn () const
 
uint32 GetIncompleteEmote () const
 
uint32 GetCompleteEmote () const
 
uint32 GetIncompleteEmoteDelay () const
 
uint32 GetCompleteEmoteDelay () const
 
bool IsRepeatable () const
 
bool IsAutoAccept () const
 
bool IsTurnIn () const
 
uint32 GetFlags () const
 
uint32 GetFlagsEx () const
 
uint32 GetFlagsEx2 () const
 
uint32 GetSpecialFlags () const
 
uint32 GetScriptId () const
 
uint32 GetAreaGroupID () const
 
uint32 GetRewardSkillId () const
 
uint32 GetRewardSkillPoints () const
 
uint32 GetRewardReputationMask () const
 
int32 GetTreasurePickerId () const
 
int32 GetExpansion () const
 
int32 GetManagedWorldStateId () const
 
int32 GetQuestSessionBonus () const
 
uint32 GetQuestGiverPortrait () const
 
int32 GetQuestGiverPortraitMount () const
 
int32 GetQuestGiverPortraitModelSceneId () const
 
uint32 GetQuestTurnInPortrait () const
 
bool IsDaily () const
 
bool IsWeekly () const
 
bool IsMonthly () const
 
bool IsSeasonal () const
 
bool IsDailyOrWeekly () const
 
bool IsRaidQuest (Difficulty difficulty) const
 
bool IsAllowedInRaid (Difficulty difficulty) const
 
bool IsDFQuest () const
 
bool IsPushedToPartyOnAccept () const
 
uint32 CalculateHonorGain (uint8 level) const
 
bool CanIncreaseRewardedQuestCounters () const
 
uint32 GetRewChoiceItemsCount () const
 
uint32 GetRewItemsCount () const
 
uint32 GetRewCurrencyCount () const
 
void SetEventIdForQuest (uint16 eventId)
 
uint16 GetEventIdForQuest () const
 
void InitializeQueryData ()
 
WorldPacket BuildQueryData (LocaleConstant loc, Player *player) const
 
void BuildQuestRewards (WorldPackets::Quest::QuestRewards &rewards, Player *player) const
 

Static Public Member Functions

static uint32 XPValue (Player const *player, uint32 contentTuningId, uint32 xpDifficulty, float xpMultiplier=1.0f, int32 expansion=-1)
 
static bool IsTakingQuestEnabled (uint32 questId)
 
static uint32 RoundXPValue (uint32 xp)
 

Public Attributes

std::vector< QuestRewardDisplaySpellRewardDisplaySpell
 
std::array< uint32, QUEST_REWARD_ITEM_COUNTRewardItemId = { }
 
std::array< uint32, QUEST_REWARD_ITEM_COUNTRewardItemCount = { }
 
std::array< uint32, QUEST_ITEM_DROP_COUNTItemDrop = { }
 
std::array< uint32, QUEST_ITEM_DROP_COUNTItemDropQuantity = { }
 
std::array< LootItemType, QUEST_REWARD_CHOICES_COUNTRewardChoiceItemType = { }
 
std::array< uint32, QUEST_REWARD_CHOICES_COUNTRewardChoiceItemId = { }
 
std::array< uint32, QUEST_REWARD_CHOICES_COUNTRewardChoiceItemCount = { }
 
std::array< uint32, QUEST_REWARD_CHOICES_COUNTRewardChoiceItemDisplayId = { }
 
std::array< uint32, QUEST_REWARD_REPUTATIONS_COUNTRewardFactionId = { }
 
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNTRewardFactionValue = { }
 
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNTRewardFactionOverride = { }
 
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNTRewardFactionCapIn = { }
 
std::array< uint32, QUEST_REWARD_CURRENCY_COUNTRewardCurrencyId = { }
 
std::array< uint32, QUEST_REWARD_CURRENCY_COUNTRewardCurrencyCount = { }
 
QuestObjectives Objectives
 
std::array< uint32, QUEST_EMOTE_COUNTDetailsEmote = { }
 
std::array< uint32, QUEST_EMOTE_COUNTDetailsEmoteDelay = { }
 
std::array< int32, QUEST_EMOTE_COUNTOfferRewardEmote = { }
 
std::array< uint32, QUEST_EMOTE_COUNTOfferRewardEmoteDelay = { }
 
std::vector< uint32DependentPreviousQuests
 
std::vector< uint32DependentBreadcrumbQuests
 
std::array< WorldPacket, TOTAL_LOCALESQueryData
 

Private Attributes

uint32 _rewChoiceItemsCount = 0
 
uint32 _rewItemsCount = 0
 
uint16 _eventIdForQuest = 0
 
uint32 _rewCurrencyCount = 0
 
uint32 _id = 0
 
uint32 _type = 0
 
uint32 _packageID = 0
 
uint32 _contentTuningID = 0
 
int32 _questSortID = 0
 
uint32 _questInfoID = 0
 
uint32 _suggestedPlayers = 0
 
uint32 _nextQuestInChain = 0
 
uint32 _rewardXPDifficulty = 0
 
float _rewardXPMultiplier = 0.f
 
uint32 _rewardMoneyDifficulty = 0
 
float _rewardMoneyMultiplier = 0.f
 
uint32 _rewardBonusMoney = 0
 
uint32 _rewardSpell = 0
 
uint32 _rewardHonor = 0
 
uint32 _rewardKillHonor = 0
 
uint32 _rewardArtifactXPDifficulty = 0
 
float _rewardArtifactXPMultiplier = 0.f
 
uint32 _rewardArtifactCategoryID = 0
 
uint32 _sourceItemId = 0
 
uint32 _flags = 0
 
uint32 _flagsEx = 0
 
uint32 _flagsEx2 = 0
 
uint32 _poiContinent = 0
 
float _poix = 0.f
 
float _poiy = 0.f
 
uint32 _poiPriority = 0
 
uint32 _rewardTitleId = 0
 
int32 _rewardArenaPoints = 0
 
uint32 _rewardSkillId = 0
 
uint32 _rewardSkillPoints = 0
 
uint32 _questGiverPortrait = 0
 
int32 _questGiverPortraitMount = 0
 
int32 _questGiverPortraitModelSceneId = 0
 
uint32 _questTurnInPortrait = 0
 
uint32 _rewardReputationMask
 
uint32 _soundAccept = 0
 
uint32 _soundTurnIn = 0
 
uint32 _areaGroupID = 0
 
int64 _limitTime = 0
 
Trinity::RaceMask< uint64_allowableRaces
 
int32 _treasurePickerID = 0
 
int32 _expansion = 0
 
int32 _managedWorldStateID = 0
 
int32 _questSessionBonus = 0
 
std::string _logTitle
 
std::string _logDescription
 
std::string _questDescription
 
std::string _areaDescription
 
std::string _portraitGiverText
 
std::string _portraitGiverName
 
std::string _portraitTurnInText
 
std::string _portraitTurnInName
 
std::string _questCompletionLog
 
std::vector< QuestConditionalText_conditionalQuestDescription
 
std::vector< QuestConditionalText_conditionalQuestCompletionLog
 
uint32 _emoteOnComplete = 0
 
uint32 _emoteOnIncomplete = 0
 
uint32 _emoteOnCompleteDelay = 0
 
uint32 _emoteOnIncompleteDelay = 0
 
std::string _requestItemsText
 
std::vector< QuestConditionalText_conditionalRequestItemsText
 
std::string _offerRewardText
 
std::vector< QuestConditionalText_conditionalOfferRewardText
 
uint32 _maxLevel = 0
 
uint32 _allowableClasses = 0
 
uint32 _sourceSpellID = 0
 
int32 _prevQuestID = 0
 
uint32 _nextQuestID = 0
 
int32 _exclusiveGroup = 0
 
int32 _breadcrumbForQuestId = 0
 
uint32 _rewardMailTemplateId = 0
 
uint32 _rewardMailDelay = 0
 
uint32 _requiredSkillId = 0
 
uint32 _requiredSkillPoints = 0
 
uint32 _requiredMinRepFaction = 0
 
int32 _requiredMinRepValue = 0
 
uint32 _requiredMaxRepFaction = 0
 
int32 _requiredMaxRepValue = 0
 
uint32 _sourceItemIdCount = 0
 
uint32 _rewardMailSenderEntry = 0
 
uint32 _specialFlags = 0
 
std::bitset< MAX_QUEST_OBJECTIVE_TYPE_usedQuestObjectiveTypes
 
uint32 _scriptId = 0
 

Friends

class ObjectMgr
 
class Player
 
class PlayerMenu
 

Detailed Description

Definition at line 537 of file QuestDef.h.

Constructor & Destructor Documentation

◆ Quest()

Quest::Quest ( Field questRecord)
explicit

Definition at line 32 of file QuestDef.cpp.

33{
34 _id = questRecord[0].GetUInt32();
35 _type = questRecord[1].GetUInt8();
36 _packageID = questRecord[2].GetUInt32();
37 _contentTuningID = questRecord[3].GetInt32();
38 _questSortID = questRecord[4].GetInt16();
39 _questInfoID = questRecord[5].GetUInt16();
40 _suggestedPlayers = questRecord[6].GetUInt8();
41 _nextQuestInChain = questRecord[7].GetUInt32();
42 _rewardXPDifficulty = questRecord[8].GetUInt32();
43 _rewardXPMultiplier = questRecord[9].GetFloat();
44 _rewardMoneyDifficulty = questRecord[10].GetUInt32();
45 _rewardMoneyMultiplier = questRecord[11].GetFloat();
46 _rewardBonusMoney = questRecord[12].GetUInt32();
47 _rewardSpell = questRecord[13].GetUInt32();
48 _rewardHonor = questRecord[14].GetUInt32();
49 _rewardKillHonor = questRecord[15].GetUInt32();
50 _sourceItemId = questRecord[16].GetUInt32();
51 _rewardArtifactXPDifficulty = questRecord[17].GetUInt32();
52 _rewardArtifactXPMultiplier = questRecord[18].GetFloat();
53 _rewardArtifactCategoryID = questRecord[19].GetUInt32();
54 _flags = questRecord[20].GetUInt32();
55 _flagsEx = questRecord[21].GetUInt32();
56 _flagsEx2 = questRecord[22].GetUInt32();
57
58 for (uint32 i = 0; i < QUEST_ITEM_DROP_COUNT; ++i)
59 {
60 RewardItemId[i] = questRecord[23 + i * 4].GetUInt32();
61 RewardItemCount[i] = questRecord[24 + i * 4].GetUInt32();
62 ItemDrop[i] = questRecord[25 + i * 4].GetUInt32();
63 ItemDropQuantity[i] = questRecord[26 + i * 4].GetUInt32();
64
65 if (RewardItemId[i])
67 }
68
69 for (uint32 i = 0; i < QUEST_REWARD_CHOICES_COUNT; ++i)
70 {
71 RewardChoiceItemId[i] = questRecord[39 + i * 3].GetUInt32();
72 RewardChoiceItemCount[i] = questRecord[40 + i * 3].GetUInt32();
73 RewardChoiceItemDisplayId[i] = questRecord[41 + i * 3].GetUInt32();
74
75 if (RewardChoiceItemId[i])
77 }
78
79 _poiContinent = questRecord[57].GetUInt32();
80 _poix = questRecord[58].GetFloat();
81 _poiy = questRecord[59].GetFloat();
82 _poiPriority = questRecord[60].GetUInt32();
83
84 _rewardTitleId = questRecord[61].GetUInt32();
85 _rewardArenaPoints = questRecord[62].GetUInt32();
86 _rewardSkillId = questRecord[63].GetUInt32();
87 _rewardSkillPoints = questRecord[64].GetUInt32();
88
89 _questGiverPortrait = questRecord[65].GetUInt32();
90 _questGiverPortraitMount = questRecord[66].GetUInt32();
91 _questGiverPortraitModelSceneId = questRecord[67].GetInt32();
92 _questTurnInPortrait = questRecord[68].GetUInt32();
93
94 for (uint32 i = 0; i < QUEST_REWARD_REPUTATIONS_COUNT; ++i)
95 {
96 RewardFactionId[i] = questRecord[69 + i * 4].GetUInt32();
97 RewardFactionValue[i] = questRecord[70 + i * 4].GetInt32();
98 RewardFactionOverride[i] = questRecord[71 + i * 4].GetInt32();
99 RewardFactionCapIn[i] = questRecord[72 + i * 4].GetInt32();
100 }
101
102 _rewardReputationMask = questRecord[89].GetUInt32();
103
104 for (uint32 i = 0; i < QUEST_REWARD_CURRENCY_COUNT; ++i)
105 {
106 RewardCurrencyId[i] = questRecord[90 + i * 2].GetUInt32();
107 RewardCurrencyCount[i] = questRecord[91 + i * 2].GetUInt32();
108
109 if (RewardCurrencyId[i])
111 }
112
113 _soundAccept = questRecord[98].GetUInt32();
114 _soundTurnIn = questRecord[99].GetUInt32();
115 _areaGroupID = questRecord[100].GetUInt32();
116 _limitTime = questRecord[101].GetInt64();
117 _allowableRaces.RawValue = questRecord[102].GetUInt64();
118 _treasurePickerID = questRecord[103].GetInt32();
119 _expansion = questRecord[104].GetInt32();
120 _managedWorldStateID = questRecord[105].GetInt32();
121 _questSessionBonus = questRecord[106].GetInt32();
122
123 _logTitle = questRecord[107].GetString();
124 _logDescription = questRecord[108].GetString();
125 _questDescription = questRecord[109].GetString();
126 _areaDescription = questRecord[110].GetString();
127 _portraitGiverText = questRecord[111].GetString();
128 _portraitGiverName = questRecord[112].GetString();
129 _portraitTurnInText = questRecord[113].GetString();
130 _portraitTurnInName = questRecord[114].GetString();
131 _questCompletionLog = questRecord[115].GetString();
132}
uint32_t uint32
Definition: Define.h:143
#define QUEST_ITEM_DROP_COUNT
Definition: QuestDef.h:45
#define QUEST_REWARD_REPUTATIONS_COUNT
Definition: QuestDef.h:49
#define QUEST_REWARD_CURRENCY_COUNT
Definition: QuestDef.h:51
#define QUEST_REWARD_CHOICES_COUNT
Definition: QuestDef.h:46
uint8 GetUInt8() const
Definition: Field.cpp:30
std::string GetString() const
Definition: Field.cpp:118
int64 GetInt64() const
Definition: Field.cpp:86
uint64 GetUInt64() const
Definition: Field.cpp:78
int16 GetInt16() const
Definition: Field.cpp:54
uint16 GetUInt16() const
Definition: Field.cpp:46
float GetFloat() const
Definition: Field.cpp:94
uint32 GetUInt32() const
Definition: Field.cpp:62
int32 GetInt32() const
Definition: Field.cpp:70
std::string _areaDescription
Definition: QuestDef.h:781
uint32 _flagsEx2
Definition: QuestDef.h:755
uint32 _soundAccept
Definition: QuestDef.h:769
std::string _portraitTurnInName
Definition: QuestDef.h:785
int32 _questSortID
Definition: QuestDef.h:737
uint32 _contentTuningID
Definition: QuestDef.h:736
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNT > RewardFactionValue
Definition: QuestDef.h:696
float _poix
Definition: QuestDef.h:757
uint32 _suggestedPlayers
Definition: QuestDef.h:739
uint32 _rewardBonusMoney
Definition: QuestDef.h:745
uint32 _questTurnInPortrait
Definition: QuestDef.h:767
std::array< uint32, QUEST_REWARD_CURRENCY_COUNT > RewardCurrencyId
Definition: QuestDef.h:699
float _poiy
Definition: QuestDef.h:758
uint32 _questGiverPortrait
Definition: QuestDef.h:764
std::array< uint32, QUEST_REWARD_CHOICES_COUNT > RewardChoiceItemCount
Definition: QuestDef.h:693
uint32 _rewardArtifactCategoryID
Definition: QuestDef.h:751
Trinity::RaceMask< uint64 > _allowableRaces
Definition: QuestDef.h:773
std::array< uint32, QUEST_REWARD_CHOICES_COUNT > RewardChoiceItemId
Definition: QuestDef.h:692
uint32 _rewardSkillPoints
Definition: QuestDef.h:763
std::string _questDescription
Definition: QuestDef.h:780
std::array< uint32, QUEST_REWARD_ITEM_COUNT > RewardItemId
Definition: QuestDef.h:687
int32 _questGiverPortraitMount
Definition: QuestDef.h:765
uint32 _rewItemsCount
Definition: QuestDef.h:728
std::string _portraitGiverText
Definition: QuestDef.h:782
uint32 _flags
Definition: QuestDef.h:753
uint32 _rewChoiceItemsCount
Definition: QuestDef.h:727
std::array< uint32, QUEST_REWARD_ITEM_COUNT > RewardItemCount
Definition: QuestDef.h:688
float _rewardMoneyMultiplier
Definition: QuestDef.h:744
uint32 _areaGroupID
Definition: QuestDef.h:771
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNT > RewardFactionCapIn
Definition: QuestDef.h:698
int32 _rewardArenaPoints
Definition: QuestDef.h:761
uint32 _rewardHonor
Definition: QuestDef.h:747
uint32 _nextQuestInChain
Definition: QuestDef.h:740
uint32 _rewardXPDifficulty
Definition: QuestDef.h:741
int32 _expansion
Definition: QuestDef.h:775
int32 _managedWorldStateID
Definition: QuestDef.h:776
uint32 _rewardReputationMask
Definition: QuestDef.h:768
uint32 _rewardKillHonor
Definition: QuestDef.h:748
std::string _portraitTurnInText
Definition: QuestDef.h:784
uint32 _sourceItemId
Definition: QuestDef.h:752
float _rewardArtifactXPMultiplier
Definition: QuestDef.h:750
std::string _logTitle
Definition: QuestDef.h:778
std::string _logDescription
Definition: QuestDef.h:779
uint32 _rewardArtifactXPDifficulty
Definition: QuestDef.h:749
uint32 _questInfoID
Definition: QuestDef.h:738
std::string _portraitGiverName
Definition: QuestDef.h:783
uint32 _flagsEx
Definition: QuestDef.h:754
std::array< uint32, QUEST_ITEM_DROP_COUNT > ItemDropQuantity
Definition: QuestDef.h:690
uint32 _rewardSkillId
Definition: QuestDef.h:762
uint32 _soundTurnIn
Definition: QuestDef.h:770
uint32 _poiContinent
Definition: QuestDef.h:756
int32 _treasurePickerID
Definition: QuestDef.h:774
int32 _questSessionBonus
Definition: QuestDef.h:777
int32 _questGiverPortraitModelSceneId
Definition: QuestDef.h:766
uint32 _type
Definition: QuestDef.h:734
std::array< uint32, QUEST_REWARD_CHOICES_COUNT > RewardChoiceItemDisplayId
Definition: QuestDef.h:694
int64 _limitTime
Definition: QuestDef.h:772
float _rewardXPMultiplier
Definition: QuestDef.h:742
uint32 _packageID
Definition: QuestDef.h:735
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNT > RewardFactionOverride
Definition: QuestDef.h:697
std::array< uint32, QUEST_REWARD_REPUTATIONS_COUNT > RewardFactionId
Definition: QuestDef.h:695
uint32 _poiPriority
Definition: QuestDef.h:759
uint32 _rewardSpell
Definition: QuestDef.h:746
std::string _questCompletionLog
Definition: QuestDef.h:786
uint32 _rewCurrencyCount
Definition: QuestDef.h:730
std::array< uint32, QUEST_REWARD_CURRENCY_COUNT > RewardCurrencyCount
Definition: QuestDef.h:700
uint32 _id
Definition: QuestDef.h:733
std::array< uint32, QUEST_ITEM_DROP_COUNT > ItemDrop
Definition: QuestDef.h:689
uint32 _rewardTitleId
Definition: QuestDef.h:760
uint32 _rewardMoneyDifficulty
Definition: QuestDef.h:743
+ Here is the call graph for this function:

◆ ~Quest()

Quest::~Quest ( )

Definition at line 134 of file QuestDef.cpp.

135{
136 for (QuestObjective& objective : Objectives)
137 delete objective.CompletionEffect;
138}
QuestObjectives Objectives
Definition: QuestDef.h:701

Member Function Documentation

◆ BuildQueryData()

WorldPacket Quest::BuildQueryData ( LocaleConstant  loc,
Player player 
) const

Definition at line 608 of file QuestDef.cpp.

609{
611
612 response.Allow = true;
613 response.QuestID = GetQuestId();
614
615 response.Info.LogTitle = GetLogTitle();
624 std::transform(GetConditionalQuestDescription().begin(), GetConditionalQuestDescription().end(), std::back_inserter(response.Info.ConditionalQuestDescription), [loc](QuestConditionalText const& text)
625 {
626 std::string_view content = text.Text[LOCALE_enUS];
627 ObjectMgr::GetLocaleString(text.Text, loc, content);
628 return WorldPackets::Quest::ConditionalQuestText { text.PlayerConditionId, text.QuestgiverCreatureId, content };
629 });
630
631 std::transform(GetConditionalQuestCompletionLog().begin(), GetConditionalQuestCompletionLog().end(), std::back_inserter(response.Info.ConditionalQuestCompletionLog), [loc](QuestConditionalText const& text)
632 {
633 std::string_view content = text.Text[LOCALE_enUS];
634 ObjectMgr::GetLocaleString(text.Text, loc, content);
635 return WorldPackets::Quest::ConditionalQuestText { text.PlayerConditionId, text.QuestgiverCreatureId, content };
636 });
637
638 if (loc != LOCALE_enUS)
639 {
640 if (QuestTemplateLocale const* questTemplateLocale = sObjectMgr->GetQuestLocale(GetQuestId()))
641 {
642 ObjectMgr::GetLocaleString(questTemplateLocale->LogTitle, loc, response.Info.LogTitle);
643 ObjectMgr::GetLocaleString(questTemplateLocale->LogDescription, loc, response.Info.LogDescription);
644 ObjectMgr::GetLocaleString(questTemplateLocale->QuestDescription, loc, response.Info.QuestDescription);
645 ObjectMgr::GetLocaleString(questTemplateLocale->AreaDescription, loc, response.Info.AreaDescription);
646 ObjectMgr::GetLocaleString(questTemplateLocale->QuestCompletionLog, loc, response.Info.QuestCompletionLog);
647 ObjectMgr::GetLocaleString(questTemplateLocale->PortraitGiverText, loc, response.Info.PortraitGiverText);
648 ObjectMgr::GetLocaleString(questTemplateLocale->PortraitGiverName, loc, response.Info.PortraitGiverName);
649 ObjectMgr::GetLocaleString(questTemplateLocale->PortraitTurnInText, loc, response.Info.PortraitTurnInText);
650 ObjectMgr::GetLocaleString(questTemplateLocale->PortraitTurnInName, loc, response.Info.PortraitTurnInName);
651 }
652 }
653
654 response.Info.QuestID = GetQuestId();
655 response.Info.QuestType = GetQuestType();
658 response.Info.QuestSortID = GetZoneOrSort();
659 response.Info.QuestInfoID = GetQuestInfoID();
664
666 response.Info.RewardMoney = player ? player->GetQuestMoneyReward(this) : GetMaxMoneyReward();
667
672 {
673 WorldPackets::Quest::QuestCompleteDisplaySpell& rewardDisplaySpell = response.Info.RewardDisplaySpell.emplace_back();
674 rewardDisplaySpell.SpellID = displaySpell.SpellId;
675 rewardDisplaySpell.PlayerConditionID = displaySpell.PlayerConditionId;
676 rewardDisplaySpell.Type = int32(displaySpell.Type);
677 }
678
679 response.Info.RewardSpell = GetRewSpell();
680
681 response.Info.RewardHonor = GetRewHonor();
683
687
688 response.Info.StartItem = GetSrcItemId();
689 response.Info.Flags = GetFlags();
690 response.Info.FlagsEx = GetFlagsEx();
691 response.Info.FlagsEx2 = GetFlagsEx2();
692 response.Info.RewardTitle = GetRewTitle();
701
702 for (uint8 i = 0; i < QUEST_ITEM_DROP_COUNT; ++i)
703 {
704 response.Info.ItemDrop[i] = ItemDrop[i];
705 response.Info.ItemDropQuantity[i] = ItemDropQuantity[i];
706 }
707
709 {
710 for (uint8 i = 0; i < QUEST_REWARD_ITEM_COUNT; ++i)
711 {
712 response.Info.RewardItems[i] = RewardItemId[i];
713 response.Info.RewardAmount[i] = RewardItemCount[i];
714 }
715 for (uint8 i = 0; i < QUEST_REWARD_CHOICES_COUNT; ++i)
716 {
719 }
720 }
721
722 for (uint8 i = 0; i < QUEST_REWARD_REPUTATIONS_COUNT; ++i)
723 {
724 response.Info.RewardFactionID[i] = RewardFactionId[i];
728 }
729
730 response.Info.POIContinent = GetPOIContinent();
731 response.Info.POIx = GetPOIx();
732 response.Info.POIy = GetPOIy();
733 response.Info.POIPriority = GetPOIPriority();
734
737 response.Info.Expansion = GetExpansion();
739 response.Info.QuestSessionBonus = 0; //GetQuestSessionBonus(); // this is only sent while quest session is active
740 response.Info.QuestGiverCreatureID = 0; // only sent during npc interaction
741
742 for (QuestObjective const& questObjective : GetObjectives())
743 {
744 response.Info.Objectives.push_back(questObjective);
745
746 if (loc != LOCALE_enUS)
747 {
748 if (QuestObjectivesLocale const* questObjectivesLocale = sObjectMgr->GetQuestObjectivesLocale(questObjective.ID))
749 ObjectMgr::GetLocaleString(questObjectivesLocale->Description, loc, response.Info.Objectives.back().Description);
750 }
751 }
752
753 for (uint32 i = 0; i < QUEST_REWARD_CURRENCY_COUNT; ++i)
754 {
755 response.Info.RewardCurrencyID[i] = RewardCurrencyId[i];
757 }
758
761 response.Info.AreaGroupID = GetAreaGroupID();
762 response.Info.TimeAllowed = GetLimitTime();
763
764 response.Write();
765 response.ShrinkToFit();
766 return response.Move();
767}
@ LOCALE_enUS
Definition: Common.h:49
uint8_t uint8
Definition: Define.h:145
int32_t int32
Definition: Define.h:139
#define sObjectMgr
Definition: ObjectMgr.h:1945
#define QUEST_REWARD_ITEM_COUNT
Definition: QuestDef.h:47
@ QUEST_FLAGS_HIDE_REWARD
Definition: QuestDef.h:202
static std::string_view GetLocaleString(std::vector< std::string > const &data, LocaleConstant locale)
Definition: ObjectMgr.h:1681
uint32 GetQuestMoneyReward(Quest const *quest) const
Definition: Player.cpp:15038
int32 GetRewArenaPoints() const
Definition: QuestDef.h:608
float GetXPMultiplier() const
Definition: QuestDef.h:610
uint32 GetRewSpell() const
Definition: QuestDef.h:638
uint32 GetRewMoneyMaxLevel() const
Definition: QuestDef.cpp:529
uint32 GetMaxMoneyReward() const
Definition: QuestDef.cpp:454
uint32 GetFlagsEx2() const
Definition: QuestDef.h:658
uint32 GetRewTitle() const
Definition: QuestDef.h:642
std::string const & GetQuestCompletionLog() const
Definition: QuestDef.h:624
uint32 GetRewardSkillId() const
Definition: QuestDef.h:662
uint32 GetSoundAccept() const
Definition: QuestDef.h:647
uint32 GetArtifactXPDifficulty() const
Definition: QuestDef.h:634
std::string const & GetPortraitGiverName() const
Definition: QuestDef.h:627
std::string const & GetPortraitTurnInName() const
Definition: QuestDef.h:629
float GetArtifactXPMultiplier() const
Definition: QuestDef.h:635
float GetPOIy() const
Definition: QuestDef.h:645
int32 GetExpansion() const
Definition: QuestDef.h:666
std::vector< QuestConditionalText > const & GetConditionalQuestCompletionLog() const
Definition: QuestDef.h:625
uint32 GetContentTuningId() const
Definition: QuestDef.h:589
uint32 GetQuestPackageID() const
Definition: QuestDef.h:588
uint32 GetRewardReputationMask() const
Definition: QuestDef.h:664
uint32 GetQuestGiverPortrait() const
Definition: QuestDef.h:669
uint32 GetPOIContinent() const
Definition: QuestDef.h:643
uint32 GetQuestTurnInPortrait() const
Definition: QuestDef.h:672
uint32 GetXPDifficulty() const
Definition: QuestDef.h:609
int32 GetZoneOrSort() const
Definition: QuestDef.h:590
int64 GetLimitTime() const
Definition: QuestDef.h:602
int32 GetManagedWorldStateId() const
Definition: QuestDef.h:667
uint32 GetRewKillHonor() const
Definition: QuestDef.h:633
uint32 GetArtifactCategoryId() const
Definition: QuestDef.h:636
uint32 GetFlags() const
Definition: QuestDef.h:656
std::string const & GetLogTitle() const
Definition: QuestDef.h:615
uint32 GetQuestType() const
Definition: QuestDef.h:587
uint32 GetQuestId() const
Definition: QuestDef.h:586
std::string const & GetPortraitGiverText() const
Definition: QuestDef.h:626
uint32 GetQuestInfoID() const
Definition: QuestDef.h:592
int32 GetQuestGiverPortraitMount() const
Definition: QuestDef.h:670
std::string const & GetPortraitTurnInText() const
Definition: QuestDef.h:628
uint32 GetFlagsEx() const
Definition: QuestDef.h:657
uint32 GetAreaGroupID() const
Definition: QuestDef.h:661
int32 GetQuestGiverPortraitModelSceneId() const
Definition: QuestDef.h:671
uint32 GetSoundTurnIn() const
Definition: QuestDef.h:648
std::string const & GetLogDescription() const
Definition: QuestDef.h:616
std::string const & GetAreaDescription() const
Definition: QuestDef.h:619
float GetMoneyMultiplier() const
Definition: QuestDef.h:611
Trinity::RaceMask< uint64 > GetAllowableRaces() const
Definition: QuestDef.h:594
uint32 GetRewHonor() const
Definition: QuestDef.h:632
uint32 GetSrcItemId() const
Definition: QuestDef.h:612
int32 GetTreasurePickerId() const
Definition: QuestDef.h:665
uint32 GetRewMoneyDifficulty() const
Definition: QuestDef.h:631
float GetPOIx() const
Definition: QuestDef.h:644
QuestObjectives const & GetObjectives() const
Definition: QuestDef.h:630
std::string const & GetQuestDescription() const
Definition: QuestDef.h:617
bool HasFlag(QuestFlags flag) const
Definition: QuestDef.h:568
uint32 GetRewardSkillPoints() const
Definition: QuestDef.h:663
std::vector< QuestRewardDisplaySpell > RewardDisplaySpell
Definition: QuestDef.h:686
uint32 GetPOIPriority() const
Definition: QuestDef.h:646
std::vector< QuestConditionalText > const & GetConditionalQuestDescription() const
Definition: QuestDef.h:618
uint32 GetNextQuestInChain() const
Definition: QuestDef.h:607
uint32 GetSuggestedPlayers() const
Definition: QuestDef.h:601
WorldPacket const * Write() override
WorldPacket && Move()
Definition: Packet.h:54
std::vector< QuestCompleteDisplaySpell > RewardDisplaySpell
Definition: QuestPackets.h:150
std::vector< QuestObjective > Objectives
Definition: QuestPackets.h:193
int32 RewardAmount[QUEST_REWARD_ITEM_COUNT]
Definition: QuestPackets.h:197
int32 ItemDrop[QUEST_ITEM_DROP_COUNT]
Definition: QuestPackets.h:198
int32 RewardFactionOverride[QUEST_REWARD_REPUTATIONS_COUNT]
Definition: QuestPackets.h:203
int32 RewardItems[QUEST_REWARD_ITEM_COUNT]
Definition: QuestPackets.h:196
int32 RewardFactionCapIn[QUEST_REWARD_REPUTATIONS_COUNT]
Definition: QuestPackets.h:204
QuestInfoChoiceItem UnfilteredChoiceItems[QUEST_REWARD_CHOICES_COUNT]
Definition: QuestPackets.h:200
Trinity::RaceMask< uint64 > AllowableRaces
Definition: QuestPackets.h:165
std::vector< ConditionalQuestText > ConditionalQuestDescription
Definition: QuestPackets.h:194
std::vector< ConditionalQuestText > ConditionalQuestCompletionLog
Definition: QuestPackets.h:195
int32 RewardFactionID[QUEST_REWARD_REPUTATIONS_COUNT]
Definition: QuestPackets.h:201
int32 RewardCurrencyID[QUEST_REWARD_CURRENCY_COUNT]
Definition: QuestPackets.h:205
int32 ItemDropQuantity[QUEST_ITEM_DROP_COUNT]
Definition: QuestPackets.h:199
int32 RewardCurrencyQty[QUEST_REWARD_CURRENCY_COUNT]
Definition: QuestPackets.h:206
int32 RewardFactionValue[QUEST_REWARD_REPUTATIONS_COUNT]
Definition: QuestPackets.h:202
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BuildQuestRewards()

void Quest::BuildQuestRewards ( WorldPackets::Quest::QuestRewards rewards,
Player player 
) const

Definition at line 475 of file QuestDef.cpp.

476{
478 rewards.ItemCount = GetRewItemsCount();
479 rewards.Money = player->GetQuestMoneyReward(this);
480 rewards.XP = player->GetQuestXPReward(this);
482 rewards.Title = GetRewTitle();
484 auto displaySpellItr = rewards.SpellCompletionDisplayID.begin();
486 {
487 if (PlayerConditionEntry const* playerCondition = sPlayerConditionStore.LookupEntry(displaySpell.PlayerConditionId))
488 if (!ConditionMgr::IsPlayerMeetingCondition(player, playerCondition))
489 continue;
490
491 *displaySpellItr = displaySpell.SpellId;
492 if (++displaySpellItr == rewards.SpellCompletionDisplayID.end())
493 break;
494 }
495
496 rewards.SpellCompletionID = GetRewSpell();
497 rewards.SkillLineID = GetRewardSkillId();
500
501 for (uint32 i = 0; i < QUEST_REWARD_CHOICES_COUNT; ++i)
502 {
503 rewards.ChoiceItems[i].LootItemType = RewardChoiceItemType[i];
504 rewards.ChoiceItems[i].Item.ItemID = RewardChoiceItemId[i];
505 rewards.ChoiceItems[i].Quantity = RewardChoiceItemCount[i];
506 }
507
508 for (uint32 i = 0; i < QUEST_REWARD_ITEM_COUNT; ++i)
509 {
510 rewards.ItemID[i] = RewardItemId[i];
511 rewards.ItemQty[i] = RewardItemCount[i];
512 }
513
514 for (uint32 i = 0; i < QUEST_REWARD_REPUTATIONS_COUNT; ++i)
515 {
516 rewards.FactionID[i] = RewardFactionId[i];
517 rewards.FactionValue[i] = RewardFactionValue[i];
519 rewards.FactionCapIn[i] = RewardFactionCapIn[i];
520 }
521
522 for (uint32 i = 0; i < QUEST_REWARD_CURRENCY_COUNT; ++i)
523 {
524 rewards.CurrencyID[i] = RewardCurrencyId[i];
525 rewards.CurrencyQty[i] = RewardCurrencyCount[i];
526 }
527}
DB2Storage< PlayerConditionEntry > sPlayerConditionStore("PlayerCondition.db2", &PlayerConditionLoadInfo::Instance)
static bool IsPlayerMeetingCondition(Player const *player, PlayerConditionEntry const *condition)
uint32 GetQuestXPReward(Quest const *quest)
Definition: Player.cpp:15043
std::array< LootItemType, QUEST_REWARD_CHOICES_COUNT > RewardChoiceItemType
Definition: QuestDef.h:691
uint32 GetRewItemsCount() const
Definition: QuestDef.h:708
uint32 GetRewChoiceItemsCount() const
Definition: QuestDef.h:707
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNT > FactionOverride
Definition: QuestPackets.h:288
std::array< QuestChoiceItem, QUEST_REWARD_CHOICES_COUNT > ChoiceItems
Definition: QuestPackets.h:283
std::array< int32, QUEST_REWARD_DISPLAY_SPELL_COUNT > SpellCompletionDisplayID
Definition: QuestPackets.h:278
std::array< int32, QUEST_REWARD_CURRENCY_COUNT > CurrencyQty
Definition: QuestPackets.h:291
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNT > FactionValue
Definition: QuestPackets.h:287
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNT > FactionCapIn
Definition: QuestPackets.h:289
std::array< int32, QUEST_REWARD_ITEM_COUNT > ItemQty
Definition: QuestPackets.h:285
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNT > FactionID
Definition: QuestPackets.h:286
std::array< int32, QUEST_REWARD_CURRENCY_COUNT > CurrencyID
Definition: QuestPackets.h:290
std::array< int32, QUEST_REWARD_ITEM_COUNT > ItemID
Definition: QuestPackets.h:284
+ Here is the call graph for this function:

◆ CalculateHonorGain()

uint32 Quest::CalculateHonorGain ( uint8  level) const

Definition at line 577 of file QuestDef.cpp.

578{
579 uint32 honor = 0;
580
581 /*if (GetRewHonorAddition() > 0 || GetRewHonorMultiplier() > 0.0f)
582 {
583 // values stored from 0.. for 1...
584 TeamContributionPointsEntry const* tc = sTeamContributionPointsStore.LookupEntry(level);
585 if (!tc)
586 return 0;
587
588 honor = uint32(tc->Data * GetRewHonorMultiplier() * 0.1f);
589 honor += GetRewHonorAddition();
590 }*/
591
592 return honor;
593}
+ Here is the caller graph for this function:

◆ CanIncreaseRewardedQuestCounters()

bool Quest::CanIncreaseRewardedQuestCounters ( ) const

Definition at line 595 of file QuestDef.cpp.

596{
597 // Dungeon Finder/Daily/Repeatable (if not weekly, monthly or seasonal) quests are never considered rewarded serverside.
598 // This affects counters and client requests for completed quests.
599 return (!IsDFQuest() && !IsDaily() && (!IsRepeatable() || IsWeekly() || IsMonthly() || IsSeasonal()));
600}
bool IsDFQuest() const
Definition: QuestDef.h:680
bool IsRepeatable() const
Definition: QuestDef.h:653
bool IsDaily() const
Definition: QuestDef.h:673
bool IsWeekly() const
Definition: QuestDef.h:674
bool IsSeasonal() const
Definition: QuestDef.h:676
bool IsMonthly() const
Definition: QuestDef.h:675
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAllowableClasses()

uint32 Quest::GetAllowableClasses ( ) const
inline

Definition at line 593 of file QuestDef.h.

593{ return _allowableClasses; }
uint32 _allowableClasses
Definition: QuestDef.h:812
+ Here is the caller graph for this function:

◆ GetAllowableRaces()

Trinity::RaceMask< uint64 > Quest::GetAllowableRaces ( ) const
inline

Definition at line 594 of file QuestDef.h.

594{ return _allowableRaces; }
+ Here is the caller graph for this function:

◆ GetAreaDescription()

std::string const & Quest::GetAreaDescription ( ) const
inline

Definition at line 619 of file QuestDef.h.

619{ return _areaDescription; }
+ Here is the caller graph for this function:

◆ GetAreaGroupID()

uint32 Quest::GetAreaGroupID ( ) const
inline

Definition at line 661 of file QuestDef.h.

661{ return _areaGroupID; }

◆ GetArtifactCategoryId()

uint32 Quest::GetArtifactCategoryId ( ) const
inline

Definition at line 636 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ GetArtifactXPDifficulty()

uint32 Quest::GetArtifactXPDifficulty ( ) const
inline

Definition at line 634 of file QuestDef.h.

◆ GetArtifactXPMultiplier()

float Quest::GetArtifactXPMultiplier ( ) const
inline

Definition at line 635 of file QuestDef.h.

◆ GetBreadcrumbForQuestId()

int32 Quest::GetBreadcrumbForQuestId ( ) const
inline

Definition at line 606 of file QuestDef.h.

606{ return _breadcrumbForQuestId; }
int32 _breadcrumbForQuestId
Definition: QuestDef.h:817
+ Here is the caller graph for this function:

◆ GetCompleteEmote()

uint32 Quest::GetCompleteEmote ( ) const
inline

Definition at line 650 of file QuestDef.h.

650{ return _emoteOnComplete; }
uint32 _emoteOnComplete
Definition: QuestDef.h:795

◆ GetCompleteEmoteDelay()

uint32 Quest::GetCompleteEmoteDelay ( ) const
inline

Definition at line 652 of file QuestDef.h.

652{ return _emoteOnCompleteDelay; }
uint32 _emoteOnCompleteDelay
Definition: QuestDef.h:797

◆ GetConditionalOfferRewardText()

std::vector< QuestConditionalText > const & Quest::GetConditionalOfferRewardText ( ) const
inline

Definition at line 621 of file QuestDef.h.

std::vector< QuestConditionalText > _conditionalOfferRewardText
Definition: QuestDef.h:808
+ Here is the caller graph for this function:

◆ GetConditionalQuestCompletionLog()

std::vector< QuestConditionalText > const & Quest::GetConditionalQuestCompletionLog ( ) const
inline

Definition at line 625 of file QuestDef.h.

std::vector< QuestConditionalText > _conditionalQuestCompletionLog
Definition: QuestDef.h:792

◆ GetConditionalQuestDescription()

std::vector< QuestConditionalText > const & Quest::GetConditionalQuestDescription ( ) const
inline

Definition at line 618 of file QuestDef.h.

std::vector< QuestConditionalText > _conditionalQuestDescription
Definition: QuestDef.h:789
+ Here is the caller graph for this function:

◆ GetConditionalRequestItemsText()

std::vector< QuestConditionalText > const & Quest::GetConditionalRequestItemsText ( ) const
inline

Definition at line 623 of file QuestDef.h.

std::vector< QuestConditionalText > _conditionalRequestItemsText
Definition: QuestDef.h:802
+ Here is the caller graph for this function:

◆ GetContentTuningId()

uint32 Quest::GetContentTuningId ( ) const
inline

Definition at line 589 of file QuestDef.h.

589{ return _contentTuningID; }
+ Here is the caller graph for this function:

◆ GetEventIdForQuest()

uint16 Quest::GetEventIdForQuest ( ) const
inline

Definition at line 712 of file QuestDef.h.

712{ return _eventIdForQuest; }
uint16 _eventIdForQuest
Definition: QuestDef.h:729
+ Here is the caller graph for this function:

◆ GetExclusiveGroup()

int32 Quest::GetExclusiveGroup ( ) const
inline

Definition at line 605 of file QuestDef.h.

605{ return _exclusiveGroup; }
int32 _exclusiveGroup
Definition: QuestDef.h:816
+ Here is the caller graph for this function:

◆ GetExpansion()

int32 Quest::GetExpansion ( ) const
inline

Definition at line 666 of file QuestDef.h.

666{ return _expansion; }
+ Here is the caller graph for this function:

◆ GetFlags()

uint32 Quest::GetFlags ( ) const
inline

Definition at line 656 of file QuestDef.h.

656{ return _flags; }

◆ GetFlagsEx()

uint32 Quest::GetFlagsEx ( ) const
inline

Definition at line 657 of file QuestDef.h.

657{ return _flagsEx; }

◆ GetFlagsEx2()

uint32 Quest::GetFlagsEx2 ( ) const
inline

Definition at line 658 of file QuestDef.h.

658{ return _flagsEx2; }

◆ GetIncompleteEmote()

uint32 Quest::GetIncompleteEmote ( ) const
inline

Definition at line 649 of file QuestDef.h.

649{ return _emoteOnIncomplete; }
uint32 _emoteOnIncomplete
Definition: QuestDef.h:796

◆ GetIncompleteEmoteDelay()

uint32 Quest::GetIncompleteEmoteDelay ( ) const
inline

Definition at line 651 of file QuestDef.h.

651{ return _emoteOnIncompleteDelay; }
uint32 _emoteOnIncompleteDelay
Definition: QuestDef.h:798

◆ GetLimitTime()

int64 Quest::GetLimitTime ( ) const
inline

Definition at line 602 of file QuestDef.h.

602{ return _limitTime; }
+ Here is the caller graph for this function:

◆ GetLogDescription()

std::string const & Quest::GetLogDescription ( ) const
inline

Definition at line 616 of file QuestDef.h.

616{ return _logDescription; }
+ Here is the caller graph for this function:

◆ GetLogTitle()

std::string const & Quest::GetLogTitle ( ) const
inline

Definition at line 615 of file QuestDef.h.

615{ return _logTitle; }
+ Here is the caller graph for this function:

◆ GetManagedWorldStateId()

int32 Quest::GetManagedWorldStateId ( ) const
inline

Definition at line 667 of file QuestDef.h.

667{ return _managedWorldStateID; }

◆ GetMaxLevel()

uint32 Quest::GetMaxLevel ( ) const
inline

Definition at line 591 of file QuestDef.h.

591{ return _maxLevel; }
uint32 _maxLevel
Definition: QuestDef.h:811
+ Here is the caller graph for this function:

◆ GetMaxMoneyReward()

uint32 Quest::GetMaxMoneyReward ( ) const

Definition at line 454 of file QuestDef.cpp.

455{
456 return MaxMoneyValue() * sWorld->getRate(RATE_MONEY_QUEST);
457}
uint32 MaxMoneyValue() const
Definition: QuestDef.cpp:444
#define sWorld
Definition: World.h:931
@ RATE_MONEY_QUEST
Definition: World.h:533
+ Here is the call graph for this function:

◆ GetMoneyMultiplier()

float Quest::GetMoneyMultiplier ( ) const
inline

Definition at line 611 of file QuestDef.h.

611{ return _rewardMoneyMultiplier; }
+ Here is the caller graph for this function:

◆ GetNextQuestId()

uint32 Quest::GetNextQuestId ( ) const
inline

Definition at line 604 of file QuestDef.h.

604{ return _nextQuestID; }
uint32 _nextQuestID
Definition: QuestDef.h:815

◆ GetNextQuestInChain()

uint32 Quest::GetNextQuestInChain ( ) const
inline

Definition at line 607 of file QuestDef.h.

607{ return _nextQuestInChain; }
+ Here is the caller graph for this function:

◆ GetObjectives()

QuestObjectives const & Quest::GetObjectives ( ) const
inline

Definition at line 630 of file QuestDef.h.

630{ return Objectives; }
+ Here is the caller graph for this function:

◆ GetOfferRewardText()

std::string const & Quest::GetOfferRewardText ( ) const
inline

Definition at line 620 of file QuestDef.h.

620{ return _offerRewardText; }
std::string _offerRewardText
Definition: QuestDef.h:805
+ Here is the caller graph for this function:

◆ GetPOIContinent()

uint32 Quest::GetPOIContinent ( ) const
inline

Definition at line 643 of file QuestDef.h.

643{ return _poiContinent; }

◆ GetPOIPriority()

uint32 Quest::GetPOIPriority ( ) const
inline

Definition at line 646 of file QuestDef.h.

646{ return _poiPriority; }

◆ GetPOIx()

float Quest::GetPOIx ( ) const
inline

Definition at line 644 of file QuestDef.h.

644{ return _poix; }

◆ GetPOIy()

float Quest::GetPOIy ( ) const
inline

Definition at line 645 of file QuestDef.h.

645{ return _poiy; }

◆ GetPortraitGiverName()

std::string const & Quest::GetPortraitGiverName ( ) const
inline

Definition at line 627 of file QuestDef.h.

627{ return _portraitGiverName; }
+ Here is the caller graph for this function:

◆ GetPortraitGiverText()

std::string const & Quest::GetPortraitGiverText ( ) const
inline

Definition at line 626 of file QuestDef.h.

626{ return _portraitGiverText; }
+ Here is the caller graph for this function:

◆ GetPortraitTurnInName()

std::string const & Quest::GetPortraitTurnInName ( ) const
inline

Definition at line 629 of file QuestDef.h.

629{ return _portraitTurnInName; }
+ Here is the caller graph for this function:

◆ GetPortraitTurnInText()

std::string const & Quest::GetPortraitTurnInText ( ) const
inline

Definition at line 628 of file QuestDef.h.

628{ return _portraitTurnInText; }
+ Here is the caller graph for this function:

◆ GetPrevQuestId()

int32 Quest::GetPrevQuestId ( ) const
inline

Definition at line 603 of file QuestDef.h.

603{ return _prevQuestID; }
int32 _prevQuestID
Definition: QuestDef.h:814
+ Here is the caller graph for this function:

◆ GetQuestCompletionLog()

std::string const & Quest::GetQuestCompletionLog ( ) const
inline

Definition at line 624 of file QuestDef.h.

624{ return _questCompletionLog; }
+ Here is the caller graph for this function:

◆ GetQuestDescription()

std::string const & Quest::GetQuestDescription ( ) const
inline

Definition at line 617 of file QuestDef.h.

617{ return _questDescription; }
+ Here is the caller graph for this function:

◆ GetQuestGiverPortrait()

uint32 Quest::GetQuestGiverPortrait ( ) const
inline

Definition at line 669 of file QuestDef.h.

669{ return _questGiverPortrait; }

◆ GetQuestGiverPortraitModelSceneId()

int32 Quest::GetQuestGiverPortraitModelSceneId ( ) const
inline

Definition at line 671 of file QuestDef.h.

◆ GetQuestGiverPortraitMount()

int32 Quest::GetQuestGiverPortraitMount ( ) const
inline

Definition at line 670 of file QuestDef.h.

670{ return _questGiverPortraitMount; }

◆ GetQuestId()

uint32 Quest::GetQuestId ( ) const
inline

Definition at line 586 of file QuestDef.h.

586{ return _id; }
+ Here is the caller graph for this function:

◆ GetQuestInfoID()

uint32 Quest::GetQuestInfoID ( ) const
inline

Definition at line 592 of file QuestDef.h.

592{ return _questInfoID; }
+ Here is the caller graph for this function:

◆ GetQuestPackageID()

uint32 Quest::GetQuestPackageID ( ) const
inline

Definition at line 588 of file QuestDef.h.

588{ return _packageID; }
+ Here is the caller graph for this function:

◆ GetQuestSessionBonus()

int32 Quest::GetQuestSessionBonus ( ) const
inline

Definition at line 668 of file QuestDef.h.

668{ return _questSessionBonus; }

◆ GetQuestTag()

Optional< QuestTagType > Quest::GetQuestTag ( ) const

Definition at line 459 of file QuestDef.cpp.

460{
461 if (QuestInfoEntry const* questInfo = sQuestInfoStore.LookupEntry(GetQuestInfoID()))
462 return static_cast<QuestTagType>(questInfo->Type);
463
464 return {};
465}
DB2Storage< QuestInfoEntry > sQuestInfoStore("QuestInfo.db2", &QuestInfoLoadInfo::Instance)
QuestTagType
Definition: QuestDef.h:310
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetQuestTurnInPortrait()

uint32 Quest::GetQuestTurnInPortrait ( ) const
inline

Definition at line 672 of file QuestDef.h.

672{ return _questTurnInPortrait; }

◆ GetQuestType()

uint32 Quest::GetQuestType ( ) const
inline

Definition at line 587 of file QuestDef.h.

587{ return _type; }
+ Here is the caller graph for this function:

◆ GetRequestItemsText()

std::string const & Quest::GetRequestItemsText ( ) const
inline

Definition at line 622 of file QuestDef.h.

622{ return _requestItemsText; }
std::string _requestItemsText
Definition: QuestDef.h:799
+ Here is the caller graph for this function:

◆ GetRequiredMaxRepFaction()

uint32 Quest::GetRequiredMaxRepFaction ( ) const
inline

Definition at line 599 of file QuestDef.h.

599{ return _requiredMaxRepFaction; }
uint32 _requiredMaxRepFaction
Definition: QuestDef.h:824
+ Here is the caller graph for this function:

◆ GetRequiredMaxRepValue()

int32 Quest::GetRequiredMaxRepValue ( ) const
inline

Definition at line 600 of file QuestDef.h.

600{ return _requiredMaxRepValue; }
int32 _requiredMaxRepValue
Definition: QuestDef.h:825
+ Here is the caller graph for this function:

◆ GetRequiredMinRepFaction()

uint32 Quest::GetRequiredMinRepFaction ( ) const
inline

Definition at line 597 of file QuestDef.h.

597{ return _requiredMinRepFaction; }
uint32 _requiredMinRepFaction
Definition: QuestDef.h:822
+ Here is the caller graph for this function:

◆ GetRequiredMinRepValue()

int32 Quest::GetRequiredMinRepValue ( ) const
inline

Definition at line 598 of file QuestDef.h.

598{ return _requiredMinRepValue; }
int32 _requiredMinRepValue
Definition: QuestDef.h:823
+ Here is the caller graph for this function:

◆ GetRequiredSkill()

uint32 Quest::GetRequiredSkill ( ) const
inline

Definition at line 595 of file QuestDef.h.

595{ return _requiredSkillId; }
uint32 _requiredSkillId
Definition: QuestDef.h:820
+ Here is the caller graph for this function:

◆ GetRequiredSkillValue()

uint32 Quest::GetRequiredSkillValue ( ) const
inline

Definition at line 596 of file QuestDef.h.

596{ return _requiredSkillPoints; }
uint32 _requiredSkillPoints
Definition: QuestDef.h:821
+ Here is the caller graph for this function:

◆ GetRewardReputationMask()

uint32 Quest::GetRewardReputationMask ( ) const
inline

Definition at line 664 of file QuestDef.h.

664{ return _rewardReputationMask; }
+ Here is the caller graph for this function:

◆ GetRewardSkillId()

uint32 Quest::GetRewardSkillId ( ) const
inline

Definition at line 662 of file QuestDef.h.

662{ return _rewardSkillId; }
+ Here is the caller graph for this function:

◆ GetRewardSkillPoints()

uint32 Quest::GetRewardSkillPoints ( ) const
inline

Definition at line 663 of file QuestDef.h.

663{ return _rewardSkillPoints; }
+ Here is the caller graph for this function:

◆ GetRewArenaPoints()

int32 Quest::GetRewArenaPoints ( ) const
inline

Definition at line 608 of file QuestDef.h.

608{return _rewardArenaPoints; }

◆ GetRewChoiceItemsCount()

uint32 Quest::GetRewChoiceItemsCount ( ) const
inline

Definition at line 707 of file QuestDef.h.

707{ return _rewChoiceItemsCount; }
+ Here is the caller graph for this function:

◆ GetRewCurrencyCount()

uint32 Quest::GetRewCurrencyCount ( ) const
inline

Definition at line 709 of file QuestDef.h.

709{ return _rewCurrencyCount; }

◆ GetRewHonor()

uint32 Quest::GetRewHonor ( ) const
inline

Definition at line 632 of file QuestDef.h.

632{ return _rewardHonor; }

◆ GetRewItemsCount()

uint32 Quest::GetRewItemsCount ( ) const
inline

Definition at line 708 of file QuestDef.h.

708{ return _rewItemsCount; }
+ Here is the caller graph for this function:

◆ GetRewKillHonor()

uint32 Quest::GetRewKillHonor ( ) const
inline

Definition at line 633 of file QuestDef.h.

633{ return _rewardKillHonor; }

◆ GetRewMailDelaySecs()

uint32 Quest::GetRewMailDelaySecs ( ) const
inline

Definition at line 640 of file QuestDef.h.

640{ return _rewardMailDelay; }
uint32 _rewardMailDelay
Definition: QuestDef.h:819
+ Here is the caller graph for this function:

◆ GetRewMailSenderEntry()

uint32 Quest::GetRewMailSenderEntry ( ) const
inline

Definition at line 641 of file QuestDef.h.

641{ return _rewardMailSenderEntry; }
uint32 _rewardMailSenderEntry
Definition: QuestDef.h:827
+ Here is the caller graph for this function:

◆ GetRewMailTemplateId()

uint32 Quest::GetRewMailTemplateId ( ) const
inline

Definition at line 639 of file QuestDef.h.

639{ return _rewardMailTemplateId; }
uint32 _rewardMailTemplateId
Definition: QuestDef.h:818
+ Here is the caller graph for this function:

◆ GetRewMoneyDifficulty()

uint32 Quest::GetRewMoneyDifficulty ( ) const
inline

Definition at line 631 of file QuestDef.h.

631{ return _rewardMoneyDifficulty; }
+ Here is the caller graph for this function:

◆ GetRewMoneyMaxLevel()

uint32 Quest::GetRewMoneyMaxLevel ( ) const

Definition at line 529 of file QuestDef.cpp.

530{
531 // If Quest has flag to not give money on max level, it's 0
533 return 0;
534
535 // Else, return the rewarded copper sum modified by the rate
537}
@ QUEST_FLAGS_NO_MONEY_FOR_XP
Definition: QuestDef.h:201
@ RATE_MONEY_MAX_LEVEL_QUEST
Definition: World.h:534
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetRewSpell()

uint32 Quest::GetRewSpell ( ) const
inline

Definition at line 638 of file QuestDef.h.

638{ return _rewardSpell; }
+ Here is the caller graph for this function:

◆ GetRewTitle()

uint32 Quest::GetRewTitle ( ) const
inline

Definition at line 642 of file QuestDef.h.

642{ return _rewardTitleId; }
+ Here is the caller graph for this function:

◆ GetScriptId()

uint32 Quest::GetScriptId ( ) const
inline

Definition at line 660 of file QuestDef.h.

660{ return _scriptId; }
uint32 _scriptId
Definition: QuestDef.h:830
+ Here is the caller graph for this function:

◆ GetSoundAccept()

uint32 Quest::GetSoundAccept ( ) const
inline

Definition at line 647 of file QuestDef.h.

647{ return _soundAccept; }

◆ GetSoundTurnIn()

uint32 Quest::GetSoundTurnIn ( ) const
inline

Definition at line 648 of file QuestDef.h.

648{ return _soundTurnIn; }

◆ GetSpecialFlags()

uint32 Quest::GetSpecialFlags ( ) const
inline

Definition at line 659 of file QuestDef.h.

659{ return _specialFlags; }
uint32 _specialFlags
Definition: QuestDef.h:828

◆ GetSrcItemCount()

uint32 Quest::GetSrcItemCount ( ) const
inline

Definition at line 613 of file QuestDef.h.

613{ return _sourceItemIdCount; }
uint32 _sourceItemIdCount
Definition: QuestDef.h:826
+ Here is the caller graph for this function:

◆ GetSrcItemId()

uint32 Quest::GetSrcItemId ( ) const
inline

Definition at line 612 of file QuestDef.h.

612{ return _sourceItemId; }
+ Here is the caller graph for this function:

◆ GetSrcSpell()

uint32 Quest::GetSrcSpell ( ) const
inline

Definition at line 614 of file QuestDef.h.

614{ return _sourceSpellID; }
uint32 _sourceSpellID
Definition: QuestDef.h:813
+ Here is the caller graph for this function:

◆ GetSuggestedPlayers()

uint32 Quest::GetSuggestedPlayers ( ) const
inline

Definition at line 601 of file QuestDef.h.

601{ return _suggestedPlayers; }

◆ GetTreasurePickerId()

int32 Quest::GetTreasurePickerId ( ) const
inline

Definition at line 665 of file QuestDef.h.

665{ return _treasurePickerID; }
+ Here is the caller graph for this function:

◆ GetXPDifficulty()

uint32 Quest::GetXPDifficulty ( ) const
inline

Definition at line 609 of file QuestDef.h.

609{ return _rewardXPDifficulty; }

◆ GetXPMultiplier()

float Quest::GetXPMultiplier ( ) const
inline

Definition at line 610 of file QuestDef.h.

610{ return _rewardXPMultiplier; }

◆ GetZoneOrSort()

int32 Quest::GetZoneOrSort ( ) const
inline

Definition at line 590 of file QuestDef.h.

590{ return _questSortID; }
+ Here is the caller graph for this function:

◆ HasFlag()

bool Quest::HasFlag ( QuestFlags  flag) const
inline

Definition at line 568 of file QuestDef.h.

568{ return (_flags & uint32(flag)) != 0; }
+ Here is the caller graph for this function:

◆ HasFlagEx()

bool Quest::HasFlagEx ( QuestFlagsEx  flag) const
inline

Definition at line 569 of file QuestDef.h.

569{ return (_flagsEx & uint32(flag)) != 0; }
+ Here is the caller graph for this function:

◆ HasFlagEx2()

bool Quest::HasFlagEx2 ( QuestFlagsEx2  flag) const
inline

Definition at line 570 of file QuestDef.h.

570{ return (_flagsEx2 & uint32(flag)) != 0; }

◆ HasQuestObjectiveType()

bool Quest::HasQuestObjectiveType ( QuestObjectiveType  type) const
inline

Definition at line 574 of file QuestDef.h.

574{ return _usedQuestObjectiveTypes[type]; }
std::bitset< MAX_QUEST_OBJECTIVE_TYPE > _usedQuestObjectiveTypes
Definition: QuestDef.h:829
+ Here is the caller graph for this function:

◆ HasSpecialFlag()

bool Quest::HasSpecialFlag ( QuestSpecialFlags  flag) const
inline

Definition at line 572 of file QuestDef.h.

572{ return (_specialFlags & flag) != 0; }

◆ InitializeQueryData()

void Quest::InitializeQueryData ( )

Definition at line 602 of file QuestDef.cpp.

603{
604 for (uint8 loc = LOCALE_enUS; loc < TOTAL_LOCALES; ++loc)
605 QueryData[loc] = BuildQueryData(static_cast<LocaleConstant>(loc), nullptr);
606}
LocaleConstant
Definition: Common.h:48
@ TOTAL_LOCALES
Definition: Common.h:62
WorldPacket BuildQueryData(LocaleConstant loc, Player *player) const
Definition: QuestDef.cpp:608
std::array< WorldPacket, TOTAL_LOCALES > QueryData
Definition: QuestDef.h:724
+ Here is the call graph for this function:

◆ IsAllowedInRaid()

bool Quest::IsAllowedInRaid ( Difficulty  difficulty) const

Definition at line 569 of file QuestDef.cpp.

570{
571 if (IsRaidQuest(difficulty))
572 return true;
573
574 return sWorld->getBoolConfig(CONFIG_QUEST_IGNORE_RAID);
575}
bool IsRaidQuest(Difficulty difficulty) const
Definition: QuestDef.cpp:549
@ CONFIG_QUEST_IGNORE_RAID
Definition: World.h:125
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsAutoAccept()

bool Quest::IsAutoAccept ( ) const

Definition at line 539 of file QuestDef.cpp.

540{
542}
@ QUEST_FLAGS_AUTO_ACCEPT
Definition: QuestDef.h:212
@ CONFIG_QUEST_IGNORE_AUTO_ACCEPT
Definition: World.h:164
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsAutoPush()

bool Quest::IsAutoPush ( ) const
inline

Definition at line 576 of file QuestDef.h.

@ QUEST_FLAGS_EX_AUTO_PUSH
Definition: QuestDef.h:257
bool HasFlagEx(QuestFlagsEx flag) const
Definition: QuestDef.h:569

◆ IsDaily()

bool Quest::IsDaily ( ) const
inline

Definition at line 673 of file QuestDef.h.

673{ return (_flags & QUEST_FLAGS_DAILY) != 0; }
@ QUEST_FLAGS_DAILY
Definition: QuestDef.h:205
+ Here is the caller graph for this function:

◆ IsDailyOrWeekly()

bool Quest::IsDailyOrWeekly ( ) const
inline

Definition at line 677 of file QuestDef.h.

677{ return (_flags & (QUEST_FLAGS_DAILY | QUEST_FLAGS_WEEKLY)) != 0; }
@ QUEST_FLAGS_WEEKLY
Definition: QuestDef.h:208
+ Here is the caller graph for this function:

◆ IsDFQuest()

bool Quest::IsDFQuest ( ) const
inline

Definition at line 680 of file QuestDef.h.

@ QUEST_SPECIAL_FLAGS_DF_QUEST
Definition: QuestDef.h:300
+ Here is the caller graph for this function:

◆ IsImportant()

bool Quest::IsImportant ( ) const

Definition at line 467 of file QuestDef.cpp.

468{
469 if (QuestInfoEntry const* questInfo = sQuestInfoStore.LookupEntry(GetQuestInfoID()))
470 return (questInfo->Modifiers & 0x400) != 0;
471
472 return false;
473}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsMonthly()

bool Quest::IsMonthly ( ) const
inline

Definition at line 675 of file QuestDef.h.

@ QUEST_SPECIAL_FLAGS_MONTHLY
Definition: QuestDef.h:301
+ Here is the caller graph for this function:

◆ IsPushedToPartyOnAccept()

bool Quest::IsPushedToPartyOnAccept ( ) const
inline

Definition at line 681 of file QuestDef.h.

@ QUEST_SPECIAL_FLAGS_AUTO_PUSH_TO_PARTY
Definition: QuestDef.h:298
bool HasSpecialFlag(QuestSpecialFlags flag) const
Definition: QuestDef.h:572

◆ IsRaidQuest()

bool Quest::IsRaidQuest ( Difficulty  difficulty) const

Definition at line 549 of file QuestDef.cpp.

550{
551 switch (_questInfoID)
552 {
553 case QUEST_INFO_RAID:
554 return true;
556 return difficulty == DIFFICULTY_10_N || difficulty == DIFFICULTY_10_HC;
558 return difficulty == DIFFICULTY_25_N || difficulty == DIFFICULTY_25_HC;
559 default:
560 break;
561 }
562
564 return true;
565
566 return false;
567}
@ DIFFICULTY_25_HC
Definition: DBCEnums.h:880
@ DIFFICULTY_10_N
Definition: DBCEnums.h:877
@ DIFFICULTY_25_N
Definition: DBCEnums.h:878
@ DIFFICULTY_10_HC
Definition: DBCEnums.h:879
@ QUEST_FLAGS_RAID_GROUP_OK
Definition: QuestDef.h:199
@ QUEST_INFO_RAID_10
@ QUEST_INFO_RAID_25
@ QUEST_INFO_RAID
+ Here is the caller graph for this function:

◆ IsRepeatable()

bool Quest::IsRepeatable ( ) const
inline

Definition at line 653 of file QuestDef.h.

@ QUEST_SPECIAL_FLAGS_REPEATABLE
Definition: QuestDef.h:297
+ Here is the caller graph for this function:

◆ IsSeasonal()

bool Quest::IsSeasonal ( ) const
inline

Definition at line 676 of file QuestDef.h.

+ Here is the caller graph for this function:

◆ IsTakingQuestEnabled()

bool Quest::IsTakingQuestEnabled ( uint32  questId)
static

Definition at line 428 of file QuestDef.cpp.

429{
430 if (!sQuestPoolMgr->IsQuestActive(questId))
431 return false;
432
433 return true;
434}
#define sQuestPoolMgr
Definition: QuestPools.h:63
+ Here is the caller graph for this function:

◆ IsTurnIn()

bool Quest::IsTurnIn ( ) const

Definition at line 544 of file QuestDef.cpp.

545{
547}
@ QUEST_TYPE_TURNIN
@ CONFIG_QUEST_IGNORE_AUTO_COMPLETE
Definition: World.h:165
+ Here is the caller graph for this function:

◆ IsUnavailable()

bool Quest::IsUnavailable ( ) const
inline

Definition at line 580 of file QuestDef.h.

@ QUEST_FLAGS_DEPRECATED
Definition: QuestDef.h:207

◆ IsWeekly()

bool Quest::IsWeekly ( ) const
inline

Definition at line 674 of file QuestDef.h.

674{ return (_flags & QUEST_FLAGS_WEEKLY) != 0; }
+ Here is the caller graph for this function:

◆ IsWorldQuest()

bool Quest::IsWorldQuest ( ) const
inline

Definition at line 577 of file QuestDef.h.

@ QUEST_FLAGS_EX_IS_WORLD_QUEST
Definition: QuestDef.h:255
+ Here is the caller graph for this function:

◆ LoadConditionalConditionalOfferRewardText()

void Quest::LoadConditionalConditionalOfferRewardText ( Field fields)

Definition at line 346 of file QuestDef.cpp.

347{
348 LocaleConstant locale = GetLocaleByName(fields[4].GetStringView());
349 if (locale >= TOTAL_LOCALES)
350 {
351 TC_LOG_ERROR("sql.sql", "Table `quest_offer_reward_conditional` has invalid locale {} set for quest {}. Skipped.", fields[4].GetCString(), fields[0].GetUInt32());
352 return;
353 }
354
355 auto itr = std::find_if(_conditionalOfferRewardText.begin(), _conditionalOfferRewardText.end(), [fields](QuestConditionalText const& text)
356 {
357 return text.PlayerConditionId == fields[1].GetInt32() && text.QuestgiverCreatureId == fields[2].GetInt32();
358 });
359
360 QuestConditionalText& text = itr != _conditionalOfferRewardText.end() ? *itr : _conditionalOfferRewardText.emplace_back();
361 text.PlayerConditionId = fields[1].GetInt32();
362 text.QuestgiverCreatureId = fields[2].GetInt32();
363 ObjectMgr::AddLocaleString(fields[3].GetStringView(), locale, text.Text);
364}
LocaleConstant GetLocaleByName(std::string_view name)
Definition: Common.cpp:36
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:165
static void AddLocaleString(std::string_view value, LocaleConstant localeConstant, std::vector< std::string > &data)
Definition: ObjectMgr.cpp:244
int32 QuestgiverCreatureId
Definition: QuestDef.h:530
std::vector< std::string > Text
Definition: QuestDef.h:531
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadConditionalConditionalQuestCompletionLog()

void Quest::LoadConditionalConditionalQuestCompletionLog ( Field fields)

Definition at line 366 of file QuestDef.cpp.

367{
368 LocaleConstant locale = GetLocaleByName(fields[4].GetStringView());
369 if (locale >= TOTAL_LOCALES)
370 {
371 TC_LOG_ERROR("sql.sql", "Table `quest_completion_log_conditional` has invalid locale {} set for quest {}. Skipped.", fields[4].GetCString(), fields[0].GetUInt32());
372 return;
373 }
374
375 auto itr = std::find_if(_conditionalQuestCompletionLog.begin(), _conditionalQuestCompletionLog.end(), [fields](QuestConditionalText const& text)
376 {
377 return text.PlayerConditionId == fields[1].GetInt32() && text.QuestgiverCreatureId == fields[2].GetInt32();
378 });
379
381 text.PlayerConditionId = fields[1].GetInt32();
382 text.QuestgiverCreatureId = fields[2].GetInt32();
383 ObjectMgr::AddLocaleString(fields[3].GetStringView(), locale, text.Text);
384}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadConditionalConditionalQuestDescription()

void Quest::LoadConditionalConditionalQuestDescription ( Field fields)

Definition at line 306 of file QuestDef.cpp.

307{
308 LocaleConstant locale = GetLocaleByName(fields[4].GetStringView());
309 if (locale >= TOTAL_LOCALES)
310 {
311 TC_LOG_ERROR("sql.sql", "Table `quest_description_conditional` has invalid locale {} set for quest {}. Skipped.", fields[4].GetCString(), fields[0].GetUInt32());
312 return;
313 }
314
315 auto itr = std::find_if(_conditionalQuestDescription.begin(), _conditionalQuestDescription.end(), [fields](QuestConditionalText const& text)
316 {
317 return text.PlayerConditionId == fields[1].GetInt32() && text.QuestgiverCreatureId == fields[2].GetInt32();
318 });
319
320 QuestConditionalText& text = itr != _conditionalQuestDescription.end() ? *itr : _conditionalQuestDescription.emplace_back();
321 text.PlayerConditionId = fields[1].GetInt32();
322 text.QuestgiverCreatureId = fields[2].GetInt32();
323 ObjectMgr::AddLocaleString(fields[3].GetStringView(), locale, text.Text);
324}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadConditionalConditionalRequestItemsText()

void Quest::LoadConditionalConditionalRequestItemsText ( Field fields)

Definition at line 326 of file QuestDef.cpp.

327{
328 LocaleConstant locale = GetLocaleByName(fields[4].GetStringView());
329 if (locale >= TOTAL_LOCALES)
330 {
331 TC_LOG_ERROR("sql.sql", "Table `quest_request_items_conditional` has invalid locale {} set for quest {}. Skipped.", fields[4].GetCString(), fields[0].GetUInt32());
332 return;
333 }
334
335 auto itr = std::find_if(_conditionalRequestItemsText.begin(), _conditionalRequestItemsText.end(), [fields](QuestConditionalText const& text)
336 {
337 return text.PlayerConditionId == fields[1].GetInt32() && text.QuestgiverCreatureId == fields[2].GetInt32();
338 });
339
340 QuestConditionalText& text = itr != _conditionalRequestItemsText.end() ? *itr : _conditionalRequestItemsText.emplace_back();
341 text.PlayerConditionId = fields[1].GetInt32();
342 text.QuestgiverCreatureId = fields[2].GetInt32();
343 ObjectMgr::AddLocaleString(fields[3].GetStringView(), locale, text.Text);
344}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadQuestDetails()

void Quest::LoadQuestDetails ( Field fields)

Definition at line 173 of file QuestDef.cpp.

174{
175 for (uint32 i = 0; i < QUEST_EMOTE_COUNT; ++i)
176 {
177 if (!sEmotesStore.LookupEntry(fields[1 + i].GetUInt16()))
178 {
179 TC_LOG_ERROR("sql.sql", "Table `quest_details` has non-existing Emote{} ({}) set for quest {}. Skipped.", 1+i, fields[1+i].GetUInt16(), fields[0].GetUInt32());
180 continue;
181 }
182
183 DetailsEmote[i] = fields[1 + i].GetUInt16();
184 }
185
186 for (uint32 i = 0; i < QUEST_EMOTE_COUNT; ++i)
187 DetailsEmoteDelay[i] = fields[5 + i].GetUInt32();
188}
DB2Storage< EmotesEntry > sEmotesStore("Emotes.db2", &EmotesLoadInfo::Instance)
#define QUEST_EMOTE_COUNT
Definition: QuestDef.h:50
std::array< uint32, QUEST_EMOTE_COUNT > DetailsEmoteDelay
Definition: QuestDef.h:703
std::array< uint32, QUEST_EMOTE_COUNT > DetailsEmote
Definition: QuestDef.h:702
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadQuestMailSender()

void Quest::LoadQuestMailSender ( Field fields)

Definition at line 250 of file QuestDef.cpp.

251{
252 _rewardMailSenderEntry = fields[1].GetUInt32();
253}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadQuestObjective()

void Quest::LoadQuestObjective ( Field fields)

Definition at line 255 of file QuestDef.cpp.

256{
257 QuestObjective& obj = Objectives.emplace_back();
258 obj.QuestID = fields[0].GetUInt32();
259 obj.ID = fields[1].GetUInt32();
260 obj.Type = fields[2].GetUInt8();
261 obj.StorageIndex = fields[3].GetInt8();
262 obj.ObjectID = fields[4].GetInt32();
263 obj.Amount = fields[5].GetInt32();
264 obj.Flags = fields[6].GetUInt32();
265 obj.Flags2 = fields[7].GetUInt32();
266 obj.ProgressBarWeight = fields[8].GetFloat();
267 obj.Description = fields[9].GetString();
268
269 bool hasCompletionEffect = std::any_of(fields + 10, fields + 15, [](Field const& f) { return !f.IsNull(); });
270 if (hasCompletionEffect)
271 {
273 if (!fields[10].IsNull())
274 obj.CompletionEffect->GameEventId = fields[10].GetUInt32();
275 if (!fields[11].IsNull())
276 obj.CompletionEffect->SpellId = fields[11].GetUInt32();
277 if (!fields[12].IsNull())
278 obj.CompletionEffect->ConversationId = fields[12].GetUInt32();
279 if (!fields[13].IsNull())
280 obj.CompletionEffect->UpdatePhaseShift = fields[13].GetBool();
281 if (!fields[14].IsNull())
282 obj.CompletionEffect->UpdateZoneAuras = fields[14].GetBool();
283 }
284
285 _usedQuestObjectiveTypes[obj.Type] = true;
286}
Class used to access individual fields of database query result.
Definition: Field.h:90
bool IsNull() const
Definition: Field.h:125
int8 GetInt8() const
Definition: Field.cpp:38
bool GetBool() const
Definition: Field.h:98
Optional< uint32 > SpellId
Definition: QuestDef.h:436
Optional< uint32 > ConversationId
Definition: QuestDef.h:437
Optional< uint32 > GameEventId
Definition: QuestDef.h:435
QuestObjectiveAction * CompletionEffect
Definition: QuestDef.h:455
int32 ObjectID
Definition: QuestDef.h:448
uint32 Flags2
Definition: QuestDef.h:451
std::string Description
Definition: QuestDef.h:453
int8 StorageIndex
Definition: QuestDef.h:447
uint32 Flags
Definition: QuestDef.h:450
uint32 QuestID
Definition: QuestDef.h:445
int32 Amount
Definition: QuestDef.h:449
float ProgressBarWeight
Definition: QuestDef.h:452
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadQuestObjectiveVisualEffect()

void Quest::LoadQuestObjectiveVisualEffect ( Field fields)

Definition at line 288 of file QuestDef.cpp.

289{
290 uint32 objID = fields[1].GetUInt32();
291
292 for (QuestObjective& obj : Objectives)
293 {
294 if (obj.ID == objID)
295 {
296 uint8 effectIndex = fields[3].GetUInt8();
297 if (effectIndex >= obj.VisualEffects.size())
298 obj.VisualEffects.resize(effectIndex + 1, 0);
299
300 obj.VisualEffects[effectIndex] = fields[4].GetInt32();
301 break;
302 }
303 }
304}
+ Here is the call graph for this function:

◆ LoadQuestOfferReward()

void Quest::LoadQuestOfferReward ( Field fields)

Definition at line 206 of file QuestDef.cpp.

207{
208 for (uint32 i = 0; i < QUEST_EMOTE_COUNT; ++i)
209 {
210 if (!sEmotesStore.LookupEntry(fields[1 + i].GetUInt16()))
211 {
212 TC_LOG_ERROR("sql.sql", "Table `quest_offer_reward` has non-existing Emote{} ({}) set for quest {}. Skipped.", 1+i, fields[1+i].GetUInt16(), fields[0].GetUInt32());
213 continue;
214 }
215
216 OfferRewardEmote[i] = fields[1 + i].GetInt16();
217 }
218
219 for (uint32 i = 0; i < QUEST_EMOTE_COUNT; ++i)
220 OfferRewardEmoteDelay[i] = fields[5 + i].GetUInt32();
221
222 _offerRewardText = fields[9].GetString();
223}
std::array< int32, QUEST_EMOTE_COUNT > OfferRewardEmote
Definition: QuestDef.h:704
std::array< uint32, QUEST_EMOTE_COUNT > OfferRewardEmoteDelay
Definition: QuestDef.h:705
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadQuestRequestItems()

void Quest::LoadQuestRequestItems ( Field fields)

Definition at line 190 of file QuestDef.cpp.

191{
192 _emoteOnComplete = fields[1].GetUInt16();
193 _emoteOnIncomplete = fields[2].GetUInt16();
194
195 if (!sEmotesStore.LookupEntry(_emoteOnComplete))
196 TC_LOG_ERROR("sql.sql", "Table `quest_request_items` has non-existing EmoteOnComplete ({}) set for quest {}.", _emoteOnComplete, fields[0].GetUInt32());
197
198 if (!sEmotesStore.LookupEntry(_emoteOnIncomplete))
199 TC_LOG_ERROR("sql.sql", "Table `quest_request_items` has non-existing EmoteOnIncomplete ({}) set for quest {}.", _emoteOnIncomplete, fields[0].GetUInt32());
200
201 _emoteOnCompleteDelay = fields[3].GetUInt32();
203 _requestItemsText = fields[5].GetString();
204}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadQuestTemplateAddon()

void Quest::LoadQuestTemplateAddon ( Field fields)

Definition at line 225 of file QuestDef.cpp.

226{
227 _maxLevel = fields[1].GetUInt8();
228 _allowableClasses = fields[2].GetUInt32();
229 _sourceSpellID = fields[3].GetUInt32();
230 _prevQuestID = fields[4].GetInt32();
231 _nextQuestID = fields[5].GetUInt32();
232 _exclusiveGroup = fields[6].GetInt32();
233 _breadcrumbForQuestId = fields[7].GetInt32();
234 _rewardMailTemplateId = fields[8].GetUInt32();
235 _rewardMailDelay = fields[9].GetUInt32();
236 _requiredSkillId = fields[10].GetUInt16();
237 _requiredSkillPoints = fields[11].GetUInt16();
238 _requiredMinRepFaction = fields[12].GetUInt16();
239 _requiredMaxRepFaction = fields[13].GetUInt16();
240 _requiredMinRepValue = fields[14].GetInt32();
241 _requiredMaxRepValue = fields[15].GetInt32();
242 _sourceItemIdCount = fields[16].GetUInt8();
243 _specialFlags = fields[17].GetUInt8();
244 _scriptId = sObjectMgr->GetScriptId(fields[18].GetString());
245
248}
@ QUEST_SPECIAL_FLAGS_AUTO_ACCEPT
Definition: QuestDef.h:299
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadRewardChoiceItems()

void Quest::LoadRewardChoiceItems ( Field fields)

Definition at line 167 of file QuestDef.cpp.

168{
169 for (uint32 i = 0; i < QUEST_REWARD_CHOICES_COUNT; ++i)
170 RewardChoiceItemType[i] = LootItemType(fields[1 + i].GetUInt8());
171}
LootItemType
Definition: LootItemType.h:24
+ Here is the caller graph for this function:

◆ LoadRewardDisplaySpell()

void Quest::LoadRewardDisplaySpell ( Field fields)

Definition at line 140 of file QuestDef.cpp.

141{
142 uint32 spellId = fields[1].GetUInt32();
143 uint32 playerConditionId = fields[2].GetUInt32();
144 uint32 type = fields[3].GetUInt32();
145
146 if (!sSpellMgr->GetSpellInfo(spellId, DIFFICULTY_NONE))
147 {
148 TC_LOG_ERROR("sql.sql", "Table `quest_reward_display_spell` has non-existing Spell ({}) set for quest {}. Skipped.", spellId, fields[0].GetUInt32());
149 return;
150 }
151
152 if (playerConditionId && !sPlayerConditionStore.LookupEntry(playerConditionId))
153 {
154 TC_LOG_ERROR("sql.sql", "Table `quest_reward_display_spell` has non-existing PlayerCondition ({}) set for quest {} and spell {}. Set to 0.", playerConditionId, fields[0].GetUInt32(), spellId);
155 playerConditionId = 0;
156 }
157
159 {
160 TC_LOG_ERROR("sql.sql", "Table `quest_reward_display_spell` invalid type value ({}) set for quest {} and spell {}. Set to 0.", type, fields[0].GetUInt32(), spellId);
162 }
163
164 RewardDisplaySpell.emplace_back(spellId, playerConditionId, QuestCompleteSpellType(type));
165}
@ DIFFICULTY_NONE
Definition: DBCEnums.h:874
QuestCompleteSpellType
Definition: QuestDef.h:377
#define sSpellMgr
Definition: SpellMgr.h:849
constexpr std::underlying_type< E >::type AsUnderlyingType(E enumValue)
Definition: Util.h:491
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MaxMoneyValue()

uint32 Quest::MaxMoneyValue ( ) const

Definition at line 444 of file QuestDef.cpp.

445{
446 uint32 value = 0;
447 if (Optional<ContentTuningLevels> questLevels = sDB2Manager.GetContentTuningData(GetContentTuningId(), 0))
448 if (QuestMoneyRewardEntry const* money = sQuestMoneyRewardStore.LookupEntry(questLevels->MaxLevel))
449 value = money->Difficulty[GetRewMoneyDifficulty()] * GetMoneyMultiplier();
450
451 return value;
452}
DB2Storage< QuestMoneyRewardEntry > sQuestMoneyRewardStore("QuestMoneyReward.db2", &QuestMoneyRewardLoadInfo::Instance)
#define sDB2Manager
Definition: DB2Stores.h:537
std::optional< T > Optional
Optional helper class to wrap optional values within.
Definition: Optional.h:25
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MoneyValue()

uint32 Quest::MoneyValue ( Player const *  player) const

Definition at line 436 of file QuestDef.cpp.

437{
438 if (QuestMoneyRewardEntry const* money = sQuestMoneyRewardStore.LookupEntry(player->GetQuestLevel(this)))
439 return money->Difficulty[GetRewMoneyDifficulty()] * GetMoneyMultiplier();
440 else
441 return 0;
442}
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RoundXPValue()

uint32 Quest::RoundXPValue ( uint32  xp)
static

Definition at line 769 of file QuestDef.cpp.

770{
771 if (xp <= 100)
772 return 5 * ((xp + 2) / 5);
773 else if (xp <= 500)
774 return 10 * ((xp + 5) / 10);
775 else if (xp <= 1000)
776 return 25 * ((xp + 12) / 25);
777 else
778 return 50 * ((xp + 25) / 50);
779}
+ Here is the caller graph for this function:

◆ SetEventIdForQuest()

void Quest::SetEventIdForQuest ( uint16  eventId)
inline

Definition at line 711 of file QuestDef.h.

711{ _eventIdForQuest = eventId; }
+ Here is the caller graph for this function:

◆ SetSpecialFlag()

void Quest::SetSpecialFlag ( QuestSpecialFlags  flag)
inline

Definition at line 573 of file QuestDef.h.

573{ _specialFlags |= flag; }
+ Here is the caller graph for this function:

◆ XPValue() [1/2]

uint32 Quest::XPValue ( Player const *  player) const

Definition at line 386 of file QuestDef.cpp.

387{
389}
uint32 XPValue(Player const *player) const
Definition: QuestDef.cpp:386
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ XPValue() [2/2]

uint32 Quest::XPValue ( Player const *  player,
uint32  contentTuningId,
uint32  xpDifficulty,
float  xpMultiplier = 1.0f,
int32  expansion = -1 
)
static

Definition at line 391 of file QuestDef.cpp.

392{
393 if (player)
394 {
395 uint32 questLevel = player->GetQuestLevel(contentTuningId);
396 QuestXPEntry const* questXp = sQuestXPStore.LookupEntry(questLevel);
397 if (!questXp || xpDifficulty >= 10)
398 return 0;
399
400 uint32 xp = questXp->Difficulty[xpDifficulty];
401 if (ContentTuningEntry const* contentTuning = sContentTuningStore.LookupEntry(contentTuningId))
402 xp = xp * contentTuning->QuestXpMultiplier;
403
404 int32 diffFactor = 2 * (questLevel - player->GetLevel()) + 12;
405 if (diffFactor < 1)
406 diffFactor = 1;
407 else if (diffFactor > 10)
408 diffFactor = 10;
409
410 xp = diffFactor * xp * xpMultiplier / 10;
411 if (player->GetLevel() >= GetMaxLevelForExpansion(CURRENT_EXPANSION - 1) && player->GetSession()->GetExpansion() == CURRENT_EXPANSION && expansion >= 0 && expansion < CURRENT_EXPANSION)
412 xp = uint32(xp / 9.0f);
413
414 xp = RoundXPValue(xp);
415
416 if (sWorld->getIntConfig(CONFIG_MIN_QUEST_SCALED_XP_RATIO))
417 {
418 uint32 minScaledXP = RoundXPValue(questXp->Difficulty[xpDifficulty] * xpMultiplier) * sWorld->getIntConfig(CONFIG_MIN_QUEST_SCALED_XP_RATIO) / 100;
419 xp = std::max(minScaledXP, xp);
420 }
421
422 return xp;
423 }
424
425 return 0;
426}
DB2Storage< QuestXPEntry > sQuestXPStore("QuestXP.db2", &QuestXpLoadInfo::Instance)
DB2Storage< ContentTuningEntry > sContentTuningStore("ContentTuning.db2", &ContentTuningLoadInfo::Instance)
#define CURRENT_EXPANSION
constexpr uint32 GetMaxLevelForExpansion(uint32 expansion)
static uint32 RoundXPValue(uint32 xp)
Definition: QuestDef.cpp:769
@ CONFIG_MIN_QUEST_SCALED_XP_RATIO
Definition: World.h:283
std::array< uint16, 10 > Difficulty
+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ ObjectMgr

friend class ObjectMgr
friend

Definition at line 539 of file QuestDef.h.

◆ Player

friend class Player
friend

Definition at line 540 of file QuestDef.h.

◆ PlayerMenu

friend class PlayerMenu
friend

Definition at line 541 of file QuestDef.h.

Member Data Documentation

◆ _allowableClasses

uint32 Quest::_allowableClasses = 0
private

Definition at line 812 of file QuestDef.h.

◆ _allowableRaces

Trinity::RaceMask<uint64> Quest::_allowableRaces
private

Definition at line 773 of file QuestDef.h.

◆ _areaDescription

std::string Quest::_areaDescription
private

Definition at line 781 of file QuestDef.h.

◆ _areaGroupID

uint32 Quest::_areaGroupID = 0
private

Definition at line 771 of file QuestDef.h.

◆ _breadcrumbForQuestId

int32 Quest::_breadcrumbForQuestId = 0
private

Definition at line 817 of file QuestDef.h.

◆ _conditionalOfferRewardText

std::vector<QuestConditionalText> Quest::_conditionalOfferRewardText
private

Definition at line 808 of file QuestDef.h.

◆ _conditionalQuestCompletionLog

std::vector<QuestConditionalText> Quest::_conditionalQuestCompletionLog
private

Definition at line 792 of file QuestDef.h.

◆ _conditionalQuestDescription

std::vector<QuestConditionalText> Quest::_conditionalQuestDescription
private

Definition at line 789 of file QuestDef.h.

◆ _conditionalRequestItemsText

std::vector<QuestConditionalText> Quest::_conditionalRequestItemsText
private

Definition at line 802 of file QuestDef.h.

◆ _contentTuningID

uint32 Quest::_contentTuningID = 0
private

Definition at line 736 of file QuestDef.h.

◆ _emoteOnComplete

uint32 Quest::_emoteOnComplete = 0
private

Definition at line 795 of file QuestDef.h.

◆ _emoteOnCompleteDelay

uint32 Quest::_emoteOnCompleteDelay = 0
private

Definition at line 797 of file QuestDef.h.

◆ _emoteOnIncomplete

uint32 Quest::_emoteOnIncomplete = 0
private

Definition at line 796 of file QuestDef.h.

◆ _emoteOnIncompleteDelay

uint32 Quest::_emoteOnIncompleteDelay = 0
private

Definition at line 798 of file QuestDef.h.

◆ _eventIdForQuest

uint16 Quest::_eventIdForQuest = 0
private

Definition at line 729 of file QuestDef.h.

◆ _exclusiveGroup

int32 Quest::_exclusiveGroup = 0
private

Definition at line 816 of file QuestDef.h.

◆ _expansion

int32 Quest::_expansion = 0
private

Definition at line 775 of file QuestDef.h.

◆ _flags

uint32 Quest::_flags = 0
private

Definition at line 753 of file QuestDef.h.

◆ _flagsEx

uint32 Quest::_flagsEx = 0
private

Definition at line 754 of file QuestDef.h.

◆ _flagsEx2

uint32 Quest::_flagsEx2 = 0
private

Definition at line 755 of file QuestDef.h.

◆ _id

uint32 Quest::_id = 0
private

Definition at line 733 of file QuestDef.h.

◆ _limitTime

int64 Quest::_limitTime = 0
private

Definition at line 772 of file QuestDef.h.

◆ _logDescription

std::string Quest::_logDescription
private

Definition at line 779 of file QuestDef.h.

◆ _logTitle

std::string Quest::_logTitle
private

Definition at line 778 of file QuestDef.h.

◆ _managedWorldStateID

int32 Quest::_managedWorldStateID = 0
private

Definition at line 776 of file QuestDef.h.

◆ _maxLevel

uint32 Quest::_maxLevel = 0
private

Definition at line 811 of file QuestDef.h.

◆ _nextQuestID

uint32 Quest::_nextQuestID = 0
private

Definition at line 815 of file QuestDef.h.

◆ _nextQuestInChain

uint32 Quest::_nextQuestInChain = 0
private

Definition at line 740 of file QuestDef.h.

◆ _offerRewardText

std::string Quest::_offerRewardText
private

Definition at line 805 of file QuestDef.h.

◆ _packageID

uint32 Quest::_packageID = 0
private

Definition at line 735 of file QuestDef.h.

◆ _poiContinent

uint32 Quest::_poiContinent = 0
private

Definition at line 756 of file QuestDef.h.

◆ _poiPriority

uint32 Quest::_poiPriority = 0
private

Definition at line 759 of file QuestDef.h.

◆ _poix

float Quest::_poix = 0.f
private

Definition at line 757 of file QuestDef.h.

◆ _poiy

float Quest::_poiy = 0.f
private

Definition at line 758 of file QuestDef.h.

◆ _portraitGiverName

std::string Quest::_portraitGiverName
private

Definition at line 783 of file QuestDef.h.

◆ _portraitGiverText

std::string Quest::_portraitGiverText
private

Definition at line 782 of file QuestDef.h.

◆ _portraitTurnInName

std::string Quest::_portraitTurnInName
private

Definition at line 785 of file QuestDef.h.

◆ _portraitTurnInText

std::string Quest::_portraitTurnInText
private

Definition at line 784 of file QuestDef.h.

◆ _prevQuestID

int32 Quest::_prevQuestID = 0
private

Definition at line 814 of file QuestDef.h.

◆ _questCompletionLog

std::string Quest::_questCompletionLog
private

Definition at line 786 of file QuestDef.h.

◆ _questDescription

std::string Quest::_questDescription
private

Definition at line 780 of file QuestDef.h.

◆ _questGiverPortrait

uint32 Quest::_questGiverPortrait = 0
private

Definition at line 764 of file QuestDef.h.

◆ _questGiverPortraitModelSceneId

int32 Quest::_questGiverPortraitModelSceneId = 0
private

Definition at line 766 of file QuestDef.h.

◆ _questGiverPortraitMount

int32 Quest::_questGiverPortraitMount = 0
private

Definition at line 765 of file QuestDef.h.

◆ _questInfoID

uint32 Quest::_questInfoID = 0
private

Definition at line 738 of file QuestDef.h.

◆ _questSessionBonus

int32 Quest::_questSessionBonus = 0
private

Definition at line 777 of file QuestDef.h.

◆ _questSortID

int32 Quest::_questSortID = 0
private

Definition at line 737 of file QuestDef.h.

◆ _questTurnInPortrait

uint32 Quest::_questTurnInPortrait = 0
private

Definition at line 767 of file QuestDef.h.

◆ _requestItemsText

std::string Quest::_requestItemsText
private

Definition at line 799 of file QuestDef.h.

◆ _requiredMaxRepFaction

uint32 Quest::_requiredMaxRepFaction = 0
private

Definition at line 824 of file QuestDef.h.

◆ _requiredMaxRepValue

int32 Quest::_requiredMaxRepValue = 0
private

Definition at line 825 of file QuestDef.h.

◆ _requiredMinRepFaction

uint32 Quest::_requiredMinRepFaction = 0
private

Definition at line 822 of file QuestDef.h.

◆ _requiredMinRepValue

int32 Quest::_requiredMinRepValue = 0
private

Definition at line 823 of file QuestDef.h.

◆ _requiredSkillId

uint32 Quest::_requiredSkillId = 0
private

Definition at line 820 of file QuestDef.h.

◆ _requiredSkillPoints

uint32 Quest::_requiredSkillPoints = 0
private

Definition at line 821 of file QuestDef.h.

◆ _rewardArenaPoints

int32 Quest::_rewardArenaPoints = 0
private

Definition at line 761 of file QuestDef.h.

◆ _rewardArtifactCategoryID

uint32 Quest::_rewardArtifactCategoryID = 0
private

Definition at line 751 of file QuestDef.h.

◆ _rewardArtifactXPDifficulty

uint32 Quest::_rewardArtifactXPDifficulty = 0
private

Definition at line 749 of file QuestDef.h.

◆ _rewardArtifactXPMultiplier

float Quest::_rewardArtifactXPMultiplier = 0.f
private

Definition at line 750 of file QuestDef.h.

◆ _rewardBonusMoney

uint32 Quest::_rewardBonusMoney = 0
private

Definition at line 745 of file QuestDef.h.

◆ _rewardHonor

uint32 Quest::_rewardHonor = 0
private

Definition at line 747 of file QuestDef.h.

◆ _rewardKillHonor

uint32 Quest::_rewardKillHonor = 0
private

Definition at line 748 of file QuestDef.h.

◆ _rewardMailDelay

uint32 Quest::_rewardMailDelay = 0
private

Definition at line 819 of file QuestDef.h.

◆ _rewardMailSenderEntry

uint32 Quest::_rewardMailSenderEntry = 0
private

Definition at line 827 of file QuestDef.h.

◆ _rewardMailTemplateId

uint32 Quest::_rewardMailTemplateId = 0
private

Definition at line 818 of file QuestDef.h.

◆ _rewardMoneyDifficulty

uint32 Quest::_rewardMoneyDifficulty = 0
private

Definition at line 743 of file QuestDef.h.

◆ _rewardMoneyMultiplier

float Quest::_rewardMoneyMultiplier = 0.f
private

Definition at line 744 of file QuestDef.h.

◆ _rewardReputationMask

uint32 Quest::_rewardReputationMask
private

Definition at line 768 of file QuestDef.h.

◆ _rewardSkillId

uint32 Quest::_rewardSkillId = 0
private

Definition at line 762 of file QuestDef.h.

◆ _rewardSkillPoints

uint32 Quest::_rewardSkillPoints = 0
private

Definition at line 763 of file QuestDef.h.

◆ _rewardSpell

uint32 Quest::_rewardSpell = 0
private

Definition at line 746 of file QuestDef.h.

◆ _rewardTitleId

uint32 Quest::_rewardTitleId = 0
private

Definition at line 760 of file QuestDef.h.

◆ _rewardXPDifficulty

uint32 Quest::_rewardXPDifficulty = 0
private

Definition at line 741 of file QuestDef.h.

◆ _rewardXPMultiplier

float Quest::_rewardXPMultiplier = 0.f
private

Definition at line 742 of file QuestDef.h.

◆ _rewChoiceItemsCount

uint32 Quest::_rewChoiceItemsCount = 0
private

Definition at line 727 of file QuestDef.h.

◆ _rewCurrencyCount

uint32 Quest::_rewCurrencyCount = 0
private

Definition at line 730 of file QuestDef.h.

◆ _rewItemsCount

uint32 Quest::_rewItemsCount = 0
private

Definition at line 728 of file QuestDef.h.

◆ _scriptId

uint32 Quest::_scriptId = 0
private

Definition at line 830 of file QuestDef.h.

◆ _soundAccept

uint32 Quest::_soundAccept = 0
private

Definition at line 769 of file QuestDef.h.

◆ _soundTurnIn

uint32 Quest::_soundTurnIn = 0
private

Definition at line 770 of file QuestDef.h.

◆ _sourceItemId

uint32 Quest::_sourceItemId = 0
private

Definition at line 752 of file QuestDef.h.

◆ _sourceItemIdCount

uint32 Quest::_sourceItemIdCount = 0
private

Definition at line 826 of file QuestDef.h.

◆ _sourceSpellID

uint32 Quest::_sourceSpellID = 0
private

Definition at line 813 of file QuestDef.h.

◆ _specialFlags

uint32 Quest::_specialFlags = 0
private

Definition at line 828 of file QuestDef.h.

◆ _suggestedPlayers

uint32 Quest::_suggestedPlayers = 0
private

Definition at line 739 of file QuestDef.h.

◆ _treasurePickerID

int32 Quest::_treasurePickerID = 0
private

Definition at line 774 of file QuestDef.h.

◆ _type

uint32 Quest::_type = 0
private

Definition at line 734 of file QuestDef.h.

◆ _usedQuestObjectiveTypes

std::bitset<MAX_QUEST_OBJECTIVE_TYPE> Quest::_usedQuestObjectiveTypes
private

Definition at line 829 of file QuestDef.h.

◆ DependentBreadcrumbQuests

std::vector<uint32> Quest::DependentBreadcrumbQuests

Definition at line 723 of file QuestDef.h.

◆ DependentPreviousQuests

std::vector<uint32> Quest::DependentPreviousQuests

Definition at line 722 of file QuestDef.h.

◆ DetailsEmote

std::array<uint32, QUEST_EMOTE_COUNT> Quest::DetailsEmote = { }

Definition at line 702 of file QuestDef.h.

◆ DetailsEmoteDelay

std::array<uint32, QUEST_EMOTE_COUNT> Quest::DetailsEmoteDelay = { }

Definition at line 703 of file QuestDef.h.

◆ ItemDrop

std::array<uint32, QUEST_ITEM_DROP_COUNT> Quest::ItemDrop = { }

Definition at line 689 of file QuestDef.h.

◆ ItemDropQuantity

std::array<uint32, QUEST_ITEM_DROP_COUNT> Quest::ItemDropQuantity = { }

Definition at line 690 of file QuestDef.h.

◆ Objectives

QuestObjectives Quest::Objectives

Definition at line 701 of file QuestDef.h.

◆ OfferRewardEmote

std::array<int32, QUEST_EMOTE_COUNT> Quest::OfferRewardEmote = { }

Definition at line 704 of file QuestDef.h.

◆ OfferRewardEmoteDelay

std::array<uint32, QUEST_EMOTE_COUNT> Quest::OfferRewardEmoteDelay = { }

Definition at line 705 of file QuestDef.h.

◆ QueryData

std::array<WorldPacket, TOTAL_LOCALES> Quest::QueryData

Definition at line 724 of file QuestDef.h.

◆ RewardChoiceItemCount

std::array<uint32, QUEST_REWARD_CHOICES_COUNT> Quest::RewardChoiceItemCount = { }

Definition at line 693 of file QuestDef.h.

◆ RewardChoiceItemDisplayId

std::array<uint32, QUEST_REWARD_CHOICES_COUNT> Quest::RewardChoiceItemDisplayId = { }

Definition at line 694 of file QuestDef.h.

◆ RewardChoiceItemId

std::array<uint32, QUEST_REWARD_CHOICES_COUNT> Quest::RewardChoiceItemId = { }

Definition at line 692 of file QuestDef.h.

◆ RewardChoiceItemType

std::array<LootItemType, QUEST_REWARD_CHOICES_COUNT> Quest::RewardChoiceItemType = { }

Definition at line 691 of file QuestDef.h.

◆ RewardCurrencyCount

std::array<uint32, QUEST_REWARD_CURRENCY_COUNT> Quest::RewardCurrencyCount = { }

Definition at line 700 of file QuestDef.h.

◆ RewardCurrencyId

std::array<uint32, QUEST_REWARD_CURRENCY_COUNT> Quest::RewardCurrencyId = { }

Definition at line 699 of file QuestDef.h.

◆ RewardDisplaySpell

std::vector<QuestRewardDisplaySpell> Quest::RewardDisplaySpell

Definition at line 686 of file QuestDef.h.

◆ RewardFactionCapIn

std::array<int32, QUEST_REWARD_REPUTATIONS_COUNT> Quest::RewardFactionCapIn = { }

Definition at line 698 of file QuestDef.h.

◆ RewardFactionId

std::array<uint32, QUEST_REWARD_REPUTATIONS_COUNT> Quest::RewardFactionId = { }

Definition at line 695 of file QuestDef.h.

◆ RewardFactionOverride

std::array<int32, QUEST_REWARD_REPUTATIONS_COUNT> Quest::RewardFactionOverride = { }

Definition at line 697 of file QuestDef.h.

◆ RewardFactionValue

std::array<int32, QUEST_REWARD_REPUTATIONS_COUNT> Quest::RewardFactionValue = { }

Definition at line 696 of file QuestDef.h.

◆ RewardItemCount

std::array<uint32, QUEST_REWARD_ITEM_COUNT> Quest::RewardItemCount = { }

Definition at line 688 of file QuestDef.h.

◆ RewardItemId

std::array<uint32, QUEST_REWARD_ITEM_COUNT> Quest::RewardItemId = { }

Definition at line 687 of file QuestDef.h.


The documentation for this class was generated from the following files: