summaryrefslogtreecommitdiff
path: root/src/net/eathena/refinerecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/refinerecv.cpp')
-rw-r--r--src/net/eathena/refinerecv.cpp20
1 files changed, 20 insertions, 0 deletions
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