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



Thread Author
Member
May
Threads
9
113
263
63
Rating - 0%
0   0   0
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 react to this post 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
66
2,435
2
1,333
113
Rating - 0%
0   0   0
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.
 
Metin2Hub New World
Admin
Valuable
Premium
VIP
Metin2Hub Booster
Designer
Developer
Feb
Threads
162
972
4,616
93
Rating - 0%
0   0   0
Good job mate
 
Director
Premium
Designer
Developer
Dec
Threads
113
191
3,368
93
Rating - 0%
0   0   0
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
 
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock