Core/Commands: added .debug areatriggers
-if turned on it will print the trigger id to chat if you get near it --HG-- branch : trunk
This commit is contained in:
@@ -205,6 +205,7 @@ ChatCommand * ChatHandler::getCommandTable()
|
||||
{ "uws", SEC_ADMINISTRATOR, false, &ChatHandler::HandleDebugUpdateWorldStateCommand, "", NULL },
|
||||
{ "update", SEC_ADMINISTRATOR, false, &ChatHandler::HandleDebugUpdateCommand, "", NULL },
|
||||
{ "itemexpire", SEC_ADMINISTRATOR, false, &ChatHandler::HandleDebugItemExpireCommand, "", NULL },
|
||||
{ "areatriggers", SEC_ADMINISTRATOR, false, &ChatHandler::HandleDebugAreaTriggers, "", NULL },
|
||||
{ NULL, 0, false, NULL, "", NULL }
|
||||
};
|
||||
|
||||
|
||||
@@ -171,6 +171,7 @@ class ChatHandler
|
||||
bool HandleDebugSpellCheckCommand(const char* args);
|
||||
bool HandleDebugUpdateCommand(const char* args);
|
||||
bool HandleDebugUpdateWorldStateCommand(const char* args);
|
||||
bool HandleDebugAreaTriggers(const char* args);
|
||||
|
||||
bool HandleDebugSet32Bit(const char* args);
|
||||
bool HandleDebugThreatList(const char * args);
|
||||
|
||||
@@ -271,6 +271,20 @@ bool ChatHandler::HandleDebugUpdateWorldStateCommand(const char* args)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleDebugAreaTriggers(const char* args)
|
||||
{
|
||||
Player* plr = m_session->GetPlayer();
|
||||
if (!plr->isDebugAreaTriggers)
|
||||
{
|
||||
PSendSysMessage(LANG_DEBUG_AREATRIGGER_ON);
|
||||
plr->isDebugAreaTriggers = true;
|
||||
} else {
|
||||
PSendSysMessage(LANG_DEBUG_AREATRIGGER_OFF);
|
||||
plr->isDebugAreaTriggers = false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ChatHandler::HandleDebugPlayCinematicCommand(const char* args)
|
||||
{
|
||||
// USAGE: .debug play cinematic #cinematicid
|
||||
|
||||
Reference in New Issue
Block a user