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

Lua Pokedash Pota Party System

Harkenzord

Member
Joined
Dec 25, 2020
Messages
49
Reaction score
11
Hello guys, im running a Pokedash POTA V1.2 server, and it got a issue with the party exp share, was trying to modify the party.cpp file to allow experience be always shared when actived by leader, no need to attack or anything, but i dont know exactly how to do it.

Someone give me a hand please


Lua:
    if (!player->hasFlag(PlayerFlag_NotGainInFight)) {
        //check if the player has healed/attacked anything recently
        auto it = ticksMap.find(player->getID());
        if (it == ticksMap.end()) {
            return false;
        }

        uint64_t timeDiff = OTSYS_TIME() - it->second;
        if (timeDiff > static_cast<uint64_t>(g_config.getNumber(ConfigManager::PZ_LOCKED))) {
            return false;
        }
    }
 
Back
Top