MORTE 78 Posted November 23, 2016 Share Posted November 23, 2016 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 Share on other sites More sharing options...
Developer PACI 919 Posted November 23, 2016 Developer Share Posted November 23, 2016 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; 2 when you return 0 and server doesn't boot: Link to comment Share on other sites More sharing options...
MORTE 78 Posted November 23, 2016 Author Share Posted November 23, 2016 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 Share on other sites More sharing options...
Developer PACI 919 Posted November 23, 2016 Developer Share Posted November 23, 2016 Yes, what you wrote works just like you said. 1 when you return 0 and server doesn't boot: Link to comment Share on other sites More sharing options...
MORTE 78 Posted November 23, 2016 Author Share Posted November 23, 2016 Sorted out! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now