From adb4df98be7f58e960ec2cf822fc567b55640848 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 5 Sep 2014 13:24:56 +0300 Subject: eathena: fix packet SMSG_BEING_STATUS_CHANGE 0x0983. --- src/net/eathena/beinghandler.cpp | 5 +++++ src/net/eathena/packets.h | 2 +- src/net/eathena/protocol.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src/net') diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index d0b76685b..e6e16e0ad 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -898,6 +898,11 @@ void BeingHandler::processBeingStatusChange(Net::MessageIn &msg) const const uint16_t status = msg.readInt16("status"); const int id = msg.readInt32("being id"); const bool flag = msg.readUInt8("flag: 0: stop, 1: start"); + msg.readInt32("total"); + msg.readInt32("left"); + msg.readInt32("val1"); + msg.readInt32("val2"); + msg.readInt32("val3"); Being *const dstBeing = actorManager->findBeing(id); if (dstBeing) diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index a34ac7962..00ec7628d 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -247,7 +247,7 @@ int16_t packet_lengths[] = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // #0x0980 - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, -1, -1, 0, 0, 0, 0, 0, 0, 11, 9, 8, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index b0acb8f93..5566ba125 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -106,7 +106,7 @@ #define SMSG_PLAYER_STATUS_CHANGE 0x0119 #define SMSG_PLAYER_GUILD_PARTY_INFO 0x0195 -#define SMSG_BEING_STATUS_CHANGE 0x0196 +#define SMSG_BEING_STATUS_CHANGE 0x0983 #define SMSG_NPC_MESSAGE 0x00b4 #define SMSG_NPC_NEXT 0x00b5 -- cgit v1.2.3-70-g09d2