05/24/2013, 02:36
|
#2
|
elite*gold: 115
Join Date: Jan 2012
Posts: 1,156
Received Thanks: 894
|
Quote:
Originally Posted by Sedrika
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() * 3 ) - 59 ) - 3 );
else
m_nRemainGP = ( ( ((CUser*)this)->GetLevel() * 2) - 2 );
m_nStr = 15;
m_nSta = 15;
m_nDex = 15;
m_nInt = 15;
SetHitPoint( GetMaxHitPoint() );
SetManaPoint( GetMaxManaPoint() );
SetFatiguePoint( GetMaxFatiguePoint() );
((CUser*)this)->AddSetState( m_nStr, m_nSta, m_nDex, m_nInt, m_nRemainGP );
#if __VER >= 13 // __HONORABLE_TITLE // ´ÞÀÎ
((CUser*)this)->CheckHonorStat();
((CUser*)this)->AddHonorListAck();
g_UserMng.AddHonorTitleChange( this, m_nHonor);
#endif // __HONORABLE_TITLE // ´ÞÀÎ
#endif // __WORLDSERVER
}
|
Credits to sedrika.
|
|
|