TrinityCore
Quest Class Reference

#include <QuestDef.h>

Public Member Functions

 Quest (Field *questRecord)
 
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)
 
uint32 XPValue (Player const *player) const
 
uint32 MoneyValue (Player const *player) const
 
uint32 MaxMoneyValue () const
 
uint32 GetMaxMoneyReward () const
 
Optional< QuestTagTypeGetQuestTag () const
 
bool HasFlag (QuestFlags flag) const
 
bool HasFlagEx (QuestFlagsEx flag) const
 
bool HasFlagEx2 (QuestFlagsEx2 flag) const
 
bool HasSpecialFlag (uint32 flag) const
 
void SetSpecialFlag (uint32 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
 
uint32 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::string const & GetAreaDescription () const
 
std::string const & GetOfferRewardText () const
 
std::string const & GetRequestItemsText () const
 
std::string const & GetQuestCompletionLog () 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 IsAutoComplete () 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
 
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 bool IsTakingQuestEnabled (uint32 questId)
 

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< uint32, QUEST_EMOTE_COUNTOfferRewardEmote = { }
 
std::array< uint32, QUEST_EMOTE_COUNTOfferRewardEmoteDelay = { }
 
std::vector< uint32DependentPreviousQuests
 
std::vector< uint32DependentBreadcrumbQuests
 
std::array< WorldPacket, TOTAL_LOCALESQueryData
 

Static Private Member Functions

static uint32 RoundXPValue (uint32 xp)
 

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
 
uint32 _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
 
uint32 _emoteOnComplete = 0
 
uint32 _emoteOnIncomplete = 0
 
uint32 _emoteOnCompleteDelay = 0
 
uint32 _emoteOnIncompleteDelay = 0
 
std::string _requestItemsText
 
std::string _offerRewardText
 
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
 

Constructor & Destructor Documentation

◆ Quest()

Quest::Quest ( Field questRecord)
explicit
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].GetUInt32();
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 }
std::string _portraitTurnInName
Definition: QuestDef.h:711
uint32 _sourceItemId
Definition: QuestDef.h:678
std::string _questCompletionLog
Definition: QuestDef.h:712
int32 _rewardArenaPoints
Definition: QuestDef.h:687
uint32 _contentTuningID
Definition: QuestDef.h:662
uint32 _rewardKillHonor
Definition: QuestDef.h:674
uint32 _flags
Definition: QuestDef.h:679
uint32 _rewardBonusMoney
Definition: QuestDef.h:671
uint32 _soundAccept
Definition: QuestDef.h:695
uint32 _areaGroupID
Definition: QuestDef.h:697
uint32 _suggestedPlayers
Definition: QuestDef.h:665
uint16 GetUInt16() const
Definition: Field.cpp:69
uint32 _rewardMoneyDifficulty
Definition: QuestDef.h:669
std::array< uint32, QUEST_REWARD_CURRENCY_COUNT > RewardCurrencyId
Definition: QuestDef.h:628
uint32 _questTurnInPortrait
Definition: QuestDef.h:693
std::string _questDescription
Definition: QuestDef.h:706
float _rewardArtifactXPMultiplier
Definition: QuestDef.h:676
std::string _portraitTurnInText
Definition: QuestDef.h:710
std::array< uint32, QUEST_REWARD_CHOICES_COUNT > RewardChoiceItemId
Definition: QuestDef.h:621
uint32 _rewardArtifactXPDifficulty
Definition: QuestDef.h:675
std::string _logTitle
Definition: QuestDef.h:704
std::array< uint32, QUEST_REWARD_CHOICES_COUNT > RewardChoiceItemDisplayId
Definition: QuestDef.h:623
uint32 _poiContinent
Definition: QuestDef.h:682
float _rewardMoneyMultiplier
Definition: QuestDef.h:670
int32 _treasurePickerID
Definition: QuestDef.h:700
uint32 _questInfoID
Definition: QuestDef.h:664
uint32 _limitTime
Definition: QuestDef.h:698
float _poix
Definition: QuestDef.h:683
Trinity::RaceMask< uint64 > _allowableRaces
Definition: QuestDef.h:699
uint32 GetUInt32() const
Definition: Field.cpp:105
#define QUEST_REWARD_CURRENCY_COUNT
Definition: QuestDef.h:51
uint32 _rewardSpell
Definition: QuestDef.h:672
float GetFloat() const
Definition: Field.cpp:177
int32 _questGiverPortraitMount
Definition: QuestDef.h:691
uint64 GetUInt64() const
Definition: Field.cpp:141
int16 GetInt16() const
Definition: Field.cpp:87
std::array< uint32, QUEST_ITEM_DROP_COUNT > ItemDrop
Definition: QuestDef.h:618
uint32 _nextQuestInChain
Definition: QuestDef.h:666
std::string _portraitGiverText
Definition: QuestDef.h:708
uint32 _rewardSkillPoints
Definition: QuestDef.h:689
std::array< uint32, QUEST_REWARD_ITEM_COUNT > RewardItemCount
Definition: QuestDef.h:617
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNT > RewardFactionCapIn
Definition: QuestDef.h:627
std::array< uint32, QUEST_REWARD_ITEM_COUNT > RewardItemId
Definition: QuestDef.h:616
uint32 _rewardTitleId
Definition: QuestDef.h:686
uint32 _flagsEx
Definition: QuestDef.h:680
std::string GetString() const
Definition: Field.cpp:228
int32 _expansion
Definition: QuestDef.h:701
uint32 _id
Definition: QuestDef.h:659
uint32 _poiPriority
Definition: QuestDef.h:685
std::array< uint32, QUEST_REWARD_CURRENCY_COUNT > RewardCurrencyCount
Definition: QuestDef.h:629
uint32_t uint32
Definition: Define.h:143
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNT > RewardFactionValue
Definition: QuestDef.h:625
uint32 _rewardReputationMask
Definition: QuestDef.h:694
uint32 _type
Definition: QuestDef.h:660
float _poiy
Definition: QuestDef.h:684
uint32 _rewardHonor
Definition: QuestDef.h:673
uint32 _packageID
Definition: QuestDef.h:661
uint32 _questGiverPortrait
Definition: QuestDef.h:690
float _rewardXPMultiplier
Definition: QuestDef.h:668
int32 _questSessionBonus
Definition: QuestDef.h:703
std::string _logDescription
Definition: QuestDef.h:705
uint32 _rewChoiceItemsCount
Definition: QuestDef.h:653
int32 GetInt32() const
Definition: Field.cpp:123
uint32 _rewardSkillId
Definition: QuestDef.h:688
int32 _managedWorldStateID
Definition: QuestDef.h:702
#define QUEST_REWARD_CHOICES_COUNT
Definition: QuestDef.h:46
uint32 _rewardArtifactCategoryID
Definition: QuestDef.h:677
int32 _questSortID
Definition: QuestDef.h:663
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNT > RewardFactionOverride
Definition: QuestDef.h:626
uint8 GetUInt8() const
Definition: Field.cpp:33
uint32 _rewardXPDifficulty
Definition: QuestDef.h:667
uint32 _flagsEx2
Definition: QuestDef.h:681
std::array< uint32, QUEST_REWARD_REPUTATIONS_COUNT > RewardFactionId
Definition: QuestDef.h:624
#define QUEST_ITEM_DROP_COUNT
Definition: QuestDef.h:45
std::string _areaDescription
Definition: QuestDef.h:707
T RawValue
Definition: RaceMask.h:75
uint32 _rewItemsCount
Definition: QuestDef.h:654
uint32 _rewCurrencyCount
Definition: QuestDef.h:656
int32 _questGiverPortraitModelSceneId
Definition: QuestDef.h:692
std::array< uint32, QUEST_ITEM_DROP_COUNT > ItemDropQuantity
Definition: QuestDef.h:619
std::array< uint32, QUEST_REWARD_CHOICES_COUNT > RewardChoiceItemCount
Definition: QuestDef.h:622
std::string _portraitGiverName
Definition: QuestDef.h:709
#define QUEST_REWARD_REPUTATIONS_COUNT
Definition: QuestDef.h:49
uint32 _soundTurnIn
Definition: QuestDef.h:696
+ Here is the call graph for this function:

Member Function Documentation

◆ BuildQueryData()

WorldPacket Quest::BuildQueryData ( LocaleConstant  loc,
Player player 
) const
484 {
486 
487  response.Allow = true;
488  response.QuestID = GetQuestId();
489 
490  response.Info.LogTitle = GetLogTitle();
499 
500  if (loc != LOCALE_enUS)
501  {
502  if (QuestTemplateLocale const* questTemplateLocale = sObjectMgr->GetQuestLocale(GetQuestId()))
503  {
504  ObjectMgr::GetLocaleString(questTemplateLocale->LogTitle, loc, response.Info.LogTitle);
505  ObjectMgr::GetLocaleString(questTemplateLocale->LogDescription, loc, response.Info.LogDescription);
506  ObjectMgr::GetLocaleString(questTemplateLocale->QuestDescription, loc, response.Info.QuestDescription);
507  ObjectMgr::GetLocaleString(questTemplateLocale->AreaDescription, loc, response.Info.AreaDescription);
508  ObjectMgr::GetLocaleString(questTemplateLocale->QuestCompletionLog, loc, response.Info.QuestCompletionLog);
509  ObjectMgr::GetLocaleString(questTemplateLocale->PortraitGiverText, loc, response.Info.PortraitGiverText);
510  ObjectMgr::GetLocaleString(questTemplateLocale->PortraitGiverName, loc, response.Info.PortraitGiverName);
511  ObjectMgr::GetLocaleString(questTemplateLocale->PortraitTurnInText, loc, response.Info.PortraitTurnInText);
512  ObjectMgr::GetLocaleString(questTemplateLocale->PortraitTurnInName, loc, response.Info.PortraitTurnInName);
513  }
514  }
515 
516  response.Info.QuestID = GetQuestId();
517  response.Info.QuestType = GetQuestType();
520  response.Info.QuestSortID = GetZoneOrSort();
521  response.Info.QuestInfoID = GetQuestInfoID();
526 
528  response.Info.RewardMoney = player ? player->GetQuestMoneyReward(this) : GetMaxMoneyReward();
529 
533  for (QuestRewardDisplaySpell displaySpell : RewardDisplaySpell)
534  response.Info.RewardDisplaySpell.push_back({ int32(displaySpell.SpellId), int32(displaySpell.PlayerConditionId) });
535 
536  response.Info.RewardSpell = GetRewSpell();
537 
538  response.Info.RewardHonor = GetRewHonor();
539  response.Info.RewardKillHonor = GetRewKillHonor();
540 
544 
545  response.Info.StartItem = GetSrcItemId();
546  response.Info.Flags = GetFlags();
547  response.Info.FlagsEx = GetFlagsEx();
548  response.Info.FlagsEx2 = GetFlagsEx2();
549  response.Info.RewardTitle = GetRewTitle();
558 
559  for (uint8 i = 0; i < QUEST_ITEM_DROP_COUNT; ++i)
560  {
561  response.Info.ItemDrop[i] = ItemDrop[i];
562  response.Info.ItemDropQuantity[i] = ItemDropQuantity[i];
563  }
564 
566  {
567  for (uint8 i = 0; i < QUEST_REWARD_ITEM_COUNT; ++i)
568  {
569  response.Info.RewardItems[i] = RewardItemId[i];
570  response.Info.RewardAmount[i] = RewardItemCount[i];
571  }
572  for (uint8 i = 0; i < QUEST_REWARD_CHOICES_COUNT; ++i)
573  {
576  }
577  }
578 
579  for (uint8 i = 0; i < QUEST_REWARD_REPUTATIONS_COUNT; ++i)
580  {
581  response.Info.RewardFactionID[i] = RewardFactionId[i];
582  response.Info.RewardFactionValue[i] = RewardFactionValue[i];
584  response.Info.RewardFactionCapIn[i] = RewardFactionCapIn[i];
585  }
586 
587  response.Info.POIContinent = GetPOIContinent();
588  response.Info.POIx = GetPOIx();
589  response.Info.POIy = GetPOIy();
590  response.Info.POIPriority = GetPOIPriority();
591 
594  response.Info.Expansion = GetExpansion();
596  response.Info.QuestSessionBonus = 0; //GetQuestSessionBonus(); // this is only sent while quest session is active
597 
598  for (QuestObjective const& questObjective : GetObjectives())
599  {
600  response.Info.Objectives.push_back(questObjective);
601 
602  if (loc != LOCALE_enUS)
603  {
604  if (QuestObjectivesLocale const* questObjectivesLocale = sObjectMgr->GetQuestObjectivesLocale(questObjective.ID))
605  ObjectMgr::GetLocaleString(questObjectivesLocale->Description, loc, response.Info.Objectives.back().Description);
606  }
607  }
608 
609  for (uint32 i = 0; i < QUEST_REWARD_CURRENCY_COUNT; ++i)
610  {
611  response.Info.RewardCurrencyID[i] = RewardCurrencyId[i];
612  response.Info.RewardCurrencyQty[i] = RewardCurrencyCount[i];
613  }
614 
617  response.Info.AreaGroupID = GetAreaGroupID();
618  response.Info.TimeAllowed = GetLimitTime();
619 
620  response.Write();
621  response.ShrinkToFit();
622  return response.Move();
623 }
uint32 GetQuestType() const
Definition: QuestDef.h:521
int32 GetManagedWorldStateId() const
Definition: QuestDef.h:597
int32 ManagedWorldStateID
Definition: QuestPackets.h:172
int32 TimeAllowed
Definition: QuestPackets.h:169
float GetArtifactXPMultiplier() const
Definition: QuestDef.h:565
uint32 GetRewKillHonor() const
Definition: QuestDef.h:563
int32 PortraitGiverMount
Definition: QuestPackets.h:157
float POIy
Definition: QuestPackets.h:145
std::vector< QuestCompleteDisplaySpell > RewardDisplaySpell
Definition: QuestPackets.h:132
float RewardArtifactXPMultiplier
Definition: QuestPackets.h:137
int32 QuestInfoID
Definition: QuestPackets.h:123
uint32 GetSuggestedPlayers() const
Definition: QuestDef.h:535
uint32 GetSrcItemId() const
Definition: QuestDef.h:546
int32 QuestPackageID
Definition: QuestPackets.h:121
uint32 GetXPDifficulty() const
Definition: QuestDef.h:543
int32 RewardSpell
Definition: QuestPackets.h:133
uint32 GetSoundTurnIn() const
Definition: QuestDef.h:578
int32 StartItem
Definition: QuestPackets.h:139
int32 RewardArtifactXPDifficulty
Definition: QuestPackets.h:136
int32 Expansion
Definition: QuestPackets.h:171
float GetPOIx() const
Definition: QuestDef.h:574
std::string QuestCompletionLog
Definition: QuestPackets.h:164
std::string const & GetQuestCompletionLog() const
Definition: QuestDef.h:555
uint32 GetPOIPriority() const
Definition: QuestDef.h:576
int32 SuggestedGroupNum
Definition: QuestPackets.h:124
int32 RewardHonor
Definition: QuestPackets.h:134
float GetMoneyMultiplier() const
Definition: QuestDef.h:545
std::vector< QuestObjective > Objectives
Definition: QuestPackets.h:174
int32 PortraitGiverModelSceneID
Definition: QuestPackets.h:158
std::string const & GetPortraitTurnInName() const
Definition: QuestDef.h:559
std::string QuestDescription
Definition: QuestPackets.h:150
int32 RewardNextQuest
Definition: QuestPackets.h:125
std::array< uint32, QUEST_REWARD_CURRENCY_COUNT > RewardCurrencyId
Definition: QuestDef.h:628
uint32 FlagsEx2
Definition: QuestPackets.h:142
float POIx
Definition: QuestPackets.h:144
int32 QuestSortID
Definition: QuestPackets.h:122
float RewardMoneyMultiplier
Definition: QuestPackets.h:130
int32 RewardFactionCapIn[QUEST_REWARD_REPUTATIONS_COUNT]
Definition: QuestPackets.h:183
uint32 GetRewMoneyMaxLevel() const
Definition: QuestDef.cpp:404
int32 GetTreasurePickerId() const
Definition: QuestDef.h:595
std::array< uint32, QUEST_REWARD_CHOICES_COUNT > RewardChoiceItemId
Definition: QuestDef.h:621
Definition: QuestDef.h:393
uint32 GetAreaGroupID() const
Definition: QuestDef.h:591
std::string PortraitGiverName
Definition: QuestPackets.h:161
Trinity::RaceMask< uint64 > GetAllowableRaces() const
Definition: QuestDef.h:528
WorldPacket const * Write() override
Definition: QuestPackets.cpp:69
std::string const & GetLogTitle() const
Definition: QuestDef.h:549
std::string PortraitTurnInName
Definition: QuestPackets.h:163
Definition: QuestDef.h:365
int32 RewardAmount[QUEST_REWARD_ITEM_COUNT]
Definition: QuestPackets.h:176
int32 RewardFactionValue[QUEST_REWARD_REPUTATIONS_COUNT]
Definition: QuestPackets.h:181
std::string const & GetAreaDescription() const
Definition: QuestDef.h:552
uint32 GetPOIContinent() const
Definition: QuestDef.h:573
uint32 GetQuestMoneyReward(Quest const *quest) const
Definition: Player.cpp:15456
int32 PortraitGiver
Definition: QuestPackets.h:156
float RewardKillHonor
Definition: QuestPackets.h:135
std::string const & GetPortraitTurnInText() const
Definition: QuestDef.h:558
uint32 GetFlagsEx() const
Definition: QuestDef.h:587
uint32 GetArtifactXPDifficulty() const
Definition: QuestDef.h:564
int32 RewardMoneyDifficulty
Definition: QuestPackets.h:129
uint32 GetQuestPackageID() const
Definition: QuestDef.h:522
float GetXPMultiplier() const
Definition: QuestDef.h:544
int32 Quantity
Definition: QuestPackets.h:106
uint32 GetArtifactCategoryId() const
Definition: QuestDef.h:566
std::string const & GetPortraitGiverName() const
Definition: QuestDef.h:557
#define sObjectMgr
Definition: ObjectMgr.h:1967
uint32 GetContentTuningId() const
Definition: QuestDef.h:523
int32 RewardCurrencyID[QUEST_REWARD_CURRENCY_COUNT]
Definition: QuestPackets.h:184
int32 RewardCurrencyQty[QUEST_REWARD_CURRENCY_COUNT]
Definition: QuestPackets.h:185
static std::string_view GetLocaleString(std::vector< std::string > const &data, LocaleConstant locale)
Definition: ObjectMgr.h:1695
int32 RewardFactionID[QUEST_REWARD_REPUTATIONS_COUNT]
Definition: QuestPackets.h:180
int32 AcceptedSoundKitID
Definition: QuestPackets.h:166
int32 GetExpansion() const
Definition: QuestDef.h:596
int32 ItemDropQuantity[QUEST_ITEM_DROP_COUNT]
Definition: QuestPackets.h:178
#define QUEST_REWARD_CURRENCY_COUNT
Definition: QuestDef.h:51
uint32 GetQuestId() const
Definition: QuestDef.h:520
int32 PortraitTurnIn
Definition: QuestPackets.h:159
int32 GetQuestGiverPortraitMount() const
Definition: QuestDef.h:600
Trinity::RaceMask< uint64 > AllowableRaces
Definition: QuestPackets.h:147
std::array< uint32, QUEST_ITEM_DROP_COUNT > ItemDrop
Definition: QuestDef.h:618
uint32 GetQuestGiverPortrait() const
Definition: QuestDef.h:599
uint32 GetRewardSkillId() const
Definition: QuestDef.h:592
int32 RewardBonusMoney
Definition: QuestPackets.h:131
bool Allow
Definition: QuestPackets.h:196
std::string const & GetQuestDescription() const
Definition: QuestDef.h:551
std::array< uint32, QUEST_REWARD_ITEM_COUNT > RewardItemCount
Definition: QuestDef.h:617
int32 AreaGroupID
Definition: QuestPackets.h:168
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNT > RewardFactionCapIn
Definition: QuestDef.h:627
int32 GetRewArenaPoints() const
Definition: QuestDef.h:542
int32 GetZoneOrSort() const
Definition: QuestDef.h:524
uint32 GetSoundAccept() const
Definition: QuestDef.h:577
int32 RewardArenaPoints
Definition: QuestPackets.h:153
uint32 GetQuestTurnInPortrait() const
Definition: QuestDef.h:602
uint32 GetNextQuestInChain() const
Definition: QuestDef.h:541
std::array< uint32, QUEST_REWARD_ITEM_COUNT > RewardItemId
Definition: QuestDef.h:616
QuestInfoChoiceItem UnfilteredChoiceItems[QUEST_REWARD_CHOICES_COUNT]
Definition: QuestPackets.h:179
int32 RewardItems[QUEST_REWARD_ITEM_COUNT]
Definition: QuestPackets.h:175
int32_t int32
Definition: Define.h:139
std::array< uint32, QUEST_REWARD_CURRENCY_COUNT > RewardCurrencyCount
Definition: QuestDef.h:629
uint32_t uint32
Definition: Define.h:143
int32 GetQuestGiverPortraitModelSceneId() const
Definition: QuestDef.h:601
uint32 GetRewardSkillPoints() const
Definition: QuestDef.h:593
int32 RewardTitle
Definition: QuestPackets.h:152
int32 POIPriority
Definition: QuestPackets.h:146
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNT > RewardFactionValue
Definition: QuestDef.h:625
std::string PortraitTurnInText
Definition: QuestPackets.h:162
uint32 GetRewTitle() const
Definition: QuestDef.h:572
uint32 QuestID
Definition: QuestPackets.h:198
int32 ItemDrop[QUEST_ITEM_DROP_COUNT]
Definition: QuestPackets.h:177
int32 RewardMoney
Definition: QuestPackets.h:128
uint32 GetRewMoneyDifficulty() const
Definition: QuestDef.h:561
Definition: Common.h:82
uint32 Flags
Definition: QuestPackets.h:140
QuestInfo Info
Definition: QuestPackets.h:197
uint32 GetQuestInfoID() const
Definition: QuestDef.h:526
std::string LogTitle
Definition: QuestPackets.h:148
int32 ItemID
Definition: QuestPackets.h:105
uint32 GetLimitTime() const
Definition: QuestDef.h:536
int32 RewardFactionFlags
Definition: QuestPackets.h:165
uint32 GetRewardReputationMask() const
Definition: QuestDef.h:594
std::string const & GetPortraitGiverText() const
Definition: QuestDef.h:556
int32 POIContinent
Definition: QuestPackets.h:143
std::vector< QuestRewardDisplaySpell > RewardDisplaySpell
Definition: QuestDef.h:615
int32 QuestID
Definition: QuestPackets.h:118
int32 CompleteSoundKitID
Definition: QuestPackets.h:167
#define QUEST_REWARD_CHOICES_COUNT
Definition: QuestDef.h:46
int32 RewardArtifactCategoryID
Definition: QuestPackets.h:138
std::string PortraitGiverText
Definition: QuestPackets.h:160
void ShrinkToFit()
Definition: Packet.h:55
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNT > RewardFactionOverride
Definition: QuestDef.h:626
QuestObjectives const & GetObjectives() const
Definition: QuestDef.h:560
uint32 FlagsEx
Definition: QuestPackets.h:141
uint8_t uint8
Definition: Define.h:145
int32 RewardXPDifficulty
Definition: QuestPackets.h:126
float RewardXPMultiplier
Definition: QuestPackets.h:127
uint32 GetFlagsEx2() const
Definition: QuestDef.h:588
std::string AreaDescription
Definition: QuestPackets.h:151
int32 ContentTuningID
Definition: QuestPackets.h:120
#define QUEST_REWARD_ITEM_COUNT
Definition: QuestDef.h:47
uint32 GetRewHonor() const
Definition: QuestDef.h:562
uint32 GetMaxMoneyReward() const
Definition: QuestDef.cpp:337
uint32 GetRewSpell() const
Definition: QuestDef.h:568
std::array< uint32, QUEST_REWARD_REPUTATIONS_COUNT > RewardFactionId
Definition: QuestDef.h:624
#define QUEST_ITEM_DROP_COUNT
Definition: QuestDef.h:45
int32 RewardSkillLineID
Definition: QuestPackets.h:154
float GetPOIy() const
Definition: QuestDef.h:575
Definition: QuestPackets.h:189
int32 QuestSessionBonus
Definition: QuestPackets.h:173
Definition: QuestDef.h:383
std::array< uint32, QUEST_ITEM_DROP_COUNT > ItemDropQuantity
Definition: QuestDef.h:619
bool HasFlag(QuestFlags flag) const
Definition: QuestDef.h:502
Definition: QuestDef.h:191
Definition: QuestDef.h:466
int32 RewardFactionOverride[QUEST_REWARD_REPUTATIONS_COUNT]
Definition: QuestPackets.h:182
WorldPacket && Move()
Definition: Packet.h:54
std::string const & GetLogDescription() const
Definition: QuestDef.h:550
int32 RewardNumSkillUps
Definition: QuestPackets.h:155
std::array< uint32, QUEST_REWARD_CHOICES_COUNT > RewardChoiceItemCount
Definition: QuestDef.h:622
std::string LogDescription
Definition: QuestPackets.h:149
#define QUEST_REWARD_REPUTATIONS_COUNT
Definition: QuestDef.h:49
int32 TreasurePickerID
Definition: QuestPackets.h:170
int32 QuestType
Definition: QuestPackets.h:119
uint32 GetFlags() const
Definition: QuestDef.h:586
+ 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
351 {
353  rewards.ItemCount = GetRewItemsCount();
354  rewards.Money = player->GetQuestMoneyReward(this);
355  rewards.XP = player->GetQuestXPReward(this);
357  rewards.Title = GetRewTitle();
359  auto displaySpellItr = rewards.SpellCompletionDisplayID.begin();
360  for (QuestRewardDisplaySpell displaySpell : RewardDisplaySpell)
361  {
362  if (PlayerConditionEntry const* playerCondition = sPlayerConditionStore.LookupEntry(displaySpell.PlayerConditionId))
363  if (!ConditionMgr::IsPlayerMeetingCondition(player, playerCondition))
364  continue;
365 
366  *displaySpellItr = displaySpell.SpellId;
367  if (++displaySpellItr == rewards.SpellCompletionDisplayID.end())
368  break;
369  }
370 
371  rewards.SpellCompletionID = GetRewSpell();
372  rewards.SkillLineID = GetRewardSkillId();
373  rewards.NumSkillUps = GetRewardSkillPoints();
375 
376  for (uint32 i = 0; i < QUEST_REWARD_CHOICES_COUNT; ++i)
377  {
378  rewards.ChoiceItems[i].LootItemType = RewardChoiceItemType[i];
379  rewards.ChoiceItems[i].Item.ItemID = RewardChoiceItemId[i];
380  rewards.ChoiceItems[i].Quantity = RewardChoiceItemCount[i];
381  }
382 
383  for (uint32 i = 0; i < QUEST_REWARD_ITEM_COUNT; ++i)
384  {
385  rewards.ItemID[i] = RewardItemId[i];
386  rewards.ItemQty[i] = RewardItemCount[i];
387  }
388 
389  for (uint32 i = 0; i < QUEST_REWARD_REPUTATIONS_COUNT; ++i)
390  {
391  rewards.FactionID[i] = RewardFactionId[i];
392  rewards.FactionValue[i] = RewardFactionValue[i];
393  rewards.FactionOverride[i] = RewardFactionOverride[i];
394  rewards.FactionCapIn[i] = RewardFactionCapIn[i];
395  }
396 
397  for (uint32 i = 0; i < QUEST_REWARD_CURRENCY_COUNT; ++i)
398  {
399  rewards.CurrencyID[i] = RewardCurrencyId[i];
400  rewards.CurrencyQty[i] = RewardCurrencyCount[i];
401  }
402 }
std::array< int32, QUEST_REWARD_DISPLAY_SPELL_COUNT > SpellCompletionDisplayID
Definition: QuestPackets.h:257
std::array< LootItemType, QUEST_REWARD_CHOICES_COUNT > RewardChoiceItemType
Definition: QuestDef.h:620
int32 ArtifactCategoryID
Definition: QuestPackets.h:253
int32 XP
Definition: QuestPackets.h:251
int32 Money
Definition: QuestPackets.h:250
int32 FactionFlags
Definition: QuestPackets.h:256
uint32 GetQuestXPReward(Quest const *quest)
Definition: Player.cpp:15461
std::array< uint32, QUEST_REWARD_CURRENCY_COUNT > RewardCurrencyId
Definition: QuestDef.h:628
int32 GetTreasurePickerId() const
Definition: QuestDef.h:595
std::array< uint32, QUEST_REWARD_CHOICES_COUNT > RewardChoiceItemId
Definition: QuestDef.h:621
std::array< int32, QUEST_REWARD_CURRENCY_COUNT > CurrencyQty
Definition: QuestPackets.h:270
int32 TreasurePickerID
Definition: QuestPackets.h:261
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNT > FactionValue
Definition: QuestPackets.h:266
uint32 GetQuestMoneyReward(Quest const *quest) const
Definition: Player.cpp:15456
int32 ItemCount
Definition: QuestPackets.h:249
uint32 GetArtifactCategoryId() const
Definition: QuestDef.h:566
int32 SpellCompletionID
Definition: QuestPackets.h:258
#define QUEST_REWARD_CURRENCY_COUNT
Definition: QuestDef.h:51
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNT > FactionOverride
Definition: QuestPackets.h:267
std::array< int32, QUEST_REWARD_ITEM_COUNT > ItemQty
Definition: QuestPackets.h:264
uint32 GetRewardSkillId() const
Definition: QuestDef.h:592
std::array< uint32, QUEST_REWARD_ITEM_COUNT > RewardItemCount
Definition: QuestDef.h:617
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNT > RewardFactionCapIn
Definition: QuestDef.h:627
std::array< uint32, QUEST_REWARD_ITEM_COUNT > RewardItemId
Definition: QuestDef.h:616
std::array< int32, QUEST_REWARD_CURRENCY_COUNT > CurrencyID
Definition: QuestPackets.h:269
uint32 GetRewItemsCount() const
Definition: QuestDef.h:637
std::array< int32, QUEST_REWARD_ITEM_COUNT > ItemID
Definition: QuestPackets.h:263
std::array< uint32, QUEST_REWARD_CURRENCY_COUNT > RewardCurrencyCount
Definition: QuestDef.h:629
uint32_t uint32
Definition: Define.h:143
uint32 GetRewardSkillPoints() const
Definition: QuestDef.h:593
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNT > RewardFactionValue
Definition: QuestDef.h:625
static bool IsPlayerMeetingCondition(Player const *player, PlayerConditionEntry const *condition)
Definition: ConditionMgr.cpp:2915
int32 Title
Definition: QuestPackets.h:255
int32 NumSkillUps
Definition: QuestPackets.h:260
uint32 GetRewTitle() const
Definition: QuestDef.h:572
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNT > FactionCapIn
Definition: QuestPackets.h:268
int32 SkillLineID
Definition: QuestPackets.h:259
uint32 GetRewardReputationMask() const
Definition: QuestDef.h:594
std::vector< QuestRewardDisplaySpell > RewardDisplaySpell
Definition: QuestDef.h:615
#define QUEST_REWARD_CHOICES_COUNT
Definition: QuestDef.h:46
std::array< QuestChoiceItem, QUEST_REWARD_CHOICES_COUNT > ChoiceItems
Definition: QuestPackets.h:262
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNT > RewardFactionOverride
Definition: QuestDef.h:626
std::array< int32, QUEST_REWARD_REPUTATIONS_COUNT > FactionID
Definition: QuestPackets.h:265
Definition: DB2Structure.h:2737
#define QUEST_REWARD_ITEM_COUNT
Definition: QuestDef.h:47
uint32 GetRewSpell() const
Definition: QuestDef.h:568
uint32 GetRewChoiceItemsCount() const
Definition: QuestDef.h:636
DB2Storage< PlayerConditionEntry > sPlayerConditionStore("PlayerCondition.db2", PlayerConditionLoadInfo::Instance())
std::array< uint32, QUEST_REWARD_REPUTATIONS_COUNT > RewardFactionId
Definition: QuestDef.h:624
int32 ChoiceItemCount
Definition: QuestPackets.h:248
Definition: QuestDef.h:466
std::array< uint32, QUEST_REWARD_CHOICES_COUNT > RewardChoiceItemCount
Definition: QuestDef.h:622
#define QUEST_REWARD_REPUTATIONS_COUNT
Definition: QuestDef.h:49
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CalculateHonorGain()

uint32 Quest::CalculateHonorGain ( uint8  level) const
453 {
454  uint32 honor = 0;
455 
456  /*if (GetRewHonorAddition() > 0 || GetRewHonorMultiplier() > 0.0f)
457  {
458  // values stored from 0.. for 1...
459  TeamContributionPointsEntry const* tc = sTeamContributionPointsStore.LookupEntry(level);
460  if (!tc)
461  return 0;
462 
463  honor = uint32(tc->Data * GetRewHonorMultiplier() * 0.1f);
464  honor += GetRewHonorAddition();
465  }*/
466 
467  return honor;
468 }
uint32_t uint32
Definition: Define.h:143
+ Here is the caller graph for this function:

◆ CanIncreaseRewardedQuestCounters()

bool Quest::CanIncreaseRewardedQuestCounters ( ) const
471 {
472  // Dungeon Finder/Daily/Repeatable (if not weekly, monthly or seasonal) quests are never considered rewarded serverside.
473  // This affects counters and client requests for completed quests.
474  return (!IsDFQuest() && !IsDaily() && (!IsRepeatable() || IsWeekly() || IsMonthly() || IsSeasonal()));
475 }
bool IsMonthly() const
Definition: QuestDef.h:605
bool IsWeekly() const
Definition: QuestDef.h:604
bool IsDFQuest() const
Definition: QuestDef.h:610
bool IsSeasonal() const
Definition: QuestDef.h:606
bool IsRepeatable() const
Definition: QuestDef.h:583
bool IsDaily() const
Definition: QuestDef.h:603
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAllowableClasses()

uint32 Quest::GetAllowableClasses ( ) const
inline
527 { return _allowableClasses; }
uint32 _allowableClasses
Definition: QuestDef.h:726
+ Here is the caller graph for this function:

◆ GetAllowableRaces()

Trinity::RaceMask<uint64> Quest::GetAllowableRaces ( ) const
inline
528 { return _allowableRaces; }
Trinity::RaceMask< uint64 > _allowableRaces
Definition: QuestDef.h:699
+ Here is the caller graph for this function:

◆ GetAreaDescription()

std::string const& Quest::GetAreaDescription ( ) const
inline
552 { return _areaDescription; }
std::string _areaDescription
Definition: QuestDef.h:707
+ Here is the caller graph for this function:

◆ GetAreaGroupID()

uint32 Quest::GetAreaGroupID ( ) const
inline
591 { return _areaGroupID; }
uint32 _areaGroupID
Definition: QuestDef.h:697
+ Here is the caller graph for this function:

◆ GetArtifactCategoryId()

uint32 Quest::GetArtifactCategoryId ( ) const
inline
566 { return _rewardArtifactCategoryID; }
uint32 _rewardArtifactCategoryID
Definition: QuestDef.h:677
+ Here is the caller graph for this function:

◆ GetArtifactXPDifficulty()

uint32 Quest::GetArtifactXPDifficulty ( ) const
inline
564 { return _rewardArtifactXPDifficulty; }
uint32 _rewardArtifactXPDifficulty
Definition: QuestDef.h:675
+ Here is the caller graph for this function:

◆ GetArtifactXPMultiplier()

float Quest::GetArtifactXPMultiplier ( ) const
inline
565 { return _rewardArtifactXPMultiplier; }
float _rewardArtifactXPMultiplier
Definition: QuestDef.h:676
+ Here is the caller graph for this function:

◆ GetBreadcrumbForQuestId()

int32 Quest::GetBreadcrumbForQuestId ( ) const
inline
540 { return _breadcrumbForQuestId; }
int32 _breadcrumbForQuestId
Definition: QuestDef.h:731
+ Here is the caller graph for this function:

◆ GetCompleteEmote()

uint32 Quest::GetCompleteEmote ( ) const
inline
580 { return _emoteOnComplete; }
uint32 _emoteOnComplete
Definition: QuestDef.h:715
+ Here is the caller graph for this function:

◆ GetCompleteEmoteDelay()

uint32 Quest::GetCompleteEmoteDelay ( ) const
inline
582 { return _emoteOnCompleteDelay; }
uint32 _emoteOnCompleteDelay
Definition: QuestDef.h:717
+ Here is the caller graph for this function:

◆ GetContentTuningId()

uint32 Quest::GetContentTuningId ( ) const
inline
523 { return _contentTuningID; }
uint32 _contentTuningID
Definition: QuestDef.h:662
+ Here is the caller graph for this function:

◆ GetEventIdForQuest()

uint16 Quest::GetEventIdForQuest ( ) const
inline
641 { return _eventIdForQuest; }
uint16 _eventIdForQuest
Definition: QuestDef.h:655
+ Here is the caller graph for this function:

◆ GetExclusiveGroup()

int32 Quest::GetExclusiveGroup ( ) const
inline
539 { return _exclusiveGroup; }
int32 _exclusiveGroup
Definition: QuestDef.h:730
+ Here is the caller graph for this function:

◆ GetExpansion()

int32 Quest::GetExpansion ( ) const
inline
596 { return _expansion; }
int32 _expansion
Definition: QuestDef.h:701
+ Here is the caller graph for this function:

◆ GetFlags()

uint32 Quest::GetFlags ( ) const
inline
586 { return _flags; }
uint32 _flags
Definition: QuestDef.h:679
+ Here is the caller graph for this function:

◆ GetFlagsEx()

uint32 Quest::GetFlagsEx ( ) const
inline
587 { return _flagsEx; }
uint32 _flagsEx
Definition: QuestDef.h:680
+ Here is the caller graph for this function:

◆ GetFlagsEx2()

uint32 Quest::GetFlagsEx2 ( ) const
inline
588 { return _flagsEx2; }
uint32 _flagsEx2
Definition: QuestDef.h:681
+ Here is the caller graph for this function:

◆ GetIncompleteEmote()

uint32 Quest::GetIncompleteEmote ( ) const
inline
579 { return _emoteOnIncomplete; }
uint32 _emoteOnIncomplete
Definition: QuestDef.h:716
+ Here is the caller graph for this function:

◆ GetIncompleteEmoteDelay()

uint32 Quest::GetIncompleteEmoteDelay ( ) const
inline
581 { return _emoteOnIncompleteDelay; }
uint32 _emoteOnIncompleteDelay
Definition: QuestDef.h:718
+ Here is the caller graph for this function:

◆ GetLimitTime()

uint32 Quest::GetLimitTime ( ) const
inline
536 { return _limitTime; }
uint32 _limitTime
Definition: QuestDef.h:698
+ Here is the caller graph for this function:

◆ GetLogDescription()

std::string const& Quest::GetLogDescription ( ) const
inline
550 { return _logDescription; }
std::string _logDescription
Definition: QuestDef.h:705
+ Here is the caller graph for this function:

◆ GetLogTitle()

std::string const& Quest::GetLogTitle ( ) const
inline
549 { return _logTitle; }
std::string _logTitle
Definition: QuestDef.h:704
+ Here is the caller graph for this function:

◆ GetManagedWorldStateId()

int32 Quest::GetManagedWorldStateId ( ) const
inline
597 { return _managedWorldStateID; }
int32 _managedWorldStateID
Definition: QuestDef.h:702
+ Here is the caller graph for this function:

◆ GetMaxLevel()

uint32 Quest::GetMaxLevel ( ) const
inline
525 { return _maxLevel; }
uint32 _maxLevel
Definition: QuestDef.h:725
+ Here is the caller graph for this function:

◆ GetMaxMoneyReward()

uint32 Quest::GetMaxMoneyReward ( ) const
338 {
339  return MaxMoneyValue() * sWorld->getRate(RATE_MONEY_QUEST);
340 }
#define sWorld
Definition: World.h:946
Definition: World.h:517
uint32 MaxMoneyValue() const
Definition: QuestDef.cpp:327
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetMoneyMultiplier()

float Quest::GetMoneyMultiplier ( ) const
inline
545 { return _rewardMoneyMultiplier; }
float _rewardMoneyMultiplier
Definition: QuestDef.h:670
+ Here is the caller graph for this function:

◆ GetNextQuestId()

uint32 Quest::GetNextQuestId ( ) const
inline
538 { return _nextQuestID; }
uint32 _nextQuestID
Definition: QuestDef.h:729

◆ GetNextQuestInChain()

uint32 Quest::GetNextQuestInChain ( ) const
inline
541 { return _nextQuestInChain; }
uint32 _nextQuestInChain
Definition: QuestDef.h:666
+ Here is the caller graph for this function:

◆ GetObjectives()

QuestObjectives const& Quest::GetObjectives ( ) const
inline
560 { return Objectives; }
QuestObjectives Objectives
Definition: QuestDef.h:630
+ Here is the caller graph for this function:

◆ GetOfferRewardText()

std::string const& Quest::GetOfferRewardText ( ) const
inline
553 { return _offerRewardText; }
std::string _offerRewardText
Definition: QuestDef.h:722
+ Here is the caller graph for this function:

◆ GetPOIContinent()

uint32 Quest::GetPOIContinent ( ) const
inline
573 { return _poiContinent; }
uint32 _poiContinent
Definition: QuestDef.h:682
+ Here is the caller graph for this function:

◆ GetPOIPriority()

uint32 Quest::GetPOIPriority ( ) const
inline
576 { return _poiPriority; }
uint32 _poiPriority
Definition: QuestDef.h:685
+ Here is the caller graph for this function:

◆ GetPOIx()

float Quest::GetPOIx ( ) const
inline
574 { return _poix; }
float _poix
Definition: QuestDef.h:683
+ Here is the caller graph for this function:

◆ GetPOIy()

float Quest::GetPOIy ( ) const
inline
575 { return _poiy; }
float _poiy
Definition: QuestDef.h:684
+ Here is the caller graph for this function:

◆ GetPortraitGiverName()

std::string const& Quest::GetPortraitGiverName ( ) const
inline
557 { return _portraitGiverName; }
std::string _portraitGiverName
Definition: QuestDef.h:709
+ Here is the caller graph for this function:

◆ GetPortraitGiverText()

std::string const& Quest::GetPortraitGiverText ( ) const
inline
556 { return _portraitGiverText; }
std::string _portraitGiverText
Definition: QuestDef.h:708
+ Here is the caller graph for this function:

◆ GetPortraitTurnInName()

std::string const& Quest::GetPortraitTurnInName ( ) const
inline
559 { return _portraitTurnInName; }
std::string _portraitTurnInName
Definition: QuestDef.h:711
+ Here is the caller graph for this function:

◆ GetPortraitTurnInText()

std::string const& Quest::GetPortraitTurnInText ( ) const
inline
558 { return _portraitTurnInText; }
std::string _portraitTurnInText
Definition: QuestDef.h:710
+ Here is the caller graph for this function:

◆ GetPrevQuestId()

int32 Quest::GetPrevQuestId ( ) const
inline
537 { return _prevQuestID; }
int32 _prevQuestID
Definition: QuestDef.h:728
+ Here is the caller graph for this function:

◆ GetQuestCompletionLog()

std::string const& Quest::GetQuestCompletionLog ( ) const
inline
555 { return _questCompletionLog; }
std::string _questCompletionLog
Definition: QuestDef.h:712
+ Here is the caller graph for this function:

◆ GetQuestDescription()

std::string const& Quest::GetQuestDescription ( ) const
inline
551 { return _questDescription; }
std::string _questDescription
Definition: QuestDef.h:706
+ Here is the caller graph for this function:

◆ GetQuestGiverPortrait()

uint32 Quest::GetQuestGiverPortrait ( ) const
inline
599 { return _questGiverPortrait; }
uint32 _questGiverPortrait
Definition: QuestDef.h:690
+ Here is the caller graph for this function:

◆ GetQuestGiverPortraitModelSceneId()

int32 Quest::GetQuestGiverPortraitModelSceneId ( ) const
inline
int32 _questGiverPortraitModelSceneId
Definition: QuestDef.h:692
+ Here is the caller graph for this function:

◆ GetQuestGiverPortraitMount()

int32 Quest::GetQuestGiverPortraitMount ( ) const
inline
600 { return _questGiverPortraitMount; }
int32 _questGiverPortraitMount
Definition: QuestDef.h:691
+ Here is the caller graph for this function:

◆ GetQuestId()

uint32 Quest::GetQuestId ( ) const
inline
520 { return _id; }
uint32 _id
Definition: QuestDef.h:659
+ Here is the caller graph for this function:

◆ GetQuestInfoID()

uint32 Quest::GetQuestInfoID ( ) const
inline
526 { return _questInfoID; }
uint32 _questInfoID
Definition: QuestDef.h:664
+ Here is the caller graph for this function:

◆ GetQuestPackageID()

uint32 Quest::GetQuestPackageID ( ) const
inline
522 { return _packageID; }
uint32 _packageID
Definition: QuestDef.h:661
+ Here is the caller graph for this function:

◆ GetQuestSessionBonus()

int32 Quest::GetQuestSessionBonus ( ) const
inline
598 { return _questSessionBonus; }
int32 _questSessionBonus
Definition: QuestDef.h:703

◆ GetQuestTag()

Optional< QuestTagType > Quest::GetQuestTag ( ) const
343 {
344  if (QuestInfoEntry const* questInfo = sQuestInfoStore.LookupEntry(GetQuestInfoID()))
345  return static_cast<QuestTagType>(questInfo->Type);
346 
347  return {};
348 }
Definition: DB2Structure.h:2927
uint32 GetQuestInfoID() const
Definition: QuestDef.h:526
DB2Storage< QuestInfoEntry > sQuestInfoStore("QuestInfo.db2", QuestInfoLoadInfo::Instance())
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetQuestTurnInPortrait()

uint32 Quest::GetQuestTurnInPortrait ( ) const
inline
602 { return _questTurnInPortrait; }
uint32 _questTurnInPortrait
Definition: QuestDef.h:693
+ Here is the caller graph for this function:

◆ GetQuestType()

uint32 Quest::GetQuestType ( ) const
inline
521 { return _type; }
uint32 _type
Definition: QuestDef.h:660
+ Here is the caller graph for this function:

◆ GetRequestItemsText()

std::string const& Quest::GetRequestItemsText ( ) const
inline
554 { return _requestItemsText; }
std::string _requestItemsText
Definition: QuestDef.h:719
+ Here is the caller graph for this function:

◆ GetRequiredMaxRepFaction()

uint32 Quest::GetRequiredMaxRepFaction ( ) const
inline
533 { return _requiredMaxRepFaction; }
uint32 _requiredMaxRepFaction
Definition: QuestDef.h:738
+ Here is the caller graph for this function:

◆ GetRequiredMaxRepValue()

int32 Quest::GetRequiredMaxRepValue ( ) const
inline
534 { return _requiredMaxRepValue; }
int32 _requiredMaxRepValue
Definition: QuestDef.h:739
+ Here is the caller graph for this function:

◆ GetRequiredMinRepFaction()

uint32 Quest::GetRequiredMinRepFaction ( ) const
inline
531 { return _requiredMinRepFaction; }
uint32 _requiredMinRepFaction
Definition: QuestDef.h:736
+ Here is the caller graph for this function:

◆ GetRequiredMinRepValue()

int32 Quest::GetRequiredMinRepValue ( ) const
inline
532 { return _requiredMinRepValue; }
int32 _requiredMinRepValue
Definition: QuestDef.h:737
+ Here is the caller graph for this function:

◆ GetRequiredSkill()

uint32 Quest::GetRequiredSkill ( ) const
inline
529 { return _requiredSkillId; }
uint32 _requiredSkillId
Definition: QuestDef.h:734
+ Here is the caller graph for this function:

◆ GetRequiredSkillValue()

uint32 Quest::GetRequiredSkillValue ( ) const
inline
530 { return _requiredSkillPoints; }
uint32 _requiredSkillPoints
Definition: QuestDef.h:735
+ Here is the caller graph for this function:

◆ GetRewardReputationMask()

uint32 Quest::GetRewardReputationMask ( ) const
inline
594 { return _rewardReputationMask; }
uint32 _rewardReputationMask
Definition: QuestDef.h:694
+ Here is the caller graph for this function:

◆ GetRewardSkillId()

uint32 Quest::GetRewardSkillId ( ) const
inline
592 { return _rewardSkillId; }
uint32 _rewardSkillId
Definition: QuestDef.h:688
+ Here is the caller graph for this function:

◆ GetRewardSkillPoints()

uint32 Quest::GetRewardSkillPoints ( ) const
inline
593 { return _rewardSkillPoints; }
uint32 _rewardSkillPoints
Definition: QuestDef.h:689
+ Here is the caller graph for this function:

◆ GetRewArenaPoints()

int32 Quest::GetRewArenaPoints ( ) const
inline
542 {return _rewardArenaPoints; }
int32 _rewardArenaPoints
Definition: QuestDef.h:687
+ Here is the caller graph for this function:

◆ GetRewChoiceItemsCount()

uint32 Quest::GetRewChoiceItemsCount ( ) const
inline
636 { return _rewChoiceItemsCount; }
uint32 _rewChoiceItemsCount
Definition: QuestDef.h:653
+ Here is the caller graph for this function:

◆ GetRewCurrencyCount()

uint32 Quest::GetRewCurrencyCount ( ) const
inline
638 { return _rewCurrencyCount; }
uint32 _rewCurrencyCount
Definition: QuestDef.h:656

◆ GetRewHonor()

uint32 Quest::GetRewHonor ( ) const
inline
562 { return _rewardHonor; }
uint32 _rewardHonor
Definition: QuestDef.h:673
+ Here is the caller graph for this function:

◆ GetRewItemsCount()

uint32 Quest::GetRewItemsCount ( ) const
inline
637 { return _rewItemsCount; }
uint32 _rewItemsCount
Definition: QuestDef.h:654
+ Here is the caller graph for this function:

◆ GetRewKillHonor()

uint32 Quest::GetRewKillHonor ( ) const
inline
563 { return _rewardKillHonor; }
uint32 _rewardKillHonor
Definition: QuestDef.h:674
+ Here is the caller graph for this function:

◆ GetRewMailDelaySecs()

uint32 Quest::GetRewMailDelaySecs ( ) const
inline
570 { return _rewardMailDelay; }
uint32 _rewardMailDelay
Definition: QuestDef.h:733
+ Here is the caller graph for this function:

◆ GetRewMailSenderEntry()

uint32 Quest::GetRewMailSenderEntry ( ) const
inline
571 { return _rewardMailSenderEntry; }
uint32 _rewardMailSenderEntry
Definition: QuestDef.h:741
+ Here is the caller graph for this function:

◆ GetRewMailTemplateId()

uint32 Quest::GetRewMailTemplateId ( ) const
inline
569 { return _rewardMailTemplateId; }
uint32 _rewardMailTemplateId
Definition: QuestDef.h:732
+ Here is the caller graph for this function:

◆ GetRewMoneyDifficulty()

uint32 Quest::GetRewMoneyDifficulty ( ) const
inline
561 { return _rewardMoneyDifficulty; }
uint32 _rewardMoneyDifficulty
Definition: QuestDef.h:669
+ Here is the caller graph for this function:

◆ GetRewMoneyMaxLevel()

uint32 Quest::GetRewMoneyMaxLevel ( ) const
405 {
406  // If Quest has flag to not give money on max level, it's 0
408  return 0;
409 
410  // Else, return the rewarded copper sum modified by the rate
412 }
uint32 _rewardBonusMoney
Definition: QuestDef.h:671
Definition: QuestDef.h:190
#define sWorld
Definition: World.h:946
uint32_t uint32
Definition: Define.h:143
Definition: World.h:518
bool HasFlag(QuestFlags flag) const
Definition: QuestDef.h:502
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetRewSpell()

uint32 Quest::GetRewSpell ( ) const
inline
568 { return _rewardSpell; }
uint32 _rewardSpell
Definition: QuestDef.h:672
+ Here is the caller graph for this function:

◆ GetRewTitle()

uint32 Quest::GetRewTitle ( ) const
inline
572 { return _rewardTitleId; }
uint32 _rewardTitleId
Definition: QuestDef.h:686
+ Here is the caller graph for this function:

◆ GetScriptId()

uint32 Quest::GetScriptId ( ) const
inline
590 { return _scriptId; }
uint32 _scriptId
Definition: QuestDef.h:744
+ Here is the caller graph for this function:

◆ GetSoundAccept()

uint32 Quest::GetSoundAccept ( ) const
inline
577 { return _soundAccept; }
uint32 _soundAccept
Definition: QuestDef.h:695
+ Here is the caller graph for this function:

◆ GetSoundTurnIn()

uint32 Quest::GetSoundTurnIn ( ) const
inline
578 { return _soundTurnIn; }
uint32 _soundTurnIn
Definition: QuestDef.h:696
+ Here is the caller graph for this function:

◆ GetSpecialFlags()

uint32 Quest::GetSpecialFlags ( ) const
inline
589 { return _specialFlags; }
uint32 _specialFlags
Definition: QuestDef.h:742

◆ GetSrcItemCount()

uint32 Quest::GetSrcItemCount ( ) const
inline
547 { return _sourceItemIdCount; }
uint32 _sourceItemIdCount
Definition: QuestDef.h:740
+ Here is the caller graph for this function:

◆ GetSrcItemId()

uint32 Quest::GetSrcItemId ( ) const
inline
546 { return _sourceItemId; }
uint32 _sourceItemId
Definition: QuestDef.h:678
+ Here is the caller graph for this function:

◆ GetSrcSpell()

uint32 Quest::GetSrcSpell ( ) const
inline
548 { return _sourceSpellID; }
uint32 _sourceSpellID
Definition: QuestDef.h:727
+ Here is the caller graph for this function:

◆ GetSuggestedPlayers()

uint32 Quest::GetSuggestedPlayers ( ) const
inline
535 { return _suggestedPlayers; }
uint32 _suggestedPlayers
Definition: QuestDef.h:665
+ Here is the caller graph for this function:

◆ GetTreasurePickerId()

int32 Quest::GetTreasurePickerId ( ) const
inline
595 { return _treasurePickerID; }
int32 _treasurePickerID
Definition: QuestDef.h:700
+ Here is the caller graph for this function:

◆ GetXPDifficulty()

uint32 Quest::GetXPDifficulty ( ) const
inline
543 { return _rewardXPDifficulty; }
uint32 _rewardXPDifficulty
Definition: QuestDef.h:667
+ Here is the caller graph for this function:

◆ GetXPMultiplier()

float Quest::GetXPMultiplier ( ) const
inline
544 { return _rewardXPMultiplier; }
float _rewardXPMultiplier
Definition: QuestDef.h:668
+ Here is the caller graph for this function:

◆ GetZoneOrSort()

int32 Quest::GetZoneOrSort ( ) const
inline
524 { return _questSortID; }
int32 _questSortID
Definition: QuestDef.h:663
+ Here is the caller graph for this function:

◆ HasFlag()

bool Quest::HasFlag ( QuestFlags  flag) const
inline
502 { return (_flags & uint32(flag)) != 0; }
uint32 _flags
Definition: QuestDef.h:679
uint32_t uint32
Definition: Define.h:143
+ Here is the caller graph for this function:

◆ HasFlagEx()

bool Quest::HasFlagEx ( QuestFlagsEx  flag) const
inline
503 { return (_flagsEx & uint32(flag)) != 0; }
uint32 _flagsEx
Definition: QuestDef.h:680
uint32_t uint32
Definition: Define.h:143
+ Here is the caller graph for this function:

◆ HasFlagEx2()

bool Quest::HasFlagEx2 ( QuestFlagsEx2  flag) const
inline
504 { return (_flagsEx2 & uint32(flag)) != 0; }
uint32_t uint32
Definition: Define.h:143
uint32 _flagsEx2
Definition: QuestDef.h:681

◆ HasQuestObjectiveType()

bool Quest::HasQuestObjectiveType ( QuestObjectiveType  type) const
inline
508 { return _usedQuestObjectiveTypes[type]; }
std::bitset< MAX_QUEST_OBJECTIVE_TYPE > _usedQuestObjectiveTypes
Definition: QuestDef.h:743
+ Here is the caller graph for this function:

◆ HasSpecialFlag()

bool Quest::HasSpecialFlag ( uint32  flag) const
inline
506 { return (_specialFlags & flag) != 0; }
uint32 _specialFlags
Definition: QuestDef.h:742
+ Here is the caller graph for this function:

◆ InitializeQueryData()

void Quest::InitializeQueryData ( )
478 {
479  for (uint8 loc = LOCALE_enUS; loc < TOTAL_LOCALES; ++loc)
480  QueryData[loc] = BuildQueryData(static_cast<LocaleConstant>(loc), nullptr);
481 }
std::array< WorldPacket, TOTAL_LOCALES > QueryData
Definition: QuestDef.h:650
WorldPacket BuildQueryData(LocaleConstant loc, Player *player) const
Definition: QuestDef.cpp:483
Definition: Common.h:82
Definition: Common.h:95
uint8_t uint8
Definition: Define.h:145
+ Here is the call graph for this function:

◆ IsAllowedInRaid()

bool Quest::IsAllowedInRaid ( Difficulty  difficulty) const
445 {
446  if (IsRaidQuest(difficulty))
447  return true;
448 
449  return sWorld->getBoolConfig(CONFIG_QUEST_IGNORE_RAID);
450 }
Definition: World.h:124
#define sWorld
Definition: World.h:946
bool IsRaidQuest(Difficulty difficulty) const
Definition: QuestDef.cpp:424
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsAutoAccept()

bool Quest::IsAutoAccept ( ) const
415 {
417 }
Definition: World.h:163
#define sWorld
Definition: World.h:946
Definition: QuestDef.h:201
bool HasFlag(QuestFlags flag) const
Definition: QuestDef.h:502
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsAutoComplete()

bool Quest::IsAutoComplete ( ) const
420 {
422 }
#define sWorld
Definition: World.h:946
Definition: SharedDefines.h:4956
uint32 _type
Definition: QuestDef.h:660
Definition: World.h:164
+ Here is the caller graph for this function:

◆ IsAutoPush()

bool Quest::IsAutoPush ( ) const
inline
Definition: QuestDef.h:246
bool HasFlagEx(QuestFlagsEx flag) const
Definition: QuestDef.h:503

◆ IsDaily()

bool Quest::IsDaily ( ) const
inline
603 { return (_flags & QUEST_FLAGS_DAILY) != 0; }
uint32 _flags
Definition: QuestDef.h:679
Definition: QuestDef.h:194
+ Here is the caller graph for this function:

◆ IsDailyOrWeekly()

bool Quest::IsDailyOrWeekly ( ) const
inline
607 { return (_flags & (QUEST_FLAGS_DAILY | QUEST_FLAGS_WEEKLY)) != 0; }
uint32 _flags
Definition: QuestDef.h:679
Definition: QuestDef.h:197
Definition: QuestDef.h:194
+ Here is the caller graph for this function:

◆ IsDFQuest()

bool Quest::IsDFQuest ( ) const
inline
610 { return (_specialFlags & QUEST_SPECIAL_FLAGS_DF_QUEST) != 0; }
uint32 _specialFlags
Definition: QuestDef.h:742
Definition: QuestDef.h:281
+ Here is the caller graph for this function:

◆ IsMonthly()

bool Quest::IsMonthly ( ) const
inline
605 { return (_specialFlags & QUEST_SPECIAL_FLAGS_MONTHLY) != 0; }
uint32 _specialFlags
Definition: QuestDef.h:742
Definition: QuestDef.h:282
+ Here is the caller graph for this function:

◆ IsRaidQuest()

bool Quest::IsRaidQuest ( Difficulty  difficulty) const
425 {
426  switch (_questInfoID)
427  {
428  case QUEST_INFO_RAID:
429  return true;
430  case QUEST_INFO_RAID_10:
431  return difficulty == DIFFICULTY_10_N || difficulty == DIFFICULTY_10_HC;
432  case QUEST_INFO_RAID_25:
433  return difficulty == DIFFICULTY_25_N || difficulty == DIFFICULTY_25_HC;
434  default:
435  break;
436  }
437 
438  if ((_flags & QUEST_FLAGS_RAID) != 0)
439  return true;
440 
441  return false;
442 }
uint32 _flags
Definition: QuestDef.h:679
Definition: QuestDef.h:188
Definition: SharedDefines.h:4969
Definition: DBCEnums.h:669
uint32 _questInfoID
Definition: QuestDef.h:664
Definition: SharedDefines.h:4976
Definition: SharedDefines.h:4975
Definition: DBCEnums.h:671
Definition: DBCEnums.h:670
Definition: DBCEnums.h:672
+ Here is the caller graph for this function:

◆ IsRepeatable()

bool Quest::IsRepeatable ( ) const
inline
uint32 _specialFlags
Definition: QuestDef.h:742
Definition: QuestDef.h:278
+ Here is the caller graph for this function:

◆ IsSeasonal()

bool Quest::IsSeasonal ( ) const
inline
Definition: SharedDefines.h:5073
Definition: SharedDefines.h:5070
Definition: SharedDefines.h:5078
Definition: SharedDefines.h:5080
Definition: SharedDefines.h:5042
Definition: SharedDefines.h:5074
int32 _questSortID
Definition: QuestDef.h:663
bool IsRepeatable() const
Definition: QuestDef.h:583
Definition: SharedDefines.h:5064
+ Here is the caller graph for this function:

◆ IsTakingQuestEnabled()

bool Quest::IsTakingQuestEnabled ( uint32  questId)
static
312 {
313  if (!sQuestPoolMgr->IsQuestActive(questId))
314  return false;
315 
316  return true;
317 }
#define sQuestPoolMgr
Definition: QuestPools.h:63
+ Here is the caller graph for this function:

◆ IsUnavailable()

bool Quest::IsUnavailable ( ) const
inline
514 { return HasFlag(QUEST_FLAGS_UNAVAILABLE); }
Definition: QuestDef.h:196
bool HasFlag(QuestFlags flag) const
Definition: QuestDef.h:502

◆ IsWeekly()

bool Quest::IsWeekly ( ) const
inline
604 { return (_flags & QUEST_FLAGS_WEEKLY) != 0; }
uint32 _flags
Definition: QuestDef.h:679
Definition: QuestDef.h:197
+ Here is the caller graph for this function:

◆ IsWorldQuest()

bool Quest::IsWorldQuest ( ) const
inline
bool HasFlagEx(QuestFlagsEx flag) const
Definition: QuestDef.h:503
Definition: QuestDef.h:244

◆ LoadQuestDetails()

void Quest::LoadQuestDetails ( Field fields)
161 {
162  for (uint32 i = 0; i < QUEST_EMOTE_COUNT; ++i)
163  {
164  if (!sEmotesStore.LookupEntry(fields[1 + i].GetUInt16()))
165  {
166  TC_LOG_ERROR("sql.sql", "Table `quest_details` has non-existing Emote%i (%u) set for quest %u. Skipped.", 1+i, fields[1+i].GetUInt16(), fields[0].GetUInt32());
167  continue;
168  }
169 
170  DetailsEmote[i] = fields[1 + i].GetUInt16();
171  }
172 
173  for (uint32 i = 0; i < QUEST_EMOTE_COUNT; ++i)
174  DetailsEmoteDelay[i] = fields[5 + i].GetUInt32();
175 }
uint16 GetUInt16() const
Definition: Field.cpp:69
std::array< uint32, QUEST_EMOTE_COUNT > DetailsEmote
Definition: QuestDef.h:631
DB2Storage< EmotesEntry > sEmotesStore("Emotes.db2", EmotesLoadInfo::Instance())
#define QUEST_EMOTE_COUNT
Definition: QuestDef.h:50
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:185
uint32_t uint32
Definition: Define.h:143
std::array< uint32, QUEST_EMOTE_COUNT > DetailsEmoteDelay
Definition: QuestDef.h:632
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadQuestMailSender()

void Quest::LoadQuestMailSender ( Field fields)
238 {
239  _rewardMailSenderEntry = fields[1].GetUInt32();
240 }
uint32 GetUInt32() const
Definition: Field.cpp:105
uint32 _rewardMailSenderEntry
Definition: QuestDef.h:741
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadQuestObjective()

void Quest::LoadQuestObjective ( Field fields)
243 {
244  QuestObjective obj;
245  obj.QuestID = fields[0].GetUInt32();
246  obj.ID = fields[1].GetUInt32();
247  obj.Type = fields[2].GetUInt8();
248  obj.StorageIndex = fields[3].GetInt8();
249  obj.ObjectID = fields[4].GetInt32();
250  obj.Amount = fields[5].GetInt32();
251  obj.Flags = fields[6].GetUInt32();
252  obj.Flags2 = fields[7].GetUInt32();
253  obj.ProgressBarWeight = fields[8].GetFloat();
254  obj.Description = fields[9].GetString();
255 
256  Objectives.push_back(obj);
257  _usedQuestObjectiveTypes[obj.Type] = true;
258 }
float ProgressBarWeight
Definition: QuestDef.h:403
Definition: QuestDef.h:393
uint32 ID
Definition: QuestDef.h:395
int8 StorageIndex
Definition: QuestDef.h:398
std::bitset< MAX_QUEST_OBJECTIVE_TYPE > _usedQuestObjectiveTypes
Definition: QuestDef.h:743
std::string Description
Definition: QuestDef.h:404
int8 GetInt8() const
Definition: Field.cpp:51
uint32 Flags
Definition: QuestDef.h:401
uint8 Type
Definition: QuestDef.h:397
uint32 GetUInt32() const
Definition: Field.cpp:105
float GetFloat() const
Definition: Field.cpp:177
uint32 QuestID
Definition: QuestDef.h:396
std::string GetString() const
Definition: Field.cpp:228
uint32 Flags2
Definition: QuestDef.h:402
int32 ObjectID
Definition: QuestDef.h:399
int32 GetInt32() const
Definition: Field.cpp:123
uint8 GetUInt8() const
Definition: Field.cpp:33
int32 Amount
Definition: QuestDef.h:400
QuestObjectives Objectives
Definition: QuestDef.h:630
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadQuestObjectiveVisualEffect()

void Quest::LoadQuestObjectiveVisualEffect ( Field fields)
261 {
262  uint32 objID = fields[1].GetUInt32();
263 
264  for (QuestObjective& obj : Objectives)
265  {
266  if (obj.ID == objID)
267  {
268  uint8 effectIndex = fields[3].GetUInt8();
269  if (effectIndex >= obj.VisualEffects.size())
270  obj.VisualEffects.resize(effectIndex + 1, 0);
271 
272  obj.VisualEffects[effectIndex] = fields[4].GetInt32();
273  break;
274  }
275  }
276 }
Definition: QuestDef.h:393
uint32 GetUInt32() const
Definition: Field.cpp:105
uint32_t uint32
Definition: Define.h:143
int32 GetInt32() const
Definition: Field.cpp:123
uint8 GetUInt8() const
Definition: Field.cpp:33
uint8_t uint8
Definition: Define.h:145
QuestObjectives Objectives
Definition: QuestDef.h:630
+ Here is the call graph for this function:

◆ LoadQuestOfferReward()

void Quest::LoadQuestOfferReward ( Field fields)
194 {
195  for (uint32 i = 0; i < QUEST_EMOTE_COUNT; ++i)
196  {
197  if (!sEmotesStore.LookupEntry(fields[1 + i].GetUInt16()))
198  {
199  TC_LOG_ERROR("sql.sql", "Table `quest_offer_reward` has non-existing Emote%i (%u) set for quest %u. Skipped.", 1+i, fields[1+i].GetUInt16(), fields[0].GetUInt32());
200  continue;
201  }
202 
203  OfferRewardEmote[i] = fields[1 + i].GetUInt16();
204  }
205 
206  for (uint32 i = 0; i < QUEST_EMOTE_COUNT; ++i)
207  OfferRewardEmoteDelay[i] = fields[5 + i].GetUInt32();
208 
209  _offerRewardText = fields[9].GetString();
210 }
uint16 GetUInt16() const
Definition: Field.cpp:69
DB2Storage< EmotesEntry > sEmotesStore("Emotes.db2", EmotesLoadInfo::Instance())
#define QUEST_EMOTE_COUNT
Definition: QuestDef.h:50
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:185
std::array< uint32, QUEST_EMOTE_COUNT > OfferRewardEmoteDelay
Definition: QuestDef.h:634
std::array< uint32, QUEST_EMOTE_COUNT > OfferRewardEmote
Definition: QuestDef.h:633
std::string GetString() const
Definition: Field.cpp:228
uint32_t uint32
Definition: Define.h:143
std::string _offerRewardText
Definition: QuestDef.h:722
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadQuestRequestItems()

void Quest::LoadQuestRequestItems ( Field fields)
178 {
179  _emoteOnComplete = fields[1].GetUInt16();
180  _emoteOnIncomplete = fields[2].GetUInt16();
181 
182  if (!sEmotesStore.LookupEntry(_emoteOnComplete))
183  TC_LOG_ERROR("sql.sql", "Table `quest_request_items` has non-existing EmoteOnComplete (%u) set for quest %u.", _emoteOnComplete, fields[0].GetUInt32());
184 
185  if (!sEmotesStore.LookupEntry(_emoteOnIncomplete))
186  TC_LOG_ERROR("sql.sql", "Table `quest_request_items` has non-existing EmoteOnIncomplete (%u) set for quest %u.", _emoteOnIncomplete, fields[0].GetUInt32());
187 
188  _emoteOnCompleteDelay = fields[3].GetUInt32();
189  _emoteOnIncompleteDelay = fields[4].GetUInt32();
190  _requestItemsText = fields[5].GetString();
191 }
uint16 GetUInt16() const
Definition: Field.cpp:69
uint32 _emoteOnCompleteDelay
Definition: QuestDef.h:717
DB2Storage< EmotesEntry > sEmotesStore("Emotes.db2", EmotesLoadInfo::Instance())
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:185
uint32 _emoteOnIncompleteDelay
Definition: QuestDef.h:718
uint32 GetUInt32() const
Definition: Field.cpp:105
std::string GetString() const
Definition: Field.cpp:228
std::string _requestItemsText
Definition: QuestDef.h:719
uint32 _emoteOnIncomplete
Definition: QuestDef.h:716
uint32 _emoteOnComplete
Definition: QuestDef.h:715
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadQuestTemplateAddon()

void Quest::LoadQuestTemplateAddon ( Field fields)
213 {
214  _maxLevel = fields[1].GetUInt8();
215  _allowableClasses = fields[2].GetUInt32();
216  _sourceSpellID = fields[3].GetUInt32();
217  _prevQuestID = fields[4].GetInt32();
218  _nextQuestID = fields[5].GetUInt32();
219  _exclusiveGroup = fields[6].GetInt32();
220  _breadcrumbForQuestId = fields[7].GetInt32();
221  _rewardMailTemplateId = fields[8].GetUInt32();
222  _rewardMailDelay = fields[9].GetUInt32();
223  _requiredSkillId = fields[10].GetUInt16();
224  _requiredSkillPoints = fields[11].GetUInt16();
225  _requiredMinRepFaction = fields[12].GetUInt16();
226  _requiredMaxRepFaction = fields[13].GetUInt16();
227  _requiredMinRepValue = fields[14].GetInt32();
228  _requiredMaxRepValue = fields[15].GetInt32();
229  _sourceItemIdCount = fields[16].GetUInt8();
230  _specialFlags = fields[17].GetUInt8();
231  _scriptId = sObjectMgr->GetScriptId(fields[18].GetString());
232 
235 }
uint32 _specialFlags
Definition: QuestDef.h:742
uint32 _maxLevel
Definition: QuestDef.h:725
uint32 _flags
Definition: QuestDef.h:679
uint16 GetUInt16() const
Definition: Field.cpp:69
int32 _breadcrumbForQuestId
Definition: QuestDef.h:731
Definition: QuestDef.h:280
#define sObjectMgr
Definition: ObjectMgr.h:1967
int32 _requiredMinRepValue
Definition: QuestDef.h:737
int32 _exclusiveGroup
Definition: QuestDef.h:730
uint32 _allowableClasses
Definition: QuestDef.h:726
uint32 GetUInt32() const
Definition: Field.cpp:105
uint32 _sourceItemIdCount
Definition: QuestDef.h:740
Definition: QuestDef.h:201
uint32 _nextQuestID
Definition: QuestDef.h:729
uint32 _scriptId
Definition: QuestDef.h:744
int32 _prevQuestID
Definition: QuestDef.h:728
uint32 _sourceSpellID
Definition: QuestDef.h:727
uint32 _requiredSkillPoints
Definition: QuestDef.h:735
int32 GetInt32() const
Definition: Field.cpp:123
uint32 _requiredSkillId
Definition: QuestDef.h:734
uint8 GetUInt8() const
Definition: Field.cpp:33
uint32 _rewardMailTemplateId
Definition: QuestDef.h:732
uint32 _rewardMailDelay
Definition: QuestDef.h:733
uint32 _requiredMinRepFaction
Definition: QuestDef.h:736
int32 _requiredMaxRepValue
Definition: QuestDef.h:739
uint32 _requiredMaxRepFaction
Definition: QuestDef.h:738
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadRewardChoiceItems()

void Quest::LoadRewardChoiceItems ( Field fields)
155 {
156  for (uint32 i = 0; i < QUEST_REWARD_CHOICES_COUNT; ++i)
157  RewardChoiceItemType[i] = LootItemType(fields[1 + i].GetUInt8());
158 }
std::array< LootItemType, QUEST_REWARD_CHOICES_COUNT > RewardChoiceItemType
Definition: QuestDef.h:620
LootItemType
Definition: LootItemType.h:23
uint32_t uint32
Definition: Define.h:143
#define QUEST_REWARD_CHOICES_COUNT
Definition: QuestDef.h:46
+ Here is the caller graph for this function:

◆ LoadRewardDisplaySpell()

void Quest::LoadRewardDisplaySpell ( Field fields)
135 {
136  uint32 spellId = fields[1].GetUInt32();
137  uint32 playerConditionId = fields[2].GetUInt32();
138 
139  if (!sSpellMgr->GetSpellInfo(spellId, DIFFICULTY_NONE))
140  {
141  TC_LOG_ERROR("sql.sql", "Table `quest_reward_display_spell` has non-existing Spell (%u) set for quest %u. Skipped.", spellId, fields[0].GetUInt32());
142  return;
143  }
144 
145  if (playerConditionId && !sPlayerConditionStore.LookupEntry(playerConditionId))
146  {
147  TC_LOG_ERROR("sql.sql", "Table `quest_reward_display_spell` has non-existing PlayerCondition (%u) set for quest %u and spell %u. Set to 0.", playerConditionId, fields[0].GetUInt32(), spellId);
148  playerConditionId = 0;
149  }
150 
151  RewardDisplaySpell.emplace_back(spellId, playerConditionId);
152 }
Definition: DBCEnums.h:666
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:185
uint32 GetUInt32() const
Definition: Field.cpp:105
#define sSpellMgr
Definition: SpellMgr.h:825
uint32_t uint32
Definition: Define.h:143
std::vector< QuestRewardDisplaySpell > RewardDisplaySpell
Definition: QuestDef.h:615
DB2Storage< PlayerConditionEntry > sPlayerConditionStore("PlayerCondition.db2", PlayerConditionLoadInfo::Instance())
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MaxMoneyValue()

uint32 Quest::MaxMoneyValue ( ) const
328 {
329  uint32 value = 0;
330  if (Optional<ContentTuningLevels> questLevels = sDB2Manager.GetContentTuningData(GetContentTuningId(), 0))
331  if (QuestMoneyRewardEntry const* money = sQuestMoneyRewardStore.LookupEntry(questLevels->MaxLevel))
332  value = money->Difficulty[GetRewMoneyDifficulty()] * GetMoneyMultiplier();
333 
334  return value;
335 }
#define sDB2Manager
Definition: DB2Stores.h:479
float GetMoneyMultiplier() const
Definition: QuestDef.h:545
uint32 GetContentTuningId() const
Definition: QuestDef.h:523
DB2Storage< QuestMoneyRewardEntry > sQuestMoneyRewardStore("QuestMoneyReward.db2", QuestMoneyRewardLoadInfo::Instance())
Definition: DB2Structure.h:2945
uint32_t uint32
Definition: Define.h:143
uint32 GetRewMoneyDifficulty() const
Definition: QuestDef.h:561
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
320 {
321  if (QuestMoneyRewardEntry const* money = sQuestMoneyRewardStore.LookupEntry(player->GetQuestLevel(this)))
322  return money->Difficulty[GetRewMoneyDifficulty()] * GetMoneyMultiplier();
323  else
324  return 0;
325 }
float GetMoneyMultiplier() const
Definition: QuestDef.h:545
DB2Storage< QuestMoneyRewardEntry > sQuestMoneyRewardStore("QuestMoneyReward.db2", QuestMoneyRewardLoadInfo::Instance())
Definition: DB2Structure.h:2945
uint32 GetRewMoneyDifficulty() const
Definition: QuestDef.h:561
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RoundXPValue()

uint32 Quest::RoundXPValue ( uint32  xp)
staticprivate
626 {
627  if (xp <= 100)
628  return 5 * ((xp + 2) / 5);
629  else if (xp <= 500)
630  return 10 * ((xp + 5) / 10);
631  else if (xp <= 1000)
632  return 25 * ((xp + 12) / 25);
633  else
634  return 50 * ((xp + 25) / 50);
635 }
+ Here is the caller graph for this function:

◆ SetEventIdForQuest()

void Quest::SetEventIdForQuest ( uint16  eventId)
inline
640 { _eventIdForQuest = eventId; }
uint16 _eventIdForQuest
Definition: QuestDef.h:655
+ Here is the caller graph for this function:

◆ SetSpecialFlag()

void Quest::SetSpecialFlag ( uint32  flag)
inline
507 { _specialFlags |= flag; }
uint32 _specialFlags
Definition: QuestDef.h:742
+ Here is the caller graph for this function:

◆ XPValue()

uint32 Quest::XPValue ( Player const *  player) const
279 {
280  if (player)
281  {
282  uint32 questLevel = player->GetQuestLevel(this);
283  QuestXPEntry const* questXp = sQuestXPStore.LookupEntry(questLevel);
284  if (!questXp || _rewardXPDifficulty >= 10)
285  return 0;
286 
287  int32 diffFactor = 2 * (questLevel - player->GetLevel()) + 12;
288  if (diffFactor < 1)
289  diffFactor = 1;
290  else if (diffFactor > 10)
291  diffFactor = 10;
292 
293  uint32 xp = diffFactor * questXp->Difficulty[_rewardXPDifficulty] * _rewardXPMultiplier / 10;
294  if (player->GetLevel() >= GetMaxLevelForExpansion(CURRENT_EXPANSION - 1) && player->GetSession()->GetExpansion() == CURRENT_EXPANSION && _expansion < CURRENT_EXPANSION)
295  xp = uint32(xp / 9.0f);
296 
297  xp = RoundXPValue(xp);
298 
299  if (sWorld->getIntConfig(CONFIG_MIN_QUEST_SCALED_XP_RATIO))
300  {
302  xp = std::max(minScaledXP, xp);
303  }
304 
305  return xp;
306  }
307 
308  return 0;
309 }
#define CURRENT_EXPANSION
Definition: SharedDefines.h:97
#define sWorld
Definition: World.h:946
Definition: World.h:276
DB2Storage< QuestXPEntry > sQuestXPStore("QuestXP.db2", QuestXpLoadInfo::Instance())
int32 _expansion
Definition: QuestDef.h:701
int32_t int32
Definition: Define.h:139
static uint32 RoundXPValue(uint32 xp)
Definition: QuestDef.cpp:625
uint32_t uint32
Definition: Define.h:143
Definition: DB2Structure.h:2973
float _rewardXPMultiplier
Definition: QuestDef.h:668
std::array< uint16, 10 > Difficulty
Definition: DB2Structure.h:2976
uint32 _rewardXPDifficulty
Definition: QuestDef.h:667
constexpr uint32 GetMaxLevelForExpansion(uint32 expansion)
Definition: SharedDefines.h:99
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ ObjectMgr

friend class ObjectMgr
friend

◆ Player

friend class Player
friend

◆ PlayerMenu

friend class PlayerMenu
friend

Member Data Documentation

◆ _allowableClasses

uint32 Quest::_allowableClasses = 0
private

◆ _allowableRaces

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

◆ _areaDescription

std::string Quest::_areaDescription
private

◆ _areaGroupID

uint32 Quest::_areaGroupID = 0
private

◆ _breadcrumbForQuestId

int32 Quest::_breadcrumbForQuestId = 0
private

◆ _contentTuningID

uint32 Quest::_contentTuningID = 0
private

◆ _emoteOnComplete

uint32 Quest::_emoteOnComplete = 0
private

◆ _emoteOnCompleteDelay

uint32 Quest::_emoteOnCompleteDelay = 0
private

◆ _emoteOnIncomplete

uint32 Quest::_emoteOnIncomplete = 0
private

◆ _emoteOnIncompleteDelay

uint32 Quest::_emoteOnIncompleteDelay = 0
private

◆ _eventIdForQuest

uint16 Quest::_eventIdForQuest = 0
private

◆ _exclusiveGroup

int32 Quest::_exclusiveGroup = 0
private

◆ _expansion

int32 Quest::_expansion = 0
private

◆ _flags

uint32 Quest::_flags = 0
private

◆ _flagsEx

uint32 Quest::_flagsEx = 0
private

◆ _flagsEx2

uint32 Quest::_flagsEx2 = 0
private

◆ _id

uint32 Quest::_id = 0
private

◆ _limitTime

uint32 Quest::_limitTime = 0
private

◆ _logDescription

std::string Quest::_logDescription
private

◆ _logTitle

std::string Quest::_logTitle
private

◆ _managedWorldStateID

int32 Quest::_managedWorldStateID = 0
private

◆ _maxLevel

uint32 Quest::_maxLevel = 0
private

◆ _nextQuestID

uint32 Quest::_nextQuestID = 0
private

◆ _nextQuestInChain

uint32 Quest::_nextQuestInChain = 0
private

◆ _offerRewardText

std::string Quest::_offerRewardText
private

◆ _packageID

uint32 Quest::_packageID = 0
private

◆ _poiContinent

uint32 Quest::_poiContinent = 0
private

◆ _poiPriority

uint32 Quest::_poiPriority = 0
private

◆ _poix

float Quest::_poix = 0.f
private

◆ _poiy

float Quest::_poiy = 0.f
private

◆ _portraitGiverName

std::string Quest::_portraitGiverName
private

◆ _portraitGiverText

std::string Quest::_portraitGiverText
private

◆ _portraitTurnInName

std::string Quest::_portraitTurnInName
private

◆ _portraitTurnInText

std::string Quest::_portraitTurnInText
private

◆ _prevQuestID

int32 Quest::_prevQuestID = 0
private

◆ _questCompletionLog

std::string Quest::_questCompletionLog
private

◆ _questDescription

std::string Quest::_questDescription
private

◆ _questGiverPortrait

uint32 Quest::_questGiverPortrait = 0
private

◆ _questGiverPortraitModelSceneId

int32 Quest::_questGiverPortraitModelSceneId = 0
private

◆ _questGiverPortraitMount

int32 Quest::_questGiverPortraitMount = 0
private

◆ _questInfoID

uint32 Quest::_questInfoID = 0
private

◆ _questSessionBonus

int32 Quest::_questSessionBonus = 0
private

◆ _questSortID

int32 Quest::_questSortID = 0
private

◆ _questTurnInPortrait

uint32 Quest::_questTurnInPortrait = 0
private

◆ _requestItemsText

std::string Quest::_requestItemsText
private

◆ _requiredMaxRepFaction

uint32 Quest::_requiredMaxRepFaction = 0
private

◆ _requiredMaxRepValue

int32 Quest::_requiredMaxRepValue = 0
private

◆ _requiredMinRepFaction

uint32 Quest::_requiredMinRepFaction = 0
private

◆ _requiredMinRepValue

int32 Quest::_requiredMinRepValue = 0
private

◆ _requiredSkillId

uint32 Quest::_requiredSkillId = 0
private

◆ _requiredSkillPoints

uint32 Quest::_requiredSkillPoints = 0
private

◆ _rewardArenaPoints

int32 Quest::_rewardArenaPoints = 0
private

◆ _rewardArtifactCategoryID

uint32 Quest::_rewardArtifactCategoryID = 0
private

◆ _rewardArtifactXPDifficulty

uint32 Quest::_rewardArtifactXPDifficulty = 0
private

◆ _rewardArtifactXPMultiplier

float Quest::_rewardArtifactXPMultiplier = 0.f
private

◆ _rewardBonusMoney

uint32 Quest::_rewardBonusMoney = 0
private

◆ _rewardHonor

uint32 Quest::_rewardHonor = 0
private

◆ _rewardKillHonor

uint32 Quest::_rewardKillHonor = 0
private

◆ _rewardMailDelay

uint32 Quest::_rewardMailDelay = 0
private

◆ _rewardMailSenderEntry

uint32 Quest::_rewardMailSenderEntry = 0
private

◆ _rewardMailTemplateId

uint32 Quest::_rewardMailTemplateId = 0
private

◆ _rewardMoneyDifficulty

uint32 Quest::_rewardMoneyDifficulty = 0
private

◆ _rewardMoneyMultiplier

float Quest::_rewardMoneyMultiplier = 0.f
private

◆ _rewardReputationMask

uint32 Quest::_rewardReputationMask
private

◆ _rewardSkillId

uint32 Quest::_rewardSkillId = 0
private

◆ _rewardSkillPoints

uint32 Quest::_rewardSkillPoints = 0
private

◆ _rewardSpell

uint32 Quest::_rewardSpell = 0
private

◆ _rewardTitleId

uint32 Quest::_rewardTitleId = 0
private

◆ _rewardXPDifficulty

uint32 Quest::_rewardXPDifficulty = 0
private

◆ _rewardXPMultiplier

float Quest::_rewardXPMultiplier = 0.f
private

◆ _rewChoiceItemsCount

uint32 Quest::_rewChoiceItemsCount = 0
private

◆ _rewCurrencyCount

uint32 Quest::_rewCurrencyCount = 0
private

◆ _rewItemsCount

uint32 Quest::_rewItemsCount = 0
private

◆ _scriptId

uint32 Quest::_scriptId = 0
private

◆ _soundAccept

uint32 Quest::_soundAccept = 0
private

◆ _soundTurnIn

uint32 Quest::_soundTurnIn = 0
private

◆ _sourceItemId

uint32 Quest::_sourceItemId = 0
private

◆ _sourceItemIdCount

uint32 Quest::_sourceItemIdCount = 0
private

◆ _sourceSpellID

uint32 Quest::_sourceSpellID = 0
private

◆ _specialFlags

uint32 Quest::_specialFlags = 0
private

◆ _suggestedPlayers

uint32 Quest::_suggestedPlayers = 0
private

◆ _treasurePickerID

int32 Quest::_treasurePickerID = 0
private

◆ _type

uint32 Quest::_type = 0
private

◆ _usedQuestObjectiveTypes

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

◆ DependentBreadcrumbQuests

std::vector<uint32> Quest::DependentBreadcrumbQuests

◆ DependentPreviousQuests

std::vector<uint32> Quest::DependentPreviousQuests

◆ DetailsEmote

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

◆ DetailsEmoteDelay

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

◆ ItemDrop

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

◆ ItemDropQuantity

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

◆ Objectives

QuestObjectives Quest::Objectives

◆ OfferRewardEmote

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

◆ OfferRewardEmoteDelay

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

◆ QueryData

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

◆ RewardChoiceItemCount

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

◆ RewardChoiceItemDisplayId

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

◆ RewardChoiceItemId

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

◆ RewardChoiceItemType

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

◆ RewardCurrencyCount

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

◆ RewardCurrencyId

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

◆ RewardDisplaySpell

std::vector<QuestRewardDisplaySpell> Quest::RewardDisplaySpell

◆ RewardFactionCapIn

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

◆ RewardFactionId

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

◆ RewardFactionOverride

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

◆ RewardFactionValue

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

◆ RewardItemCount

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

◆ RewardItemId

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

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