Core/Entities : Basic Conversation Implementation (#18010)

This commit is contained in:
Traesh
2017-05-14 11:40:55 +02:00
committed by joschiwald
parent 3e18fcb8fd
commit c73ce93f4c
39 changed files with 777 additions and 19 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,9 @@
DELETE FROM `rbac_permissions` WHERE `id` IN (853, 854);
INSERT INTO `rbac_permissions` (`id`, `name`) VALUES
(853, 'Command: .reload conversation_template'),
(854, 'Command: .debug conversation');
DELETE FROM `rbac_linked_permissions` WHERE `id` = 192 AND `linkedId` IN (853, 854);
INSERT INTO `rbac_linked_permissions` (`id`, `linkedId`) VALUES
(192, 853),
(192, 854);

View File

@@ -0,0 +1,14 @@
DROP TABLE IF EXISTS `conversation_line`;
CREATE TABLE `conversation_line` (
`Id` int (10) UNSIGNED NOT NULL,
`BroadcastTextID` int (10) UNSIGNED NOT NULL,
`SpellVisualKitID` int (10) UNSIGNED NOT NULL,
`Duration` int (10) UNSIGNED NOT NULL,
`NextLineID` smallint (5) UNSIGNED NOT NULL,
`Unk1` smallint (5) UNSIGNED NOT NULL,
`Yell` tinyint (3) UNSIGNED NOT NULL,
`Unk2` tinyint (3) UNSIGNED NOT NULL,
`Unk3` tinyint (3) UNSIGNED NOT NULL,
`VerifiedBuild` int (10) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

View File

@@ -0,0 +1,42 @@
DROP TABLE IF EXISTS `conversation_template`;
CREATE TABLE `conversation_template` (
`Id` INT (10) UNSIGNED NOT NULL,
`FirstLineId` INT (10) UNSIGNED NOT NULL,
`LastLineEndTime` INT (10) UNSIGNED NOT NULL,
`VerifiedBuild` INT (10) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `conversation_actor_template`;
CREATE TABLE `conversation_actor_template` (
`Id` INT (10) UNSIGNED NOT NULL,
`CreatureId` INT (10) UNSIGNED NOT NULL DEFAULT 0,
`CreatureModelId` INT (10) UNSIGNED NOT NULL DEFAULT 0,
`VerifiedBuild` INT (10) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `conversation_line_template`;
CREATE TABLE `conversation_line_template` (
`Id` INT (10) UNSIGNED NOT NULL,
`StartTime` INT (10) UNSIGNED NOT NULL DEFAULT 0,
`UiCameraID` INT (10) UNSIGNED NOT NULL DEFAULT 0,
`ActorIdx` SMALLINT (5) UNSIGNED NOT NULL DEFAULT 0,
`Unk` SMALLINT (5) UNSIGNED NOT NULL DEFAULT 0,
`VerifiedBuild` INT (10) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`Id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `conversation_actors`;
CREATE TABLE `conversation_actors` (
`ConversationId` INT (10) UNSIGNED NOT NULL,
`ConversationActorId` INT (10) UNSIGNED NOT NULL,
`Idx` SMALLINT (5) UNSIGNED NOT NULL DEFAULT 0,
`VerifiedBuild` INT (10) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`ConversationId`, `ConversationActorId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
DELETE FROM `command` WHERE `name` IN ('debug conversation', 'reload conversation_template');
INSERT INTO `command` (`name`, `permission`, `help`) VALUES
('debug conversation', 854, 'Syntax: .debug conversation $conversationId\r\nPlay given conversation.'),
('reload conversation_template', 853, 'Syntax: .reload conversation_template\r\nReload conversation tables.');