Sol Reklam
Sağ Reklam
What's new

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

KONU YAZAR

garo95

New member
Onaylı Üye
Apr
20
17
1
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"



Kod:


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]

132f1954bb2a4bae1a8d0556263759a7-gif.gif


[Conquerors Level Discord RPC]

f60910c3bdf3884294f674b3ae1d54f9-gif.gif


 
Back
Top