mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-15 16:26:08 +00:00
chore(Core/Logging): replace most server loggers (#5726)
* chore(Core/Logging): replace most server loggers Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
@@ -129,4 +129,4 @@ public:
|
||||
void AddSC_boss_drekthar()
|
||||
{
|
||||
new boss_drekthar;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,4 +111,4 @@ public:
|
||||
void AddSC_boss_vanndar()
|
||||
{
|
||||
new boss_vanndar;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -249,9 +249,7 @@ public:
|
||||
|
||||
void SetData(uint32 type, uint32 data) override
|
||||
{
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
LOG_DEBUG("scripts.ai", "TSCR: Instance Blackrock Depths: SetData update (Type: %u Data %u)", type, data);
|
||||
#endif
|
||||
|
||||
switch (type)
|
||||
{
|
||||
|
||||
@@ -228,9 +228,7 @@ public:
|
||||
|
||||
void PrepareEncounter()
|
||||
{
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
LOG_DEBUG("scripts.ai", "TSCR: Barnes Opera Event - Introduction complete - preparing encounter %d", m_uiEventId);
|
||||
#endif
|
||||
uint8 index = 0;
|
||||
uint8 count = 0;
|
||||
|
||||
|
||||
@@ -239,9 +239,7 @@ public:
|
||||
{
|
||||
AddEscortState(STATE_ESCORT_RETURNING);
|
||||
ReturnToLastPoint();
|
||||
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
|
||||
LOG_DEBUG("scripts.ai", "TSCR: EscortAI has left combat and is now returning to last point");
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -215,18 +215,20 @@ public:
|
||||
return;
|
||||
|
||||
std::istringstream ss(load);
|
||||
//LOG_ERROR("server", "Zul'aman loaded, %s.", ss.str().c_str());
|
||||
char dataHead; // S
|
||||
uint16 data1, data2, data3;
|
||||
ss >> dataHead >> data1 >> data2 >> data3;
|
||||
//LOG_ERROR("server", "Zul'aman loaded, %d %d %d.", data1, data2, data3);
|
||||
|
||||
if (dataHead == 'S')
|
||||
{
|
||||
BossKilled = data1;
|
||||
ChestLooted = data2;
|
||||
QuestMinute = data3;
|
||||
}
|
||||
else LOG_ERROR("server", "Zul'aman: corrupted save data.");
|
||||
else
|
||||
{
|
||||
LOG_ERROR("misc", "Zul'aman: corrupted save data.");
|
||||
}
|
||||
}
|
||||
|
||||
void SetData(uint32 type, uint32 data) override
|
||||
|
||||
Reference in New Issue
Block a user