Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

This is the hidden content, please

 

Hello everyone, today I am excited to share this armament system with you all. I'm not sure if it's available on the J4M platform or if it has already been translated there. If anyone thinks this information is unnecessary, please refrain from negative comments and simply skip it.

Step I: Create the Equipment Dialog

In the root directory, create a file named uiequipmentdialog.py and add the following code:

 
This is the hidden content, please

Step II: Define the Equipment Dialog

Next, in the uiscript directory, create a file called equipmentdialog.py and include the following:

 
This is the hidden content, please

Step III: Create Costume Equipment Dialog

Within the same uiscript directory, create a file named costumeequipmentdialog.py and include the following content:

 
This is the hidden content, please

Step IV: Update Packet Structures

In game/packet.h, locate:

 
This is the hidden content, please

Replace it with:

 
This is the hidden content, please

In game/char.cpp, find:

 
This is the hidden content, please

And replace the entire function with:

 
This is the hidden content, please

Final Steps: Add Equipment Button

In root/uitarget.py, find:

 
This is the hidden content, please

Insert below it:

 
This is the hidden content, please

Update Button Names:

In the same file, locate:

 
This is the hidden content, please

And append:

 
This is the hidden content, please

Add the View Equipment Function:

Search for

 
This is the hidden content, please

Add below it:

 
This is the hidden content, please

Modify Default Button Display:

Within root/uitarget.py, look for:

 
This is the hidden content, please

Under the line:

 
This is the hidden content, please

Add:

 
This is the hidden content, please

Update Interface Module:

Finally, in root/interfacemodule.py, search for:

 
This is the hidden content, please

And replace the function with:

 
This is the hidden content, please

Presently, to enable this functionality for players, you will need to go to cmd_general.cpp and search for:

 
This is the hidden content, please

Then replace the entire function with:

 
This is the hidden content, please

Conclusion

Update uiscript/equipmentdialog.py to ensure it supports displaying all equipped items (e.g., rings, belts, defense sites, attack sites) effectively within the inventory.

Here’s a basic structure for item slots:

 
This is the hidden content, please

Ensure to adjust the coordinates ("x" and "y") as necessary based on your design requirements.

Link to comment
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.   Paste as plain text instead

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...