mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core: Removed more operator workarounds for ACE_Singleton (missed previously because of inconsistent naming)
--HG-- branch : trunk
This commit is contained in:
@@ -49,7 +49,7 @@ void Guild::SendCommandResult(WorldSession* session, GuildCommandType type, Guil
|
||||
data << uint32(errCode);
|
||||
session->SendPacket(&data);
|
||||
|
||||
sLog.outDebug("WORLD: Sent (SMSG_GUILD_COMMAND_RESULT)");
|
||||
sLog->outDebug("WORLD: Sent (SMSG_GUILD_COMMAND_RESULT)");
|
||||
}
|
||||
|
||||
void Guild::SendSaveEmblemResult(WorldSession* session, GuildEmblemError errCode)
|
||||
@@ -58,7 +58,7 @@ void Guild::SendSaveEmblemResult(WorldSession* session, GuildEmblemError errCode
|
||||
data << uint32(errCode);
|
||||
session->SendPacket(&data);
|
||||
|
||||
sLog.outDebug("WORLD: Sent (MSG_SAVE_GUILD_EMBLEM)");
|
||||
sLog->outDebug("WORLD: Sent (MSG_SAVE_GUILD_EMBLEM)");
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
@@ -334,21 +334,21 @@ bool Guild::BankTab::LoadItemFromDB(Field* fields)
|
||||
uint32 itemEntry = fields[15].GetUInt32();
|
||||
if (slotId >= GUILD_BANK_MAX_SLOTS)
|
||||
{
|
||||
sLog.outError("Invalid slot for item (GUID: %u, id: %u) in guild bank, skipped.", itemGuid, itemEntry);
|
||||
sLog->outError("Invalid slot for item (GUID: %u, id: %u) in guild bank, skipped.", itemGuid, itemEntry);
|
||||
return false;
|
||||
}
|
||||
|
||||
ItemPrototype const* proto = ObjectMgr::GetItemPrototype(itemEntry);
|
||||
if (!proto)
|
||||
{
|
||||
sLog.outError("Unknown item (GUID: %u, id: %u) in guild bank, skipped.", itemGuid, itemEntry);
|
||||
sLog->outError("Unknown item (GUID: %u, id: %u) in guild bank, skipped.", itemGuid, itemEntry);
|
||||
return false;
|
||||
}
|
||||
|
||||
Item *pItem = NewItemOrBag(proto);
|
||||
if (!pItem->LoadFromDB(itemGuid, 0, fields, itemEntry))
|
||||
{
|
||||
sLog.outError("Item (GUID %u, id: %u) not found in item_instance, deleting from guild bank!", itemGuid, itemEntry);
|
||||
sLog->outError("Item (GUID %u, id: %u) not found in item_instance, deleting from guild bank!", itemGuid, itemEntry);
|
||||
|
||||
PreparedStatement *stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_NONEXISTENT_GUILD_BANK_ITEM);
|
||||
stmt->setUInt32(0, m_guildId);
|
||||
@@ -596,7 +596,7 @@ bool Guild::Member::LoadFromDB(Field* fields)
|
||||
|
||||
if (!m_zoneId)
|
||||
{
|
||||
sLog.outError("Player (GUID: %u) has broken zone-data", GUID_LOPART(m_guid));
|
||||
sLog->outError("Player (GUID: %u) has broken zone-data", GUID_LOPART(m_guid));
|
||||
m_zoneId = Player::GetZoneIdFromDB(m_guid);
|
||||
}
|
||||
return true;
|
||||
@@ -607,12 +607,12 @@ bool Guild::Member::CheckStats() const
|
||||
{
|
||||
if (m_level < 1)
|
||||
{
|
||||
sLog.outError("Player (GUID: %u) has a broken data in field `characters`.`level`, deleting him from guild!", GUID_LOPART(m_guid));
|
||||
sLog->outError("Player (GUID: %u) has a broken data in field `characters`.`level`, deleting him from guild!", GUID_LOPART(m_guid));
|
||||
return false;
|
||||
}
|
||||
if (m_class < CLASS_WARRIOR || m_class >= MAX_CLASSES)
|
||||
{
|
||||
sLog.outError("Player (GUID: %u) has a broken data in field `characters`.`class`, deleting him from guild!", GUID_LOPART(m_guid));
|
||||
sLog->outError("Player (GUID: %u) has a broken data in field `characters`.`class`, deleting him from guild!", GUID_LOPART(m_guid));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@@ -912,7 +912,7 @@ Item* Guild::BankMoveItemData::StoreItem(SQLTransaction& trans, Item* pItem)
|
||||
ItemPosCount pos(*itr);
|
||||
++itr;
|
||||
|
||||
sLog.outDebug("GUILD STORAGE: StoreItem tab = %u, slot = %u, item = %u, count = %u",
|
||||
sLog->outDebug("GUILD STORAGE: StoreItem tab = %u, slot = %u, item = %u, count = %u",
|
||||
m_container, m_slotId, pItem->GetEntry(), pItem->GetCount());
|
||||
pLastItem = _StoreItem(trans, pTab, pItem, pos, itr != m_vec.end());
|
||||
}
|
||||
@@ -935,8 +935,8 @@ void Guild::BankMoveItemData::LogBankEvent(SQLTransaction& trans, MoveItemData*
|
||||
void Guild::BankMoveItemData::LogAction(MoveItemData* pFrom) const
|
||||
{
|
||||
MoveItemData::LogAction(pFrom);
|
||||
if (!pFrom->IsBank() && sWorld.getBoolConfig(CONFIG_GM_LOG_TRADE) && m_pPlayer->GetSession()->GetSecurity() > SEC_PLAYER) // TODO: move to scripts
|
||||
sLog.outCommand(m_pPlayer->GetSession()->GetAccountId(),
|
||||
if (!pFrom->IsBank() && sWorld->getBoolConfig(CONFIG_GM_LOG_TRADE) && m_pPlayer->GetSession()->GetSecurity() > SEC_PLAYER) // TODO: move to scripts
|
||||
sLog->outCommand(m_pPlayer->GetSession()->GetAccountId(),
|
||||
"GM %s (Account: %u) deposit item: %s (Entry: %d Count: %u) to guild bank (Guild ID: %u)",
|
||||
m_pPlayer->GetName(), m_pPlayer->GetSession()->GetAccountId(),
|
||||
pFrom->GetItem()->GetProto()->Name1, pFrom->GetItem()->GetEntry(), pFrom->GetItem()->GetCount(),
|
||||
@@ -1021,7 +1021,7 @@ void Guild::BankMoveItemData::_CanStoreItemInTab(Item* pItem, uint8 skipSlotId,
|
||||
|
||||
uint8 Guild::BankMoveItemData::_CanStore(Item* pItem, bool swap)
|
||||
{
|
||||
sLog.outDebug("GUILD STORAGE: CanStore() tab = %u, slot = %u, item = %u, count = %u",
|
||||
sLog->outDebug("GUILD STORAGE: CanStore() tab = %u, slot = %u, item = %u, count = %u",
|
||||
m_container, m_slotId, pItem->GetEntry(), pItem->GetCount());
|
||||
|
||||
uint32 count = pItem->GetCount();
|
||||
@@ -1107,7 +1107,7 @@ bool Guild::Create(Player* pLeader, const std::string& name)
|
||||
m_createdDate = ::time(NULL);
|
||||
_CreateLogHolders();
|
||||
|
||||
sLog.outDebug("GUILD: creating guild [%s] for leader %s (%u)",
|
||||
sLog->outDebug("GUILD: creating guild [%s] for leader %s (%u)",
|
||||
name.c_str(), pLeader->GetName(), GUID_LOPART(m_leaderGuid));
|
||||
|
||||
PreparedStatement* stmt = NULL;
|
||||
@@ -1217,7 +1217,7 @@ void Guild::HandleRoster(WorldSession *session /*= NULL*/)
|
||||
session->SendPacket(&data);
|
||||
else
|
||||
BroadcastPacket(&data);
|
||||
sLog.outDebug("WORLD: Sent (SMSG_GUILD_ROSTER)");
|
||||
sLog->outDebug("WORLD: Sent (SMSG_GUILD_ROSTER)");
|
||||
}
|
||||
|
||||
void Guild::HandleQuery(WorldSession *session)
|
||||
@@ -1239,7 +1239,7 @@ void Guild::HandleQuery(WorldSession *session)
|
||||
data << uint32(0); // Something new in WotLK
|
||||
|
||||
session->SendPacket(&data);
|
||||
sLog.outDebug("WORLD: Sent (SMSG_GUILD_QUERY_RESPONSE)");
|
||||
sLog->outDebug("WORLD: Sent (SMSG_GUILD_QUERY_RESPONSE)");
|
||||
}
|
||||
|
||||
void Guild::HandleSetMOTD(WorldSession* session, const std::string& motd)
|
||||
@@ -1363,7 +1363,7 @@ void Guild::HandleSetRankInfo(WorldSession* session, uint8 rankId, const std::st
|
||||
SendCommandResult(session, GUILD_INVITE_S, ERR_GUILD_PERMISSIONS);
|
||||
else if (RankInfo* rankInfo = GetRankInfo(rankId))
|
||||
{
|
||||
sLog.outDebug("WORLD: Changed RankName to '%s', rights to 0x%08X", name.c_str(), rights);
|
||||
sLog->outDebug("WORLD: Changed RankName to '%s', rights to 0x%08X", name.c_str(), rights);
|
||||
|
||||
rankInfo->SetName(name);
|
||||
rankInfo->SetRights(rights);
|
||||
@@ -1403,7 +1403,7 @@ void Guild::HandleBuyBankTab(WorldSession* session, uint8 tabId)
|
||||
|
||||
void Guild::HandleInviteMember(WorldSession* session, const std::string& name)
|
||||
{
|
||||
Player* pInvitee = sObjectAccessor.FindPlayerByName(name.c_str());
|
||||
Player* pInvitee = sObjectAccessor->FindPlayerByName(name.c_str());
|
||||
if (!pInvitee)
|
||||
{
|
||||
SendCommandResult(session, GUILD_INVITE_S, ERR_GUILD_PLAYER_NOT_FOUND_S, name);
|
||||
@@ -1414,7 +1414,7 @@ void Guild::HandleInviteMember(WorldSession* session, const std::string& name)
|
||||
// Do not show invitations from ignored players
|
||||
if (pInvitee->GetSocial()->HasIgnore(player->GetGUIDLow()))
|
||||
return;
|
||||
if (!sWorld.getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD) && pInvitee->GetTeam() != player->GetTeam())
|
||||
if (!sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD) && pInvitee->GetTeam() != player->GetTeam())
|
||||
{
|
||||
SendCommandResult(session, GUILD_INVITE_S, ERR_GUILD_NOT_ALLIED, name);
|
||||
return;
|
||||
@@ -1438,7 +1438,7 @@ void Guild::HandleInviteMember(WorldSession* session, const std::string& name)
|
||||
return;
|
||||
}
|
||||
|
||||
sLog.outDebug("Player %s invited %s to join his Guild", player->GetName(), name.c_str());
|
||||
sLog->outDebug("Player %s invited %s to join his Guild", player->GetName(), name.c_str());
|
||||
|
||||
pInvitee->SetGuildIdInvited(m_id);
|
||||
_LogEvent(GUILD_EVENT_LOG_INVITE_PLAYER, player->GetGUIDLow(), pInvitee->GetGUIDLow());
|
||||
@@ -1448,13 +1448,13 @@ void Guild::HandleInviteMember(WorldSession* session, const std::string& name)
|
||||
data << m_name;
|
||||
pInvitee->GetSession()->SendPacket(&data);
|
||||
|
||||
sLog.outDebug("WORLD: Sent (SMSG_GUILD_INVITE)");
|
||||
sLog->outDebug("WORLD: Sent (SMSG_GUILD_INVITE)");
|
||||
}
|
||||
|
||||
void Guild::HandleAcceptMember(WorldSession* session)
|
||||
{
|
||||
Player* player = session->GetPlayer();
|
||||
if (!sWorld.getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD) &&
|
||||
if (!sWorld->getBoolConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD) &&
|
||||
player->GetTeam() != sObjectMgr->GetPlayerTeamByGUID(GetLeaderGUID()))
|
||||
return;
|
||||
|
||||
@@ -1628,9 +1628,9 @@ void Guild::HandleMemberDepositMoney(WorldSession* session, uint32 amount)
|
||||
player->ModifyMoney(-int32(amount));
|
||||
player->SaveGoldToDB(trans);
|
||||
// Log GM action (TODO: move to scripts)
|
||||
if (player->GetSession()->GetSecurity() > SEC_PLAYER && sWorld.getBoolConfig(CONFIG_GM_LOG_TRADE))
|
||||
if (player->GetSession()->GetSecurity() > SEC_PLAYER && sWorld->getBoolConfig(CONFIG_GM_LOG_TRADE))
|
||||
{
|
||||
sLog.outCommand(player->GetSession()->GetAccountId(),
|
||||
sLog->outCommand(player->GetSession()->GetAccountId(),
|
||||
"GM %s (Account: %u) deposit money (Amount: %u) to pGuild bank (Guild ID %u)",
|
||||
player->GetName(), player->GetSession()->GetAccountId(), amount, m_id);
|
||||
}
|
||||
@@ -1712,7 +1712,7 @@ void Guild::HandleDisband(WorldSession* session)
|
||||
else
|
||||
{
|
||||
Disband();
|
||||
sLog.outDebug("WORLD: Guild Successfully Disbanded");
|
||||
sLog->outDebug("WORLD: Guild Successfully Disbanded");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1727,7 +1727,7 @@ void Guild::SendInfo(WorldSession* session) const
|
||||
data << m_accountsNumber; // Number of accounts
|
||||
|
||||
session->SendPacket(&data);
|
||||
sLog.outDebug("WORLD: Sent (SMSG_GUILD_INFO)");
|
||||
sLog->outDebug("WORLD: Sent (SMSG_GUILD_INFO)");
|
||||
}
|
||||
|
||||
void Guild::SendEventLog(WorldSession *session) const
|
||||
@@ -1735,7 +1735,7 @@ void Guild::SendEventLog(WorldSession *session) const
|
||||
WorldPacket data(MSG_GUILD_EVENT_LOG_QUERY, 1 + m_eventLog->GetSize() * (1 + 8 + 4));
|
||||
m_eventLog->WritePacket(data);
|
||||
session->SendPacket(&data);
|
||||
sLog.outDebug("WORLD: Sent (MSG_GUILD_EVENT_LOG_QUERY)");
|
||||
sLog->outDebug("WORLD: Sent (MSG_GUILD_EVENT_LOG_QUERY)");
|
||||
}
|
||||
|
||||
void Guild::SendBankLog(WorldSession *session, uint8 tabId) const
|
||||
@@ -1748,7 +1748,7 @@ void Guild::SendBankLog(WorldSession *session, uint8 tabId) const
|
||||
data << uint8(tabId);
|
||||
pLog->WritePacket(data);
|
||||
session->SendPacket(&data);
|
||||
sLog.outDebug("WORLD: Sent (MSG_GUILD_BANK_LOG_QUERY)");
|
||||
sLog->outDebug("WORLD: Sent (MSG_GUILD_BANK_LOG_QUERY)");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1777,7 +1777,7 @@ void Guild::SendBankTabsInfo(WorldSession *session) const
|
||||
data << uint8(0); // Do not send tab content
|
||||
session->SendPacket(&data);
|
||||
|
||||
sLog.outDebug("WORLD: Sent (SMSG_GUILD_BANK_LIST)");
|
||||
sLog->outDebug("WORLD: Sent (SMSG_GUILD_BANK_LIST)");
|
||||
}
|
||||
|
||||
void Guild::SendBankTabText(WorldSession *session, uint8 tabId) const
|
||||
@@ -1803,7 +1803,7 @@ void Guild::SendPermissions(WorldSession *session) const
|
||||
data << uint32(_GetMemberRemainingSlots(guid, tabId));
|
||||
}
|
||||
session->SendPacket(&data);
|
||||
sLog.outDebug("WORLD: Sent (MSG_GUILD_PERMISSIONS)");
|
||||
sLog->outDebug("WORLD: Sent (MSG_GUILD_PERMISSIONS)");
|
||||
}
|
||||
|
||||
void Guild::SendMoneyInfo(WorldSession *session) const
|
||||
@@ -1811,7 +1811,7 @@ void Guild::SendMoneyInfo(WorldSession *session) const
|
||||
WorldPacket data(MSG_GUILD_BANK_MONEY_WITHDRAWN, 4);
|
||||
data << uint32(_GetMemberRemainingMoney(session->GetPlayer()->GetGUID()));
|
||||
session->SendPacket(&data);
|
||||
sLog.outDebug("WORLD: Sent MSG_GUILD_BANK_MONEY_WITHDRAWN");
|
||||
sLog->outDebug("WORLD: Sent MSG_GUILD_BANK_MONEY_WITHDRAWN");
|
||||
}
|
||||
|
||||
void Guild::SendLoginInfo(WorldSession* session) const
|
||||
@@ -1821,7 +1821,7 @@ void Guild::SendLoginInfo(WorldSession* session) const
|
||||
data << uint8(1);
|
||||
data << m_motd;
|
||||
session->SendPacket(&data);
|
||||
sLog.outDebug("WORLD: Sent guild MOTD (SMSG_GUILD_EVENT)");
|
||||
sLog->outDebug("WORLD: Sent guild MOTD (SMSG_GUILD_EVENT)");
|
||||
|
||||
SendBankTabsInfo(session);
|
||||
|
||||
@@ -1918,13 +1918,13 @@ bool Guild::LoadBankEventLogFromDB(Field* fields)
|
||||
{
|
||||
if (!isMoneyTab)
|
||||
{
|
||||
sLog.outError("GuildBankEventLog ERROR: MoneyEvent(LogGuid: %u, Guild: %u) does not belong to money tab (%u), ignoring...", guid, m_id, dbTabId);
|
||||
sLog->outError("GuildBankEventLog ERROR: MoneyEvent(LogGuid: %u, Guild: %u) does not belong to money tab (%u), ignoring...", guid, m_id, dbTabId);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (isMoneyTab)
|
||||
{
|
||||
sLog.outError("GuildBankEventLog ERROR: non-money event (LogGuid: %u, Guild: %u) belongs to money tab, ignoring...", guid, m_id);
|
||||
sLog->outError("GuildBankEventLog ERROR: non-money event (LogGuid: %u, Guild: %u) belongs to money tab, ignoring...", guid, m_id);
|
||||
return false;
|
||||
}
|
||||
pLog->LoadEvent(new BankEventLogEntry(
|
||||
@@ -1947,7 +1947,7 @@ bool Guild::LoadBankTabFromDB(Field* fields)
|
||||
uint32 tabId = fields[1].GetUInt8();
|
||||
if (tabId >= _GetPurchasedTabsSize())
|
||||
{
|
||||
sLog.outError("Invalid tab (tabId: %u) in guild bank, skipped.", tabId);
|
||||
sLog->outError("Invalid tab (tabId: %u) in guild bank, skipped.", tabId);
|
||||
return false;
|
||||
}
|
||||
return m_bankTabs[tabId]->LoadFromDB(fields);
|
||||
@@ -1958,7 +1958,7 @@ bool Guild::LoadBankItemFromDB(Field* fields)
|
||||
uint8 tabId = fields[12].GetUInt8();
|
||||
if (tabId >= _GetPurchasedTabsSize())
|
||||
{
|
||||
sLog.outError("Invalid tab for item (GUID: %u, id: #%u) in guild bank, skipped.",
|
||||
sLog->outError("Invalid tab for item (GUID: %u, id: #%u) in guild bank, skipped.",
|
||||
fields[14].GetUInt32(), fields[15].GetUInt32());
|
||||
return false;
|
||||
}
|
||||
@@ -1976,7 +1976,7 @@ bool Guild::Validate()
|
||||
bool broken_ranks = false;
|
||||
if (_GetRanksSize() < GUILD_RANKS_MIN_COUNT || _GetRanksSize() > GUILD_RANKS_MAX_COUNT)
|
||||
{
|
||||
sLog.outError("Guild %u has invalid number of ranks, creating new...", m_id);
|
||||
sLog->outError("Guild %u has invalid number of ranks, creating new...", m_id);
|
||||
broken_ranks = true;
|
||||
}
|
||||
else
|
||||
@@ -1986,7 +1986,7 @@ bool Guild::Validate()
|
||||
RankInfo* rankInfo = GetRankInfo(rankId);
|
||||
if (rankInfo->GetId() != rankId)
|
||||
{
|
||||
sLog.outError("Guild %u has broken rank id %u, creating default set of ranks...", m_id, rankId);
|
||||
sLog->outError("Guild %u has broken rank id %u, creating default set of ranks...", m_id, rankId);
|
||||
broken_ranks = true;
|
||||
}
|
||||
}
|
||||
@@ -2020,7 +2020,7 @@ bool Guild::Validate()
|
||||
_SetLeaderGUID(pLeader);
|
||||
|
||||
// Check config if multiple guildmasters are allowed
|
||||
if (!sConfig.GetBoolDefault("Guild.AllowMultipleGuildMaster", 0))
|
||||
if (!sConfig->GetBoolDefault("Guild.AllowMultipleGuildMaster", 0))
|
||||
for (Members::iterator itr = m_members.begin(); itr != m_members.end(); ++itr)
|
||||
if (itr->second->GetRankId() == GR_GUILDMASTER && !itr->second->IsSamePlayer(m_leaderGuid))
|
||||
itr->second->ChangeRank(GR_OFFICER);
|
||||
@@ -2242,9 +2242,9 @@ void Guild::SetBankTabText(uint8 tabId, const std::string& text)
|
||||
// Private methods
|
||||
void Guild::_CreateLogHolders()
|
||||
{
|
||||
m_eventLog = new LogHolder(m_id, sWorld.getIntConfig(CONFIG_GUILD_EVENT_LOG_COUNT));
|
||||
m_eventLog = new LogHolder(m_id, sWorld->getIntConfig(CONFIG_GUILD_EVENT_LOG_COUNT));
|
||||
for (uint8 tabId = 0; tabId <= GUILD_BANK_MAX_TABS; ++tabId)
|
||||
m_bankEventLog[tabId] = new LogHolder(m_id, sWorld.getIntConfig(CONFIG_GUILD_BANK_EVENT_LOG_COUNT));
|
||||
m_bankEventLog[tabId] = new LogHolder(m_id, sWorld->getIntConfig(CONFIG_GUILD_BANK_EVENT_LOG_COUNT));
|
||||
}
|
||||
|
||||
bool Guild::_CreateNewBankTab()
|
||||
@@ -2536,7 +2536,7 @@ void Guild::_MoveItems(MoveItemData* pSrc, MoveItemData* pDest, uint32 splitedAm
|
||||
/*
|
||||
if (pItemSrc->GetCount() == 0)
|
||||
{
|
||||
sLog.outCrash("Guild::SwapItems: Player %s(GUIDLow: %u) tried to move item %u from tab %u slot %u to tab %u slot %u, but item %u has a stack of zero!",
|
||||
sLog->outCrash("Guild::SwapItems: Player %s(GUIDLow: %u) tried to move item %u from tab %u slot %u to tab %u slot %u, but item %u has a stack of zero!",
|
||||
player->GetName(), player->GetGUIDLow(), pItemSrc->GetEntry(), tabId, slotId, destTabId, destSlotId, pItemSrc->GetEntry());
|
||||
//return; // Commented out for now, uncomment when it's verified that this causes a crash!!
|
||||
}
|
||||
@@ -2646,7 +2646,7 @@ void Guild::_SendBankContent(WorldSession *session, uint8 tabId) const
|
||||
|
||||
session->SendPacket(&data);
|
||||
|
||||
sLog.outDebug("WORLD: Sent (SMSG_GUILD_BANK_LIST)");
|
||||
sLog->outDebug("WORLD: Sent (SMSG_GUILD_BANK_LIST)");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2661,7 +2661,7 @@ void Guild::_SendBankMoneyUpdate(WorldSession *session) const
|
||||
data << uint8(0); // No items
|
||||
BroadcastPacket(&data);
|
||||
|
||||
sLog.outDebug("WORLD: Sent (SMSG_GUILD_BANK_LIST)");
|
||||
sLog->outDebug("WORLD: Sent (SMSG_GUILD_BANK_LIST)");
|
||||
}
|
||||
|
||||
void Guild::_SendBankContentUpdate(MoveItemData* pSrc, MoveItemData* pDest) const
|
||||
@@ -2721,7 +2721,7 @@ void Guild::_SendBankContentUpdate(uint8 tabId, SlotIds slots) const
|
||||
player->GetSession()->SendPacket(&data);
|
||||
}
|
||||
|
||||
sLog.outDebug("WORLD: Sent (SMSG_GUILD_BANK_LIST)");
|
||||
sLog->outDebug("WORLD: Sent (SMSG_GUILD_BANK_LIST)");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2745,5 +2745,5 @@ void Guild::_BroadcastEvent(GuildEvents guildEvent, const uint64& guid, const ch
|
||||
|
||||
BroadcastPacket(&data);
|
||||
|
||||
sLog.outDebug("WORLD: Sent SMSG_GUILD_EVENT");
|
||||
sLog->outDebug("WORLD: Sent SMSG_GUILD_EVENT");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user