PeaceMaker 121 Posted August 18, 2015 Share Posted August 18, 2015 Hello guys, i was wondering how to add block_chat command to command_log ? so that when a GM does that command, it appear in that log table ?Thanks Link to comment Share on other sites More sharing options...
PeaceMaker 121 Posted August 24, 2015 Author Share Posted August 24, 2015 Up ? Link to comment Share on other sites More sharing options...
Fr3zy94 59 Posted August 24, 2015 Share Posted August 24, 2015 i need it too.. Link to comment Share on other sites More sharing options...
Active Member Koray 1993 Posted August 24, 2015 Active Member Share Posted August 24, 2015 cmd_gm.cpp if (tch && ch != tch) tch->AddAffect(AFFECT_BLOCK_CHAT, POINT_NONE, 0, AFF_NONE, lBlockDuration, 0, true); change if (tch && ch != tch) { char buf_blchat[56]; snprintf(buf_blchat, sizeof(buf_blchat), "BLOCKCHAT FOR: %s", tch->GetName()); LogManager::instance().GMCommandLog(ch->GetPlayerID(), ch->GetName(), ch->GetDesc()->GetHostName(), g_bChannel, buf_blchat); tch->AddAffect(AFFECT_BLOCK_CHAT, POINT_NONE, 0, AFF_NONE, lBlockDuration, 0, true); } not tested Link to comment Share on other sites More sharing options...
Premium Unknown 12 Posted August 24, 2015 Premium Share Posted August 24, 2015 (edited) In cmd.cpp set "HIGH_WIZARD" to the block_chat command : https://metin2.download/picture/ZFgceOqstxYnr7A2kJ1I4jxg9ha960Tv/.png Edited August 31, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now