EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   COMMITTED: Client::Save - more than 30k hp issue (https://www.eqemulator.org/forums/showthread.php?t=31474)

Secrets 06-13-2010 12:13 AM

COMMITTED: Client::Save - more than 30k hp issue
 
I think this is the only spot in code with this issue, but there might be more.

zone/client.cpp

Code:

if (GetHP() <= 0) {
                if (GetMaxHP() > 30000)
                        m_pp.cur_hp = 30000;
                else
                        m_pp.cur_hp = GetMaxHP();
        }
        else if (GetHP() > 30000)
                m_pp.cur_hp = 30000;
        else
                m_pp.cur_hp = GetHP();
        m_pp.mana = cur_mana;
        m_pp.endurance = cur_end;

just need to remove the
Code:

        else if (GetHP() > 30000)
                m_pp.cur_hp = 30000;

and clients will no longer zone into zones with 30k health if they have more than 30k health to begin with. currently if you have some crazy number (i'm lookin at you EZ server) and zone, your HP resets to 30k on zoning in and regens upwards, but as soon as you zone, it resets to 30k.

thepoetwarrior 06-13-2010 04:32 AM

Awsome update! Can't wait for it to go live!

Thanks Secrets!


All times are GMT -4. The time now is 12:00 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.