From b73aec167532701db9ab645ef5d75e5dff1fa963 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Sep 2014 18:51:02 +0300 Subject: eathena: fix packet SMSG_PARTY_SETTINGS 0x07d8. --- src/net/eathena/packets.h | 2 +- src/net/eathena/partyhandler.cpp | 6 +++--- src/net/eathena/protocol.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/net') diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index 4196f72ad..a4fdf0416 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -209,7 +209,7 @@ int16_t packet_lengths[] = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // #0x07C0 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 268, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 8, 268, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 0, 8, 25, 0, 0, 0, 0, //0 1 2 3 4 5 6 7 8 9 a b c d e f diff --git a/src/net/eathena/partyhandler.cpp b/src/net/eathena/partyhandler.cpp index d4404340c..99a9e86bd 100644 --- a/src/net/eathena/partyhandler.cpp +++ b/src/net/eathena/partyhandler.cpp @@ -265,9 +265,9 @@ void PartyHandler::processPartySettings(Net::MessageIn &msg) Ea::partyTab->loadFromLogFile("#Party"); } - // These seem to indicate the sharing mode for exp and items - const int16_t exp = msg.readInt16(); - const int16_t item = msg.readInt16(); + msg.readInt32("party exp"); + const int16_t exp = msg.readInt8("exp"); + const int16_t item = msg.readInt8("item"); processPartySettingsContinue(exp, item); } diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index b487584b0..8def51255 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -142,7 +142,7 @@ #define SMSG_PARTY_INFO 0x00fb #define SMSG_PARTY_INVITE_RESPONSE 0x00fd #define SMSG_PARTY_INVITED 0x00fe -#define SMSG_PARTY_SETTINGS 0x0101 +#define SMSG_PARTY_SETTINGS 0x07d8 #define SMSG_PARTY_MOVE 0x0104 #define SMSG_PARTY_LEAVE 0x0105 #define SMSG_PARTY_UPDATE_HP 0x0106 -- cgit v1.2.3-70-g09d2