Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

This guide walks you through the process of integrating a new Affect Blend Potion into your C++ project. By following the outlined steps, you'll update both the client and server components effectively.

Step-by-Step Implementation

CLIENT Side Updates

1. Modify the Affect Shower File
Open root/uiAffectShower.py and make the following changes:

  • Search for:

     
  • This is the hidden content, please

     

  • Add after:

     

2. Update Type Handling Logic
Locate and revise the logic in the same file:

  • Search for:

     
  • This is the hidden content, please

     

  • Replace with:

     

3. Add Affect Data in Affects
In the same file, find:

  • Search for:

     
  • This is the hidden content, please

     

  • Add after:

     

4. Set Tooltips
In locale/en/locale_game.txt, add the following item descriptions wherever suitable:

 
This is the hidden content, please

5. Define New Affect Potions
In src/Svn/Client/UserInterface/InstanceBase.h, make the following additions:

  • Search for:

     
  • This is the hidden content, please

     

  • Add after:

     

6. Update Python Modules
In src/Svn/Client/UserInterface/PythonApplicationModule.cpp, insert the following:

  • Search for:

     
  • This is the hidden content, please

     

  • Add after:

     

7. Add Potion Constants in Character Module
In src/Svn/Client/UserInterface/PythonCharacterModule.cpp, find:

  • Search for:

     
  • This is the hidden content, please

     

  • Add after:

     

8. Enable New Affect Potion Definition
In src/Svn/Client/UserInterface/Locale_inc.h, insert:

 
This is the hidden content, please

SERVER Side Updates

1. Enhance Character Affect Handling
Open the file src/Svn/Server/game/src/char_affect.cpp and make these adjustments:

  • Search for:

     
  • This is the hidden content, please

     

  • Add after:

     

2. Define Affect Potion Logic for Character
In src/Svn/Server/game/src/char_item.cpp, locate:

  • Search for:

     
  • This is the hidden content, please

     

  • Add after:

     

3. Incorporate Affect Potion Logic
Find the following line in the same file:

  • Search for:

     
  • This is the hidden content, please

     

  • Add before:

     

4. Update Character Header Interface
In src/Svn/Server/game/src/char.h, locate:

  • Search for:

     
  • This is the hidden content, please

     

  • Add below:

     

5. Adjust Affect Enum
In src/Svn/Server/game/src/affect.h, locate:

  • Search for:

     
  • This is the hidden content, please

     

  • Delete and replace with:

    This is the hidden content, please

     

     

6. Define New Affect Potion in Service Header
Lastly, in src/Svn/Server/common/service.h, add the following line:

 
This is the hidden content, please

By carefully following these steps, you will successfully implement the Affect Blend Potion in your game. This enhancement will elevate gameplay and provide players with new options for potions.

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