Core/Items: Implemented CreateTime item field and changed refund/soulbound trade timers to also count time offline

Port From (https://github.com/TrinityCore/TrinityCore/commit/69da702b930d43738bcaf49ce57b333dfc19ecfd)
This commit is contained in:
Hondacrx
2024-08-05 19:24:12 -04:00
parent e0b26db0f9
commit 83fadf3a81
9 changed files with 68 additions and 90 deletions
+2 -2
View File
@@ -164,13 +164,13 @@ namespace Game
}
Item item = Item.NewItemOrBag(proto);
if (!item.LoadFromDB(itemGuid, ObjectGuid.Create(HighGuid.Player, result.Read<ulong>(51)), result.GetFields(), itemEntry))
if (!item.LoadFromDB(itemGuid, ObjectGuid.Create(HighGuid.Player, result.Read<ulong>(52)), result.GetFields(), itemEntry))
{
item.Dispose();
continue;
}
uint auctionId = result.Read<uint>(52);
uint auctionId = result.Read<uint>(53);
itemsByAuction.Add(auctionId, item);
++count;