aboutsummaryrefslogtreecommitdiff
path: root/sql/updates
diff options
context:
space:
mode:
authorModoX <moardox@gmail.com>2022-08-11 20:54:12 +0200
committerShauren <shauren.trinity@gmail.com>2022-09-02 19:27:27 +0200
commit10302dca55ffc7db8c8cfc5b42f68bb082b1e8d7 (patch)
treecb5f1d391e2d0d32d10cbcd2794263081b2feb76 /sql/updates
parentb08a58dec6511b757fea7d9fb3a1a178d56d8bba (diff)
Core/Commands: Added .quest objective complete command to complete single quest objectives
Diffstat (limited to 'sql/updates')
-rw-r--r--sql/updates/auth/master/2022_09_02_00_auth.sql10
-rw-r--r--sql/updates/world/master/2022_09_02_01_world.sql10
2 files changed, 20 insertions, 0 deletions
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.');