Core/AI: Implemented conversation ai

Port From (https://github.com/TrinityCore/TrinityCore/commit/309ba22a15e5e0b4321b99f7157ccb18e0adc8dd)
This commit is contained in:
Hondacrx
2025-05-19 17:23:36 -04:00
parent 4f63e81373
commit e44861a629
10 changed files with 160 additions and 126 deletions
+3 -3
View File
@@ -446,9 +446,9 @@ namespace Game
[WorldPacketHandler(ClientOpcodes.ConversationLineStarted)]
void HandleConversationLineStarted(ConversationLineStarted conversationLineStarted)
{
Conversation convo = ObjectAccessor.GetConversation(_player, conversationLineStarted.ConversationGUID);
if (convo != null)
Global.ScriptMgr.OnConversationLineStarted(convo, conversationLineStarted.LineID, _player);
Conversation conversation = ObjectAccessor.GetConversation(_player, conversationLineStarted.ConversationGUID);
if (conversation != null)
conversation.GetAI().OnLineStarted(conversationLineStarted.LineID, _player);
}
[WorldPacketHandler(ClientOpcodes.RequestLatestSplashScreen)]