mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[9838] More log filters and macro uses.
* LogFilter_Weather * LogFilter_PeriodicAffects * LogFilter_PlayerMoves * LogFilter_SQLText * LogFilter_AIAndMovegens * LogFilter_PlayerStats
This commit is contained in:
parent
e83aa1ba9d
commit
722135b326
89 changed files with 996 additions and 997 deletions
|
|
@ -74,7 +74,7 @@ bool Guild::Create(Player* leader, std::string gname)
|
|||
m_PurchasedTabs = 0;
|
||||
m_Id = sObjectMgr.GenerateGuildId();
|
||||
|
||||
sLog.outDebug("GUILD: creating guild %s to leader: %u", gname.c_str(), GUID_LOPART(m_LeaderGuid));
|
||||
DEBUG_LOG("GUILD: creating guild %s to leader: %u", gname.c_str(), GUID_LOPART(m_LeaderGuid));
|
||||
|
||||
// gname already assigned to Guild::name, use it to encode string for DB
|
||||
CharacterDatabase.escape_string(gname);
|
||||
|
|
@ -753,7 +753,7 @@ void Guild::Roster(WorldSession *session /*= NULL*/)
|
|||
session->SendPacket(&data);
|
||||
else
|
||||
BroadcastPacket(&data);
|
||||
sLog.outDebug( "WORLD: Sent (SMSG_GUILD_ROSTER)" );
|
||||
DEBUG_LOG( "WORLD: Sent (SMSG_GUILD_ROSTER)" );
|
||||
}
|
||||
|
||||
void Guild::Query(WorldSession *session)
|
||||
|
|
@ -779,7 +779,7 @@ void Guild::Query(WorldSession *session)
|
|||
data << uint32(0); // probably real ranks count
|
||||
|
||||
session->SendPacket( &data );
|
||||
sLog.outDebug( "WORLD: Sent (SMSG_GUILD_QUERY_RESPONSE)" );
|
||||
DEBUG_LOG( "WORLD: Sent (SMSG_GUILD_QUERY_RESPONSE)" );
|
||||
}
|
||||
|
||||
void Guild::SetEmblem(uint32 emblemStyle, uint32 emblemColor, uint32 borderStyle, uint32 borderColor, uint32 backgroundColor)
|
||||
|
|
@ -828,7 +828,7 @@ void Guild::DisplayGuildEventLog(WorldSession *session)
|
|||
data << uint32(time(NULL)-itr->TimeStamp);
|
||||
}
|
||||
session->SendPacket(&data);
|
||||
sLog.outDebug("WORLD: Sent (MSG_GUILD_EVENT_LOG_QUERY)");
|
||||
DEBUG_LOG("WORLD: Sent (MSG_GUILD_EVENT_LOG_QUERY)");
|
||||
}
|
||||
|
||||
// Load guild eventlog from DB
|
||||
|
|
@ -917,7 +917,7 @@ void Guild::DisplayGuildBankContent(WorldSession *session, uint8 TabId)
|
|||
|
||||
session->SendPacket(&data);
|
||||
|
||||
sLog.outDebug("WORLD: Sent (SMSG_GUILD_BANK_LIST)");
|
||||
DEBUG_LOG("WORLD: Sent (SMSG_GUILD_BANK_LIST)");
|
||||
}
|
||||
|
||||
void Guild::DisplayGuildBankMoneyUpdate(WorldSession *session)
|
||||
|
|
@ -931,7 +931,7 @@ void Guild::DisplayGuildBankMoneyUpdate(WorldSession *session)
|
|||
data << uint8(0); // not send items
|
||||
BroadcastPacket(&data);
|
||||
|
||||
sLog.outDebug("WORLD: Sent (SMSG_GUILD_BANK_LIST)");
|
||||
DEBUG_LOG("WORLD: Sent (SMSG_GUILD_BANK_LIST)");
|
||||
}
|
||||
|
||||
void Guild::DisplayGuildBankContentUpdate(uint8 TabId, int32 slot1, int32 slot2)
|
||||
|
|
@ -978,7 +978,7 @@ void Guild::DisplayGuildBankContentUpdate(uint8 TabId, int32 slot1, int32 slot2)
|
|||
player->GetSession()->SendPacket(&data);
|
||||
}
|
||||
|
||||
sLog.outDebug("WORLD: Sent (SMSG_GUILD_BANK_LIST)");
|
||||
DEBUG_LOG("WORLD: Sent (SMSG_GUILD_BANK_LIST)");
|
||||
}
|
||||
|
||||
void Guild::DisplayGuildBankContentUpdate(uint8 TabId, GuildItemPosCountVec const& slots)
|
||||
|
|
@ -1013,7 +1013,7 @@ void Guild::DisplayGuildBankContentUpdate(uint8 TabId, GuildItemPosCountVec cons
|
|||
player->GetSession()->SendPacket(&data);
|
||||
}
|
||||
|
||||
sLog.outDebug("WORLD: Sent (SMSG_GUILD_BANK_LIST)");
|
||||
DEBUG_LOG("WORLD: Sent (SMSG_GUILD_BANK_LIST)");
|
||||
}
|
||||
|
||||
Item* Guild::GetItem(uint8 TabId, uint8 SlotId)
|
||||
|
|
@ -1045,7 +1045,7 @@ void Guild::DisplayGuildBankTabsInfo(WorldSession *session)
|
|||
data << uint8(0); // Do not send tab content
|
||||
session->SendPacket(&data);
|
||||
|
||||
sLog.outDebug("WORLD: Sent (SMSG_GUILD_BANK_LIST)");
|
||||
DEBUG_LOG("WORLD: Sent (SMSG_GUILD_BANK_LIST)");
|
||||
}
|
||||
|
||||
void Guild::CreateNewBankTab()
|
||||
|
|
@ -1177,7 +1177,7 @@ void Guild::SendMoneyInfo(WorldSession *session, uint32 LowGuid)
|
|||
WorldPacket data(MSG_GUILD_BANK_MONEY_WITHDRAWN, 4);
|
||||
data << uint32(GetMemberMoneyWithdrawRem(LowGuid));
|
||||
session->SendPacket(&data);
|
||||
sLog.outDebug("WORLD: Sent MSG_GUILD_BANK_MONEY_WITHDRAWN");
|
||||
DEBUG_LOG("WORLD: Sent MSG_GUILD_BANK_MONEY_WITHDRAWN");
|
||||
}
|
||||
|
||||
bool Guild::MemberMoneyWithdraw(uint32 amount, uint32 LowGuid)
|
||||
|
|
@ -1551,7 +1551,7 @@ void Guild::DisplayGuildBankLogs(WorldSession *session, uint8 TabId)
|
|||
}
|
||||
session->SendPacket(&data);
|
||||
}
|
||||
sLog.outDebug("WORLD: Sent (MSG_GUILD_BANK_LOG_QUERY)");
|
||||
DEBUG_LOG("WORLD: Sent (MSG_GUILD_BANK_LOG_QUERY)");
|
||||
}
|
||||
|
||||
void Guild::LogBankEvent(uint8 EventType, uint8 TabId, uint32 PlayerGuidLow, uint32 ItemOrMoney, uint8 ItemStackCount, uint8 DestTabId)
|
||||
|
|
@ -1671,7 +1671,7 @@ Item* Guild::_StoreItem( uint8 tab, uint8 slot, Item *pItem, uint32 count, bool
|
|||
if (!pItem)
|
||||
return NULL;
|
||||
|
||||
sLog.outDebug( "GUILD STORAGE: StoreItem tab = %u, slot = %u, item = %u, count = %u", tab, slot, pItem->GetEntry(), count);
|
||||
DEBUG_LOG( "GUILD STORAGE: StoreItem tab = %u, slot = %u, item = %u, count = %u", tab, slot, pItem->GetEntry(), count);
|
||||
|
||||
Item* pItem2 = m_TabListMap[tab]->Slots[slot];
|
||||
|
||||
|
|
@ -1821,7 +1821,7 @@ uint8 Guild::_CanStoreItem_InTab( uint8 tab, GuildItemPosCountVec &dest, uint32&
|
|||
|
||||
uint8 Guild::CanStoreItem( uint8 tab, uint8 slot, GuildItemPosCountVec &dest, uint32 count, Item *pItem, bool swap ) const
|
||||
{
|
||||
sLog.outDebug( "GUILD STORAGE: CanStoreItem tab = %u, slot = %u, item = %u, count = %u", tab, slot, pItem->GetEntry(), count);
|
||||
DEBUG_LOG( "GUILD STORAGE: CanStoreItem tab = %u, slot = %u, item = %u, count = %u", tab, slot, pItem->GetEntry(), count);
|
||||
|
||||
if (count > pItem->GetCount())
|
||||
return EQUIP_ERR_COULDNT_SPLIT_ITEMS;
|
||||
|
|
@ -2342,7 +2342,7 @@ void Guild::BroadcastEvent(GuildEvents event, uint64 guid, uint8 strCount, std::
|
|||
|
||||
BroadcastPacket(&data);
|
||||
|
||||
sLog.outDebug("WORLD: Sent SMSG_GUILD_EVENT");
|
||||
DEBUG_LOG("WORLD: Sent SMSG_GUILD_EVENT");
|
||||
}
|
||||
|
||||
bool GuildItemPosCount::isContainedIn(GuildItemPosCountVec const &vec) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue