Jump to content
V3ct0r

Social buttons (Discord, Youtube, Twitch and etc)

Recommended Posts

[Mod] Social buttons (Discord, Youtube, Twitch and etc)

 

screenshot_01.png

 

The mod allows you to add social buttons to the game, by clicking on which the player will be redirected to the corresponding resource on the Internet using the URL specified in the mod settings, for example, to the Discord server, to the Youtube channel, to the Facebook group.

 

Buttons are bound to the minimap form ("frmMinimap").

 

 

Requirements

 

Installed mod loading system for server and client (PKOdev.NET mod loader).

 

 

Modification information

 

Name: pkodev.mod.social;

Version: 1.0;

Author: V3ct0r;

Type: for client (Game.exe);

Supported executable .exe files: GAME_13X_0, GAME_13X_1, GAME_13X_2, GAME_13X_3, GAME_13X_4, GAME_13X_5.

 

 

Installation

 

1) In the "mods" directory of your client, create a "pkodev.mod.social" folder;

2) Place into it the mod DLL file "pkodev.mod.social.client.13x_<ID>.dll" for your version of Game.exe;

3) Place into it the mod settings file "pkodev.mod.social.cfg";

4) In the GUI scripts of the game client, add the required social buttons to the minimap form (form "frmMinimap" from the file "minimap.clu"), for example:

btnFacebook = UI_CreateCompent(frmMinimap, BUTTON_TYPE, "btnFacebook", 24, 24, 0, 180)
UI_LoadButtonImage(btnFacebook, "texture/mods/pkodev.mod.social/social.png", 24, 24, 0, 0, FALSE )

btnDiscord = UI_CreateCompent(frmMinimap, BUTTON_TYPE, "btnDiscord", 24, 24, 28, 180)
UI_LoadButtonImage(btnDiscord, "texture/mods/pkodev.mod.social/social.png", 24, 24, 24, 0, FALSE )

btnYoutube = UI_CreateCompent(frmMinimap, BUTTON_TYPE, "btnYoutube", 24, 24, 56, 180)
UI_LoadButtonImage(btnYoutube, "texture/mods/pkodev.mod.social/social.png", 24, 24, 48, 0, FALSE )

btnTwitch = UI_CreateCompent(frmMinimap, BUTTON_TYPE, "btnTwitch", 24, 24, 84, 180)
UI_LoadButtonImage(btnTwitch, "texture/mods/pkodev.mod.social/social.png", 24, 24, 72, 0, FALSE )

btnTwitter = UI_CreateCompent(frmMinimap, BUTTON_TYPE, "btnTwitter", 24, 24, 112, 180)
UI_LoadButtonImage(btnTwitter, "texture/mods/pkodev.mod.social/social.png", 24, 24, 96, 0, FALSE )

5) Add social buttons to the mod settings file "pkodev.mod.social.cfg" in the following format:

<button_name> = <URL>

For the buttons from the example above:

btnFacebook = https://facebook.com/
btnDiscord = https://discord.com/
btnYoutube = https://www.youtube.com/
btnTwitch = https://www.twitch.tv/
btnTwitter = https://twitter.com/

 

 

Download

 

1) Binary release (.dll);

2) The source code of the mod for Visual Studio 2019 Community (C++).

 

 

If you encounter any problem, bug or have any questions, then feel free to write in this thread.

  • Like 3
  • Thanks 3

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites
20 hours ago, gunnapong said:

Mods do not support the game.exe , I don't know the number, please tell me.

https://drive.google.com/file/d/1jfnNjzO8iGdNU9KTt0jfkbWaoyAkHPM5/view?usp=drivesdk

 

// void CMiniMapMgr::_MiniFormMouseEvent(CCompent *pSender, int nMsgType, int x, int y, DWORD dwKey)
const unsigned int CMiniMapMgr___MiniFormMouseEvent = 0x00475EC0;

 


Share this post


Link to post
Share on other sites
3 ชั่วโมงที่แล้ว V3ct0r กล่าวว่า:

// void CMiniMapMgr::_MiniFormMouseEvent(CCompent *pSender, int nMsgType, int x, int y, DWORD dwKey) const unsigned int CMiniMapMgr___MiniFormMouseEvent = 0x00475EC0;

 

ขอบคุณมากมันใช้งานได้ดี

Edited by gunnapong

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...