diff options
-rw-r--r-- | sql/base/auth_database.sql | 3 | ||||
-rw-r--r-- | sql/updates/auth/master/2018_09_17_00_auth.sql | 6 | ||||
-rw-r--r-- | sql/updates/world/master/2021_11_08_00_world_2018_09_17_00_world.sql | 6 | ||||
-rw-r--r-- | src/server/game/Accounts/RBAC.h | 2 | ||||
-rw-r--r-- | src/server/scripts/Commands/cs_debug.cpp | 7 |
5 files changed, 23 insertions, 1 deletions
diff --git a/sql/base/auth_database.sql b/sql/base/auth_database.sql index c4c22bae30e..8d87236052f 100644 --- a/sql/base/auth_database.sql +++ b/sql/base/auth_database.sql @@ -1230,6 +1230,7 @@ INSERT INTO `rbac_linked_permissions` VALUES (196,840), (196,842), (196,843), +(196,852), (196,866), (196,869), (196,870), @@ -2127,6 +2128,7 @@ INSERT INTO `rbac_permissions` VALUES (849,'Command: list scenes'), (850,'Command: reload scenes'), (851,'Command: reload areatrigger_templates'), +(852,'Command: debug dummy'), (853,'Command: .reload conversation_template'), (854,'Command: .debug conversation'), (855,'Command: debug play music'), @@ -2372,6 +2374,7 @@ INSERT INTO `updates` VALUES ('2018_06_29_00_auth.sql','03AAEA7E52848FA5522C3F0C6D9C38B988407480','ARCHIVED','2018-06-29 22:34:04',0), ('2018_08_30_00_auth.sql','22F69864361D3E72F800379338310172C0576D1C','RELEASED','2018-08-30 00:00:00',0), ('2018_09_06_00_auth.sql','309D21E0DF82ED8921F77EAFDE741F38AC32BB13','ARCHIVED','2018-09-06 00:00:00',0), +('2018_09_17_00_auth.sql','4DB671F0A4FA1A93AF28FB6426AF13DE72C7DA3D','RELEASED','2018-09-17 00:00:00',0), ('2018_12_09_00_auth_2017_01_06_00_auth.sql','6CCFE6A9774EC733C9863D36A0F15F3534189BBD','ARCHIVED','2017-01-06 00:00:00',0), ('2018_12_09_01_auth.sql','576C2A11BE671D8420FA3EB705E594E381ECCC56','ARCHIVED','2018-12-09 14:49:17',0), ('2019_06_08_00_auth.sql','EA5A78F5A26C17BC790481EA9B3772D3A6912459','ARCHIVED','2019-05-20 17:21:20',0), diff --git a/sql/updates/auth/master/2018_09_17_00_auth.sql b/sql/updates/auth/master/2018_09_17_00_auth.sql new file mode 100644 index 00000000000..7aa76283e57 --- /dev/null +++ b/sql/updates/auth/master/2018_09_17_00_auth.sql @@ -0,0 +1,6 @@ +-- +DELETE FROM `rbac_permissions` WHERE `id`=852; +INSERT INTO `rbac_permissions` (`id`,`name`) VALUES (852, 'Command: debug dummy'); + +DELETE FROM `rbac_linked_permissions` WHERE `linkedId`=852; +INSERT INTO `rbac_linked_permissions` (`id`,`linkedId`) VALUES (196,852); diff --git a/sql/updates/world/master/2021_11_08_00_world_2018_09_17_00_world.sql b/sql/updates/world/master/2021_11_08_00_world_2018_09_17_00_world.sql new file mode 100644 index 00000000000..d8602da97ae --- /dev/null +++ b/sql/updates/world/master/2021_11_08_00_world_2018_09_17_00_world.sql @@ -0,0 +1,6 @@ +-- +DELETE FROM `command` WHERE `name`='debug dummy'; +INSERT INTO `command` (`name`,`permission`,`help`) VALUES +('debug dummy',852,'Syntax: .debug dummy <???> + +Catch-all debug command. Does nothing by default. If you want it to do things for testing, add the things to its script in cs_debug.cpp.'); diff --git a/src/server/game/Accounts/RBAC.h b/src/server/game/Accounts/RBAC.h index 41a97ccabaa..b93d99a9144 100644 --- a/src/server/game/Accounts/RBAC.h +++ b/src/server/game/Accounts/RBAC.h @@ -757,7 +757,7 @@ enum RBACPermissions RBAC_PERM_COMMAND_LIST_SCENES = 849, RBAC_PERM_COMMAND_RELOAD_SCENE_TEMPLATE = 850, RBAC_PERM_COMMAND_RELOAD_AREATRIGGER_TEMPLATE = 851, - // = 852, // DEPRECATED: DON'T REUSE + RBAC_PERM_COMMAND_DEBUG_DUMMY = 852, RBAC_PERM_COMMAND_RELOAD_CONVERSATION_TEMPLATE = 853, RBAC_PERM_COMMAND_DEBUG_CONVERSATION = 854, RBAC_PERM_COMMAND_DEBUG_PLAY_MUSIC = 855, diff --git a/src/server/scripts/Commands/cs_debug.cpp b/src/server/scripts/Commands/cs_debug.cpp index f78442af163..83b70f51c92 100644 --- a/src/server/scripts/Commands/cs_debug.cpp +++ b/src/server/scripts/Commands/cs_debug.cpp @@ -115,6 +115,7 @@ public: { "conversation" , rbac::RBAC_PERM_COMMAND_DEBUG_CONVERSATION, false, &HandleDebugConversationCommand, "" }, { "worldstate" , rbac::RBAC_PERM_COMMAND_DEBUG, false, &HandleDebugWorldStateCommand, "" }, { "wsexpression" , rbac::RBAC_PERM_COMMAND_DEBUG, false, &HandleDebugWSExpressionCommand, "" }, + { "dummy", rbac::RBAC_PERM_COMMAND_DEBUG_DUMMY, false, &HandleDebugDummyCommand, "" }, }; static std::vector<ChatCommand> commandTable = { @@ -1697,6 +1698,12 @@ public: return true; }; + + static bool HandleDebugDummyCommand(ChatHandler* handler, CommandArgs* /*args*/) + { + handler->SendSysMessage("This command does nothing right now. Edit your local core (cs_debug.cpp) to make it do whatever you need for testing."); + return true; + } }; void AddSC_debug_commandscript() |