Core/Misc: ported cryptography updates and all that entrails from 335/master and killed bnetserver

This commit is contained in:
Ovahlord committed 2025-07-21 19:04:56 +02:00
1 parent a576c8328b
commit 64b77e359d
413 files changed
+8953 -56006

No files matched your search

+2 -4
View File
@@ -2194,8 +2194,7 @@ void Guild::HandleMemberDepositMoney(WorldSession* session, uint64 amount, bool
_LogBankEvent(trans, cashFlow ? GUILD_BANK_LOG_CASH_FLOW_DEPOSIT : GUILD_BANK_LOG_DEPOSIT_MONEY, uint8(0), player->GetGUID().GetCounter(), amount);
CharacterDatabase.CommitTransaction(trans);
std::string aux = ByteArrayToHexStr(reinterpret_cast<uint8*>(&m_bankMoney), 8, true);
_BroadcastEvent(GE_BANK_MONEY_SET, player->GetGUID(), aux.c_str());
_BroadcastEvent(GE_BANK_MONEY_SET, player->GetGUID(), Trinity::StringFormat("%016llX", m_bankMoney).c_str());
if (player->GetSession()->HasPermission(rbac::RBAC_PERM_LOG_GM_TRADE))
{
@@ -2247,8 +2246,7 @@ bool Guild::HandleMemberWithdrawMoney(WorldSession* session, uint64 amount, bool
_LogBankEvent(trans, repair ? GUILD_BANK_LOG_REPAIR_MONEY : GUILD_BANK_LOG_WITHDRAW_MONEY, uint8(0), player->GetGUID().GetCounter(), amount);
CharacterDatabase.CommitTransaction(trans);
std::string aux = ByteArrayToHexStr(reinterpret_cast<uint8*>(&m_bankMoney), 8, true);
_BroadcastEvent(GE_BANK_MONEY_SET, player->GetGUID(), aux.c_str());
_BroadcastEvent(GE_BANK_MONEY_SET, player->GetGUID(), Trinity::StringFormat("%016llX", m_bankMoney).c_str());
if (repair)
UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_SPENT_GOLD_GUILD_REPAIRS, amount, 0, 0, nullptr, player);