antiblock
https://arwen2.global/
  • Chatbox

    You don't have permission to chat.
    Load More
Sign in to follow this  
Luffy

Maximo Jogadores Em Guild

1 post in this topic

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.

 

Fonte: https://tlthings.net

Créditos:  Tierri Lopes

Tópico: Eu

Edited by Luffy (see edit history)

Share this post


Link to post
Share on other sites
antiblock
diamwall

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