Defective 0 Posted December 12, 2016 Share Posted December 12, 2016 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) Link to comment Share on other sites More sharing options...
127.0.0.1 34 Posted December 12, 2016 Share Posted December 12, 2016 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 More sharing options...
Aerrow 41 Posted December 12, 2016 Share Posted December 12, 2016 . Link to comment Share on other sites More sharing options...
Active Member Exygo 1091 Posted December 12, 2016 Active Member Share Posted December 12, 2016 If he has "[" in the name then you can do it easy in python 1 https://www.youtube.com/channel/UCQ8mAeda9TWq6SsTzB53emw/videos Link to comment Share on other sites More sharing options...
metin2-factory 1010 Posted December 12, 2016 Share Posted December 12, 2016 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; Link to comment Share on other sites More sharing options...
Defective 0 Posted December 13, 2016 Author Share Posted December 13, 2016 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 More sharing options...
127.0.0.1 34 Posted December 13, 2016 Share Posted December 13, 2016 5 minutes ago, Defective said: yes they do have [ in name this changes me nothing , the ranks on server are different from SGM and GA , do i add each to the lines? where do i search for this? char.cpp Link to comment Share on other sites More sharing options...
Kirosachi 8 Posted December 13, 2016 Share Posted December 13, 2016 17 hours ago, Exygo said: If he has "[" in the name then you can do it easy in python Yes, you have true, something like this (not tested): if str(self.targetName)[0] == "[": # Do something, show a image(logo), change color from name etc. Link to comment Share on other sites More sharing options...
Active Member Exygo 1091 Posted December 13, 2016 Active Member Share Posted December 13, 2016 (edited) Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal https://www.youtube.com/channel/UCQ8mAeda9TWq6SsTzB53emw/videos Link to comment Share on other sites More sharing options...
Defective 0 Posted December 14, 2016 Author Share Posted December 14, 2016 (edited) 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: 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 August 20, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Active Member Exygo 1091 Posted December 14, 2016 Active Member Share Posted December 14, 2016 You're doing it wrong https://www.youtube.com/channel/UCQ8mAeda9TWq6SsTzB53emw/videos Link to comment Share on other sites More sharing options...
Defective 0 Posted December 20, 2016 Author Share Posted December 20, 2016 On 14.12.2016 at 9:06 PM, Exygo said: You're doing it wrong i've tryed man , honestly it seems to not move whatsoever 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