Jump to content

ReFresh

Active Member
  • Posts

    1797
  • Joined

  • Last visited

  • Days Won

    4
  • Feedback

    0%

Posts posted by ReFresh

  1. @PetePeterYes, if you want to be perfectionist, you can do it like that, but since in source wasn't any function like that, we could simply use the function, which was in source and that was the GetSkillCurrentEfficientPercentage. By using this function, you'll get the same values, because of this:

    PythonPlayer.cpp:

    float CPythonPlayer::GetSkillCurrentEfficientPercentage(DWORD dwSlotIndex)
    {
    	if (dwSlotIndex >= SKILL_MAX_NUM)
    		return 0;
    
    	return m_playerStatus.aSkill[dwSlotIndex].fcurEfficientPercentage;
    }
    
    void CPythonPlayer::SetSkillLevel_(DWORD dwSkillIndex, DWORD dwSkillGrade, DWORD dwSkillLevel)
    {
    	...
    	m_playerStatus.aSkill[dwSlotIndex].fcurEfficientPercentage = LocaleService_GetSkillPower(dwSkillLevel) / 100.0f;
    	...
    }

    But as you said, in server source it's done like that:

    Party.cpp:

    float k = (float) ch->GetSkillPowerByLevel( MIN(SKILL_MAX_LEVEL, m_iLeadership ) )/ 100.0f;

    You'll get correct values in both ways.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.