mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-25 18:21:28 +00:00
Pass 4 - Start Trader working
This commit is contained in:
parent
8af139aef0
commit
caa335cd85
@ -4117,15 +4117,17 @@ namespace RoF2
|
||||
case ListTraderItems: {
|
||||
LogTrading("(RoF2) action <green>[{}]", action);
|
||||
|
||||
EQApplicationPacket *in = *p;
|
||||
*p = nullptr;
|
||||
EQApplicationPacket *in = *p;
|
||||
*p = nullptr;
|
||||
|
||||
TraderClientMessaging_Struct tcm{};
|
||||
EQ::Util::MemoryStreamReader ss(reinterpret_cast<char *>(in->pBuffer), in->size);
|
||||
cereal::BinaryInputArchive ar(ss);
|
||||
{ ar(tcm); }
|
||||
{
|
||||
ar(tcm);
|
||||
}
|
||||
|
||||
auto buffer = new char[4404]{}; //4404 is the fixed size of the packet for 200 item limit of RoF2
|
||||
auto buffer = new char[4404]{}; // 4404 is the fixed size of the packet for 200 item limit of RoF2
|
||||
auto pos = buffer;
|
||||
|
||||
VARSTRUCT_ENCODE_TYPE(uint32, pos, structs::RoF2BazaarTraderBuyerActions::ListTraderItems);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user