Core/PacketIO: Implemented CMSG_CONVERSATION_LINE_STARTED (#27036)

* Added OnConversationLineStarted hook to ConversationScripts
* Added example for Defender of Azeroth conversation
This commit is contained in:
ModoX
2021-10-12 00:16:20 +02:00
committed by GitHub
parent 9b036b8fe0
commit 6d9ce8e8ba
10 changed files with 94 additions and 2 deletions

View File

@@ -2171,6 +2171,15 @@ void ScriptMgr::OnConversationCreate(Conversation* conversation, Unit* creator)
tmpscript->OnConversationCreate(conversation, creator);
}
void ScriptMgr::OnConversationLineStarted(Conversation* conversation, uint32 lineId, Player* sender)
{
ASSERT(conversation);
ASSERT(sender);
GET_SCRIPT(ConversationScript, conversation->GetScriptId(), tmpscript);
tmpscript->OnConversationLineStarted(conversation, lineId, sender);
}
// Scene
void ScriptMgr::OnSceneStart(Player* player, uint32 sceneInstanceID, SceneTemplate const* sceneTemplate)
{