Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

In this guide, we will implement a new feature that allows players to open a personal shop while wearing armor. The following steps will detail how to modify the relevant source files to introduce this functionality effectively.

Modifications Required

1. Update service.h

At the very top of the service.h file, just above the existing

 
This is the hidden content, please

add the following line:

 
This is the hidden content, please

2. Modify char.cpp

Next, open the char.cpp file and locate this function:


    
This is the hidden content, please

Then, search for this condition:

 
This is the hidden content, please

and just below it, insert the same armor check:

 
This is the hidden content, please

3. Adjust char_item.cpp

Open char_item.cpp and find the function:

 
This is the hidden content, please

You need to replace the entire function with this new implementation:

 
This is the hidden content, please

 

After implementing the changes outlined above, players will be able to open their shops while wearing armor, enhancing the gameplay experience. Make sure to test the functionality to confirm that everything works as intended before deployment.

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