New Extended BattlePass System

Member
Sep
Threads
0
51
0
6
Rating - 0%
0   0   0
5v9Ret.gif


[Hidden content]
s
 
Member
Dec
Threads
0
67
1
8
Rating - 0%
0   0   0
Just to help you to not lose the progress sometimes when you restart the server.

C++:
In char.cpp, search for:

void CHARACTER::EndBattlePassMission(const BYTE idx) {
   
add after and before #endif:
   
void CHARACTER::CheckBattlePass()
{
    const auto& missions = CNewBattlePassManager::instance().GetAllMissions();
    const auto& progress = GetBattlePassVector();

    if (missions.empty() || progress.empty())
        return;

    if (missions.size() != progress.size())
    {
        sys_err("BattlePass mismatch for player [%s] (ID: %u): missions.size() = %zu, progress.size() = %zu",
            GetName(), GetPlayerID(), missions.size(), progress.size());
    }

    const size_t count = std::min(missions.size(), progress.size());

    for (size_t i = 0; i < count; ++i)
    {
        const auto& mission = missions[i];
        const auto& [currentValue, isCompleted] = progress[i];
    }
}
   
Now, move to input_login and search for void CInputLogin::Entergame(LPDESC d, const char* data), inside this add
   
#ifdef ENABLE_NEW_BATTLE_PASS
    sys_err("Checking battle pass for %s", ch->GetName());
    ch->CheckBattlePass();
#endif
 
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock