Explorar el Código

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

image hace 3 años
padre
commit
679c1bd779
Se han modificado 1 ficheros con 2 adiciones y 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);
 					}
 				}
 			}