Browse Source

Player Error log when a item is used but the display charges is 0

image 3 years ago
parent
commit
679c1bd779
1 changed files with 2 additions and 0 deletions
  1. 2 0
      EQ2/source/WorldServer/Commands/Commands.cpp

+ 2 - 0
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);
 					}
 				}
 			}