From 679c1bd779a4a1cb8b9016011f0a6c05d37c0b66 Mon Sep 17 00:00:00 2001 From: image <> Date: Thu, 10 Sep 2020 12:16:14 -0400 Subject: [PATCH] Player Error log when a item is used but the display charges is 0 --- EQ2/source/WorldServer/Commands/Commands.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/EQ2/source/WorldServer/Commands/Commands.cpp b/EQ2/source/WorldServer/Commands/Commands.cpp index 7681e7754..6b2596be4 100644 --- a/EQ2/source/WorldServer/Commands/Commands.cpp +++ b/EQ2/source/WorldServer/Commands/Commands.cpp @@ -1432,6 +1432,8 @@ void Commands::Process(int32 index, EQ2_16BitString* command_parms, Client* clie item->save_needed = true; client->QueuePacket(item->serialize(client->GetVersion(), false, client->GetPlayer())); } + else + LogWrite(PLAYER__ERROR, 0, "Command", "%s: Item %s (%i) attempted to be used, however display_charges is 0.", client->GetPlayer()->GetName(), item->name.c_str(), item->details.item_id); } } }