Stanos
Veteran OT User
UPDATE.
It looks like its source problem or maybe its not even a problem it just works not how i want because it requires to much skill tries after you reach 14 any of skill. Tried to edit skill formula in vocation from
to
At this point it helps but after 20 it requires to much tries again
Tried changing whole function
With this update i wasnt able to login to server because it wont let me. So i dont know any ideas how to fix this problem that requires to much tries to gain one skill, because it would take like 3-4hours to reach for example 30 axe fighting
It looks like its source problem or maybe its not even a problem it just works not how i want because it requires to much skill tries after you reach 14 any of skill. Tried to edit skill formula in vocation from
C++:
uint32_t Vocation::skillBase[SKILL_LAST + 1] = {50, 50, 50, 50, 30, 100, 20};
C++:
uint32_t Vocation::skillBase[SKILL_LAST + 1] = {1, 1, 1, 1, 1, 1, 1};
Tried changing whole function
C++:
uint64_t fib(uint64_t n)
{
if(n<3)
return 1;
return fib(n-2)+fib(n-1);
}
uint32_t Vocation::skillBase[SKILL_LAST + 1] = {50, 50, 50, 50, 30, 100, 100};
uint64_t Vocation::getReqSkillTries(uint8_t skill, uint16_t level)
{
if (skill > SKILL_LAST) {
return 0;
}
auto it = cacheSkill[skill].find(level);
if (it != cacheSkill[skill].end()) {
return it->second;
}
uint64_t tries = static_cast<uint64_t>(skillMultipliers[skill] * fib(level + skillBase[skill]));
cacheSkill[skill][level] = tries;
return tries;
}
Last edited: