• DISCORD CHAT At https://discord.gg/tfRXDnh To View Our Forum must be registered!!! RULES ARE ALL POSITIVE COMMENT CANT RESPECT OUR PLAYER AND STAFF IT AUTO BANNED NO ACCEPTION!!!!

Source Snippet Auto Max Skill

FoxSinVsBan

Administrator
Staff member
#1
We Begin with the
Versioncommon.h Worldserver & Neuz:

#define __AUTO_SKILL_MAX

Mover.cpp
Search in this function
void CMover::InitProp( BOOL bInitAI )

at this
if( m_nJob != -1 )
{
ItemProp** apSkillProp = prj.m_aJobSkill[ m_nJob ];
int nJobNum = prj.m_aJobSkillNum[ m_nJob ];

LPSKILL lpSkill;
for( i = 0; i < nJobNum; i++ )
{
ItemProp* pSkillProp = apSkillProp[ i ];
lpSkill = &m_aJobSkill[ i ];
lpSkill->dwSkill = pSkillProp->dwID;

and put this under it

#ifdef __AUTO_SKILL_MAX
lpSkill->dwLevel = pSkillProp->dwExpertMax;
#endif //__AUTO_SKILL_MAX

in this function
void CMover::InitLevel( int nJob, LONG nLevel, BOOL bGamma )

search for this

m_nJob = JOB_VAGRANT;
ItemProp** apSkillProp = prj.m_aJobSkill[ m_nJob ];
int nJobNum = prj.m_aJobSkillNum[ m_nJob ];
for( i = 0; i < nJobNum; i++ )
{
ItemProp* pSkillProp = apSkillProp[ i ];
lpSkill = &m_aJobSkill[ i ];
lpSkill->dwSkill = pSkillProp->dwID;

and add this under

#ifdef __AUTO_SKILL_MAX
lpSkill->dwLevel = pSkillProp->dwExpertMax;
#endif //__AUTO_SKILL_MAX

MoverParam.cpp
in this function

BOOL CMover::SetExpert( int nJob )

under this
lpSkill->dwSkill = pSkillProp->dwID;

add this here
#ifdef __AUTO_SKILL_MAX
lpSkill->dwLevel = pSkillProp->dwExpertMax;
#endif //__AUTO_SKILL_MAX

in this function
BOOL CMover::AddChangeJob( int nJob )

Search this
ItemProp* pSkillProp = apSkillProp[ i ];
lpSkill = &m_aJobSkill[ i + MAX_JOB_SKILL ];
lpSkill->dwSkill = pSkillProp->dwID;

and put this under it

#ifdef __AUTO_SKILL_MAX
lpSkill->dwLevel = pSkillProp->dwExpertMax;
#endif //__AUTO_SKILL_MAX


now scroll down till u find this


ItemProp* pSkillProp = apSkillProp[ i ];
lpSkill = &m_aJobSkill[ i + MAX_JOB_SKILL + MAX_EXPERT_SKILL ];
lpSkill->dwSkill = pSkillProp->dwID;

and put this under it

#ifdef __AUTO_SKILL_MAX
lpSkill->dwLevel = pSkillProp->dwExpertMax;
#endif //__AUTO_SKILL_MAX


scroll down till u find this

ItemProp* pSkillProp = apSkillProp[ i ];
lpSkill = &m_aJobSkill[ i + MAX_JOB_SKILL + MAX_EXPERT_SKILL + MAX_PRO_SKILL];
lpSkill->dwSkill = pSkillProp->dwID;

and put this under it

#ifdef __AUTO_SKILL_MAX
lpSkill->dwLevel = pSkillProp->dwExpertMax;
#endif //__AUTO_SKILL_MAX


scroll again down till u find this

itemProp* pSkillProp = apSkillProp[ i ];
lpSkill = &m_aJobSkill[ i + MAX_JOB_SKILL + MAX_EXPERT_SKILL + MAX_PRO_SKILL + MAX_MASTER_SKILL ];
lpSkill->dwSkill = pSkillProp->dwID;


and put this under it

#ifdef __AUTO_SKILL_MAX
lpSkill->dwLevel = pSkillProp->dwExpertMax;
#endif //__AUTO_SKILL_MAX


scroll one more down again to reach this

ItemProp* pSkillProp = apSkillProp[ i ];
lpSkill = &m_aJobSkill[ i + MAX_JOB_SKILL + MAX_EXPERT_SKILL + MAX_PRO_SKILL + MAX_MASTER_SKILL + MAX_HERO_SKILL ];
lpSkill->dwSkill = pSkillProp->dwID;


and add this here

#ifdef __AUTO_SKILL_MAX
lpSkill->dwLevel = pSkillProp->dwExpertMax;
#endif //__AUTO_SKILL_MAX


done u have now auto skill on lvl up
 
Last edited: