Bug Stats

05/24/2013 01:00 tangia1426#1
Can i ask how to fix Bug stat un restat my total stats is 580 + then wen i use restat my stats goes to 430 how to fix that?
05/24/2013 02:36 Rhyder`#2
Quote:
Originally Posted by Sedrika View Post
Some people know there is a stat bug if you use Restat with 3rd Job classes. Here is my way to fix it.

PHP Code:
void CMover::ReState()
{
#ifdef __WORLDSERVER
    
if( ((CUser*)this)->GetLevel() >= 60 && ((CUser*)this)->GetJob() >= 16 )
        
m_nRemainGP = ( ( ( ((CUser*)this)->GetLevel() * ) - 59 ) - );
    else
        
m_nRemainGP = ( ( ((CUser*)this)->GetLevel() * 2) - );
    
    
m_nStr 15;
    
m_nSta 15;
    
m_nDex 15;
    
m_nInt 15;

    
SetHitPointGetMaxHitPoint() );
    
SetManaPointGetMaxManaPoint() );
    
SetFatiguePointGetMaxFatiguePoint() );
    ((
CUser*)this)->AddSetStatem_nStrm_nStam_nDexm_nIntm_nRemainGP );
#if __VER >= 13 // __HONORABLE_TITLE            // ´ÞÀÎ
    
((CUser*)this)->CheckHonorStat();
    ((
CUser*)this)->AddHonorListAck();
    
g_UserMng.AddHonorTitleChangethism_nHonor);
#endif    // __HONORABLE_TITLE            // ´ÞÀÎ
#endif // __WORLDSERVER

Credits to sedrika.