Jump to content
Sign in to follow this  
Tierri Lopes

Maximo Jogadores Em Guild

Recommended Posts

Ir até ao ficheiro game/src/guild.cpp

 

Procurar por:

 

int CGuild::GetMaxMemberCount()

 

Substituir a função por (para membros ilimitados):

 

int CGuild::GetMaxMemberCount()

{

if ( m_iMemberCountBonus < 0 || m_iMemberCountBonus > 18 )

m_iMemberCountBonus = 0;

 

return INT_MAX;

}

 

Ou substituir a função por (para mudar limite máximo):

 

int CGuild::GetMaxMemberCount()

{

if ( m_iMemberCountBonus < 0 || m_iMemberCountBonus > 18 )

m_iMemberCountBonus = 0;

 

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

}

 

Onde X = número máximo de jogadores na guild.

 

 

Caso queiram que a guild a nível 1 possa logo ter o número máximo de membros (ao invés do exemplo anterior que número de membros aumenta com nível da tribo), mudar para:

 

int CGuild::GetMaxMemberCount()

{

if ( m_iMemberCountBonus < 0 || m_iMemberCountBonus > 18 )

m_iMemberCountBonus = 0;

 

return X;

}

 

Onde X = número máximo de jogadores na guild.

  • Upvote 2

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.

Our website is made possible by displaying online advertisements to our visitors.
Please consider supporting us by disabling your ad blocker.
You will be able to see content when you disable your adblocker and enable javascript.