summaryrefslogtreecommitdiff
path: root/src/net/eathena/partyhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/partyhandler.cpp')
-rw-r--r--src/net/eathena/partyhandler.cpp21
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