Jump to content

Recommended Posts

[Mod] Displaying coordinates under NPC

 

screenshot_1.png

 

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.

  • Like 2

Share this post


Link to post
Share on other sites

@V3ct0r Hi, i like this mods you released really good job, i have a question related to these mods but off-topic from this current mod above.

 

So just wondering is it possible to make mounts this way using mods? Or have you ever tried to make it work? Thanks

  • Thanks 1

Share this post


Link to post
Share on other sites

Hello @Rinor!

 

First of all, I am glad to know that you like my mods, thank you!

 

Regarding your question, I think it is possible. I've even seen a mod like this for the official 1.3x binaries of client.

  • Thanks 1

Share this post


Link to post
Share on other sites

Small update from 02/23/2023

 

+ Refactored the source code of the modification;

+ Updated the modification project to Visual Studio 2022 and the C++20 language standard;

+ Put in order the repository with the source code of the modification;

+ Added documentation in English and Russian;

+ Added a script for building the modification project using Developer Command Prompt for VS 2022;

+ Added a script for building the modification project using CMake;

+ The modification version has been increased to 1.1.

  • Thanks 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...