From 30af4577f84e96113314c5c42c89c27b1e222f96 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 15 Nov 2021 19:38:21 -0500 Subject: [PATCH] Scripts/Commands: Add .debug dummy. It does nothing, which means you can make it do anything. Port From (https://github.com/TrinityCore/TrinityCore/commit/5ed891a0f0c65cf4c844ccb209952352f4241193) --- Source/Framework/Constants/AccountConst.cs | 2 +- Source/Game/Chat/Commands/DebugCommands.cs | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/Framework/Constants/AccountConst.cs b/Source/Framework/Constants/AccountConst.cs index 79cbd09d4..7bf0b96e4 100644 --- a/Source/Framework/Constants/AccountConst.cs +++ b/Source/Framework/Constants/AccountConst.cs @@ -763,7 +763,7 @@ namespace Framework.Constants CommandListScenes = 849, CommandReloadSceneTemplate = 850, CommandReloadAreatriggerTemplate = 851, - // = 852, // DEPRECATED: DON'T REUSE + CommandDebugDummy = 852, CommandReloadConversationTemplate = 853, CommandDebugConversation = 854, CommandDebugPlayMusic = 855, diff --git a/Source/Game/Chat/Commands/DebugCommands.cs b/Source/Game/Chat/Commands/DebugCommands.cs index 270bf787b..a36651bb7 100644 --- a/Source/Game/Chat/Commands/DebugCommands.cs +++ b/Source/Game/Chat/Commands/DebugCommands.cs @@ -126,6 +126,13 @@ namespace Game.Chat return Conversation.CreateConversation(conversationEntry, target, target, target.GetGUID()) != null; } + [Command("dummy", RBACPermissions.CommandDebugDummy)] + static bool HandleDebugDummyCommand(StringArguments args, CommandHandler handler) + { + handler.SendSysMessage("This command does nothing right now. Edit your local core (DebugCommands.cs) to make it do whatever you need for testing."); + return true; + } + [Command("entervehicle", RBACPermissions.CommandDebugEntervehicle)] static bool HandleDebugEnterVehicleCommand(StringArguments args, CommandHandler handler) {