Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

In this update, we will enhance the transmutation system by converting data types to support larger values. The transition from standard DWORD to long long allows for more flexibility and greater capacity for cost values during item transmutation. Below are the detailed code adjustments that need to be made across various files.

Binary Source Modifications

  1. Update in Packet.h (Client/UserInterface)

    Find and modify the following section:

     
This is the hidden content, please

To:

 
  • This is the hidden content, please

     

  • Adjustments in PythonChangeLook.cpp (Client/UserInterface)

    Locate the function where the cost is retrieved, and replace:

     
This is the hidden content, please

With:

 
  • PyObject * GetClCost(PyObject * poSelf, PyObject * poArgs)
    {
        return Py_BuildValue("L", CPythonChangeLook::Instance().GetCost());
    }
        
  • Changes in PythonChangeLook.h (Client/UserInterface)

    Modify the class member definitions as follows:

     
  1. This is the hidden content, please

     

Server Source Modifications

  1. Update in game/src/packet.h

    In the server-side packet structure, find this portion:

     
This is the hidden content, please

Change to:

 
  • This is the hidden content, please

     

  • Adjust RefineClMaterials():

    Within the function definition of CHARACTER::RefineClMaterials(), replace the instance where the cost is defined:

     
This is the hidden content, please

With:

 
  1. This is the hidden content, please

    This adjustment ensures compatibility with the new long long type, allowing for larger value processing.

 

With the aforementioned changes, our transmutation system now supports larger financial values, making it more robust and capable of handling extensive in-game transactions without running into maximum limit issues. This improvement will ultimately enhance the gameplay experience.

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