Jump to content

Recommended Posts

Just edit the CMD file (or create it) on each channel and put only the mute command for LOW_WIZARD. If the LOW_WIZARD have the gm logo just edit this function in char.cpp

if (GetGMLevel() >= GM_LOW_WIZARD)
        {
            m_afAffectFlag.Set(AFF_YMIR);
            m_bPKMode = PK_MODE_PROTECT;
        }

replace by

if (GetGMLevel() > GM_LOW_WIZARD)
        {
            m_afAffectFlag.Set(AFF_YMIR);
            m_bPKMode = PK_MODE_PROTECT;
        }
  • Love 3
Link to comment
Share on other sites

 

Just edit the CMD file (or create it) on each channel and put only the mute command for LOW_WIZARD. If the LOW_WIZARD have the gm logo just edit this function in char.cpp

if (GetGMLevel() >= GM_LOW_WIZARD)
        {
            m_afAffectFlag.Set(AFF_YMIR);
            m_bPKMode = PK_MODE_PROTECT;
        }

replace by

if (GetGMLevel() > GM_LOW_WIZARD)
        {
            m_afAffectFlag.Set(AFF_YMIR);
            m_bPKMode = PK_MODE_PROTECT;
        }

thank you

Link to comment
Share on other sites

The block chat function have a double check, modify this line on cmd_gm.cpp

if (ch && (ch->GetGMLevel() < GM_HIGH_WIZARD && ch->GetQuestFlag("chat_privilege.block") <= 0))

change by

if (ch && ch->GetQuestFlag("chat_privilege.block") <= 0)

same for block_chat_list

thank , what about the pkmode can you help me to fix it please ? 

Link to comment
Share on other sites

Open char.cpp and search void CHARACTER::SetLevel(BYTE level)

 

Edit it by that

void CHARACTER::SetLevel(BYTE level)
{
	m_points.level = level;

	if (IsPC())
	{
		if (level < PK_PROTECT_LEVEL)
			SetPKMode(PK_MODE_PROTECT);
		else if (GetGMLevel() > GM_LOW_WIZARD)
			SetPKMode(PK_MODE_PROTECT);
		else if (m_bPKMode == PK_MODE_PROTECT)
			SetPKMode(PK_MODE_PEACE);
	}
}
  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.