mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Core/Quests: Update QuestFailedReason enum for 6.2.0
This commit is contained in:
@@ -14959,8 +14959,8 @@ bool Player::SatisfyQuestSkill(Quest const* qInfo, bool msg) const
|
||||
{
|
||||
if (msg)
|
||||
{
|
||||
SendCanTakeQuestResponse(INVALIDREASON_DONT_HAVE_REQ);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestSkill: Sent INVALIDREASON_DONT_HAVE_REQ (questId: %u) because player does not have required skill value.", qInfo->GetQuestId());
|
||||
SendCanTakeQuestResponse(QUEST_ERR_NONE);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestSkill: Sent QUEST_ERR_NONE (questId: %u) because player does not have required skill value.", qInfo->GetQuestId());
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -14975,8 +14975,8 @@ bool Player::SatisfyQuestLevel(Quest const* qInfo, bool msg)
|
||||
{
|
||||
if (msg)
|
||||
{
|
||||
SendCanTakeQuestResponse(INVALIDREASON_QUEST_FAILED_LOW_LEVEL);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestLevel: Sent INVALIDREASON_QUEST_FAILED_LOW_LEVEL (questId: %u) because player does not have required (min) level.", qInfo->GetQuestId());
|
||||
SendCanTakeQuestResponse(QUEST_ERR_FAILED_LOW_LEVEL);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestLevel: Sent QUEST_ERR_FAILED_LOW_LEVEL (questId: %u) because player does not have required (min) level.", qInfo->GetQuestId());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -14984,8 +14984,8 @@ bool Player::SatisfyQuestLevel(Quest const* qInfo, bool msg)
|
||||
{
|
||||
if (msg)
|
||||
{
|
||||
SendCanTakeQuestResponse(INVALIDREASON_DONT_HAVE_REQ); // There doesn't seem to be a specific response for too high player level
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestLevel: Sent INVALIDREASON_QUEST_FAILED_LOW_LEVEL (questId: %u) because player does not have required (max) level.", qInfo->GetQuestId());
|
||||
SendCanTakeQuestResponse(QUEST_ERR_NONE); // There doesn't seem to be a specific response for too high player level
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestLevel: Sent QUEST_ERR_FAILED_LOW_LEVEL (questId: %u) because player does not have required (max) level.", qInfo->GetQuestId());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -15045,8 +15045,8 @@ bool Player::SatisfyQuestPreviousQuest(Quest const* qInfo, bool msg)
|
||||
{
|
||||
if (msg)
|
||||
{
|
||||
SendCanTakeQuestResponse(INVALIDREASON_DONT_HAVE_REQ);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestPreviousQuest: Sent INVALIDREASON_DONT_HAVE_REQ (questId: %u) because player does not have required quest (1).", qInfo->GetQuestId());
|
||||
SendCanTakeQuestResponse(QUEST_ERR_NONE);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestPreviousQuest: Sent QUEST_ERR_NONE (questId: %u) because player does not have required quest (1).", qInfo->GetQuestId());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -15078,8 +15078,8 @@ bool Player::SatisfyQuestPreviousQuest(Quest const* qInfo, bool msg)
|
||||
{
|
||||
if (msg)
|
||||
{
|
||||
SendCanTakeQuestResponse(INVALIDREASON_DONT_HAVE_REQ);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestPreviousQuest: Sent INVALIDREASON_DONT_HAVE_REQ (questId: %u) because player does not have required quest (2).", qInfo->GetQuestId());
|
||||
SendCanTakeQuestResponse(QUEST_ERR_NONE);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestPreviousQuest: Sent QUEST_ERR_NONE (questId: %u) because player does not have required quest (2).", qInfo->GetQuestId());
|
||||
|
||||
}
|
||||
return false;
|
||||
@@ -15094,8 +15094,8 @@ bool Player::SatisfyQuestPreviousQuest(Quest const* qInfo, bool msg)
|
||||
// and negative prev. quests in non-active state
|
||||
if (msg)
|
||||
{
|
||||
SendCanTakeQuestResponse(INVALIDREASON_DONT_HAVE_REQ);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestPreviousQuest: Sent INVALIDREASON_DONT_HAVE_REQ (questId: %u) because player does not have required quest (3).", qInfo->GetQuestId());
|
||||
SendCanTakeQuestResponse(QUEST_ERR_NONE);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestPreviousQuest: Sent QUEST_ERR_NONE (questId: %u) because player does not have required quest (3).", qInfo->GetQuestId());
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -15112,8 +15112,8 @@ bool Player::SatisfyQuestClass(Quest const* qInfo, bool msg) const
|
||||
{
|
||||
if (msg)
|
||||
{
|
||||
SendCanTakeQuestResponse(INVALIDREASON_DONT_HAVE_REQ);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestClass: Sent INVALIDREASON_DONT_HAVE_REQ (questId: %u) because player does not have required class.", qInfo->GetQuestId());
|
||||
SendCanTakeQuestResponse(QUEST_ERR_NONE);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestClass: Sent QUEST_ERR_NONE (questId: %u) because player does not have required class.", qInfo->GetQuestId());
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -15131,8 +15131,8 @@ bool Player::SatisfyQuestRace(Quest const* qInfo, bool msg)
|
||||
{
|
||||
if (msg)
|
||||
{
|
||||
SendCanTakeQuestResponse(INVALIDREASON_QUEST_FAILED_WRONG_RACE);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestRace: Sent INVALIDREASON_QUEST_FAILED_WRONG_RACE (questId: %u) because player does not have required race.", qInfo->GetQuestId());
|
||||
SendCanTakeQuestResponse(QUEST_ERR_FAILED_WRONG_RACE);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestRace: Sent QUEST_ERR_FAILED_WRONG_RACE (questId: %u) because player does not have required race.", qInfo->GetQuestId());
|
||||
|
||||
}
|
||||
return false;
|
||||
@@ -15147,8 +15147,8 @@ bool Player::SatisfyQuestReputation(Quest const* qInfo, bool msg)
|
||||
{
|
||||
if (msg)
|
||||
{
|
||||
SendCanTakeQuestResponse(INVALIDREASON_DONT_HAVE_REQ);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestReputation: Sent INVALIDREASON_DONT_HAVE_REQ (questId: %u) because player does not have required reputation (min).", qInfo->GetQuestId());
|
||||
SendCanTakeQuestResponse(QUEST_ERR_NONE);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestReputation: Sent QUEST_ERR_NONE (questId: %u) because player does not have required reputation (min).", qInfo->GetQuestId());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -15158,8 +15158,8 @@ bool Player::SatisfyQuestReputation(Quest const* qInfo, bool msg)
|
||||
{
|
||||
if (msg)
|
||||
{
|
||||
SendCanTakeQuestResponse(INVALIDREASON_DONT_HAVE_REQ);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestReputation: Sent INVALIDREASON_DONT_HAVE_REQ (questId: %u) because player does not have required reputation (max).", qInfo->GetQuestId());
|
||||
SendCanTakeQuestResponse(QUEST_ERR_NONE);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestReputation: Sent QUEST_ERR_NONE (questId: %u) because player does not have required reputation (max).", qInfo->GetQuestId());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -15172,8 +15172,8 @@ bool Player::SatisfyQuestReputation(Quest const* qInfo, bool msg)
|
||||
{
|
||||
if (msg)
|
||||
{
|
||||
SendCanTakeQuestResponse(INVALIDREASON_DONT_HAVE_REQ);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestReputation: Sent INVALIDREASON_DONT_HAVE_REQ (questId: %u) because player does not have required reputation (ReputationObjective2).", qInfo->GetQuestId());
|
||||
SendCanTakeQuestResponse(QUEST_ERR_NONE);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestReputation: Sent QUEST_ERR_NONE (questId: %u) because player does not have required reputation (ReputationObjective2).", qInfo->GetQuestId());
|
||||
}
|
||||
return false;
|
||||
}**/
|
||||
@@ -15187,8 +15187,8 @@ bool Player::SatisfyQuestStatus(Quest const* qInfo, bool msg)
|
||||
{
|
||||
if (msg)
|
||||
{
|
||||
SendCanTakeQuestResponse(INVALIDREASON_QUEST_ALREADY_ON);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestStatus: Sent INVALIDREASON_QUEST_ALREADY_ON (questId: %u) because player quest status is not NONE.", qInfo->GetQuestId());
|
||||
SendCanTakeQuestResponse(QUEST_ERR_ALREADY_ON1);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestStatus: Sent QUEST_ERR_ALREADY_ON1 (questId: %u) because player quest status is not NONE.", qInfo->GetQuestId());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -15202,8 +15202,8 @@ bool Player::SatisfyQuestConditions(Quest const* qInfo, bool msg)
|
||||
{
|
||||
if (msg)
|
||||
{
|
||||
SendCanTakeQuestResponse(INVALIDREASON_DONT_HAVE_REQ);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestConditions: Sent INVALIDREASON_DONT_HAVE_REQ (questId: %u) because player does not meet conditions.", qInfo->GetQuestId());
|
||||
SendCanTakeQuestResponse(QUEST_ERR_NONE);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestConditions: Sent QUEST_ERR_NONE (questId: %u) because player does not meet conditions.", qInfo->GetQuestId());
|
||||
}
|
||||
TC_LOG_DEBUG("condition", "Player::SatisfyQuestConditions: conditions not met for quest %u", qInfo->GetQuestId());
|
||||
return false;
|
||||
@@ -15217,8 +15217,8 @@ bool Player::SatisfyQuestTimed(Quest const* qInfo, bool msg)
|
||||
{
|
||||
if (msg)
|
||||
{
|
||||
SendCanTakeQuestResponse(INVALIDREASON_QUEST_ONLY_ONE_TIMED);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestTimed: Sent INVALIDREASON_QUEST_ONLY_ONE_TIMED (questId: %u) because player is already on a timed quest.", qInfo->GetQuestId());
|
||||
SendCanTakeQuestResponse(QUEST_ERR_ONLY_ONE_TIMED);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestTimed: Sent QUEST_ERR_ONLY_ONE_TIMED (questId: %u) because player is already on a timed quest.", qInfo->GetQuestId());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -15248,8 +15248,8 @@ bool Player::SatisfyQuestExclusiveGroup(Quest const* qInfo, bool msg)
|
||||
{
|
||||
if (msg)
|
||||
{
|
||||
SendCanTakeQuestResponse(INVALIDREASON_DONT_HAVE_REQ);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestExclusiveGroup: Sent INVALIDREASON_DONT_HAVE_REQ (questId: %u) because player already did daily quests in exclusive group.", qInfo->GetQuestId());
|
||||
SendCanTakeQuestResponse(QUEST_ERR_NONE);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestExclusiveGroup: Sent QUEST_ERR_NONE (questId: %u) because player already did daily quests in exclusive group.", qInfo->GetQuestId());
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -15260,8 +15260,8 @@ bool Player::SatisfyQuestExclusiveGroup(Quest const* qInfo, bool msg)
|
||||
{
|
||||
if (msg)
|
||||
{
|
||||
SendCanTakeQuestResponse(INVALIDREASON_DONT_HAVE_REQ);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestExclusiveGroup: Sent INVALIDREASON_DONT_HAVE_REQ (questId: %u) because player already did quest in exclusive group.", qInfo->GetQuestId());
|
||||
SendCanTakeQuestResponse(QUEST_ERR_NONE);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestExclusiveGroup: Sent QUEST_ERR_NONE (questId: %u) because player already did quest in exclusive group.", qInfo->GetQuestId());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -15280,8 +15280,8 @@ bool Player::SatisfyQuestNextChain(Quest const* qInfo, bool msg)
|
||||
{
|
||||
if (msg)
|
||||
{
|
||||
SendCanTakeQuestResponse(INVALIDREASON_DONT_HAVE_REQ);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestNextChain: Sent INVALIDREASON_DONT_HAVE_REQ (questId: %u) because player already did or started next quest in chain.", qInfo->GetQuestId());
|
||||
SendCanTakeQuestResponse(QUEST_ERR_NONE);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestNextChain: Sent QUEST_ERR_NONE (questId: %u) because player already did or started next quest in chain.", qInfo->GetQuestId());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -15307,8 +15307,8 @@ bool Player::SatisfyQuestPrevChain(Quest const* qInfo, bool msg)
|
||||
{
|
||||
if (msg)
|
||||
{
|
||||
SendCanTakeQuestResponse(INVALIDREASON_DONT_HAVE_REQ);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestNextChain: Sent INVALIDREASON_DONT_HAVE_REQ (questId: %u) because player already did or started next quest in chain.", qInfo->GetQuestId());
|
||||
SendCanTakeQuestResponse(QUEST_ERR_NONE);
|
||||
TC_LOG_DEBUG("misc", "SatisfyQuestNextChain: Sent QUEST_ERR_NONE (questId: %u) because player already did or started next quest in chain.", qInfo->GetQuestId());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -52,19 +52,20 @@ namespace WorldPackets
|
||||
|
||||
enum QuestFailedReason
|
||||
{
|
||||
INVALIDREASON_DONT_HAVE_REQ = 0,
|
||||
INVALIDREASON_QUEST_FAILED_LOW_LEVEL = 1, // You are not high enough level for that quest.
|
||||
INVALIDREASON_QUEST_FAILED_WRONG_RACE = 6, // That quest is not available to your race.
|
||||
INVALIDREASON_QUEST_ALREADY_DONE = 7, // You have completed that quest.
|
||||
INVALIDREASON_QUEST_ONLY_ONE_TIMED = 12, // You can only be on one timed quest at a time.
|
||||
INVALIDREASON_QUEST_ALREADY_ON = 13, // You are already on that quest.
|
||||
INVALIDREASON_QUEST_FAILED_EXPANSION = 16, // This quest requires an expansion enabled account.
|
||||
INVALIDREASON_QUEST_ALREADY_ON2 = 18, // You are already on that quest.
|
||||
INVALIDREASON_QUEST_FAILED_MISSING_ITEMS = 21, // You don't have the required items with you. Check storage.
|
||||
INVALIDREASON_QUEST_FAILED_NOT_ENOUGH_MONEY = 23, // You don't have enough money for that quest.
|
||||
INVALIDREASON_DAILY_QUESTS_REMAINING = 26, // You have already completed 25 daily quests today.
|
||||
INVALIDREASON_QUEST_FAILED_CAIS = 27, // You cannot complete quests once you have reached tired time.
|
||||
INVALIDREASON_DAILY_QUEST_COMPLETED_TODAY = 29 // You have completed that daily quest today.
|
||||
QUEST_ERR_NONE = 0,
|
||||
QUEST_ERR_FAILED_LOW_LEVEL = 1, // "You are not high enough level for that quest.""
|
||||
QUEST_ERR_FAILED_WRONG_RACE = 6, // "That quest is not available to your race."
|
||||
QUEST_ERR_ALREADY_DONE = 7, // "You have completed that daily quest today."
|
||||
QUEST_ERR_ONLY_ONE_TIMED = 12, // "You can only be on one timed quest at a time"
|
||||
QUEST_ERR_ALREADY_ON1 = 13, // "You are already on that quest"
|
||||
QUEST_ERR_FAILED_EXPANSION = 16, // "This quest requires an expansion enabled account."
|
||||
QUEST_ERR_ALREADY_ON2 = 18, // "You are already on that quest"
|
||||
QUEST_ERR_FAILED_MISSING_ITEMS = 21, // "You don't have the required items with you. Check storage."
|
||||
QUEST_ERR_FAILED_NOT_ENOUGH_MONEY = 23, // "You don't have enough money for that quest"
|
||||
QUEST_ERR_FAILED_CAIS = 24, // "You cannot complete quests once you have reached tired time"
|
||||
QUEST_ERR_ALREADY_DONE_DAILY = 26, // "You have completed that daily quest today."
|
||||
QUEST_ERR_FAILED_SPELL = 28, // "You haven't learned the required spell."
|
||||
QUEST_ERR_HAS_IN_PROGRESS = 30 // "Progress Bar objective not completed"
|
||||
};
|
||||
|
||||
enum QuestShareMessages
|
||||
|
||||
Reference in New Issue
Block a user