Jump to content
Maintenance : Final step ×

[FIX] HP/SP reset


Recommended Posts

There is an error that I personally and one of my friends were facing, and there is someone who was suffering from this error, but we could not find a solution, so I decided to search for the solution and share it with everyone so that everyone can benefit.

Here is the error explanation

1. Make yourself level 5 (or any, at lvl mix you can see the bug better)
2. Give yourself a pet with HP and call it.
3. put points on hp/int/str/dex and watch how the hp bar goes backwards with the hp the pet has and keeps resetting.

 

It is an old error and therefore there are new and famous sources that have not solved this problem, although they are basic problems that must be solved before anything else.

Here is the solution

 

open Char.cpp

Search

void CHARACTER::UpdatePacket()
{

Below you add:

    if (!m_pointsInstant.computed)
        return;

Search for:

    long lSPRecovery = GetPoint(POINT_SP_RECOVERY);

Add under:

    m_pointsInstant.computed = false;

Search for:

    if (IsPC())
    {
        if (this->GetHP() != iCurHP)
            this->PointChange(POINT_HP, iCurHP - this->GetHP());
        if (this->GetSP() != iCurSP)
            this->PointChange(POINT_SP, iCurSP - this->GetSP());
    }

Add under:

m_pointsInstant.computed = true;

Open Char.h and search for:

    LPENTITY        m_pDragonSoulRefineWindowOpener;

Add under:

    bool            computed;

 

Good luck to you
Note: All content aims to benefit everyone. I want to help everyone as much as possible so that everyone is happy.

  • Love 1
Link to comment
Share on other sites

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.