From d904dbb079cd34761bff007de99f4c21ce39a15d Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 2 Nov 2021 16:48:10 -0400 Subject: [PATCH] Scripts/Commands: New command ".go instance". Goes to an instance. Port From (https://github.com/TrinityCore/TrinityCore/commit/82ecd32d9c63a22fe2f2076ce35b33cf2db53fd8) --- sql/updates/auth/master/2018_08_30_00_auth.sql | 9 +++++++++ .../master/2021_10_23_05_world_2018_08_30_02_world.sql | 6 ++++++ 2 files changed, 15 insertions(+) create mode 100644 sql/updates/auth/master/2018_08_30_00_auth.sql create mode 100644 sql/updates/world/master/2021_10_23_05_world_2018_08_30_02_world.sql diff --git a/sql/updates/auth/master/2018_08_30_00_auth.sql b/sql/updates/auth/master/2018_08_30_00_auth.sql new file mode 100644 index 000000000..1ee1f8d7e --- /dev/null +++ b/sql/updates/auth/master/2018_08_30_00_auth.sql @@ -0,0 +1,9 @@ +-- +DELETE FROM `rbac_permissions` WHERE `id`=874; +INSERT INTO `rbac_permissions` (`id`,`name`) VALUES +(874, "Command: go instance"); + +SET @parent := (SELECT `id` FROM `rbac_linked_permissions` WHERE `linkedId`=852); +DELETE FROM `rbac_linked_permissions` WHERE `linkedId`=874; +INSERT INTO `rbac_linked_permissions` (`id`,`linkedId`) VALUES +(@parent, 874); diff --git a/sql/updates/world/master/2021_10_23_05_world_2018_08_30_02_world.sql b/sql/updates/world/master/2021_10_23_05_world_2018_08_30_02_world.sql new file mode 100644 index 000000000..d8b3b9c4b --- /dev/null +++ b/sql/updates/world/master/2021_10_23_05_world_2018_08_30_02_world.sql @@ -0,0 +1,6 @@ +-- +DELETE FROM `command` WHERE `name`="go instance"; +INSERT INTO `command` (`name`,`permission`,`help`) VALUES +('go instance', 874, 'Syntax: .go instance [mapid | name] + +Teleports you to entrance of instance with script name matching input (or given mapid)');