Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

To enhance the gameplay experience, it's crucial to ensure that buffs remain active even after death in PVM scenarios. In this guide, I'll outline the necessary modifications to achieve this functionality.

Step-by-Step Instructions

Modifications in char_battle.cpp

To implement the desired change, follow these steps:

  1. Open the char_battle.cpp File:
    Locate the char_battle.cpp file, where character behaviors during battles are defined.

  2. Find the Death Event Handler:
    Search for the Dead function, which handles character death events:

     
  • This is the hidden content, please

     

  • Modify the Death Event Handler:
    Replace the existing code with the updated logic:

     
  1. This is the hidden content, please

     

Modifications in char.h

  1. Open the char.h File:
    Locate the char.h file, which contains function declarations for character behavior.

  2. Update the ClearAffect Function Declaration:
    Change the function declaration to include an additional parameter:

     
  1. This is the hidden content, please

     

Modifications in char_affect.cpp

  1. Open the char_affect.cpp File:
    Locate the char_affect.cpp file, where affect-related functions are implemented.

  2. Update the ClearAffect Function:
    Modify the ClearAffect function to include the new parameter:

     
  • This is the hidden content, please

     

  • Add Buff-Specific Logic:
    After checking for affects that shouldn't be cleared, add a block of code to handle buffs:

     
  1. This is the hidden content, please

     

 

By making these modifications, you ensure that buffs remain active after death in PVM scenarios, providing a more immersive experience for players.

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