From 4cfe79cad811756d59ee5dcf12f4382a88791c3a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 Oct 2014 14:38:53 +0300 Subject: eathena: add partial support for packet SMSG_PARTY_ITEM_PICKUP 0x02b8. --- src/net/eathena/partyhandler.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/net/eathena/partyhandler.cpp') 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(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 -- cgit v1.2.3-70-g09d2