mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 05:36:23 +00:00
feat(Core/Logs): Improve logs for linked_respawn (#10202)
This commit is contained in:
@@ -1729,7 +1729,7 @@ void ObjectMgr::LoadLinkedRespawn()
|
||||
const CreatureData* slave = GetCreatureData(guidLow);
|
||||
if (!slave)
|
||||
{
|
||||
LOG_ERROR("sql.sql", "Couldn't get creature data for GUIDLow %u", guidLow);
|
||||
LOG_ERROR("sql.sql", "LinkedRespawn: Creature (guid) %u not found in creature table", guidLow);
|
||||
error = true;
|
||||
break;
|
||||
}
|
||||
@@ -1737,7 +1737,7 @@ void ObjectMgr::LoadLinkedRespawn()
|
||||
const CreatureData* master = GetCreatureData(linkedGuidLow);
|
||||
if (!master)
|
||||
{
|
||||
LOG_ERROR("sql.sql", "Couldn't get creature data for GUIDLow %u", linkedGuidLow);
|
||||
LOG_ERROR("sql.sql", "LinkedRespawn: Creature (linkedGuid) %u not found in creature table", linkedGuidLow);
|
||||
error = true;
|
||||
break;
|
||||
}
|
||||
@@ -1745,14 +1745,14 @@ void ObjectMgr::LoadLinkedRespawn()
|
||||
const MapEntry* const map = sMapStore.LookupEntry(master->mapid);
|
||||
if (!map || !map->Instanceable() || (master->mapid != slave->mapid))
|
||||
{
|
||||
LOG_ERROR("sql.sql", "Creature '%u' linking to '%u' on an unpermitted map.", guidLow, linkedGuidLow);
|
||||
LOG_ERROR("sql.sql", "LinkedRespawn: Creature '%u' linking to Creature '%u' on an unpermitted map.", guidLow, linkedGuidLow);
|
||||
error = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!(master->spawnMask & slave->spawnMask)) // they must have a possibility to meet (normal/heroic difficulty)
|
||||
{
|
||||
LOG_ERROR("sql.sql", "LinkedRespawn: Creature '%u' linking to '%u' with not corresponding spawnMask", guidLow, linkedGuidLow);
|
||||
LOG_ERROR("sql.sql", "LinkedRespawn: Creature '%u' linking to Creature '%u' with not corresponding spawnMask", guidLow, linkedGuidLow);
|
||||
error = true;
|
||||
break;
|
||||
}
|
||||
@@ -1766,7 +1766,7 @@ void ObjectMgr::LoadLinkedRespawn()
|
||||
const CreatureData* slave = GetCreatureData(guidLow);
|
||||
if (!slave)
|
||||
{
|
||||
LOG_ERROR("sql.sql", "Couldn't get creature data for GUIDLow %u", guidLow);
|
||||
LOG_ERROR("sql.sql", "LinkedRespawn: Creature (guid) %u not found in creature table", guidLow);
|
||||
error = true;
|
||||
break;
|
||||
}
|
||||
@@ -1774,7 +1774,7 @@ void ObjectMgr::LoadLinkedRespawn()
|
||||
const GameObjectData* master = GetGOData(linkedGuidLow);
|
||||
if (!master)
|
||||
{
|
||||
LOG_ERROR("sql.sql", "Couldn't get gameobject data for GUIDLow %u", linkedGuidLow);
|
||||
LOG_ERROR("sql.sql", "LinkedRespawn: Gameobject (linkedGuid) %u not found in gameobject table", linkedGuidLow);
|
||||
error = true;
|
||||
break;
|
||||
}
|
||||
@@ -1782,14 +1782,14 @@ void ObjectMgr::LoadLinkedRespawn()
|
||||
const MapEntry* const map = sMapStore.LookupEntry(master->mapid);
|
||||
if (!map || !map->Instanceable() || (master->mapid != slave->mapid))
|
||||
{
|
||||
LOG_ERROR("sql.sql", "Creature '%u' linking to '%u' on an unpermitted map.", guidLow, linkedGuidLow);
|
||||
LOG_ERROR("sql.sql", "LinkedRespawn: Creature '%u' linking to Gameobject '%u' on an unpermitted map.", guidLow, linkedGuidLow);
|
||||
error = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!(master->spawnMask & slave->spawnMask)) // they must have a possibility to meet (normal/heroic difficulty)
|
||||
{
|
||||
LOG_ERROR("sql.sql", "LinkedRespawn: Creature '%u' linking to '%u' with not corresponding spawnMask", guidLow, linkedGuidLow);
|
||||
LOG_ERROR("sql.sql", "LinkedRespawn: Creature '%u' linking to Gameobject '%u' with not corresponding spawnMask", guidLow, linkedGuidLow);
|
||||
error = true;
|
||||
break;
|
||||
}
|
||||
@@ -1803,7 +1803,7 @@ void ObjectMgr::LoadLinkedRespawn()
|
||||
const GameObjectData* slave = GetGOData(guidLow);
|
||||
if (!slave)
|
||||
{
|
||||
LOG_ERROR("sql.sql", "Couldn't get gameobject data for GUIDLow %u", guidLow);
|
||||
LOG_ERROR("sql.sql", "LinkedRespawn: Gameobject (guid) %u not found in gameobject table", guidLow);
|
||||
error = true;
|
||||
break;
|
||||
}
|
||||
@@ -1811,7 +1811,7 @@ void ObjectMgr::LoadLinkedRespawn()
|
||||
const GameObjectData* master = GetGOData(linkedGuidLow);
|
||||
if (!master)
|
||||
{
|
||||
LOG_ERROR("sql.sql", "Couldn't get gameobject data for GUIDLow %u", linkedGuidLow);
|
||||
LOG_ERROR("sql.sql", "LinkedRespawn: Gameobject (linkedGuid) %u not found in gameobject table", linkedGuidLow);
|
||||
error = true;
|
||||
break;
|
||||
}
|
||||
@@ -1819,14 +1819,14 @@ void ObjectMgr::LoadLinkedRespawn()
|
||||
const MapEntry* const map = sMapStore.LookupEntry(master->mapid);
|
||||
if (!map || !map->Instanceable() || (master->mapid != slave->mapid))
|
||||
{
|
||||
LOG_ERROR("sql.sql", "Creature '%u' linking to '%u' on an unpermitted map.", guidLow, linkedGuidLow);
|
||||
LOG_ERROR("sql.sql", "LinkedRespawn: Gameobject '%u' linking to Gameobject '%u' on an unpermitted map.", guidLow, linkedGuidLow);
|
||||
error = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!(master->spawnMask & slave->spawnMask)) // they must have a possibility to meet (normal/heroic difficulty)
|
||||
{
|
||||
LOG_ERROR("sql.sql", "LinkedRespawn: Creature '%u' linking to '%u' with not corresponding spawnMask", guidLow, linkedGuidLow);
|
||||
LOG_ERROR("sql.sql", "LinkedRespawn: Gameobject '%u' linking to Gameobject '%u' with not corresponding spawnMask", guidLow, linkedGuidLow);
|
||||
error = true;
|
||||
break;
|
||||
}
|
||||
@@ -1840,7 +1840,7 @@ void ObjectMgr::LoadLinkedRespawn()
|
||||
const GameObjectData* slave = GetGOData(guidLow);
|
||||
if (!slave)
|
||||
{
|
||||
LOG_ERROR("sql.sql", "Couldn't get gameobject data for GUIDLow %u", guidLow);
|
||||
LOG_ERROR("sql.sql", "LinkedRespawn: Gameobject (guid) %u not found in gameobject table", guidLow);
|
||||
error = true;
|
||||
break;
|
||||
}
|
||||
@@ -1848,7 +1848,7 @@ void ObjectMgr::LoadLinkedRespawn()
|
||||
const CreatureData* master = GetCreatureData(linkedGuidLow);
|
||||
if (!master)
|
||||
{
|
||||
LOG_ERROR("sql.sql", "Couldn't get creature data for GUIDLow %u", linkedGuidLow);
|
||||
LOG_ERROR("sql.sql", "LinkedRespawn: Creature (linkedGuid) %u not found in creature table", linkedGuidLow);
|
||||
error = true;
|
||||
break;
|
||||
}
|
||||
@@ -1856,14 +1856,14 @@ void ObjectMgr::LoadLinkedRespawn()
|
||||
const MapEntry* const map = sMapStore.LookupEntry(master->mapid);
|
||||
if (!map || !map->Instanceable() || (master->mapid != slave->mapid))
|
||||
{
|
||||
LOG_ERROR("sql.sql", "Creature '%u' linking to '%u' on an unpermitted map.", guidLow, linkedGuidLow);
|
||||
LOG_ERROR("sql.sql", "LinkedRespawn: Gameobject '%u' linking to Creature '%u' on an unpermitted map.", guidLow, linkedGuidLow);
|
||||
error = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!(master->spawnMask & slave->spawnMask)) // they must have a possibility to meet (normal/heroic difficulty)
|
||||
{
|
||||
LOG_ERROR("sql.sql", "LinkedRespawn: Creature '%u' linking to '%u' with not corresponding spawnMask", guidLow, linkedGuidLow);
|
||||
LOG_ERROR("sql.sql", "LinkedRespawn: Gameobject '%u' linking to Creature '%u' with not corresponding spawnMask", guidLow, linkedGuidLow);
|
||||
error = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user