Adapt rpc discord system to yohara's system "Only for those who have the system"

Member
May
Threads
9
113
217
43
HubMoney
659
Kırmızı Yazı ve Link

AD: MetinTwo - Feel the Real Metin Experience! - 18 April! CLICK FOR PRESENTATION!

Good morning community, a few days ago I considered how to make the discord rpc when a character reaches yohara level "Champion level" appear in the discord rpc, and last night after turning my head around and modifying the code a bit Here I bring it to you. I remember that this will only work for those people who have the yohara system.

The rpc discord system being used is Mali's "BlackDragon"

Hidden content
You need to reply to this thread in order to see this content.
Video of the code working both for a normal character, as well as for a character with champion level


[Level Normal Discord RPC]


[Conquerors Level Discord RPC]

 
Last edited by a moderator:
Metin2Hub Bot
M2Hub Bot
Feb
Threads
65
2,242
2
1,109
113
HubMoney
1,486
Good morning community, a few days ago I considered how to make the discord rpc when a character reaches yohara level "Champion level" appear in the discord rpc, and last night after turning my head around and modifying the code a bit Here I bring it to you. I remember that this will only work for those people who have the yohara system.

The rpc discord system being used is Mali's "BlackDragon"


Code:
We go to our UserInterface/Discord.h and look for the following line:

            sCharacterName += " - Normal Lv: " + std::to_string(CPythonPlayer::Instance().GetStatus(POINT_LEVEL));
            
We replace this line with the following:

        DWORD m_dwConquerorLevel;
        if (m_dwConquerorLevel)
            sCharacterName += " - Conqueror Lv: " + std::to_string(CPythonPlayer::Instance().GetStatus(POINT_CONQUEROR_LEVEL));
        else
            sCharacterName += " - Normal Lv: " + std::to_string(CPythonPlayer::Instance().GetStatus(POINT_LEVEL));

We save and compile.

Video of the code working both for a normal character, as well as for a character with champion level


[Level Normal Discord RPC]


[Conquerors Level Discord RPC]


Hello dear user,

Your post will be under surveillance by bots for the next few hours.

Forum description : Metin2 private server, Metin2 download, Metin2 support, Metin2 Forum, Metin2 Pvp Servers, Errors, Bugs, Requests, Metin2 Pvp Forum, Everything About Metin2.
 
Director
Premium
Designer
Developer
Dec
Threads
105
183
2,397
93
HubMoney
3,616
Good morning community, a few days ago I considered how to make the discord rpc when a character reaches yohara level "Champion level" appear in the discord rpc, and last night after turning my head around and modifying the code a bit Here I bring it to you. I remember that this will only work for those people who have the yohara system.

The rpc discord system being used is Mali's "BlackDragon"
[Gizli içerik]


Video of the code working both for a normal character, as well as for a character with champion level


[Level Normal Discord RPC]


[Conquerors Level Discord RPC]

thanks mate