Jump to content
Sign in to follow this  
V3ct0r

Displaying a list of items dropped from monsters (resources)

Recommended Posts

[Mod] Displaying a list of items dropped from monsters (resources)

 

4.png

 

The mod adds a form to the game with a list of items that drop from the selected monster with a certain chance (see screenshot above). The monster is selected as follows: Right mouse button click on the monster -> "List of items" context menu item.

 

Additionally, the mod allows you to display a list of items when you move the mouse cursor over a monster, or when you hold down the SHIFT key on the keyboard (this behavior can be disabled in the game settings) :

 

0.png

 

1.png

 

 

Some features of the mod:

1) Each item is displayed in the form of an icon, a name of the item and a drop chance in percent ;

2) The list is sorted in descending order of the drop chance percentage;

3) Items are highlighted in color depending on the drop chance: green - high drop chance, red - low drop chance.

 

 

Requirements

 

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

 

 

Modification information

 

Name: pkodev.mod.mobdrop;

Version: 1.1;

Author@V3ct0r. Special thanks to @Graf for providing GUI scripts and textures for the "List of items" form;

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) Place the mod DLL file "pkodev.mod.mobdrop.13x_<ID>.dll" for your version of Game.exe and settings file "pkodev.mod.mobdrop.cfg" into "mods\pkodev.mod.mobdrop" directory of the game client;

2) In the settings file "pkodev.mod.mobdrop.cfg" write the server drop rates:

1.0

3) Add GUI scripts from the "Add to system.clu.txt" file to the "Client\scripts\lua\forms\system.clu" file;

4) Add GUI scripts from the "Add to player.clu.txt" file to the "Client\scripts\lua\forms\player.clu" file;

5) By default, displaying a list of items next to monsters when hovering over them with the mouse cursor is disabled. If necessary, enable this behavior in the game settings:

 

2.png

 

 

Change log

 

On 1/7/2023 at 8:49 PM, V3ct0r said:

Mod update from 01/07/2023

 

+ Now you can enable or disable the display of a list of items that drop from monsters and resources. Thanks to @small666 for the idea!

2.png

 

The mod's source code repository has been updated. The binary files of the mod (.dll) have also been updated.

 

45 minutes ago, V3ct0r said:

Mod update from 01/20/2023

 

+ Added a form with a list of items dropped from the selected monster. This form is called as follows: Right mouse click on the monster -> "List of items" context menu item. Special thanks to @Graf for providing textures and scripts for the form.

 

4.png

 

 

Mod update from 01/21/2023

 

+ When you hover the mouse over an item on the form with a list of items dropped from the selected monster, a tooltip with information about the item appears.

 

5.png

 

 

The mod's source code repository has been updated. The binary files of the mod (.dll) have also been updated.

 

 

Download

 

1) Actual mod binaries (.dll) and the settings file (.cfg);

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

 

 

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


Share this post


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

I'm very interested but Mods don't support game.exe I don't know number please tell me thanks
https://drive.google.com/file/d/1shTCGitJxk9gCD-8ZbDvrtwoZS4L1kNf/view?usp=share_link

 

Hello @gunnapong,

 

// void CHeadSay::Render(D3DXVECTOR3& pos)
const unsigned int CHeadSay__Render = 0x00471C90;

// CCharacter* CGameScene::_pMainCha 
const unsigned int CGameScene___pMainCha = 0x006A08D4;

// CGuiPic
const unsigned int CGuiPic = 0x00682DF8;

// CGuiPic::CGuiPic( CGuiData* pParent, unsigned int max )
const unsigned int CGuiPic__CGuiPic = 0x0049F900;

// bool	CGuiPic::LoadImage( const char * file, int w, int h, int frame=0, int tx=0, int ty=0, float scalex=0.0, float scaley=0.0 )
const unsigned int CGuiPic__LoadImage = 0x004A1B90;

// void	CGuiPic::UnLoadImage( int frame=-1 )
const unsigned int CGuiPic__UnloadImage = 0x0049F690;

// inline void CGuiPic::Render( int x, int y )	
const unsigned int CGuiPic__Render = 0x004A0E00;

// inline CItemRecord* GetItemRecordInfo( int nTypeID )
const unsigned int GetItemRecordInfo = 0x0040D8D0;

// CGuiFont
const unsigned int CGuiFont = 0x0069A9F0;

// void CGuiFont::BRender(unsigned int nIndex, const char* str, int x, int y, DWORD color, DWORD shadow)
const unsigned int CGuiFont__BRender = 0x00471570;

// MPRender
const unsigned int MPRender = 0x006177E4;

// BOOL MPRender::WorldToScreen(float fX, float fY, float fZ, int *pnX, int *pnY)
const unsigned int MPRender__WorldToScreen = 0x00617674;

// CMPFont
const unsigned int CMPFont = 0x0069A9F0;

// SIZE* CMPFont::GetTextSize(char* szText, SIZE* pSize,float fScale = 1.0f);
const unsigned int CMPFont__GetTextSize = 0x0061772C;

// CCharacter*	stNetActorCreate::CreateCha()
const unsigned int stNetActorCreate__CreateCha = 0x00507AC0;

// void NetActorDestroy(unsigned int nID, char chSeeType)
const unsigned int NetActorDestroy = 0x00503B80;

// CCharacter* CGameScene::SearchByID(unsigned long id)
const unsigned int CGameScene__SearchByID = 0x004D1810;

// static CGameScene* CGameApp::_pCurScene
const unsigned int CGameApp___pCurScene = 0x00694F04;

// void operator delete[](void *p)
const unsigned int operator_delete_array = 0x005CBBE0;

 


Share this post


Link to post
Share on other sites

Mod update from 01/07/2023

 

+ Now you can enable or disable the display of a list of items that drop from monsters and resources. Thanks to @small666 for the idea!

2.png

 

The mod's source code repository has been updated. The binary files of the mod (.dll) have also been updated.


Share this post


Link to post
Share on other sites
On 1/6/2023 at 6:20 PM, V3ct0r said:

 

Hello @gunnapong,

 


// void CHeadSay::Render(D3DXVECTOR3& pos)
const unsigned int CHeadSay__Render = 0x00471C90;

// CCharacter* CGameScene::_pMainCha 
const unsigned int CGameScene___pMainCha = 0x006A08D4;

// CGuiPic
const unsigned int CGuiPic = 0x00682DF8;

// CGuiPic::CGuiPic( CGuiData* pParent, unsigned int max )
const unsigned int CGuiPic__CGuiPic = 0x0049F900;

// bool	CGuiPic::LoadImage( const char * file, int w, int h, int frame=0, int tx=0, int ty=0, float scalex=0.0, float scaley=0.0 )
const unsigned int CGuiPic__LoadImage = 0x004A1B90;

// void	CGuiPic::UnLoadImage( int frame=-1 )
const unsigned int CGuiPic__UnloadImage = 0x0049F690;

// inline void CGuiPic::Render( int x, int y )	
const unsigned int CGuiPic__Render = 0x004A0E00;

// inline CItemRecord* GetItemRecordInfo( int nTypeID )
const unsigned int GetItemRecordInfo = 0x0040D8D0;

// CGuiFont
const unsigned int CGuiFont = 0x0069A9F0;

// void CGuiFont::BRender(unsigned int nIndex, const char* str, int x, int y, DWORD color, DWORD shadow)
const unsigned int CGuiFont__BRender = 0x00471570;

// MPRender
const unsigned int MPRender = 0x006177E4;

// BOOL MPRender::WorldToScreen(float fX, float fY, float fZ, int *pnX, int *pnY)
const unsigned int MPRender__WorldToScreen = 0x00617674;

// CMPFont
const unsigned int CMPFont = 0x0069A9F0;

// SIZE* CMPFont::GetTextSize(char* szText, SIZE* pSize,float fScale = 1.0f);
const unsigned int CMPFont__GetTextSize = 0x0061772C;

// CCharacter*	stNetActorCreate::CreateCha()
const unsigned int stNetActorCreate__CreateCha = 0x00507AC0;

// void NetActorDestroy(unsigned int nID, char chSeeType)
const unsigned int NetActorDestroy = 0x00503B80;

// CCharacter* CGameScene::SearchByID(unsigned long id)
const unsigned int CGameScene__SearchByID = 0x004D1810;

// static CGameScene* CGameApp::_pCurScene
const unsigned int CGameApp___pCurScene = 0x00694F04;

// void operator delete[](void *p)
const unsigned int operator_delete_array = 0x005CBBE0;

 

I try to do as you said. It doesn't show anything.

Share this post


Link to post
Share on other sites

Hello @gunnapong,

 

Can you send me your entire client?


Share this post


Link to post
Share on other sites

Current progress:

3.png

 

The form with the list of items opens by right-clicking on the monster -> List of items.

 

I want to thank @Graf for providing textures and form scripts. Thanks a lot!

  • Thanks 1

Share this post


Link to post
Share on other sites

Mod update from 01/20/2023

 

+ Added a form with a list of items dropped from the selected monster. This form is called as follows: Right mouse click on the monster -> "List of items" context menu item. Special thanks to @Graf for providing textures and scripts for the form.

 

4.png

 

 

Mod update from 01/21/2023

 

+ When you hover the mouse over an item on the form with a list of items dropped from the selected monster, a tooltip with information about the item appears.

 

5.png

 

 

The mod's source code repository has been updated. The binary files of the mod (.dll) have also been updated.

 

The topic has been updated.

  • Like 1

Share this post


Link to post
Share on other sites
54 minutes ago, V3ct0r said:

Mod update from 01/20/2023

 

+ Added a form with a list of items dropped from the selected monster. This form is called as follows: Right mouse click on the monster -> "List of items" context menu item. Special thanks to @Graf for providing textures and scripts for the form.

 

4.png

 

 

Mod update from 01/21/2023

 

+ When you hover the mouse over an item on the form with a list of items dropped from the selected monster, a tooltip with information about the item appears.

 

5.png

 

 

The mod's source code repository has been updated. The binary files of the mod (.dll) have also been updated.

 

The topic has been updated.

I'm very interested but Mods don't support game.exe I don't know number please tell me ,There seems to be more than before. Thanks. @V3ct0r

https://drive.google.com/file/d/1shTCGitJxk9gCD-8ZbDvrtwoZS4L1kNf/view

Edited by gunnapong

Share this post


Link to post
Share on other sites

very cool, thankyou v3ctor. 

 

btw. is there any fix for the icons? for the compiled clients.

 

the dro plist shows even if the show drop is disabled in game settings

Edited by squaller
  • Thanks 1

Share this post


Link to post
Share on other sites

Hello @squaller,

 

Thanks for a kind feedback!

 

Quote

btw. is there any fix for the icons? for the compiled clients.

Do you mean this problem? Unfortunately I don't have a solution.

 

Quote

the dro plist shows even if the show drop is disabled in game settings

This is fine. In the game settings, only the display of the list of items is disabled when hovering the mouse cursor over monsters:

0.png

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

Sign in to follow this  

×
×
  • Create New...