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

Party Sytem (Help)

Joined
Jul 25, 2007
Messages
382
Reaction score
38
Alright I'm trying to change the shared experience part of the party a bit, basically I'm just wanting it to add an extra x%(gets from config) for each party member INSTEAD of just x% for the entire party. Like right now its if you have shared party enabled you'll get a 5% boost. I want it to be like if you have party share enable you get a 5% boost for each additional member.

I'm not sure if this is right, doubt it is why I'm posting it here for help. Line 320 party.cpp, newest tfs.

ORIGINAL:
if(experience > (double)g_config.getNumber(ConfigManager::EXTRA_PARTY_LIMIT))
shareExperience += (experience * (double)(g_config.getNumber(ConfigManager::EXTRA_PARTY_PERCENT) / 100));

MY GUESS:
if(experience > (double)g_config.getNumber(ConfigManager::EXTRA_PARTY_LIMIT))
shareExperience += (experience * (double)(g_config.getNumber((ConfigManager::EXTRA_PARTY_PERCENT)*memberList.size()) / 100));

I'd greatly appreciate any help. Thanks.
 

Similar threads

Back
Top