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
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;
}
}