mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-06 01:03:52 +00:00
Pass 4 - Start Trader working
This commit is contained in:
parent
8af139aef0
commit
caa335cd85
@ -4117,15 +4117,17 @@ namespace RoF2
|
|||||||
case ListTraderItems: {
|
case ListTraderItems: {
|
||||||
LogTrading("(RoF2) action <green>[{}]", action);
|
LogTrading("(RoF2) action <green>[{}]", action);
|
||||||
|
|
||||||
EQApplicationPacket *in = *p;
|
EQApplicationPacket *in = *p;
|
||||||
*p = nullptr;
|
*p = nullptr;
|
||||||
|
|
||||||
TraderClientMessaging_Struct tcm{};
|
TraderClientMessaging_Struct tcm{};
|
||||||
EQ::Util::MemoryStreamReader ss(reinterpret_cast<char *>(in->pBuffer), in->size);
|
EQ::Util::MemoryStreamReader ss(reinterpret_cast<char *>(in->pBuffer), in->size);
|
||||||
cereal::BinaryInputArchive ar(ss);
|
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;
|
auto pos = buffer;
|
||||||
|
|
||||||
VARSTRUCT_ENCODE_TYPE(uint32, pos, structs::RoF2BazaarTraderBuyerActions::ListTraderItems);
|
VARSTRUCT_ENCODE_TYPE(uint32, pos, structs::RoF2BazaarTraderBuyerActions::ListTraderItems);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user