Jump to content
×
×
  • Create New...
  • 0

I'm searching solution for this tutorial


ReFresh

Question

  • Premium

Hi guys, 

Before then I start I must say: It isn't release and it isn't my own tutorial, I'm not official author. I only translated this tutorial.

Open root/constInfo.py

and then paste under "CONSOLE_ENABLE = 0" this: GM_MARK = 0

Next open game.py and search:

def OnUpdate(self):    
        app.UpdateGame()

and paste under that:

gmlogosys = player.GetName()
gmlogosys2 = guild.GetGuildName()

then search:

self.interface.BUILD_OnUpdate()

and paste this above:

if gmlogosys.find("[KRAL]")!=-1 and constInfo.GM_MARK == 0:
	constInfo.GM_MARK = 1
	net.SendChatPacket("(kral_lonca_live)")
if gmlogosys.find("[KRAL]")!=-1 and constInfo.GM_MARK == 0:
	constInfo.GM_MARK = 1
	net.SendChatPacket("(kral_live)")
if gmlogosys.find("[VIP]")!=-1 and constInfo.GM_MARK == 0:
	constInfo.GM_MARK = 1
	net.SendChatPacket("(vip_live)")
if gmlogosys.find("[AVCI]")!=-1 and constInfo.GM_MARK == 0:
	constInfo.GM_MARK = 1
	net.SendChatPacket("(avci_live)")
if gmlogosys.find("[PRENSES]")!=-1 and constInfo.GM_MARK == 0:
	constInfo.GM_MARK = 1
	net.SendChatPacket("(prenses_live)")
if gmlogosys.find("[KRALICE]")!=-1 and constInfo.GM_MARK == 0:
	constInfo.GM_MARK = 1
	net.SendChatPacket("(kralice_live)")
if gmlogosys.find("[GA]Athena")!=-1 and constInfo.GM_MARK == 0:
	constInfo.GM_MARK = 1
	net.SendChatPacket("(juliet_pma)")
if gmlogosys.find("[PRENS]")!=-1 and constInfo.GM_MARK == 0:
	constInfo.GM_MARK = 1
	net.SendChatPacket("(prens_live)")
if gmlogosys.find("[GA]Leonardo")!=-1 and constInfo.GM_MARK == 0:
	constInfo.GM_MARK = 1
	net.SendChatPacket("(leonardo_gameadmin)")

Open root/uisystem.py

then search:

def __ClickChangeCharacterButton(self):

and paste under that:

constInfo.GM_MARK = 0

Open root/playersettingmodule.py

then search:

(fish)

and paste under that:

	#SYSTEM
    
    chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+12, "", EmoticonStr+"kral_lonca.mse")
    net.RegisterEmoticonString("(kral_lonca_live)")
    
    chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+13, "", EmoticonStr+"kral.mse")
    net.RegisterEmoticonString("(kral_live)")
    
    chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+14, "", EmoticonStr+"vip.mse")
    net.RegisterEmoticonString("(vip_live)")
    
    chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+15, "", EmoticonStr+"avc.mse")
    net.RegisterEmoticonString("(avci_live)")
    
    chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+16, "", EmoticonStr+"prenses.mse")
    net.RegisterEmoticonString("(prenses_live)")
    
    chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+17, "", EmoticonStr+"kralice.mse")
    net.RegisterEmoticonString("(kralice_live)")
    
    chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+18, "", EmoticonStr+"juliet.mse")
    net.RegisterEmoticonString("(juliet_pma)")
    
    chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+19, "", EmoticonStr+"prens.mse")
    net.RegisterEmoticonString("(prens_live)")
    
    chrmgr.RegisterEffect(chrmgr.EFFECT_EMOTICON+20, "", EmoticonStr+"leonardo_pma.mse")
    net.RegisterEmoticonString("(leonardo_gameadmin)")
    
    #END OF SYSTEM

And then paste to a client this files:

https://mega.nz/#!UIJj2AYR!H5sjPWN9R6KQPUhl7J_AP3SKYGkZddnhOBgoqaFO6Uw

And my problem is here:

Thanks for your answers!

Sincerely,

ReFresh

Link to comment
  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0
  • Nitro Booster

I must say, that's a completely mess over there.
You should move into the binary's source, look over the InstanceBase stuff, so you can easily add more game master logos depending on the character's name.

when you return 0 and server doesn't boot:

unknown.png

Link to comment
  • 0
  • Premium
7 hours ago, PACI said:

I must say, that's a completely mess over there.
You should move into the binary's source, look over the InstanceBase stuff, so you can easily add more game master logos depending on the character's name.

Is there any tutorial for that?

Link to comment
  • 0
  • Nitro Booster

Not sure, but check out the CInstanceBase::__SetAffect (UserInterface/InstanceBaseEffect.cpp) function, in the switch-case (AFFECT_YMIR), you can try something like this:

	if (strstr(GetNameString(), "[GA]Leonardo")) eAffect += 100;


	// Then at your playerSettingModule.py, use this instead:
	chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+100, "Bip01", EmoticonStr+"leonardo_pma.mse")

when you return 0 and server doesn't boot:

unknown.png

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

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


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.