From cfa575c75628d1762eeaf075648c0ac94a485bcf Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Tue, 31 Oct 2023 18:58:06 -0400 Subject: [PATCH] [Logs] Convert Loot Messages to Error Logs (#3663) * [Logs] Convert Loot Messages to Error Logs # Notes - These messages were sending to users and not being logged. - `Message(Chat::Red, "Error: OP_EndLootRequest: Corpse not found (ent = 0)");` sends often when corpse expires right as you try to loot, so it makes the user think there's a true error. * Update zoning.cpp --- zone/zoning.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/zoning.cpp b/zone/zoning.cpp index 882799bbe..4e00a7e71 100644 --- a/zone/zoning.cpp +++ b/zone/zoning.cpp @@ -811,7 +811,7 @@ void Client::ZonePC(uint32 zoneID, uint32 instance_id, float x, float y, float z Entity* entity = entity_list.GetID(entity_id_being_looted); if (entity == 0) { - Message(Chat::Red, "Error: OP_EndLootRequest: Corpse not found (ent = 0)"); + LogError("OP_EndLootRequest: Corpse with id of {} not found for {}.", entity_id_being_looted, GetCleanName()); if (ClientVersion() >= EQ::versions::ClientVersion::SoD) Corpse::SendEndLootErrorPacket(this); else @@ -819,7 +819,7 @@ void Client::ZonePC(uint32 zoneID, uint32 instance_id, float x, float y, float z } else if (!entity->IsCorpse()) { - Message(Chat::Red, "Error: OP_EndLootRequest: Corpse not found (!entity->IsCorpse())"); + LogError("OP_EndLootRequest: Entity with id of {} was not corpse for {}.", entity_id_being_looted, GetCleanName()); Corpse::SendLootReqErrorPacket(this); } else