[8721] Allow guildmaster to withdraw money before first bank tab is purchased.

Attached sql file needs to be run to repair existing structure.

Signed-off-by: unknown <Jakub@.(none)>
This commit is contained in:
leak 2009-10-24 09:24:31 +02:00 committed by unknown
parent 3cc7f36006
commit 455a053b3d
7 changed files with 10 additions and 4 deletions

View file

@ -1121,7 +1121,6 @@ void WorldSession::HandleGuildBankBuyTab( WorldPacket & recv_data )
// Go on with creating tab
pGuild->CreateNewBankTab();
GetPlayer()->ModifyMoney(-int(TabCost));
pGuild->SetBankMoneyPerDay(GetPlayer()->GetRank(), WITHDRAW_MONEY_UNLIMITED);
pGuild->SetBankRightsAndSlots(GetPlayer()->GetRank(), TabId, GUILD_BANK_RIGHT_FULL, WITHDRAW_SLOT_UNLIMITED, true);
pGuild->Roster(); // broadcast for tab rights update
pGuild->DisplayGuildBankTabsInfo(this);