[Mod] Displaying coordinates under NPC
This modification for the game client displays coordinates under non-player characters (NPC) and highlights NPC names in yellow.
Information about the modification
Name: pkodev.mod.npcpos;
Version: 1.1;
Author: V3ct0r;
Type: for the game client (Game.exe);
Supported executable .exe files: GAME_13X_0, GAME_13X_1, GAME_13X_2, GAME_13X_3, GAME_13X_4 and GAME_13X_5.
Installing the modification
1. Install mod loading system pkodev.mod.loader if it hasn't already been installed;
2. Place the mod DLL file pkodev.mod.npcpos.client.13x_{ID}.dll for your version of Game.exe in the mods folder of the game client;
3. Modification installed!
Customizing the modification
If necessary, the coordinates display format can be changed in the "dllmain.cpp" file in the "void __fastcall hook::CHeadSay__Render(void* This, void*, structure::D3DXVECTOR3& Pos)" function:
const std::string text = std::format("({0}, {1})", cha->GetX(), cha->GetY());
The color used to highlight the NPC names can be changed in the same function:
utils::set<unsigned int, 0x38>(This, 0xFFFFFF00); // Set NPC color name (Yellow)
Note: After the changes are made, you need to rebuild the modification.
Download
1) Modification binary files for the client (.dll);
2) Repository on GitHub with the source code of the modification for Visual Studio 2022 Community (C++).
If you encounter any problem, bug or have any questions, then feel free to write in this thread.