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:
Rat
2010-10-01 00:07:14 +02:00
parent 0857c18af8
commit 395df76860
9 changed files with 34 additions and 1 deletions
@@ -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