mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-28 21:02:14 +01:00
Core/Player: Added character templates
* Characters with predefined levels can be created * Avaiable factions and classes can be configured * Valid values for `factionGroup` in table `character_template_class` are 3 (Alliance) or 5 (Horde) * Added new permission RBAC_PERM_USE_CHARACTER_TEMPLATES - has to be set, to allow the usage of the templates Closes #13952
This commit is contained in:
9
sql/updates/auth/2015_04_21_00_auth.sql
Normal file
9
sql/updates/auth/2015_04_21_00_auth.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
DELETE FROM `rbac_permissions` WHERE `id` IN (10, 662);
|
||||
INSERT INTO `rbac_permissions` (`id`, `name`) VALUES
|
||||
(10, 'Use character templates'),
|
||||
(662, 'Command: reload character_template');
|
||||
|
||||
DELETE FROM `rbac_linked_permissions` WHERE `linkedId` IN (10, 662);
|
||||
INSERT INTO `rbac_linked_permissions` (`id`, `linkedId`) VALUES
|
||||
(196, 10),
|
||||
(196, 662);
|
||||
16
sql/updates/characters/2015_04_21_00_characters.sql
Normal file
16
sql/updates/characters/2015_04_21_00_characters.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
DROP TABLE IF EXISTS `character_template`;
|
||||
CREATE TABLE IF NOT EXISTS `character_template` (
|
||||
`id` int(10) unsigned NOT NULL,
|
||||
`name` varchar(70) NOT NULL,
|
||||
`description` varchar(100) NOT NULL,
|
||||
`level` tinyint(3) unsigned NOT NULL DEFAULT '1',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
DROP TABLE IF EXISTS `character_template_class`;
|
||||
CREATE TABLE IF NOT EXISTS `character_template_class` (
|
||||
`templateId` int(10) unsigned NOT NULL,
|
||||
`factionGroup` tinyint(3) unsigned NOT NULL COMMENT '3 - Alliance, 5 - Horde',
|
||||
`class` tinyint(3) unsigned NOT NULL,
|
||||
PRIMARY KEY (`templateId`,`factionGroup`,`class`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
Reference in New Issue
Block a user