![]() |
TrinityCore
|
#include <QuestDef.h>
Static Public Member Functions | |
| static bool | IsTakingQuestEnabled (uint32 questId) |
| static void | AddQuestLevelToTitle (std::string &title, int32 level) |
| static uint32 | RoundXPValue (uint32 xp) |
Friends | |
| class | ObjectMgr |
Definition at line 201 of file QuestDef.h.
| Quest::Quest | ( | Field * | questRecord | ) |
Definition at line 29 of file QuestDef.cpp.
References _allowableRaces, _areaDescription, _flags, _id, _level, _limitTime, _logDescription, _logTitle, _minLevel, _poiContinent, _poiPriority, _poiX, _poiY, _questCompletionLog, _questDescription, _questInfoID, _reqCreatureOrGOcount, _reqItemsCount, _requiredFactionId1, _requiredFactionId2, _requiredFactionValue1, _requiredFactionValue2, _requiredPlayerKills, _rewardArenaPoints, _rewardBonusMoney, _rewardDisplaySpell, _rewardHonor, _rewardKillHonor, _rewardMoney, _rewardNextQuest, _rewardReputationMask, _rewardSpell, _rewardTalents, _rewardTitleId, _rewardXPDifficulty, _rewChoiceItemsCount, _rewItemsCount, _sourceItemId, _suggestedPlayers, _type, _zoneOrSort, Field::GetFloat(), Field::GetInt16(), Field::GetInt32(), Field::GetString(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), ItemDrop, ItemDropQuantity, ObjectiveText, QUEST_ITEM_DROP_COUNT, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_OBJECTIVES_COUNT, QUEST_REWARD_CHOICES_COUNT, QUEST_REWARD_ITEM_COUNT, QUEST_REWARD_REPUTATIONS_COUNT, RequiredItemCount, RequiredItemId, RequiredNpcOrGo, RequiredNpcOrGoCount, RewardChoiceItemCount, RewardChoiceItemId, RewardFactionId, RewardFactionOverride, RewardFactionValue, RewardItemCount, and RewardItemId.
|
static |
Definition at line 489 of file QuestDef.cpp.
| WorldPacket Quest::BuildQueryData | ( | LocaleConstant | loc | ) | const |
Definition at line 382 of file QuestDef.cpp.
References WorldPackets::Quest::QuestInfo::AreaDescription, WorldPackets::Quest::QuestInfo::Flags, GetAreaDescription(), GetBonusTalents(), GetFlags(), ObjectMgr::GetLocaleString(), GetLogDescription(), GetLogTitle(), GetMinLevel(), GetNextQuestInChain(), GetPlayersSlain(), GetPOIContinent(), GetPOIPriority(), GetPOIx(), GetPOIy(), GetQuestCompletionLog(), GetQuestDescription(), GetQuestId(), GetQuestInfoID(), GetQuestLevel(), GetQuestType(), GetRepObjectiveFaction(), GetRepObjectiveFaction2(), GetRepObjectiveValue(), GetRepObjectiveValue2(), GetRewardReputationMask(), GetRewArenaPoints(), GetRewDisplaySpell(), GetRewHonor(), GetRewKillHonor(), GetRewMoneyMaxLevel(), GetRewOrReqMoney(), GetRewSpell(), GetRewTitle(), GetSrcItemId(), GetSuggestedPlayers(), GetXPDifficulty(), GetZoneOrSort(), HasFlag(), WorldPackets::Quest::QueryQuestInfoResponse::Info, ItemDrop, WorldPackets::Quest::QuestInfo::ItemDrop, ItemDropQuantity, WorldPackets::Quest::QuestInfo::ItemDropQuantity, WorldPackets::Quest::QuestInfoChoiceItem::ItemID, WorldPackets::Quest::QuestInfo::LogDescription, WorldPackets::Quest::QuestInfo::LogTitle, WorldPackets::ServerPacket::Move(), ObjectiveText, WorldPackets::Quest::QuestInfo::ObjectiveText, WorldPackets::Quest::QuestInfo::POIContinent, WorldPackets::Quest::QuestInfo::POIPriority, WorldPackets::Quest::QuestInfo::POIx, WorldPackets::Quest::QuestInfo::POIy, WorldPackets::Quest::QuestInfoChoiceItem::Quantity, QUEST_FLAGS_HIDDEN_REWARDS, QUEST_ITEM_OBJECTIVES_COUNT, QUEST_OBJECTIVES_COUNT, QUEST_REWARD_CHOICES_COUNT, QUEST_REWARD_ITEM_COUNT, QUEST_REWARD_REPUTATIONS_COUNT, WorldPackets::Quest::QuestInfo::QuestCompletionLog, WorldPackets::Quest::QuestInfo::QuestDescription, WorldPackets::Quest::QuestInfo::QuestID, WorldPackets::Quest::QuestInfo::QuestInfoID, WorldPackets::Quest::QuestInfo::QuestLevel, WorldPackets::Quest::QuestInfo::QuestMinLevel, WorldPackets::Quest::QuestInfo::QuestSortID, WorldPackets::Quest::QuestInfo::QuestType, WorldPackets::Quest::QuestInfo::RequiredFactionId, WorldPackets::Quest::QuestInfo::RequiredFactionValue, RequiredItemCount, WorldPackets::Quest::QuestInfo::RequiredItemCount, RequiredItemId, WorldPackets::Quest::QuestInfo::RequiredItemId, RequiredNpcOrGo, WorldPackets::Quest::QuestInfo::RequiredNpcOrGo, RequiredNpcOrGoCount, WorldPackets::Quest::QuestInfo::RequiredNpcOrGoCount, WorldPackets::Quest::QuestInfo::RequiredPlayerKills, WorldPackets::Quest::QuestInfo::RewardAmount, WorldPackets::Quest::QuestInfo::RewardArenaPoints, WorldPackets::Quest::QuestInfo::RewardBonusMoney, RewardChoiceItemCount, RewardChoiceItemId, WorldPackets::Quest::QuestInfo::RewardDisplaySpell, WorldPackets::Quest::QuestInfo::RewardFactionFlags, RewardFactionId, WorldPackets::Quest::QuestInfo::RewardFactionID, RewardFactionOverride, WorldPackets::Quest::QuestInfo::RewardFactionOverride, RewardFactionValue, WorldPackets::Quest::QuestInfo::RewardFactionValue, WorldPackets::Quest::QuestInfo::RewardHonor, RewardItemCount, RewardItemId, WorldPackets::Quest::QuestInfo::RewardItems, WorldPackets::Quest::QuestInfo::RewardKillHonor, WorldPackets::Quest::QuestInfo::RewardMoney, WorldPackets::Quest::QuestInfo::RewardNextQuest, WorldPackets::Quest::QuestInfo::RewardSpell, WorldPackets::Quest::QuestInfo::RewardTalents, WorldPackets::Quest::QuestInfo::RewardTitle, WorldPackets::Quest::QuestInfo::RewardXPDifficulty, WorldPackets::ServerPacket::ShrinkToFit(), sObjectMgr, WorldPackets::Quest::QuestInfo::StartItem, WorldPackets::Quest::QuestInfo::SuggestedGroupNum, WorldPackets::Quest::QuestInfo::UnfilteredChoiceItems, and WorldPackets::Quest::QueryQuestInfoResponse::Write().
Referenced by InitializeQueryData(), and PlayerMenu::SendQuestQueryResponse().
| void Quest::BuildQuestRewards | ( | WorldPackets::Quest::QuestRewards & | rewards, |
| Player * | player, | ||
| bool | sendHiddenRewards = false |
||
| ) | const |
Definition at line 240 of file QuestDef.cpp.
References CalculateHonorGain(), GetBonusTalents(), Player::GetQuestLevel(), Player::GetQuestXPReward(), GetRewArenaPoints(), GetRewDisplaySpell(), GetRewOrReqMoney(), GetRewSpell(), GetRewTitle(), HasFlag(), QUEST_FLAGS_HIDDEN_REWARDS, QUEST_REWARD_CHOICES_COUNT, QUEST_REWARD_ITEM_COUNT, QUEST_REWARD_REPUTATIONS_COUNT, WorldPackets::Quest::QuestRewards::RewardArenaPoints, RewardChoiceItemCount, RewardChoiceItemId, WorldPackets::Quest::QuestRewards::RewardDisplaySpell, RewardFactionId, WorldPackets::Quest::QuestRewards::RewardFactionID, RewardFactionOverride, WorldPackets::Quest::QuestRewards::RewardFactionOverride, RewardFactionValue, WorldPackets::Quest::QuestRewards::RewardFactionValue, WorldPackets::Quest::QuestRewards::RewardHonor, RewardItemCount, RewardItemId, WorldPackets::Quest::QuestRewards::RewardItems, WorldPackets::Quest::QuestRewards::RewardMoney, WorldPackets::Quest::QuestRewards::RewardSpell, WorldPackets::Quest::QuestRewards::RewardTalents, WorldPackets::Quest::QuestRewards::RewardTitleId, WorldPackets::Quest::QuestRewards::RewardXPDifficulty, sObjectMgr, and WorldPackets::Quest::QuestRewards::UnfilteredChoiceItems.
Referenced by PlayerMenu::SendQuestGiverOfferReward(), and PlayerMenu::SendQuestGiverQuestDetails().
Definition at line 348 of file QuestDef.cpp.
References TeamContributionPointsEntry::Data, GetRewHonor(), GetRewKillHonor(), GT_MAX_LEVEL, and sTeamContributionPointsStore.
Referenced by BuildQuestRewards(), Player::RewardQuest(), and Player::SendQuestReward().
| bool Quest::CanIncreaseRewardedQuestCounters | ( | ) | const |
Definition at line 369 of file QuestDef.cpp.
References IsDaily(), IsDFQuest(), IsMonthly(), IsRepeatable(), IsSeasonal(), and IsWeekly().
Referenced by Player::_LoadQuestStatusRewarded(), and Player::RewardQuest().
|
inline |
Definition at line 235 of file QuestDef.h.
Referenced by Player::SatisfyQuestClass().
|
inline |
Definition at line 236 of file QuestDef.h.
Referenced by Player::SatisfyQuestRace().
|
inline |
Definition at line 264 of file QuestDef.h.
Referenced by BuildQueryData().
|
inline |
Definition at line 255 of file QuestDef.h.
Referenced by Player::_LoadQuestStatusRewarded(), BuildQueryData(), BuildQuestRewards(), Player::RewardQuest(), and Player::SendQuestReward().
|
inline |
Definition at line 252 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and Player::SatisfyQuestBreadcrumbQuest().
|
inline |
Definition at line 282 of file QuestDef.h.
Referenced by PlayerMenu::SendQuestGiverRequestItems().
|
inline |
Definition at line 284 of file QuestDef.h.
Referenced by PlayerMenu::SendQuestGiverRequestItems().
|
inline |
Definition at line 328 of file QuestDef.h.
Referenced by Player::RemoveRewardedQuest(), Player::SatisfyQuestSeasonal(), and Player::SetSeasonalQuestStatus().
|
inline |
Definition at line 251 of file QuestDef.h.
Referenced by Player::SatisfyQuestDependentPreviousQuests(), and Player::SatisfyQuestExclusiveGroup().
|
inline |
Definition at line 288 of file QuestDef.h.
Referenced by BuildQueryData(), PlayerMenu::SendQuestGiverOfferReward(), PlayerMenu::SendQuestGiverQuestDetails(), and PlayerMenu::SendQuestGiverRequestItems().
|
inline |
Definition at line 281 of file QuestDef.h.
Referenced by PlayerMenu::SendQuestGiverRequestItems().
|
inline |
Definition at line 283 of file QuestDef.h.
Referenced by PlayerMenu::SendQuestGiverRequestItems().
|
inline |
Definition at line 248 of file QuestDef.h.
Referenced by Player::AddQuest().
|
inline |
Definition at line 262 of file QuestDef.h.
Referenced by BuildQueryData(), and PlayerMenu::SendQuestGiverQuestDetails().
|
inline |
Definition at line 261 of file QuestDef.h.
Referenced by BuildQueryData(), LinkValidator< LinkTags::quest >::IsTextValid(), Player::SendQuestConfirmAccept(), PlayerMenu::SendQuestGiverOfferReward(), PlayerMenu::SendQuestGiverQuestDetails(), and PlayerMenu::SendQuestGiverRequestItems().
|
inline |
Definition at line 232 of file QuestDef.h.
Referenced by Player::SatisfyQuestLevel().
|
inline |
Definition at line 231 of file QuestDef.h.
Referenced by BuildQueryData(), Player::CanSeeStartQuest(), and Player::SatisfyQuestLevel().
|
inline |
Definition at line 250 of file QuestDef.h.
|
inline |
Definition at line 253 of file QuestDef.h.
Referenced by BuildQueryData(), and Player::GetNextQuest().
|
inline |
Definition at line 265 of file QuestDef.h.
Referenced by PlayerMenu::SendQuestGiverOfferReward().
|
inline |
Definition at line 254 of file QuestDef.h.
Referenced by BuildQueryData(), Player::CanCompleteQuest(), quest_commandscript::HandleQuestComplete(), Player::KilledPlayerCreditForQuest(), and Player::SendQuestUpdateAddPlayer().
|
inline |
Definition at line 277 of file QuestDef.h.
Referenced by BuildQueryData().
|
inline |
Definition at line 280 of file QuestDef.h.
Referenced by BuildQueryData().
|
inline |
Definition at line 278 of file QuestDef.h.
Referenced by BuildQueryData().
|
inline |
Definition at line 279 of file QuestDef.h.
Referenced by BuildQueryData().
|
inline |
Definition at line 249 of file QuestDef.h.
Referenced by Player::SatisfyQuestPreviousQuest().
|
inline |
Definition at line 267 of file QuestDef.h.
Referenced by BuildQueryData().
|
inline |
Definition at line 263 of file QuestDef.h.
Referenced by BuildQueryData(), and PlayerMenu::SendQuestGiverQuestDetails().
|
inline |
Definition at line 228 of file QuestDef.h.
Referenced by Player::AddQuest(), Player::AddQuestAndCheckCompletion(), Player::AdjustQuestReqItemCount(), BuildQueryData(), Player::CanRewardQuest(), Player::CanRewardQuest(), Player::CanSeeStartQuest(), Player::CanTakeQuest(), Player::GetQuestDialogStatus(), Player::GetQuestXPReward(), Player::GiveQuestSourceItem(), quest_commandscript::HandleQuestAdd(), quest_commandscript::HandleQuestComplete(), quest_commandscript::HandleQuestRemove(), quest_commandscript::HandleQuestReward(), LinkValidator< LinkTags::quest >::IsTextValid(), EscortAI::JustDied(), Player::KilledPlayerCreditForQuest(), ObjectMgr::LoadQuests(), Condition::Meets(), npc_koltira_deathweaver::OnQuestAccept(), npc_chromie_start::npc_chromie_startAI::OnQuestAccept(), npc_belnistrasz::npc_belnistraszAI::OnQuestAccept(), npc_chicken_cluck::npc_chicken_cluckAI::OnQuestAccept(), SmartAI::OnQuestAccept(), SmartGameObjectAI::OnQuestAccept(), npc_rinji::npc_rinjiAI::OnQuestAccept(), npc_tyrion::npc_tyrionAI::OnQuestAccept(), npc_calvin_montague::npc_calvin_montagueAI::OnQuestAccept(), npc_ruul_snowhoof::npc_ruul_snowhoofAI::OnQuestAccept(), npc_muglash::npc_muglashAI::OnQuestAccept(), npc_magwin::npc_magwinAI::OnQuestAccept(), npc_demolitionist_legoso::npc_demolitionist_legosoAI::OnQuestAccept(), npc_kerlonian::npc_kerlonianAI::OnQuestAccept(), npc_prospector_remtravel::npc_prospector_remtravelAI::OnQuestAccept(), npc_shenthul::npc_shenthulAI::OnQuestAccept(), go_crystalline_tear::go_crystalline_tearAI::OnQuestAccept(), npc_tooga::npc_toogaAI::OnQuestAccept(), npc_gilthares::npc_giltharesAI::OnQuestAccept(), npc_ranshalla::npc_ranshallaAI::OnQuestAccept(), npc_emily::OnQuestAccept(), npc_daegarn::OnQuestAccept(), npc_maghar_captive::npc_maghar_captiveAI::OnQuestAccept(), npc_kurenai_captive::npc_kurenai_captiveAI::OnQuestAccept(), npc_earthmender_wilda::npc_earthmender_wildaAI::OnQuestAccept(), go_crystal_prison::go_crystal_prisonAI::OnQuestAccept(), npc_doctor::npc_doctorAI::OnQuestAccept(), npc_rocknot::npc_rocknotAI::OnQuestReward(), boss_apothecary_hummel::OnQuestReward(), npc_the_etymidian::npc_the_etymidianAI::OnQuestReward(), npc_chicken_cluck::npc_chicken_cluckAI::OnQuestReward(), SmartAI::OnQuestReward(), SmartGameObjectAI::OnQuestReward(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::OnQuestReward(), Player::RewardQuest(), Player::SatisfyQuestBreadcrumbQuest(), Player::SatisfyQuestClass(), Player::SatisfyQuestConditions(), Player::SatisfyQuestDay(), Player::SatisfyQuestDependentBreadcrumbQuests(), Player::SatisfyQuestDependentPreviousQuests(), Player::SatisfyQuestExclusiveGroup(), Player::SatisfyQuestLevel(), Player::SatisfyQuestMonth(), Player::SatisfyQuestPreviousQuest(), Player::SatisfyQuestRace(), Player::SatisfyQuestReputation(), Player::SatisfyQuestSeasonal(), Player::SatisfyQuestSkill(), Player::SatisfyQuestStatus(), Player::SatisfyQuestTimed(), Player::SatisfyQuestWeek(), Player::SendQuestConfirmAccept(), PlayerMenu::SendQuestGiverOfferReward(), PlayerMenu::SendQuestGiverQuestDetails(), PlayerMenu::SendQuestGiverRequestItems(), PlayerMenu::SendQuestQueryResponse(), Player::SendQuestReward(), Player::SendQuestUpdateAddCreatureOrGo(), Player::SendQuestUpdateAddPlayer(), and EscortAI::Start().
|
inline |
Definition at line 234 of file QuestDef.h.
Referenced by BuildQueryData().
|
inline |
Definition at line 233 of file QuestDef.h.
Referenced by BuildQueryData(), and Player::GetQuestLevel().
|
inline |
Definition at line 229 of file QuestDef.h.
Referenced by BuildQueryData(), and ObjectMgr::LoadQuests().
|
inline |
Definition at line 239 of file QuestDef.h.
Referenced by Player::AddQuest(), BuildQueryData(), Player::CanCompleteQuest(), and quest_commandscript::HandleQuestComplete().
|
inline |
Definition at line 241 of file QuestDef.h.
Referenced by Player::AddQuest(), BuildQueryData(), quest_commandscript::HandleQuestComplete(), and Player::SatisfyQuestReputation().
|
inline |
Definition at line 240 of file QuestDef.h.
Referenced by BuildQueryData(), Player::CanCompleteQuest(), and quest_commandscript::HandleQuestComplete().
|
inline |
Definition at line 242 of file QuestDef.h.
Referenced by BuildQueryData(), quest_commandscript::HandleQuestComplete(), and Player::SatisfyQuestReputation().
|
inline |
Definition at line 323 of file QuestDef.h.
|
inline |
Definition at line 322 of file QuestDef.h.
Referenced by WorldSession::HandleQuestgiverCompleteQuest(), and PlayerMenu::SendQuestGiverRequestItems().
|
inline |
Definition at line 266 of file QuestDef.h.
Referenced by PlayerMenu::SendQuestGiverRequestItems().
|
inline |
Definition at line 245 of file QuestDef.h.
Referenced by Player::SatisfyQuestReputation().
|
inline |
Definition at line 246 of file QuestDef.h.
Referenced by Player::SatisfyQuestReputation().
|
inline |
Definition at line 243 of file QuestDef.h.
Referenced by Player::SatisfyQuestReputation().
|
inline |
Definition at line 244 of file QuestDef.h.
Referenced by Player::SatisfyQuestReputation().
|
inline |
Definition at line 237 of file QuestDef.h.
Referenced by Player::SatisfyQuestSkill().
|
inline |
Definition at line 238 of file QuestDef.h.
Referenced by Player::SatisfyQuestSkill().
|
inline |
Definition at line 290 of file QuestDef.h.
Referenced by BuildQueryData().
|
inline |
Definition at line 256 of file QuestDef.h.
Referenced by BuildQueryData(), BuildQuestRewards(), Player::RewardQuest(), and Player::SendQuestReward().
|
inline |
Definition at line 324 of file QuestDef.h.
Referenced by Player::CanRewardQuest(), and Player::RewardQuest().
|
inline |
Definition at line 271 of file QuestDef.h.
Referenced by BuildQueryData(), BuildQuestRewards(), and Player::RewardQuest().
|
inline |
Definition at line 268 of file QuestDef.h.
Referenced by BuildQueryData(), and CalculateHonorGain().
|
inline |
Definition at line 325 of file QuestDef.h.
Referenced by Player::CanRewardQuest(), Player::RewardQuest(), WorldSession::SendLfgPlayerLockInfo(), and WorldSession::SendLfgPlayerReward().
|
inline |
Definition at line 269 of file QuestDef.h.
Referenced by BuildQueryData(), and CalculateHonorGain().
|
inline |
Definition at line 274 of file QuestDef.h.
Referenced by Player::RewardQuest().
|
inline |
Definition at line 275 of file QuestDef.h.
Referenced by Player::RewardQuest().
|
inline |
Definition at line 273 of file QuestDef.h.
Referenced by Player::RewardQuest().
| uint32 Quest::GetRewMoneyMaxLevel | ( | ) | const |
Definition at line 300 of file QuestDef.cpp.
References _rewardBonusMoney, HasFlag(), QUEST_FLAGS_NO_MONEY_FROM_XP, RATE_MONEY_MAX_LEVEL_QUEST, and sWorld.
Referenced by BuildQueryData(), and GetRewOrReqMoney().
Definition at line 287 of file QuestDef.cpp.
References _rewardMoney, GetRewMoneyMaxLevel(), Player::IsMaxLevel(), RATE_MONEY_QUEST, and sWorld.
Referenced by BuildQueryData(), BuildQuestRewards(), Player::CanCompleteQuest(), Player::CanRewardQuest(), quest_commandscript::HandleQuestComplete(), Player::MoneyChanged(), Player::RewardQuest(), WorldSession::SendLfgPlayerLockInfo(), WorldSession::SendLfgPlayerReward(), PlayerMenu::SendQuestGiverRequestItems(), and Player::SendQuestReward().
|
inline |
Definition at line 272 of file QuestDef.h.
Referenced by BuildQueryData(), BuildQuestRewards(), Player::LearnQuestRewardedSpells(), and Player::RewardQuest().
|
inline |
Definition at line 276 of file QuestDef.h.
Referenced by Player::_LoadQuestStatusRewarded(), BuildQueryData(), BuildQuestRewards(), ObjectMgr::LoadQuests(), and Player::RewardQuest().
|
inline |
Definition at line 289 of file QuestDef.h.
|
inline |
Definition at line 259 of file QuestDef.h.
Referenced by Player::CanAddQuest(), Player::GiveQuestSourceItem(), ObjectMgr::LoadQuests(), and Player::TakeQuestSourceItem().
|
inline |
Definition at line 258 of file QuestDef.h.
Referenced by Player::AddQuestAndCheckCompletion(), BuildQueryData(), Player::CanAddQuest(), Player::GiveQuestSourceItem(), ObjectMgr::LoadQuests(), and Player::TakeQuestSourceItem().
|
inline |
Definition at line 260 of file QuestDef.h.
Referenced by Player::LearnQuestRewardedSpells().
|
inline |
Definition at line 247 of file QuestDef.h.
Referenced by BuildQueryData(), PlayerMenu::SendQuestGiverOfferReward(), PlayerMenu::SendQuestGiverQuestDetails(), and PlayerMenu::SendQuestGiverRequestItems().
|
inline |
Definition at line 339 of file QuestDef.h.
|
inline |
Definition at line 257 of file QuestDef.h.
Referenced by BuildQueryData().
Definition at line 204 of file QuestDef.cpp.
References _level, _rewardXPDifficulty, CONFIG_MIN_QUEST_SCALED_XP_RATIO, QuestXPEntry::Difficulty, Unit::GetLevel(), RoundXPValue(), sQuestXPStore, and sWorld.
Referenced by Player::GetQuestXPReward().
|
inline |
Definition at line 230 of file QuestDef.h.
Referenced by BuildQueryData(), Player::KilledPlayerCredit(), Player::RewardQuest(), and AchievementMgr::UpdateAchievementCriteria().
|
inline |
Definition at line 216 of file QuestDef.h.
Referenced by Player::AddQuest(), BuildQueryData(), BuildQuestRewards(), Player::CanShareQuest(), Spell::EffectQuestClear(), Spell::EffectQuestComplete(), Player::GetNextQuest(), GetRewMoneyMaxLevel(), WorldSession::HandleQuestgiverCompleteQuest(), quest_commandscript::HandleQuestRemove(), Player::HasPvPForcingQuest(), IsAutoAccept(), IsAutoComplete(), and Player::RewardQuest().
|
inline |
Definition at line 218 of file QuestDef.h.
Referenced by Player::_LoadQuestStatus(), Player::AddQuest(), Player::AdjustQuestReqItemCount(), Player::CanCompleteQuest(), Player::CanCompleteRepeatableQuest(), Player::CanRewardQuest(), quest_commandscript::HandleQuestComplete(), Player::ItemAddedQuestCheck(), Player::ItemRemovedQuestCheck(), Player::KillCreditGO(), Player::KilledMonsterCredit(), Player::KilledPlayerCredit(), ObjectMgr::LoadQuestAreaTriggers(), ObjectMgr::LoadQuests(), ObjectMgr::LoadScripts(), Player::SatisfyQuestTimed(), and Player::TalkedToCreature().
| void Quest::InitializeQueryData | ( | ) |
Definition at line 376 of file QuestDef.cpp.
References BuildQueryData(), LOCALE_enUS, QueryData, and TOTAL_LOCALES.
| bool Quest::IsAllowedInRaid | ( | Difficulty | difficulty | ) | const |
Definition at line 340 of file QuestDef.cpp.
References CONFIG_QUEST_IGNORE_RAID, IsRaidQuest(), and sWorld.
Referenced by Player::HasQuestForGO(), Player::HasQuestForItem(), Player::KilledMonsterCredit(), and Player::KilledPlayerCredit().
| bool Quest::IsAutoAccept | ( | ) | const |
Definition at line 310 of file QuestDef.cpp.
References CONFIG_QUEST_IGNORE_AUTO_ACCEPT, HasFlag(), QUEST_FLAGS_AUTO_ACCEPT, and sWorld.
Referenced by WorldSession::HandlePushQuestToParty().
| bool Quest::IsAutoComplete | ( | ) | const |
Definition at line 315 of file QuestDef.cpp.
References _type, CONFIG_QUEST_IGNORE_AUTO_COMPLETE, HasFlag(), QUEST_FLAGS_AUTOCOMPLETE, QUEST_TYPE_TURNIN, and sWorld.
Referenced by Player::CanCompleteQuest(), Player::CanRewardQuest(), Player::GetQuestDialogStatus(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestgiverChooseRewardOpcode(), and Player::PrepareQuestMenu().
|
inline |
Definition at line 291 of file QuestDef.h.
References QUEST_FLAGS_DAILY.
Referenced by CanIncreaseRewardedQuestCounters(), Player::GetQuestDialogStatus(), QuestPoolMgr::LoadFromDB(), Player::PrepareQuestMenu(), Player::RewardQuest(), Player::RewardReputation(), and Player::SatisfyQuestDay().
|
inline |
Definition at line 295 of file QuestDef.h.
References QUEST_FLAGS_DAILY, and QUEST_FLAGS_WEEKLY.
Referenced by Player::GetQuestDialogStatus(), WorldSession::HandlePushQuestToParty(), and QuestPoolMgr::LoadFromDB().
|
inline |
Definition at line 298 of file QuestDef.h.
References QUEST_SPECIAL_FLAGS_DF_QUEST.
Referenced by CanIncreaseRewardedQuestCounters(), Player::CanRewardQuest(), Player::GetQuestXPReward(), Player::RewardQuest(), and Player::SatisfyQuestDay().
|
inline |
Definition at line 293 of file QuestDef.h.
References QUEST_SPECIAL_FLAGS_MONTHLY.
Referenced by CanIncreaseRewardedQuestCounters(), Player::GetQuestDialogStatus(), QuestPoolMgr::LoadFromDB(), Player::PrepareQuestMenu(), Player::RewardQuest(), Player::RewardReputation(), and Player::SatisfyQuestMonth().
| bool Quest::IsRaidQuest | ( | Difficulty | difficulty | ) | const |
Definition at line 320 of file QuestDef.cpp.
References _flags, _questInfoID, QUEST_FLAGS_RAID, QUEST_INFO_RAID, QUEST_INFO_RAID_10, QUEST_INFO_RAID_25, RAID_DIFFICULTY_10MAN_HEROIC, RAID_DIFFICULTY_10MAN_NORMAL, RAID_DIFFICULTY_25MAN_HEROIC, and RAID_DIFFICULTY_25MAN_NORMAL.
Referenced by IsAllowedInRaid().
|
inline |
Definition at line 285 of file QuestDef.h.
References QUEST_SPECIAL_FLAGS_REPEATABLE.
Referenced by Player::CanCompleteQuest(), CanIncreaseRewardedQuestCounters(), Player::GetQuestDialogStatus(), Player::GetQuestRewardStatus(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleQuestgiverCompleteQuest(), Player::PrepareQuestMenu(), Player::RewardQuest(), Player::RewardReputation(), and Player::SatisfyQuestExclusiveGroup().
|
inline |
Definition at line 294 of file QuestDef.h.
References QUEST_SORT_BREWFEST, QUEST_SORT_LOVE_IS_IN_THE_AIR, QUEST_SORT_LUNAR_FESTIVAL, QUEST_SORT_MIDSUMMER, QUEST_SORT_NOBLEGARDEN, QUEST_SORT_SEASONAL, and QUEST_SORT_SPECIAL.
Referenced by CanIncreaseRewardedQuestCounters(), Player::GetQuestRewardStatus(), Player::RemoveRewardedQuest(), Player::RewardQuest(), and Player::SatisfyQuestSeasonal().
|
static |
Definition at line 232 of file QuestDef.cpp.
References sQuestPoolMgr.
Referenced by QuestRelationResult::Iterator::_skip(), and QuestRelationResult::HasQuest().
|
inline |
Definition at line 222 of file QuestDef.h.
References QUEST_FLAGS_UNAVAILABLE.
|
inline |
Definition at line 292 of file QuestDef.h.
References QUEST_FLAGS_WEEKLY.
Referenced by CanIncreaseRewardedQuestCounters(), Player::GetQuestDialogStatus(), QuestPoolMgr::LoadFromDB(), Player::PrepareQuestMenu(), Player::RewardQuest(), Player::RewardReputation(), and Player::SatisfyQuestWeek().
| void Quest::LoadQuestDetails | ( | Field * | fields | ) |
Definition at line 123 of file QuestDef.cpp.
References DetailsEmote, DetailsEmoteDelay, Field::GetUInt16(), QUEST_EMOTE_COUNT, sEmotesStore, and TC_LOG_ERROR.
Referenced by ObjectMgr::LoadQuests().
| void Quest::LoadQuestMailSender | ( | Field * | fields | ) |
Definition at line 199 of file QuestDef.cpp.
References _rewardMailSenderEntry, and Field::GetUInt32().
Referenced by ObjectMgr::LoadQuests().
| void Quest::LoadQuestOfferReward | ( | Field * | fields | ) |
Definition at line 156 of file QuestDef.cpp.
References _offerRewardText, Field::GetString(), Field::GetUInt16(), OfferRewardEmote, OfferRewardEmoteDelay, QUEST_EMOTE_COUNT, sEmotesStore, and TC_LOG_ERROR.
Referenced by ObjectMgr::LoadQuests().
| void Quest::LoadQuestRequestItems | ( | Field * | fields | ) |
Definition at line 140 of file QuestDef.cpp.
References _emoteOnComplete, _emoteOnCompleteDelay, _emoteOnIncomplete, _emoteOnIncompleteDelay, _requestItemsText, Field::GetStringView(), Field::GetUInt16(), Field::GetUInt32(), sEmotesStore, and TC_LOG_ERROR.
Referenced by ObjectMgr::LoadQuests().
| void Quest::LoadQuestTemplateAddon | ( | Field * | fields | ) |
Definition at line 175 of file QuestDef.cpp.
References _allowableClasses, _breadcrumbForQuestId, _exclusiveGroup, _flags, _maxLevel, _nextQuestID, _prevQuestID, _requiredMaxRepFaction, _requiredMaxRepValue, _requiredMinRepFaction, _requiredMinRepValue, _requiredSkillId, _requiredSkillPoints, _rewardMailDelay, _rewardMailTemplateId, _sourceItemIdCount, _sourceSpellID, _specialFlags, Field::GetInt32(), Field::GetUInt16(), Field::GetUInt32(), Field::GetUInt8(), QUEST_FLAGS_AUTO_ACCEPT, and QUEST_SPECIAL_FLAGS_AUTO_ACCEPT.
Referenced by ObjectMgr::LoadQuests().
Definition at line 499 of file QuestDef.cpp.
Referenced by GetXPReward().
|
inline |
Definition at line 327 of file QuestDef.h.
Referenced by GameEventMgr::LoadFromDB().
|
inline |
Definition at line 219 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests().
|
friend |
Definition at line 203 of file QuestDef.h.
|
private |
Definition at line 404 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and LoadQuestTemplateAddon().
|
private |
Definition at line 360 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and Quest().
|
private |
Definition at line 379 of file QuestDef.h.
Referenced by Quest().
|
private |
Definition at line 409 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and LoadQuestTemplateAddon().
|
private |
Definition at line 393 of file QuestDef.h.
Referenced by LoadQuestRequestItems().
|
private |
Definition at line 395 of file QuestDef.h.
Referenced by LoadQuestRequestItems().
|
private |
Definition at line 394 of file QuestDef.h.
Referenced by LoadQuestRequestItems().
|
private |
Definition at line 396 of file QuestDef.h.
Referenced by LoadQuestRequestItems().
|
private |
Definition at line 351 of file QuestDef.h.
|
private |
Definition at line 408 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and LoadQuestTemplateAddon().
|
private |
Definition at line 367 of file QuestDef.h.
Referenced by IsRaidQuest(), ObjectMgr::LoadQuests(), LoadQuestTemplateAddon(), and Quest().
|
private |
Definition at line 354 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and Quest().
|
private |
Definition at line 358 of file QuestDef.h.
Referenced by GetXPReward(), and Quest().
|
private |
Definition at line 366 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and Quest().
|
private |
Definition at line 377 of file QuestDef.h.
Referenced by Quest().
|
private |
Definition at line 376 of file QuestDef.h.
Referenced by Quest().
|
private |
Definition at line 403 of file QuestDef.h.
Referenced by LoadQuestTemplateAddon().
|
private |
Definition at line 357 of file QuestDef.h.
Referenced by Quest().
|
private |
Definition at line 407 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and LoadQuestTemplateAddon().
|
private |
Definition at line 400 of file QuestDef.h.
Referenced by LoadQuestOfferReward().
|
private |
Definition at line 387 of file QuestDef.h.
Referenced by Quest().
|
private |
Definition at line 390 of file QuestDef.h.
Referenced by Quest().
|
private |
Definition at line 388 of file QuestDef.h.
Referenced by Quest().
|
private |
Definition at line 389 of file QuestDef.h.
Referenced by Quest().
|
private |
Definition at line 406 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and LoadQuestTemplateAddon().
|
private |
Definition at line 380 of file QuestDef.h.
Referenced by Quest().
|
private |
Definition at line 378 of file QuestDef.h.
Referenced by Quest().
|
private |
Definition at line 359 of file QuestDef.h.
Referenced by IsRaidQuest(), and Quest().
|
private |
Definition at line 348 of file QuestDef.h.
Referenced by Quest().
|
private |
Definition at line 347 of file QuestDef.h.
Referenced by Quest().
|
private |
Definition at line 397 of file QuestDef.h.
Referenced by LoadQuestRequestItems().
|
private |
Definition at line 361 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and Quest().
|
private |
Definition at line 363 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and Quest().
|
private |
Definition at line 362 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and Quest().
|
private |
Definition at line 364 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and Quest().
|
private |
Definition at line 416 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and LoadQuestTemplateAddon().
|
private |
Definition at line 417 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and LoadQuestTemplateAddon().
|
private |
Definition at line 414 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and LoadQuestTemplateAddon().
|
private |
Definition at line 415 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and LoadQuestTemplateAddon().
|
private |
Definition at line 369 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and Quest().
|
private |
Definition at line 412 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and LoadQuestTemplateAddon().
|
private |
Definition at line 413 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and LoadQuestTemplateAddon().
|
private |
Definition at line 371 of file QuestDef.h.
Referenced by Quest().
|
private |
Definition at line 384 of file QuestDef.h.
Referenced by GetRewMoneyMaxLevel(), and Quest().
|
private |
Definition at line 385 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and Quest().
|
private |
Definition at line 381 of file QuestDef.h.
Referenced by Quest().
|
private |
Definition at line 382 of file QuestDef.h.
Referenced by Quest().
|
private |
Definition at line 411 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and LoadQuestTemplateAddon().
|
private |
Definition at line 419 of file QuestDef.h.
Referenced by LoadQuestMailSender(), and ObjectMgr::LoadQuests().
|
private |
Definition at line 410 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and LoadQuestTemplateAddon().
|
private |
Definition at line 383 of file QuestDef.h.
Referenced by GetRewOrReqMoney(), and Quest().
|
private |
Definition at line 373 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and Quest().
|
private |
Definition at line 372 of file QuestDef.h.
Referenced by Quest().
|
private |
Definition at line 386 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and Quest().
|
private |
Definition at line 370 of file QuestDef.h.
Referenced by Quest().
|
private |
Definition at line 368 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and Quest().
|
private |
Definition at line 374 of file QuestDef.h.
Referenced by GetXPReward(), and Quest().
|
private |
Definition at line 349 of file QuestDef.h.
Referenced by Quest().
|
private |
Definition at line 350 of file QuestDef.h.
Referenced by Quest().
|
private |
Definition at line 375 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and Quest().
|
private |
Definition at line 418 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and LoadQuestTemplateAddon().
|
private |
Definition at line 405 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and LoadQuestTemplateAddon().
|
private |
Definition at line 420 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and LoadQuestTemplateAddon().
|
private |
Definition at line 365 of file QuestDef.h.
Referenced by Quest().
|
private |
Definition at line 355 of file QuestDef.h.
Referenced by IsAutoComplete(), and Quest().
|
private |
Definition at line 422 of file QuestDef.h.
|
private |
Definition at line 356 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and Quest().
| std::vector<uint32> Quest::DependentBreadcrumbQuests |
Definition at line 342 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and Player::SatisfyQuestDependentBreadcrumbQuests().
| std::vector<uint32> Quest::DependentPreviousQuests |
Definition at line 341 of file QuestDef.h.
Referenced by ObjectMgr::LoadQuests(), and Player::SatisfyQuestDependentPreviousQuests().
| std::array<uint32, QUEST_EMOTE_COUNT> Quest::DetailsEmote = { } |
Definition at line 317 of file QuestDef.h.
Referenced by LoadQuestDetails(), and PlayerMenu::SendQuestGiverQuestDetails().
| std::array<uint32, QUEST_EMOTE_COUNT> Quest::DetailsEmoteDelay = { } |
Definition at line 318 of file QuestDef.h.
Referenced by LoadQuestDetails(), and PlayerMenu::SendQuestGiverQuestDetails().
| std::array<uint32, QUEST_ITEM_DROP_COUNT> Quest::ItemDrop = { } |
Definition at line 306 of file QuestDef.h.
Referenced by BuildQueryData(), Player::HasQuestForItem(), ObjectMgr::LoadQuests(), Quest(), and Player::RewardQuest().
| std::array<uint32, QUEST_ITEM_DROP_COUNT> Quest::ItemDropQuantity = { } |
Definition at line 307 of file QuestDef.h.
Referenced by BuildQueryData(), Player::HasQuestForItem(), ObjectMgr::LoadQuests(), Quest(), and Player::RewardQuest().
| std::array<std::string, QUEST_OBJECTIVES_COUNT> Quest::ObjectiveText |
Definition at line 303 of file QuestDef.h.
Referenced by BuildQueryData(), and Quest().
| std::array<uint32, QUEST_EMOTE_COUNT> Quest::OfferRewardEmote = { } |
Definition at line 319 of file QuestDef.h.
Referenced by LoadQuestOfferReward(), and PlayerMenu::SendQuestGiverOfferReward().
| std::array<uint32, QUEST_EMOTE_COUNT> Quest::OfferRewardEmoteDelay = { } |
Definition at line 320 of file QuestDef.h.
Referenced by LoadQuestOfferReward(), and PlayerMenu::SendQuestGiverOfferReward().
| WorldPacket Quest::QueryData[TOTAL_LOCALES] |
Definition at line 343 of file QuestDef.h.
Referenced by InitializeQueryData(), and PlayerMenu::SendQuestQueryResponse().
| std::array<uint32, QUEST_ITEM_OBJECTIVES_COUNT> Quest::RequiredItemCount = { } |
Definition at line 305 of file QuestDef.h.
Referenced by Player::AdjustQuestReqItemCount(), BuildQueryData(), Player::CanCompleteQuest(), Player::CanCompleteRepeatableQuest(), Player::CanRewardQuest(), quest_commandscript::HandleQuestComplete(), Player::HasQuestForItem(), Player::ItemAddedQuestCheck(), Player::ItemRemovedQuestCheck(), ObjectMgr::LoadQuests(), Quest(), Player::RewardQuest(), and PlayerMenu::SendQuestGiverRequestItems().
| std::array<uint32, QUEST_ITEM_OBJECTIVES_COUNT> Quest::RequiredItemId = { } |
Definition at line 304 of file QuestDef.h.
Referenced by Player::AddQuestAndCheckCompletion(), Player::AdjustQuestReqItemCount(), BuildQueryData(), Player::CanCompleteRepeatableQuest(), Player::CanRewardQuest(), quest_commandscript::HandleQuestComplete(), Player::HasQuestForItem(), Player::ItemAddedQuestCheck(), Player::ItemRemovedQuestCheck(), ObjectMgr::LoadQuests(), Quest(), Player::RewardQuest(), and PlayerMenu::SendQuestGiverRequestItems().
| std::array<int32, QUEST_OBJECTIVES_COUNT> Quest::RequiredNpcOrGo = { } |
Definition at line 308 of file QuestDef.h.
Referenced by BuildQueryData(), Player::CanCompleteQuest(), Player::GetReqKillOrCastCurrentCount(), quest_commandscript::HandleQuestComplete(), Player::HasQuestForGO(), ConditionMgr::isConditionTypeValid(), Player::KillCreditGO(), Player::KilledMonsterCredit(), ObjectMgr::LoadQuests(), Quest(), Player::SendQuestUpdateAddCreatureOrGo(), npc_jungle_punch_target::SpellHit(), and Player::TalkedToCreature().
| std::array<uint32, QUEST_OBJECTIVES_COUNT> Quest::RequiredNpcOrGoCount = { } |
Definition at line 309 of file QuestDef.h.
Referenced by BuildQueryData(), Player::CanCompleteQuest(), quest_commandscript::HandleQuestComplete(), Player::HasQuestForGO(), ConditionMgr::isConditionTypeValid(), Player::KillCreditGO(), Player::KilledMonsterCredit(), ObjectMgr::LoadQuests(), Quest(), Player::SendQuestUpdateAddCreatureOrGo(), and Player::TalkedToCreature().
| std::array<uint32, QUEST_REWARD_CHOICES_COUNT> Quest::RewardChoiceItemCount = { } |
Definition at line 311 of file QuestDef.h.
Referenced by BuildQueryData(), BuildQuestRewards(), Player::CanRewardQuest(), ObjectMgr::LoadQuests(), Quest(), and Player::RewardQuest().
| std::array<uint32, QUEST_REWARD_CHOICES_COUNT> Quest::RewardChoiceItemId = { } |
Definition at line 310 of file QuestDef.h.
Referenced by BuildQueryData(), BuildQuestRewards(), Player::CanRewardQuest(), ObjectMgr::LoadQuests(), Quest(), and Player::RewardQuest().
| std::array<uint32, QUEST_REWARD_REPUTATIONS_COUNT> Quest::RewardFactionId = { } |
Definition at line 314 of file QuestDef.h.
Referenced by BuildQueryData(), BuildQuestRewards(), ObjectMgr::LoadQuests(), Quest(), and Player::RewardReputation().
| std::array<int32, QUEST_REWARD_REPUTATIONS_COUNT> Quest::RewardFactionOverride = { } |
Definition at line 316 of file QuestDef.h.
Referenced by BuildQueryData(), BuildQuestRewards(), ObjectMgr::LoadQuests(), Quest(), and Player::RewardReputation().
| std::array<int32, QUEST_REWARD_REPUTATIONS_COUNT> Quest::RewardFactionValue = { } |
Definition at line 315 of file QuestDef.h.
Referenced by BuildQueryData(), BuildQuestRewards(), ObjectMgr::LoadQuests(), Quest(), and Player::RewardReputation().
| std::array<uint32, QUEST_REWARD_ITEM_COUNT> Quest::RewardItemCount = { } |
Definition at line 313 of file QuestDef.h.
Referenced by BuildQueryData(), BuildQuestRewards(), Player::CanRewardQuest(), ObjectMgr::LoadQuests(), Quest(), Player::RewardQuest(), WorldSession::SendLfgPlayerLockInfo(), and WorldSession::SendLfgPlayerReward().
| std::array<uint32, QUEST_REWARD_ITEM_COUNT> Quest::RewardItemId = { } |
Definition at line 312 of file QuestDef.h.
Referenced by BuildQueryData(), BuildQuestRewards(), Player::CanRewardQuest(), ObjectMgr::LoadQuests(), Quest(), Player::RewardQuest(), WorldSession::SendLfgPlayerLockInfo(), and WorldSession::SendLfgPlayerReward().