Jump to content

[Patch] Skip Objectives/Details if NextQuestInChain autocompletes


Subrosa

Recommended Posts

Description of the feature?

The autocomplete flag(Method=0) is ignored when receiving a quest specified by quest_template/NextQuestInChain and sends players to a blank details/objectives page.

For which repository revision was the patch created?

MaNGOS Zero Revision 1762

Although I haven't personally tested the patch with mangosone or the main mangos branch, I looked at the QuestHandler.cpp of those branches and it appears to be an issue there as well.

Is there a thread in the bug report section or at lighthouse?

no

Who has been writing this patch?

me

--- QuestHandler.cpp.orig       2011-05-31 20:58:01.000000000 -0700 +++ QuestHandler.cpp    2011-06-30 00:45:02.000000000 -0700 @@ -258,7 +258,12 @@                // Send next quest              if (Quest const* nextquest = _player->GetNextQuest(guid, pQuest)) -                _player->PlayerTalkClass->SendQuestGiverQuestDetails(nextquest, guid, true); +            { +                if (nextquest->IsAutoComplete()) +                    _player->PlayerTalkClass->SendQuestGiverOfferReward(nextquest, guid, true); +                else +                    _player->PlayerTalkClass->SendQuestGiverQuestDetails(nextquest, guid, true); +            }          }          else              _player->PlayerTalkClass->SendQuestGiverOfferReward(pQuest, guid, true);

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use