feat(Core/Config): allow initial (free) amount of Guild Bank tabs (#4290)

This commit is contained in:
Francesco Borzì
2021-01-20 11:19:09 +01:00
committed by GitHub
parent ec974e7306
commit ce4dbbce76
4 changed files with 15 additions and 0 deletions

View File

@@ -1203,6 +1203,11 @@ bool Guild::Create(Player* pLeader, std::string const& name)
_CreateDefaultGuildRanks(pLeaderSession->GetSessionDbLocaleIndex()); // Create default ranks
bool ret = AddMember(m_leaderGuid, GR_GUILDMASTER); // Add guildmaster
for (short i = 0; i < static_cast<short>(sWorld->getIntConfig(CONFIG_GUILD_BANK_INITIAL_TABS)); i++)
{
_CreateNewBankTab();
}
if (ret)
sScriptMgr->OnGuildCreate(this, pLeader, name);