Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

Introduction: In this guide, we will address a problem that occurs when players attempt to change their equipment while their inventory is full. By making a few simple edits to the existing game code, you can enhance the user experience and avoid frustrating situations where players cannot change equipment.

Step-by-Step Instructions

Step 1: Locate the Relevant Code

First, open the char_item.cpp file within your game’s source code. Once you have the file open, search for the following condition:

 
This is the hidden content, please

Step 2: Modify the Condition

Next, replace the existing line with the following modified logic:

 
This is the hidden content, please

Explanation of the Code Changes

  1. Commenting Out the Line: The first line is commented out to remove the dual check for unequipping and equipping, which may lead to unnecessary restrictions.

  2. Simplified Logic: The second line establishes a straightforward check: if the item being equipped cannot be equipped (i.e., CanEquipNow(item1) returns false), we immediately exit the function.

  3. Dragon Soul Check: The final condition ensures that if the item being unequipped is classified as a Dragon Soul and cannot be unequipped, the function will also terminate, preventing any further action.

 

After making these changes, compile your code, and you should be ready to go! This simple adjustment helps streamline equipment swaps, particularly when the inventory is full, enhancing overall gameplay.

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