This is nice. Thanks for sharing the structure of the codes for the Source Files![]()
This is a discussion on Max Skill on Level-Up within the FlyFF Releases forums, part of the Flyff category; This is something I did a few minutes ago after test the Max98 code, which was only working on vagrant ...
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()
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 )
Tested and working, although there are other ways to do.Code:((CUser*)this)->MaxSkills();
This is nice. Thanks for sharing the structure of the codes for the Source Files![]()
Loaded FlyFF | Developer / Administrator
Thanks for improving it, but mine was just the code from the skilllevelall command to move::initlevel
Anyway, thanks again for fixing it :D
Thanks caja!