diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-05-14 23:37:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-05-14 23:37:52 +0300 |
commit | e651fb2b52d64c78ec9d5bd01ba449fa0a70afc9 (patch) | |
tree | ff698015355f8257ba1d5f52bf84f3d2b511362c /src/net/eathena/refinehandler.cpp | |
parent | 29566fffe9a65329a88b4dab08bf8a6ce25e215c (diff) | |
download | plus-e651fb2b52d64c78ec9d5bd01ba449fa0a70afc9.tar.gz plus-e651fb2b52d64c78ec9d5bd01ba449fa0a70afc9.tar.bz2 plus-e651fb2b52d64c78ec9d5bd01ba449fa0a70afc9.tar.xz plus-e651fb2b52d64c78ec9d5bd01ba449fa0a70afc9.zip |
Add item CMSG_REFINE_ITEM 0x0aa3
Diffstat (limited to 'src/net/eathena/refinehandler.cpp')
-rw-r--r-- | src/net/eathena/refinehandler.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/refinehandler.cpp b/src/net/eathena/refinehandler.cpp index c6b3e0d25..d602250a3 100644 --- a/src/net/eathena/refinehandler.cpp +++ b/src/net/eathena/refinehandler.cpp @@ -50,4 +50,20 @@ void RefineHandler::addItem(const Item *const item) const item->getInvIndex() + INVENTORY_OFFSET), "inv index"); } +void RefineHandler::refineItem(const Item *const item1, + const Item *const item2, + int blessing) const +{ + if (item1 == nullptr || + item2 == nullptr) + { + return; + } + createOutPacket(CMSG_REFINE_ITEM); + outMsg.writeInt16(CAST_S16( + item1->getInvIndex() + INVENTORY_OFFSET), "inv index"); + outMsg.writeItemId(item2->getId(), "item id"); + outMsg.writeInt8(blessing, "blessing"); +} + } // namespace EAthena |