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

Compiling Disable expShare in TFS 0.2x

Kayan

Active Member
Joined
Sep 19, 2007
Messages
1,561
Reaction score
38
Location
Santa Catarina
Hello i want a way to disable the option Enable Shared Exp when players are in party!

Please rep++​
 
try this

search in party.cpp this function:
Code:
bool Party::setSharedExperience(Player* player, bool _sharedExpActive)

then change this to:
Code:
bool Party::setSharedExperience(Player* player, bool _sharedExpActive)
{
        return true;
}

edit...

or send this message to player:
Code:
bool Party::setSharedExperience(Player* player, bool _sharedExpActive)
{
	if(!player || player->isRemoved() || player != leader)
		return false;

	leader->sendTextMessage(MSG_INFO_DESCR, "Party Shared Experience is no longer available.");
	
	return true;
}
 
Last edited:
Back
Top