Core/Conversations: Conversation actor improvements

* Store NoActorObject in database
* Support adding player as conversation actor using database
* Send actor id in packets

Co-authored-by: funjoker <funjoker109@gmail.com>

Closes #27911
This commit is contained in:
Shauren
2022-04-19 22:15:12 +02:00
parent 428d8dc3b7
commit fda65981c7
6 changed files with 227 additions and 92 deletions

View File

@@ -0,0 +1,7 @@
ALTER TABLE `conversation_actors`
ADD `NoActorObject` TINYINT(3) UNSIGNED NULL DEFAULT '0' AFTER `CreatureDisplayInfoId`,
ADD `ActivePlayerObject` TINYINT(3) UNSIGNED NULL DEFAULT '0' AFTER `NoActorObject`;
DELETE FROM `conversation_actors` WHERE `ConversationId`=13254 AND `Idx`=1;
INSERT INTO `conversation_actors` (`ConversationId`,`ConversationActorId`,`ConversationActorGuid`,`Idx`,`CreatureId`,`CreatureDisplayInfoId`,`NoActorObject`,`ActivePlayerObject`,`VerifiedBuild`) VALUES
(13254,0,0,1,0,0,0,1,40120);