• 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!

C++ how to remove downgrade level from source

I'm not sure because I did not test it, but I think you just need to comment these lines from player.cpp:
C++:
        uint64_t lossExperience = getLostExperience();
        removeExperience(lossExperience, false);
 
I'm not sure because I did not test it, but I think you just need to comment these lines from player.cpp:
C++:
        uint64_t lossExperience = getLostExperience();
        removeExperience(lossExperience, false);
i'v found this
C++:
if(skillLoss)
    {
        double reduction = 1.;
        if(g_config.getBool(ConfigManager::FAIRFIGHT_REDUCTION) && opponents > level)
            reduction -= (double)level / opponents;

        uint64_t lossExperience = (uint64_t)std::floor(reduction * getLostExperience()), currExperience = experience;
        removeExperience(lossExperience, false);
        double percent = 1. - ((double)(currExperience - lossExperience) / std::max((uint64_t)1, currExperience));
 
Just comment this line:
Code:
removeExperience(lossExperience, false);
Like:
Code:
//removeExperience(lossExperience, false);
 
Just comment this line:
Code:
removeExperience(lossExperience, false);
Like:
Code:
//removeExperience(lossExperience, false);
i got this error while compile can you enter with teamviwer?
Code:
  [Linker error] undefined reference to `lua_pushnumber'
  [Linker error] undefined reference to `lua_pushnumber'
 
Back
Top