• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Having problem with skill stages

Stanos

Veteran OT User
Joined
Jun 12, 2018
Messages
587
Solutions
4
Reaction score
315
Location
Europe
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
C++:
uint32_t Vocation::skillBase[SKILL_LAST + 1] = {50, 50, 50, 50, 30, 100, 20};
to
C++:
uint32_t Vocation::skillBase[SKILL_LAST + 1] = {1, 1, 1, 1, 1, 1, 1};
At this point it helps but after 20 it requires to much tries again :D
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;
}
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
 
Last edited:
Back
Top