From 45516c5e58dc9cab70d9e3c024f30e9a4342f6a3 Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 4 Jun 2009 16:09:36 -0500 Subject: [7950] Make clear in error output 2 cases of fail CMSG_ITEM_NAME_QUERY: DB absent data and not expected to exist item. Author: VladimirMangos --HG-- branch : trunk --- src/game/ItemHandler.cpp | 8 +++++++- src/game/ObjectMgr.cpp | 3 --- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/game/ItemHandler.cpp b/src/game/ItemHandler.cpp index ddb28e0288d..fe291783d38 100644 --- a/src/game/ItemHandler.cpp +++ b/src/game/ItemHandler.cpp @@ -1009,7 +1009,13 @@ void WorldSession::HandleItemNameQueryOpcode(WorldPacket & recv_data) return; } else - sLog.outErrorDb("WORLD: CMSG_ITEM_NAME_QUERY for item %u failed (unknown item)", itemid); + { + // listed in dbc or not expected to exist unknown item + if(sItemStore.LookupEntry(itemid)) + sLog.outErrorDb("WORLD: CMSG_ITEM_NAME_QUERY for item %u failed (item listed in Item.dbc but not exist in DB)", itemid); + else + sLog.outError("WORLD: CMSG_ITEM_NAME_QUERY for item %u failed (unknown item, not listed in Item.dbc)", itemid); + } } void WorldSession::HandleWrapItemOpcode(WorldPacket& recv_data) diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 6080807d7f1..8f87e58ed26 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -892,9 +892,6 @@ void ObjectMgr::LoadEquipmentTemplates() } sLog.outString( ">> Loaded %u equipment template", sEquipmentStorage.RecordCount ); sLog.outString(); - - // Creature items can be not listed in item_template - //sItemStore.Clear(); -- so used in spell casting } CreatureModelInfo const* ObjectMgr::GetCreatureModelInfo(uint32 modelid) -- cgit v1.2.3