mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 20:51:29 +00:00
Fix op_charinventory (mostly)
This commit is contained in:
parent
1ab0e78f00
commit
233a0dda6a
@ -2026,11 +2026,20 @@ namespace Larion
|
||||
}
|
||||
|
||||
EQ::InternalSerializedItem_Struct* eq = (EQ::InternalSerializedItem_Struct*)in->pBuffer;
|
||||
SerializeBuffer buffer;
|
||||
buffer.WriteUInt32(item_count);
|
||||
|
||||
auto outapp = new EQApplicationPacket(OP_CharInventory, 4);
|
||||
dest->FastQueuePacket(&outapp, ack_req);
|
||||
for (int index = 0; index < item_count; ++index, ++eq) {
|
||||
SerializeItem(buffer, (const EQ::ItemInstance*)eq->inst, eq->slot_id, 0, ItemPacketCharInventory);
|
||||
}
|
||||
|
||||
delete in;
|
||||
in->size = buffer.size();
|
||||
in->pBuffer = new unsigned char[buffer.size()];
|
||||
memcpy(in->pBuffer, buffer.buffer(), buffer.size());
|
||||
|
||||
delete[] __emu_buffer;
|
||||
|
||||
dest->FastQueuePacket(&in, ack_req);
|
||||
}
|
||||
|
||||
ENCODE(OP_NewSpawn) { ENCODE_FORWARD(OP_ZoneSpawns); }
|
||||
@ -2741,7 +2750,8 @@ namespace Larion
|
||||
//we need to parse id file
|
||||
//s32 IDFile;
|
||||
int32 idfile = ExtractIDFile(item->IDFile);
|
||||
|
||||
buffer.WriteUInt32(idfile);
|
||||
|
||||
//s32 IDFile2;
|
||||
buffer.WriteUInt32(0); //unsupported atm
|
||||
|
||||
@ -3373,6 +3383,9 @@ namespace Larion
|
||||
|
||||
//char ConvertItemName[ConvertItemNameLength];
|
||||
|
||||
//u32 ConvertItemID;
|
||||
buffer.WriteInt32(0);
|
||||
|
||||
//u32 Open;
|
||||
buffer.WriteInt32(0);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user