From 10302dca55ffc7db8c8cfc5b42f68bb082b1e8d7 Mon Sep 17 00:00:00 2001 From: ModoX Date: Thu, 11 Aug 2022 20:54:12 +0200 Subject: Core/Commands: Added .quest objective complete command to complete single quest objectives --- sql/updates/auth/master/2022_09_02_00_auth.sql | 10 ++++++++++ sql/updates/world/master/2022_09_02_01_world.sql | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 sql/updates/auth/master/2022_09_02_00_auth.sql create mode 100644 sql/updates/world/master/2022_09_02_01_world.sql (limited to 'sql/updates') diff --git a/sql/updates/auth/master/2022_09_02_00_auth.sql b/sql/updates/auth/master/2022_09_02_00_auth.sql new file mode 100644 index 00000000000..ead11623565 --- /dev/null +++ b/sql/updates/auth/master/2022_09_02_00_auth.sql @@ -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); diff --git a/sql/updates/world/master/2022_09_02_01_world.sql b/sql/updates/world/master/2022_09_02_01_world.sql new file mode 100644 index 00000000000..c94250e6468 --- /dev/null +++ b/sql/updates/world/master/2022_09_02_01_world.sql @@ -0,0 +1,10 @@ +-- +SET @STRINGENTRY := 884; + +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`=@STRINGENTRY; +INSERT INTO `trinity_string` (`entry`, `content_default`) VALUES +(@STRINGENTRY, 'Objective %u not found.'); -- cgit v1.2.3