Explorar o código

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

image %!s(int64=3) %!d(string=hai) anos
pai
achega
679c1bd779
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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);
 					}
 				}
 			}