diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-14 14:38:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-14 14:38:53 +0300 |
commit | 4cfe79cad811756d59ee5dcf12f4382a88791c3a (patch) | |
tree | c493d41c6a445012fd9f19860174ca76156fe913 /src/net/eathena/partyhandler.cpp | |
parent | d5a549b6af3579d247bfb7d4ca22c31ca0f3dc38 (diff) | |
download | mv-4cfe79cad811756d59ee5dcf12f4382a88791c3a.tar.gz mv-4cfe79cad811756d59ee5dcf12f4382a88791c3a.tar.bz2 mv-4cfe79cad811756d59ee5dcf12f4382a88791c3a.tar.xz mv-4cfe79cad811756d59ee5dcf12f4382a88791c3a.zip |
eathena: add partial support for packet SMSG_PARTY_ITEM_PICKUP 0x02b8.
Diffstat (limited to 'src/net/eathena/partyhandler.cpp')
-rw-r--r-- | src/net/eathena/partyhandler.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/net/eathena/partyhandler.cpp b/src/net/eathena/partyhandler.cpp index 030267aa8..8cf57c634 100644 --- a/src/net/eathena/partyhandler.cpp +++ b/src/net/eathena/partyhandler.cpp @@ -62,6 +62,7 @@ PartyHandler::PartyHandler() : SMSG_PARTY_MESSAGE, SMSG_PARTY_INVITATION_STATS, SMSG_PARTY_MEMBER_INFO, + SMSG_PARTY_ITEM_PICKUP, 0 }; handledMessages = _messages; @@ -112,6 +113,9 @@ void PartyHandler::handleMessage(Net::MessageIn &msg) case SMSG_PARTY_MEMBER_INFO: processPartyMemberInfo(msg); break; + case SMSG_PARTY_ITEM_PICKUP: + processPartyItemPickup(msg); + break; default: break; @@ -462,4 +466,21 @@ void PartyHandler::allowInvite(const bool allow) const outMsg.writeInt8(static_cast<int8_t>(allow ? 1 : 0)); } +void PartyHandler::processPartyItemPickup(Net::MessageIn &msg) const +{ + // +++ probably need add option to show pickup notifications + // in party tab + msg.readInt32("account id"); + msg.readInt16("item id"); + msg.readUInt8("identify"); + msg.readUInt8("attribute"); + msg.readUInt8("refine"); + msg.readInt16("card0"); + msg.readInt16("card1"); + msg.readInt16("card2"); + msg.readInt16("card3"); + msg.readInt16("equip location"); + msg.readUInt8("item type"); +} + } // namespace EAthena |