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)
This commit is contained in:
@@ -763,7 +763,7 @@ namespace Framework.Constants
|
|||||||
CommandListScenes = 849,
|
CommandListScenes = 849,
|
||||||
CommandReloadSceneTemplate = 850,
|
CommandReloadSceneTemplate = 850,
|
||||||
CommandReloadAreatriggerTemplate = 851,
|
CommandReloadAreatriggerTemplate = 851,
|
||||||
// = 852, // DEPRECATED: DON'T REUSE
|
CommandDebugDummy = 852,
|
||||||
CommandReloadConversationTemplate = 853,
|
CommandReloadConversationTemplate = 853,
|
||||||
CommandDebugConversation = 854,
|
CommandDebugConversation = 854,
|
||||||
CommandDebugPlayMusic = 855,
|
CommandDebugPlayMusic = 855,
|
||||||
|
|||||||
@@ -126,6 +126,13 @@ namespace Game.Chat
|
|||||||
return Conversation.CreateConversation(conversationEntry, target, target, target.GetGUID()) != null;
|
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)]
|
[Command("entervehicle", RBACPermissions.CommandDebugEntervehicle)]
|
||||||
static bool HandleDebugEnterVehicleCommand(StringArguments args, CommandHandler handler)
|
static bool HandleDebugEnterVehicleCommand(StringArguments args, CommandHandler handler)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user