mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
Core/Quests: implement Quest Greeting (DB table quest_greeting)
* Core/Quests: implement Quest Greetings. Partial port 22e230ecec
This commit is contained in:
File diff suppressed because one or more lines are too long
15
sql/updates/auth/3.3.5/2017_10_29_00_auth.sql
Normal file
15
sql/updates/auth/3.3.5/2017_10_29_00_auth.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
DELETE FROM `rbac_permissions` WHERE `id` = 843; -- this id does not exist in TDB 335.63
|
||||
INSERT INTO `rbac_permissions` (`id`,`name`) VALUES
|
||||
(843, 'Command: reload quest_greeting');
|
||||
|
||||
DELETE FROM `rbac_linked_permissions` WHERE `linkedId` = 843;
|
||||
INSERT INTO `rbac_linked_permissions` (`id`,`linkedId`) VALUES
|
||||
(196, 843);
|
||||
|
||||
DELETE FROM `rbac_permissions` WHERE `id` = 867;
|
||||
INSERT INTO `rbac_permissions` (`id`,`name`) VALUES
|
||||
(867, 'Command: reload quest_greeting_locale');
|
||||
|
||||
DELETE FROM `rbac_linked_permissions` WHERE `id` = 867;
|
||||
INSERT INTO `rbac_linked_permissions` (`id`,`linkedId`) VALUES
|
||||
(196, 867);
|
||||
28
sql/updates/world/3.3.5/2017_10_29_01_world_335.sql
Normal file
28
sql/updates/world/3.3.5/2017_10_29_01_world_335.sql
Normal file
@@ -0,0 +1,28 @@
|
||||
DELETE FROM `command` WHERE `name`='reload quest_greeting';
|
||||
INSERT INTO `command` (`name`, `permission`, `help`) VALUES
|
||||
('reload quest_greeting', 843, 'Syntax: .reload quest_greeting\nReload quest_greeting table.');
|
||||
|
||||
DELETE FROM `command` WHERE `name`='reload quest_greeting_locale';
|
||||
INSERT INTO `command` (`name`, `permission`, `help`) VALUES
|
||||
('reload quest_greeting_locale', 867, 'Syntax: .reload quest_greeting_locale\nReload quest_greeting_locale table.');
|
||||
|
||||
DROP TABLE IF EXISTS `quest_greeting`;
|
||||
CREATE TABLE `quest_greeting` (
|
||||
`ID` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
|
||||
`Type` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
|
||||
`GreetEmoteType` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
|
||||
`GreetEmoteDelay` INT(10) UNSIGNED NOT NULL DEFAULT '0',
|
||||
`Greeting` TEXT,
|
||||
`VerifiedBuild` SMALLINT(5) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`ID`,`Type`)
|
||||
) ENGINE=MYISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
DROP TABLE IF EXISTS `quest_greeting_locale`;
|
||||
CREATE TABLE `quest_greeting_locale` (
|
||||
`ID` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
|
||||
`Type` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
|
||||
`locale` VARCHAR(4) NOT NULL,
|
||||
`Greeting` TEXT,
|
||||
`VerifiedBuild` SMALLINT(5) DEFAULT '0',
|
||||
PRIMARY KEY (`ID`,`Type`)
|
||||
) ENGINE=MYISAM DEFAULT CHARSET=utf8;
|
||||
Reference in New Issue
Block a user