mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-08 05:01:09 +00:00
[HOT FIX] MS build issues regarding folder / command lenght usage or rc.exe (#2038)
This commit is contained in:
23
src/Ai/Base/Actions/QuestConfirmAcceptAction.cpp
Normal file
23
src/Ai/Base/Actions/QuestConfirmAcceptAction.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#include "QuestConfirmAcceptAction.h"
|
||||
|
||||
#include "WorldPacket.h"
|
||||
|
||||
bool QuestConfirmAcceptAction::Execute(Event event)
|
||||
{
|
||||
WorldPacket packet(event.getPacket());
|
||||
uint32 questId;
|
||||
packet >> questId;
|
||||
|
||||
WorldPacket sendPacket(CMSG_QUEST_CONFIRM_ACCEPT);
|
||||
sendPacket << questId;
|
||||
Quest const* quest = sObjectMgr->GetQuestTemplate(questId);
|
||||
if (!quest || !bot->CanAddQuest(quest, true))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
std::ostringstream out;
|
||||
out << "Quest: " << chat->FormatQuest(quest) << " confirm accept";
|
||||
botAI->TellMaster(out);
|
||||
bot->GetSession()->HandleQuestConfirmAccept(sendPacket);
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user