mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-26 03:42:37 +01:00
Core/Entities : Basic Conversation Implementation (#18010)
This commit is contained in:
File diff suppressed because one or more lines are too long
9
sql/updates/auth/master/2017_05_14_00_auth.sql
Normal file
9
sql/updates/auth/master/2017_05_14_00_auth.sql
Normal 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);
|
||||
14
sql/updates/hotfixes/master/2017_05_14_00_hotfixes.sql
Normal file
14
sql/updates/hotfixes/master/2017_05_14_00_hotfixes.sql
Normal 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;
|
||||
42
sql/updates/world/master/2017_05_14_01_world.sql
Normal file
42
sql/updates/world/master/2017_05_14_01_world.sql
Normal 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.');
|
||||
Reference in New Issue
Block a user