Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Gunz HP & AP Problem.

Initiate Mage
Joined
Apr 23, 2015
Messages
3
Reaction score
0
Hi guys.
I recently got a problem. So the problem I have is when I respawn receive an extra 1,000 HP and AP .
I reviewed everything about InitProperties File ZCharacter by what is normal and DEFAULT_CHAR_HP set to 100 and the AP 0

I do not know what else to do.

Wootzie - Gunz HP & AP Problem. - RaGEZONE Forums


Recently I changed my old project from 2003 to 2010 .
 
Joined
Jul 9, 2009
Messages
716
Reaction score
324
By source fix (Recommended):

MMatchDBMgr.cpp search for:

poutCharInfo->m_nHP = (int)rs.Field("HP").AsInt();
poutCharInfo->m_nAP = (int)rs.Field("AP").AsInt();

replace with:

poutCharInfo->m_nHP = 0;
poutCharInfo->m_nAP = 0;

and rebuild matchserver & client

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

OR by Database fix:

Modified Character table and set HP, AP columns to:
Datatype -> int
Default Value or binding -> 0
and save (CTRL + S)

*You also can setup both of them if you want.
 
Last edited:
Upvote 0
Back
Top