aboutsummaryrefslogtreecommitdiff
path: root/sql
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
parentb08a58dec6511b757fea7d9fb3a1a178d56d8bba (diff)
Core/Commands: Added .quest objective complete command to complete single quest objectives
Diffstat (limited to 'sql')
-rw-r--r--sql/base/auth_database.sql7
-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
3 files changed, 25 insertions, 2 deletions
diff --git a/sql/base/auth_database.sql b/sql/base/auth_database.sql
index e358475568a..8c0005696bf 100644
--- a/sql/base/auth_database.sql
+++ b/sql/base/auth_database.sql
@@ -1306,6 +1306,7 @@ INSERT INTO `rbac_linked_permissions` VALUES
(196,879),
(196,881),
(196,882),
+(196,883),
(197,232),
(197,236),
(197,237),
@@ -2229,7 +2230,8 @@ INSERT INTO `rbac_permissions` VALUES
(879,'Command: debug poolstatus'),
(880,'Command: pdump copy'),
(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 */;
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_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_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 */;
UNLOCK TABLES;
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.');