Core/Quests: Implemented player choice rewards

This commit is contained in:
Shauren
2017-12-31 18:37:09 +01:00
parent 89c91c271b
commit 66621a85e9
17 changed files with 717 additions and 359 deletions

View File

@@ -0,0 +1,7 @@
DELETE FROM `rbac_permissions` WHERE `id`=869;
INSERT INTO `rbac_permissions` (`id`,`name`) VALUES
(869,'Command: debug send playerchoice');
DELETE FROM `rbac_linked_permissions` WHERE `linkedId`=869;
INSERT INTO `rbac_linked_permissions` (`id`,`linkedId`) VALUES
(196,869);

View File

@@ -1,5 +0,0 @@
INSERT INTO `rbac_permissions` (id, NAME) VALUES
(869, "Command: debug send playerchoice");
INSERT INTO `rbac_linked_permissions` (id, linkedId) VALUES
(192, 869);

View File

@@ -0,0 +1,121 @@
DELETE FROM `command` WHERE `name` IN ('debug send playerchoice');
INSERT INTO `command` (`name`,`permission`,`help`) VALUES
('debug send playerchoice', 869, 'Syntax: .debug send playerchoice $choiceId\r\nSend given choice to player.');
--
-- Table structure for table `playerchoice`
--
DROP TABLE IF EXISTS `playerchoice`;
CREATE TABLE `playerchoice` (
`ChoiceId` int(11) NOT NULL,
`Question` varchar(255),
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ChoiceId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for table `playerchoice_locale`
--
DROP TABLE IF EXISTS `playerchoice_locale`;
CREATE TABLE `playerchoice_locale` (
`ChoiceId` int(11) NOT NULL,
`locale` varchar(4) NOT NULL,
`Question` varchar(255),
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ChoiceId`,`locale`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for table `playerchoice_response`
--
DROP TABLE IF EXISTS `playerchoice_response`;
CREATE TABLE `playerchoice_response` (
`ChoiceId` int(11) NOT NULL,
`ResponseId` int(11) NOT NULL,
`Index` int(10) UNSIGNED NOT NULL,
`ChoiceArtFileId` int(11) NOT NULL DEFAULT '0',
`Header` varchar(511) NOT NULL,
`Answer` varchar(511) NOT NULL,
`Description` varchar(2047) NOT NULL,
`Confirmation` varchar(127) NOT NULL,
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ChoiceId`,`ResponseId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for table `playerchoice_response_locale`
--
DROP TABLE IF EXISTS `playerchoice_response_locale`;
CREATE TABLE `playerchoice_response_locale` (
`ChoiceId` int(11) NOT NULL,
`ResponseId` int(11) NOT NULL,
`locale` varchar(4) NOT NULL,
`Header` varchar(511) NOT NULL DEFAULT '',
`Answer` varchar(511) NOT NULL DEFAULT '',
`Description` varchar(2047) NOT NULL DEFAULT '',
`Confirmation` varchar(127) NOT NULL DEFAULT '',
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ChoiceID`,`ResponseID`,`locale`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for table `playerchoice_response_reward`
--
DROP TABLE IF EXISTS `playerchoice_response_reward`;
CREATE TABLE `playerchoice_response_reward` (
`ChoiceId` int(11) NOT NULL,
`ResponseId` int(11) NOT NULL,
`TitleId` int(11) NOT NULL DEFAULT '0',
`PackageId` int(11) NOT NULL DEFAULT '0',
`SkillLineId` int(10) UNSIGNED NOT NULL DEFAULT '0',
`SkillPointCount` int(10) UNSIGNED NOT NULL DEFAULT '0',
`ArenaPointCount` int(10) UNSIGNED NOT NULL DEFAULT '0',
`HonorPointCount` int(10) UNSIGNED NOT NULL DEFAULT '0',
`Money` bigint(20) UNSIGNED NOT NULL DEFAULT '0',
`Xp` int(10) UNSIGNED NOT NULL DEFAULT '0',
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ChoiceId`, `ResponseId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for table `playerchoice_response_reward_currency`
--
DROP TABLE IF EXISTS `playerchoice_response_reward_currency`;
CREATE TABLE `playerchoice_response_reward_currency` (
`ChoiceId` int(11) NOT NULL,
`ResponseId` int(11) NOT NULL,
`Index` int(10) UNSIGNED NOT NULL,
`CurrencyId` int(10) UNSIGNED NOT NULL DEFAULT '0',
`Quantity` int(11) NOT NULL DEFAULT '0',
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ChoiceId`, `ResponseId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for table `playerchoice_response_reward_faction`
--
DROP TABLE IF EXISTS `playerchoice_response_reward_faction`;
CREATE TABLE `playerchoice_response_reward_faction` (
`ChoiceId` int(11) NOT NULL,
`ResponseId` int(11) NOT NULL,
`Index` int(10) UNSIGNED NOT NULL,
`FactionId` int(10) UNSIGNED NOT NULL DEFAULT '0',
`Quantity` int(11) NOT NULL DEFAULT '0',
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ChoiceId`, `ResponseId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for table `playerchoice_response_reward_item`
--
DROP TABLE IF EXISTS `playerchoice_response_reward_item`;
CREATE TABLE `playerchoice_response_reward_item` (
`ChoiceId` int(11) NOT NULL,
`ResponseId` int(11) NOT NULL,
`Index` int(10) UNSIGNED NOT NULL,
`ItemId` int(10) UNSIGNED NOT NULL DEFAULT '0',
`BonusListIDs` text,
`Quantity` int(11) NOT NULL DEFAULT '0',
`VerifiedBuild` smallint(6) NOT NULL DEFAULT '0',
PRIMARY KEY (`ChoiceId`, `ResponseId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

View File

@@ -1,83 +0,0 @@
DELETE FROM `command` WHERE `name` IN ('debug send playerchoice');
INSERT INTO `command` (`name`, `permission`, `help`) VALUES
('debug send playerchoice', 869, 'Syntax: .debug send playerchoice $choiceId\r\nSend given choice to player.');
DROP TABLE IF EXISTS `playerchoice`;
CREATE TABLE `playerchoice` (
`ChoiceID` INT (10) NOT NULL,
`Question` VARCHAR (255),
PRIMARY KEY (`ChoiceID`)
);
INSERT INTO playerchoice VALUES (231, "TODO");
DROP TABLE IF EXISTS `playerchoice_locale`;
CREATE TABLE `playerchoice_locale` (
`ChoiceID` INT (10) NOT NULL,
`locale` VARCHAR (4) NOT NULL,
`Question` VARCHAR (255),
PRIMARY KEY (`ChoiceID`, `locale`)
);
INSERT INTO playerchoice_locale VALUES (231, "frFR", "Quelle spécialisation de chasseur de démons voulez-vous apprendre ?");
DROP TABLE IF EXISTS `playerchoice_response`;
CREATE TABLE `playerchoice_response` (
`ChoiceID` INT (10) NOT NULL,
`ResponseID` INT (10) NOT NULL,
`ChoiceArtFileID` INT (10),
`Header` TEXT,
`Answer` TEXT,
`Description` TEXT,
`Confirmation` TEXT,
PRIMARY KEY (`ChoiceID`, `ResponseID`)
);
INSERT INTO playerchoice_response VALUES
(231, 478, 1274664, "TODO", "TODO", "TODO", ""),
(231, 479, 1274665, "TODO", "TODO", "TODO", "");
DROP TABLE IF EXISTS `playerchoice_response_locale`;
CREATE TABLE `playerchoice_response_locale` (
`ChoiceID` INT (10) NOT NULL,
`ResponseID` INT (10) NOT NULL,
`locale` VARCHAR (4) NOT NULL,
`Header` TEXT,
`Answer` TEXT,
`Description` TEXT,
`Confirmation` TEXT,
PRIMARY KEY (`ChoiceID`, `ResponseID`, `locale`)
);
INSERT INTO playerchoice_response_locale VALUES
(231, 478, "frFR", "Dévastation", "Dévastation", "Conserver votre spécialisation : Dévastation.
Les chasseurs de démons Dévastation peuvent utiliser Métamorphose pour se transformer en démons ailés. Ils se concentrent sur les dégâts en mêlée.
Choisir Dévastation confère |cFFFF0000|Hspell:162264|h[Métamorphose]|h|r et |cFFFF0000|Hspell:185164|h[Maîtrise : Présence démoniaque]|h|r.", ""),
(231, 479, "frFR", "Vengeance", "Vengeance", "Changer de spécialisation : Vengeance.
Les chasseurs de démons Vengeance peuvent utiliser Métamorphose pour se transformer en démons couverts de pointes. Ils se concentrent sur le rôle de tank.
Choisir Vengeance confère |cFFFF0000|Hspell:187827|h[Métamorphose]|h|r et |cFFFF0000|Hspell:203747|h[Maîtrise : Gangresang]|h|r.
Votre technique |cFFFF0000|Hspell:193921|h[Rayon accablant]|h|r est remplacée par |cFFFF0000|Hspell:203720|h[Pointes démoniaques]|h|r.", "");
DROP TABLE IF EXISTS `playerchoice_response_reward`;
CREATE TABLE `playerchoice_response_reward` (
`ChoiceID` INT (10) NOT NULL,
`ResponseID` INT (10) NOT NULL,
`TitleID` INT (10),
`PackageID` INT (10),
`SkillLineID` INT (10) UNSIGNED,
`SkillPointCount` INT (10) UNSIGNED,
`ArenaPointCount` INT (10) UNSIGNED,
`HonorPointCount` INT (10) UNSIGNED,
`Money` BIGINT (20) UNSIGNED,
`Xp` INT (10) UNSIGNED,
PRIMARY KEY (`ChoiceID`, `ResponseID`)
);
INSERT INTO playerchoice_response_reward VALUES
(231, 478, 0, 0, 0, 0, 0, 0, 0, 0),
(231, 479, 0, 0, 0, 0, 0, 0, 0, 0);