mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 02:38:45 +00:00
Pass 1 - working hash generator and saving to inventory table
This commit is contained in:
@@ -6446,7 +6446,13 @@ namespace RoF2
|
||||
RoF2::structs::ItemSerializationHeader hdr;
|
||||
|
||||
//sprintf(hdr.unknown000, "06e0002Y1W00");
|
||||
strn0cpy(hdr.unknown000, fmt::format("{:016}\0", inst->GetSerialNumber()).c_str(),sizeof(hdr.unknown000));
|
||||
// strn0cpy(hdr.unknown000, fmt::format("{:016}\0", inst->GetSerialNumber()).c_str(),sizeof(hdr.unknown000));
|
||||
strn0cpy(
|
||||
hdr.unknown000,
|
||||
inst->GetSerialNumber2().empty() ? "0000000000000000" : inst->GetSerialNumber2().c_str(),
|
||||
sizeof(hdr.unknown000)
|
||||
);
|
||||
hdr.unknown000[16] = '\0';
|
||||
|
||||
hdr.stacksize = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user