Jump to content
×
×
  • Create New...
  • 0

Limit of members in a guild


MORTE

Question

Where do I need to change to put a maximum of 20 members in a guild?

 

int CGuild::GetMaxMemberCount()
{
	// GUILD_IS_FULL_BUG_FIX
	if ( m_iMemberCountBonus < 0 || m_iMemberCountBonus > 18 )
		m_iMemberCountBonus = 0;
	// END_GUILD_IS_FULL_BUG_FIX

	if ( LC_IsHongKong() == true )
	{
		quest::PC* pPC = quest::CQuestManager::instance().GetPC(GetMasterPID());

		if ( pPC != NULL )
		{
			if ( pPC->GetFlag("guild.is_unlimit_member") == 1 )
			{
				return INT_MAX;
			}
		}
	}

	return 32 + 2 * (m_data.level-1) + m_iMemberCountBonus;
}

How do I get a +1 spot on each level? What maximum should be 20 members in the guild?

 

Nível 1: Maximum of 1 members.

Nível 2: Maximum of 2 members.

...

Nível 20: Maximum of 20 members.

 

Link to comment

4 answers to this question

Recommended Posts

  • 0

Replace the last return with:

if (m_data.level > 20) // in case you've increased the maximum guild's level & still want a max of 20 members
	return 20;
return m_data.level;
  • Love 2

when you return 0 and server doesn't boot:

unknown.png

Link to comment
  • 0
41 minutes ago, PACI said:

Replace the last return with:

if (m_data.level > 20) // in case you've increased the maximum guild's level & still want a max of 20 members
	return 20;
return m_data.level;

Do not increase on, maximum is 20. Thanks!

int CGuild::GetMaxMemberCount()
{
	if (m_data.level <=5) { 
		return 5;
	} else if (m_data.level <=10) {
		return 10;
	} else if (m_data.level <=15) {
		return 15;
	} else {
		return 20;
	}
    
    return m_data.level;
}

How does it work?

Level 5 or less = max 5 members

Level 10 or less = max 10 members

Level 15 or less = max 15 members

Level greater than 15 = max 20 members

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.