This repository contains a small Windows Forms application that monitors the Perfect World game client and updates your Discord status using Discord Rich Presence. When the game is closed the launcher shuts itself down automatically.
Detects if elementclientis running.
Initializes Discord Rich Presence with custom details and assets.
Terminates once the game is no longer active.
Open pwprotector.sln with Visual Studio 2022 or later.
Restore the NuGet packages when prompted.
Build the solution in either Debug or Release mode.
Alternatively you can build from the command line with msbuild:
Code:
msbuild pwprotector.sln /p:Configuration=Release
Edit Program.cs and replace the placeholder values such as ENTER_YOUR_APPLICATION_ID and any URLs.
After building, copy the resulting pwprotector.exe to your [PW FOLDER\element\reportbugs] directory and replace the existing file.
Launch Perfect World normally. The console window for pwprotector.exe hides automatically.
Keep the utility running while you play Perfect World to show your activity on Discord.
This project is provided for educational purposes.
Made with ❤ by Harris Marfel (hrace009)