From 29566fffe9a65329a88b4dab08bf8a6ce25e215c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 May 2019 22:51:47 +0300 Subject: Add packet SMSG_REFINE_ADD_ITEM 0x0aa2 --- src/net/eathena/refinerecv.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/net/eathena/refinerecv.cpp') diff --git a/src/net/eathena/refinerecv.cpp b/src/net/eathena/refinerecv.cpp index 5a9903864..5a66435a1 100644 --- a/src/net/eathena/refinerecv.cpp +++ b/src/net/eathena/refinerecv.cpp @@ -26,6 +26,8 @@ #include "debug.h" +extern int itemIdLen; + namespace EAthena { @@ -34,4 +36,22 @@ void RefineRecv::processRefineOpen(Net::MessageIn &msg) UNIMPLEMENTEDPACKET; } +void RefineRecv::processRefineAddItem(Net::MessageIn &msg) +{ + UNIMPLEMENTEDPACKET; + int blockSize = 7; + if (itemIdLen == 4) + blockSize += 2; + + const int count = (msg.readInt16("len") - 7) / blockSize; + msg.readInt16("item index"); + msg.readUInt8("blacksmith blessing"); + for (int f = 0; f < count; f ++) + { + msg.readItemId("item id"); + msg.readUInt8("chance"); + msg.readInt32("money"); + } +} + } // namespace EAthena -- cgit v1.2.3-70-g09d2