feat(Core/Config): allow initial (free) amount of Guild Bank tabs (#4290)
This commit is contained in:
parent
ec974e7306
commit
ce4dbbce76
4 changed files with 15 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue