Jump to content

I'm searching solution for this tutorial


Recommended Posts

  • Active Member

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

I'll be always helpful! 👊 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Active Member
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?

I'll be always helpful! 👊 

Link to comment
Share on other sites

  • Developer

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