Jump to content
  • 0

C++ LOW_WIZARD


PeaceMaker

Question

12 answers to this question

Recommended Posts

  • 0

You can use pc.is_gm() but you are only want to one rank. You can use that.

when 20091.chat."This is only for low wizard" with pc.get_gm_level() == 1 begin
    say("Hi, metin2dev")
end

Kind Regards

Ken ~ TA

Do not be sorry, be better.

Link to comment
  • 0

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
  • 0

 

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
  • 0

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

  • Love 1
Link to comment
  • 0

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
  • 0

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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.