summaryrefslogtreecommitdiff
path: root/src/net/eathena/refinerecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-05-14 22:51:47 +0300
committerAndrei Karas <akaras@inbox.ru>2019-05-14 22:51:47 +0300
commit29566fffe9a65329a88b4dab08bf8a6ce25e215c (patch)
treeb2491acc2ae831ddb1fa64e310d2918d64f32f78 /src/net/eathena/refinerecv.cpp
parent38f418870341b9f6c95a1b6cb16b6ad5c2d0a12f (diff)
downloadManaVerse-29566fffe9a65329a88b4dab08bf8a6ce25e215c.tar.gz
ManaVerse-29566fffe9a65329a88b4dab08bf8a6ce25e215c.tar.bz2
ManaVerse-29566fffe9a65329a88b4dab08bf8a6ce25e215c.tar.xz
ManaVerse-29566fffe9a65329a88b4dab08bf8a6ce25e215c.zip
Add packet SMSG_REFINE_ADD_ITEM 0x0aa2
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