public void OpenBank(string bankId)
{
// Previously we used these two for id and title, which allowed
// access to anything from anywhere. Make this an option?
//packet.PutString("Global");
//packet.PutString("Bank");
if (!AuraData.BankDb.Exists(bankId))
{
Log.Warning("OpenBank: Unknown bank '{0}'", bankId);
this.Msg(string.Format("(Error: Unknown bank '{0}')", bankId));
return;
}
var bankTitle = BankInventory.GetName(bankId);
// Override bank if global bank is activated
if (ChannelServer.Instance.Conf.World.GlobalBank)
{
bankId = "Global";
bankTitle = L("Global Bank");
}
this.Player.Temp.CurrentBankId = bankId;
this.Player.Temp.CurrentBankTitle = bankTitle;
Send.OpenBank(this.Player, this.Player.Client.Account.Bank, BankTabRace.Human, bankId, bankTitle);
}