-
Автор темы
- #1
1 - First you need to download discord sdk:
2 - Go to discord developers and make a new application (put the name you want and the photos you want in "Rich Presence -> Art Assets" )
like that:
3 -Go into your project and include "DiscordRPCSDK/Includes" and "DiscordRPCSDK/SourceFiles"
4 - Add to your cheat or application project:
"serialization.h"
"serialization.cpp"
"rpc_connection.h"
"rpc_connection.cpp"
"msg_queue.h"
"discord_rpc.cpp"
"discord_register_win.cpp"
"connection_win.cpp"
"backoff.h"
5 - Create a "DiscordRpc.cpp" and "DiscordRpc.h"
*DiscordRpc.h*
*DiscordRpc.cpp*
6- Change the "APPLICATION ID" to your Application id "General Information -> Application id"
7 - In "//Discord Visualizer" go to "Rich Presence ->Visualizer" and change it, after that go to "Show code" and copy
like that:
8 - Go to your main.cpp and put
Should be like this:
and that's it
Пожалуйста, авторизуйтесь для просмотра ссылки.
2 - Go to discord developers and make a new application (put the name you want and the photos you want in "Rich Presence -> Art Assets" )
like that:
3 -Go into your project and include "DiscordRPCSDK/Includes" and "DiscordRPCSDK/SourceFiles"
4 - Add to your cheat or application project:
"serialization.h"
"serialization.cpp"
"rpc_connection.h"
"rpc_connection.cpp"
"msg_queue.h"
"discord_rpc.cpp"
"discord_register_win.cpp"
"connection_win.cpp"
"backoff.h"
5 - Create a "DiscordRpc.cpp" and "DiscordRpc.h"
*DiscordRpc.h*
C++:
#pragma once
#include <discord_register.h>
#include <discord_rpc.h>
#include <Windows.h>
class Discord {
public:
void Initialize();
void Update();
};
*DiscordRpc.cpp*
C++:
#include "DiscordRpc.h"
void Discord::Initialize()
{
DiscordEventHandlers Handle;
memset(&Handle, 0, sizeof(Handle));
Discord_Initialize("APPLICATION ID", &Handle, 1, NULL);
}
void Discord::Update()
{
//Discord Visualizer
}
6- Change the "APPLICATION ID" to your Application id "General Information -> Application id"
7 - In "//Discord Visualizer" go to "Rich Presence ->Visualizer" and change it, after that go to "Show code" and copy
like that:
8 - Go to your main.cpp and put
C++:
#include "DiscordRpc.h"
Discord * g_Discord;
int main()
{
g_Discord->Initialize();
g_Discord->Update();
}
Should be like this:
and that's it