mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 17:49:10 +00:00
feat(Core/Config): allow initial (free) amount of Guild Bank tabs (#4290)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user