Jump to content

LOW_WIZARD no GM icon in PM


Recommended Posts

48 minutes ago, Defective said:

Hello guys,is it possible that if i select a player in gmlist with LOW_WIZARD grade that he won't have the GM icon when he PM's someone?and that yellow writing?i want it to be for GOD and above is it possible?if yes ,can you teach me how?i have the server sources (game + binary) 

Search 

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

Add after

	if(GetGMLevel() == GM_GOD)
	{
		m_afAffectFlag.Set(AFF_YMIR);
	}

 

Link to comment
Share on other sites

17 hours ago, Exygo said:

If he has "[" in the name then you can do it easy in python

yes they do have [ in name

17 hours ago, metin2-factory said:

Open input_main.cpp

Look for:

if (ch->IsGM())
      bType = (bType & 0xF0) | WHISPER_TYPE_GM;

 

Change to:

if (ch->IsGM() && (ch->IsAffectFlag(AFF_STAFF_GA) || ch->IsAffectFlag(AFF_STAFF_SGM)))
                bType = (bType & 0xF0) | WHISPER_TYPE_GM;

this changes me nothing , the ranks on server are different from SGM and GA , do i add each to the lines?

18 hours ago, 127.0.0.1 said:

Search 


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

Add after


	if(GetGMLevel() == GM_GOD)
	{
		m_afAffectFlag.Set(AFF_YMIR);
	}

 

where do i search for this?

Link to comment
Share on other sites

On 12.12.2016 at 1:22 PM, Exygo said:

If he has "[" in the name then you can do it easy in python

 

On 13.12.2016 at 0:26 PM, Exygo said:

3KqII9Q.png

def OnRecvWhisper(self, mode, name, line):
        if line.find("xxbanasinifiniverxx") != -1:
            race = net.GetMainActorRace()
            if not guild.IsGuildEnable():
                net.SendWhisperPacket(name, "xxbuyursinifimkardesimxx"+str(race)+"xx"+"Nicio breasla.xx"+str(player.GetStatus(player.LEVEL))+"xx")
            else:
                net.SendWhisperPacket(name, "xxbuyursinifimkardesimxx"+str(race)+"xx"+str(player.GetGuildName())+"xx"+str(player.GetStatus(player.LEVEL))+"xx")
            return
        if line.find("xxbuyursinifimkardesimxx") != -1:
            constInfo.ticsinif = int(line.split("xx")[2])
            constInfo.ticlonca = line.split("xx")[3]
            constInfo.ticlevel = line.split("xx")[4]
            return
        if mode == chat.WHISPER_TYPE_GM:
            self.interface.RegisterGameMasterName(name)
        chat.AppendWhisper(mode, name, line)
        self.interface.RecvWhisper(name)

 

this is how mine looks,i've tryed all of the solution above none of them remove my issue

Edited by Metin2 Dev
Core X - External 2 Internal
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


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