From caa335cd85fda36cbd88ec7927feab73ee19abf5 Mon Sep 17 00:00:00 2001 From: Mitch Freeman <65987027+neckkola@users.noreply.github.com> Date: Sun, 30 Mar 2025 20:19:41 -0300 Subject: [PATCH] Pass 4 - Start Trader working --- common/patches/rof2.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/common/patches/rof2.cpp b/common/patches/rof2.cpp index 7fba9c3f6..6d573c3c2 100644 --- a/common/patches/rof2.cpp +++ b/common/patches/rof2.cpp @@ -4117,15 +4117,17 @@ namespace RoF2 case ListTraderItems: { LogTrading("(RoF2) action [{}]", action); - EQApplicationPacket *in = *p; - *p = nullptr; + EQApplicationPacket *in = *p; + *p = nullptr; TraderClientMessaging_Struct tcm{}; EQ::Util::MemoryStreamReader ss(reinterpret_cast(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);