Welcome to the RaGEZONE - MMORPG development forums.

Max Skill on Level-Up

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 ...

Results 1 to 4 of 4
  1. #1
    [R8]ℓσℓ32
    Rank
    Alpha Member
    Join Date
    Oct 2008
    Location
    Here!
    Posts
    1,534
    Liked
    223
    Gamertag: ThawingDrake736

    Max Skill on Level-Up

    Click
    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.

  2. #2
    Loaded FlyFF
    Rank
    Member +
    Join Date
    Apr 2012
    Location
    Philippines
    Posts
    216
    Liked
    6

    Re: Max Skill on Level-Up

    This is nice. Thanks for sharing the structure of the codes for the Source Files
    Loaded FlyFF | Developer / Administrator

  3. #3
    The baddest.
    Rank
    Member +
    Join Date
    Nov 2011
    Posts
    287
    Liked
    80

    Re: Max Skill on Level-Up

    Thanks for improving it, but mine was just the code from the skilllevelall command to move::initlevel
    Anyway, thanks again for fixing it :D

  4. #4
    Infraction Banned
    Rank
    Member +
    Join Date
    Aug 2011
    Location
    Not Found
    Posts
    1,137
    Liked
    143

    Re: Max Skill on Level-Up

    Thanks caja!

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •