Jump to content

[10853] GM is invisible !


Guest mns

Recommended Posts

Why use this patch ? Show message in monitor when GM login to game and hero is invisible .

this can help GM to know is visible or invisible .

diff --git a/src/game/CharacterHandler.cpp b/src/game/CharacterHandler.cpp
index f1445f2..028e1b6 100644
--- a/src/game/CharacterHandler.cpp
+++ b/src/game/CharacterHandler.cpp
@@ -671,6 +671,9 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder * holder)
    if(pCurrChar->isGameMaster())
        SendNotification(LANG_GM_ON);

+    if(!pCurrChar->isGMVisible())
+        SendNotification(LANG_INVISIBLE_INVISIBLE);
+
    std::string IP_str = GetRemoteAddress();
    sLog.outChar("Account: %d (IP: %s) Login Character:[%s] (guid: %u)",
        GetAccountId(), IP_str.c_str(), pCurrChar->GetName(), pCurrChar->GetGUIDLow());

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use