mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
[9686] Implement support weekly quests cooldowns.
Part code provided by zhenya. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
e45d165a8e
commit
fdddf9188a
13 changed files with 197 additions and 11 deletions
|
|
@ -610,7 +610,7 @@ uint32 WorldSession::getDialogStatus(Player *pPlayer, Object* questgiver, uint32
|
|||
result2 = DIALOG_STATUS_REWARD_REP;
|
||||
else if (pPlayer->getLevel() <= pPlayer->GetQuestLevelForPlayer(pQuest) + sWorld.getConfig(CONFIG_UINT32_QUEST_LOW_LEVEL_HIDE_DIFF) )
|
||||
{
|
||||
if (pQuest->HasFlag(QUEST_FLAGS_DAILY))
|
||||
if (pQuest->HasFlag(QUEST_FLAGS_DAILY) || pQuest->HasFlag(QUEST_FLAGS_WEEKLY))
|
||||
result2 = DIALOG_STATUS_AVAILABLE_REP;
|
||||
else
|
||||
result2 = DIALOG_STATUS_AVAILABLE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue