diff --git a/zone/inventory.cpp b/zone/inventory.cpp index 7a36aa5e9..c626fad43 100644 --- a/zone/inventory.cpp +++ b/zone/inventory.cpp @@ -200,16 +200,15 @@ bool Client::CheckLoreConflict(const Item_Struct* item) { } bool Client::SummonItem(uint32 item_id, int16 charges, uint32 aug1, uint32 aug2, uint32 aug3, uint32 aug4, uint32 aug5, bool attuned, uint16 to_slot) { - /* Set a timestamp in an entity variable for plugin check_handin.pl in return_items This will stopgap players from items being returned if global_npc.pl has a catch all return_items */ struct timeval read_time; char buffer[50]; gettimeofday(&read_time, 0); - sprintf(buffer, "%i.%i \n", read_time.tv_sec, read_time.tv_usec); + sprintf(buffer, "%li.%li \n", read_time.tv_sec, read_time.tv_usec); this->SetEntityVariable("Recieved_Item", buffer); - + // TODO: update calling methods and script apis to handle a failure return const Item_Struct* item = database.GetItem(item_id);