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]
[Conquerors Level Discord RPC]
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]
[Conquerors Level Discord RPC]

