Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Max Skill on Level-Up

[R8]ℓσℓ32
Loyal Member
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()
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.
 
Experienced Elementalist
Joined
Apr 20, 2012
Messages
231
Reaction score
8
This is nice. Thanks for sharing the structure of the codes for the Source Files :thumbup:
 
Experienced Elementalist
Joined
Nov 5, 2011
Messages
242
Reaction score
75
Thanks for improving it, but mine was just the code from the skilllevelall command to move::initlevel
Anyway, thanks again for fixing it :D
 
Experienced Elementalist
Joined
Feb 21, 2012
Messages
284
Reaction score
25
Hello! What could be the problem in my side because I got this unresolved external symbol.

"Error 97 error LNK2019: unresolved external symbol "public: void __thiscall CMover::MaxSkills(void)" (?MaxSkills@CMover@@QAEXXZ) referenced in function "public: void __thiscall CMover::InitLevelPumbaaa(int,long,int)" (?InitLevelPumbaaa@CMover@@QAEXHJH@Z) C:\Users\Administrator\Desktop\SERVER2\Source\WorldServer\mover.obj"

Declarations where good but I got that and am figuring it out for hours now but got ni luck??????
 
Back
Top