user.cpp de aratarak yapıştırın
if (level != m_bLevel)
m_bLevel = level;
- if (bLevelUp)
+ if( bLevelUp
+ && GetLevel() + 1 != level)
+ {
+ uint8 tempLevel = GetLevel() - level;
+ uint8 nSkill = (tempLevel - 9) * 2;;
+ int16 nStat = 10 + (tempLevel - 1) * 3;
+
+
+ if(level > 60);
+ nStat += 2 * (level - 60);
+
+ m_sPoints += nStat;
+ m_bstrSkill[SkillPointFree] += nSkill;
+
+ }
+ else if (bLevelUp)
{
// On each level up, we should give 3 stat points for levels 1-60.
// For each level above that, we give an additional 2 stat points (so 5 stat points per level).
if (level != m_bLevel)
m_bLevel = level;
- if (bLevelUp)
+ if( bLevelUp
+ && GetLevel() + 1 != level)
+ {
+ uint8 tempLevel = GetLevel() - level;
+ uint8 nSkill = (tempLevel - 9) * 2;;
+ int16 nStat = 10 + (tempLevel - 1) * 3;
+
+
+ if(level > 60);
+ nStat += 2 * (level - 60);
+
+ m_sPoints += nStat;
+ m_bstrSkill[SkillPointFree] += nSkill;
+
+ }
+ else if (bLevelUp)
{
// On each level up, we should give 3 stat points for levels 1-60.
// For each level above that, we give an additional 2 stat points (so 5 stat points per level).