- Joined
- Oct 6, 2008
- Messages
- 1,396
- Reaction score
- 198
This is something I did a few minutes ago after test the Max98 code, which was only working on vagrant skills.
Mover.cpp - Before int CMover::GetCurrentMaxSkillPoint()
Mover.h - void ProcessBuff();
Mover.cpp - Inside __WORLDSERVER of each function. InitLevelPumbaaa only if you have that changejob
BOOL CMover::InitSkillExp()
void CMover::InitLevelPumbaaa( int nJob, LONG nLevel, BOOL bGamma )
void CMover::InitLevel( int nJob, LONG nLevel, BOOL bGamma )
Tested and working, although there are other ways to do.
Mover.cpp - Before int CMover::GetCurrentMaxSkillPoint()
Code:
void CMover::MaxSkills()
{
#ifdef __WORLDSERVER
LPSKILL pSkill = NULL;
ItemProp* pSkillProp = NULL;
for( int i = 0; i < MAX_SKILL_JOB; i++ )
{
pSkill = &(((CUser*)this)->m_aJobSkill[i]);
if( pSkill == NULL || pSkill->dwSkill == 0xffffffff )
continue;
pSkillProp = prj.GetSkillProp( pSkill->dwSkill );
if( pSkillProp == NULL )
continue;
pSkill->dwLevel = pSkillProp->dwExpertMax;
((CUser*)this)->AddSetSkill( pSkill->dwSkill, pSkill->dwLevel );
}
#endif // __WORLDSERVER
}
Mover.h - void ProcessBuff();
Code:
void MaxSkills();
Mover.cpp - Inside __WORLDSERVER of each function. InitLevelPumbaaa only if you have that changejob
BOOL CMover::InitSkillExp()
void CMover::InitLevelPumbaaa( int nJob, LONG nLevel, BOOL bGamma )
void CMover::InitLevel( int nJob, LONG nLevel, BOOL bGamma )
Code:
((CUser*)this)->MaxSkills();
Tested and working, although there are other ways to do.