Core/Commands: Added .quest objective complete command to complete single quest objectives
Port From (https://github.com/TrinityCore/TrinityCore/commit/10302dca55ffc7db8c8cfc5b42f68bb082b1e8d7)
This commit is contained in:
@@ -1306,6 +1306,7 @@ INSERT INTO `rbac_linked_permissions` VALUES
|
|||||||
(196,879),
|
(196,879),
|
||||||
(196,881),
|
(196,881),
|
||||||
(196,882),
|
(196,882),
|
||||||
|
(196,883),
|
||||||
(197,232),
|
(197,232),
|
||||||
(197,236),
|
(197,236),
|
||||||
(197,237),
|
(197,237),
|
||||||
@@ -2229,7 +2230,8 @@ INSERT INTO `rbac_permissions` VALUES
|
|||||||
(879,'Command: debug poolstatus'),
|
(879,'Command: debug poolstatus'),
|
||||||
(880,'Command: pdump copy'),
|
(880,'Command: pdump copy'),
|
||||||
(881,'Command: reload vehicle_template'),
|
(881,'Command: reload vehicle_template'),
|
||||||
(882,'Command: reload spell_script_names');
|
(882,'Command: reload spell_script_names'),
|
||||||
|
(883,'Command: quest objective complete');
|
||||||
/*!40000 ALTER TABLE `rbac_permissions` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `rbac_permissions` ENABLE KEYS */;
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
|
|
||||||
@@ -2615,7 +2617,8 @@ INSERT INTO `updates` VALUES
|
|||||||
('2022_08_17_00_auth.sql','1A45DAE660690A7F4D0822C514116BF44A3185BB','ARCHIVED','2022-08-17 10:16:00',0),
|
('2022_08_17_00_auth.sql','1A45DAE660690A7F4D0822C514116BF44A3185BB','ARCHIVED','2022-08-17 10:16:00',0),
|
||||||
('2022_08_19_00_auth.sql','332E7CC2E69D69BF274E5C61768FB80D1C217BDB','ARCHIVED','2022-08-19 09:52:06',0),
|
('2022_08_19_00_auth.sql','332E7CC2E69D69BF274E5C61768FB80D1C217BDB','ARCHIVED','2022-08-19 09:52:06',0),
|
||||||
('2022_08_19_01_auth.sql','8B32826AE09C27B98C9480EF4D61205666F68318','ARCHIVED','2022-08-19 23:43:01',0),
|
('2022_08_19_01_auth.sql','8B32826AE09C27B98C9480EF4D61205666F68318','ARCHIVED','2022-08-19 23:43:01',0),
|
||||||
('2022_08_21_00_auth.sql','5DEC0CB848F99D575B90356D82276749F2473B72','ARCHIVED','2022-08-21 00:02:03',0);
|
('2022_08_21_00_auth.sql','5DEC0CB848F99D575B90356D82276749F2473B72','ARCHIVED','2022-08-21 00:02:03',0),
|
||||||
|
('2022_09_02_00_auth.sql','E2ED8B4B90829CFD283C9679AE265A9C9B2CF762','RELEASED','2022-09-02 15:52:22',0);
|
||||||
/*!40000 ALTER TABLE `updates` ENABLE KEYS */;
|
/*!40000 ALTER TABLE `updates` ENABLE KEYS */;
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
--
|
||||||
|
SET @PERMISSION := 883;
|
||||||
|
|
||||||
|
DELETE FROM `rbac_linked_permissions` WHERE `linkedId`=@PERMISSION;
|
||||||
|
DELETE FROM `rbac_permissions` WHERE `id`=@PERMISSION;
|
||||||
|
INSERT INTO `rbac_permissions` (`id`, `name`) VALUES
|
||||||
|
(@PERMISSION, 'Command: quest objective complete');
|
||||||
|
|
||||||
|
INSERT INTO `rbac_linked_permissions` (`id`, `linkedId`) VALUES
|
||||||
|
(196, @PERMISSION);
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
--
|
||||||
|
SET @OBJECTIVE_STRING_ID := 884;
|
||||||
|
SET @QUEST_NOT_FOUND_STRING_ID := 1517;
|
||||||
|
|
||||||
|
DELETE FROM `command` WHERE `name`='quest objective complete';
|
||||||
|
INSERT INTO `command` (`name`,`help`) VALUES
|
||||||
|
('quest objective complete','Syntax: .quest objective complete #questObjectiveId\nMark specific quest objective as completed for target character.');
|
||||||
|
|
||||||
|
DELETE FROM `trinity_string` WHERE `entry` IN (@OBJECTIVE_STRING_ID,@QUEST_NOT_FOUND_STRING_ID);
|
||||||
|
INSERT INTO `trinity_string` (`entry`, `content_default`) VALUES
|
||||||
|
(@OBJECTIVE_STRING_ID, 'Objective %u not found.'),
|
||||||
|
(@QUEST_NOT_FOUND_STRING_ID, 'Quest ID %u does not exist.');
|
||||||
Reference in New Issue
Block a user