Core: Updated to 11.2.0

Port From (https://github.com/TrinityCore/TrinityCore/commit/5cf0c6c8bb2c4e58a2d66ba5f304af34d18a4782)
This commit is contained in:
Hondacrx
2025-08-25 20:48:29 -04:00
parent d64045154a
commit aaa669210a
63 changed files with 5958 additions and 5434 deletions
+6 -12
View File
@@ -520,7 +520,7 @@ namespace Game.Guilds
SQLTransaction trans = new SQLTransaction();
// Remove money from bank
ulong tabCost = GetGuildBankTabPrice(tabId) * MoneyConstants.Gold;
ulong tabCost = GetGuildBankTabPrice(tabId);
if (tabCost != 0 && !_ModifyBankMoney(trans, tabCost, false)) // Should not happen, this is checked by client
return;
@@ -2538,17 +2538,11 @@ namespace Game.Guilds
ulong GetGuildBankTabPrice(byte tabId)
{
// these prices are in gold units, not copper
switch (tabId)
{
case 0: return 100;
case 1: return 250;
case 2: return 500;
case 3: return 1000;
case 4: return 2500;
case 5: return 5000;
default: return 0;
}
var bankTab = CliDB.BankTabStorage.FirstOrDefault(bankTab => bankTab.Value.BankType == (int)BankType.Guild && bankTab.Value.OrderIndex == tabId).Value;
if (bankTab != null)
return bankTab.Cost;
return 0;
}
public static void SendCommandResult(WorldSession session, GuildCommandType type, GuildCommandError errCode, string param = "")