feat(Core/Creature): Implement quest_greetings table (#10526)

* cherry-pick commit (6dda09818d)

Co-Authored-By: ForesterDev <11771800+ForesterDev@users.noreply.github.com>
Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com>
This commit is contained in:
Kitzunu
2022-03-06 18:19:08 +01:00
committed by GitHub
parent fda8b723de
commit d927ce6fac
8 changed files with 258 additions and 24 deletions

View File

@@ -0,0 +1,27 @@
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1643973891449948100');
DELETE FROM `command` WHERE `name` IN ('reload quest_greeting', 'reload quest_greeting_locale');
INSERT INTO `command` (`name`, `security`, `help`) VALUES
('reload quest_greeting', 3, 'Syntax: .reload quest_greeting\nReload quest_greeting table.'),
('reload quest_greeting_locale', 3, 'Syntax: .reload quest_greeting_locale\nReload quest_greeting_locale table.');
DROP TABLE IF EXISTS `quest_greeting`;
CREATE TABLE `quest_greeting` (
`ID` MEDIUMINT UNSIGNED NOT NULL DEFAULT '0',
`type` TINYINT UNSIGNED NOT NULL DEFAULT '0',
`GreetEmoteType` SMALLINT UNSIGNED NOT NULL DEFAULT '0',
`GreetEmoteDelay` INT UNSIGNED NOT NULL DEFAULT '0',
`Greeting` TEXT,
`VerifiedBuild` SMALLINT NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`,`type`)
) ENGINE=MYISAM DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `quest_greeting_locale`;
CREATE TABLE `quest_greeting_locale` (
`ID` MEDIUMINT UNSIGNED NOT NULL DEFAULT '0',
`type` TINYINT UNSIGNED NOT NULL DEFAULT '0',
`locale` VARCHAR(4) NOT NULL,
`Greeting` TEXT,
`VerifiedBuild` SMALLINT NOT NULL DEFAULT '0',
PRIMARY KEY (`ID`,`type`,`locale`)
) ENGINE=MYISAM DEFAULT CHARSET=utf8mb4;