summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/beingrecv.cpp7
-rw-r--r--src/net/eathena/packetsin.inc3
-rw-r--r--src/net/eathena/packetsout.inc6
3 files changed, 15 insertions, 1 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp
index 639ce37ab..2d66f5152 100644
--- a/src/net/eathena/beingrecv.cpp
+++ b/src/net/eathena/beingrecv.cpp
@@ -65,6 +65,7 @@
#include "debug.h"
+extern int packetVersion;
extern int serverVersion;
namespace EAthena
@@ -398,6 +399,8 @@ void BeingRecv::processBeingVisible(Net::MessageIn &msg)
dstBeing->setHP(hp);
msg.readInt8("is boss");
+ if (packetVersion >= 20150513)
+ msg.readInt16("body2");
dstBeing->setStunMode(stunMode);
dstBeing->setStatusEffectBlock(0, static_cast<uint16_t>(
@@ -574,6 +577,8 @@ void BeingRecv::processBeingMove(Net::MessageIn &msg)
dstBeing->setHP(hp);
msg.readInt8("is boss");
+ if (packetVersion >= 20150513)
+ msg.readInt16("body2");
dstBeing->setStunMode(stunMode);
dstBeing->setStatusEffectBlock(0, static_cast<uint16_t>(
@@ -730,6 +735,8 @@ void BeingRecv::processBeingSpawn(Net::MessageIn &msg)
dstBeing->setHP(hp);
msg.readInt8("is boss");
+ if (packetVersion >= 20150513)
+ msg.readInt16("body2");
dstBeing->setStunMode(stunMode);
dstBeing->setStatusEffectBlock(0, static_cast<uint16_t>(
diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc
index ee95e4cf9..6ea86aef2 100644
--- a/src/net/eathena/packetsin.inc
+++ b/src/net/eathena/packetsin.inc
@@ -466,4 +466,7 @@ if (serverVersion >= 8 && packetVersion >= 20150226)
if (packetVersion >= 20150513)
{
packet(SMSG_DRESS_ROOM_OPEN, 0x0a02, 4, &PlayerRecv::processDressRoomOpen);
+ packet(SMSG_BEING_VISIBLE, 0x09ff, -1, &BeingRecv::processBeingVisible);
+ packet(SMSG_BEING_SPAWN, 0x09fe, -1, &BeingRecv::processBeingSpawn);
+ packet(SMSG_BEING_MOVE, 0x09fd, -1, &BeingRecv::processBeingMove);
}
diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc
index 40d4aa569..9e1efc065 100644
--- a/src/net/eathena/packetsout.inc
+++ b/src/net/eathena/packetsout.inc
@@ -268,5 +268,9 @@ packet(CMSG_SET_STATUS, 0x0b0e);
packet(CMSG_ONLINE_LIST, 0x0b0f);
#ifdef PACKETS_UPDATE
-// condition code here
+if (packetVersion >= 20150513)
+{
+ packet(CMSG_SEARCHSTORE_CLICK, 0x0838);
+ packet(CMSG_BUYINGSTORE_CLOSE, 0x022d);
+}
#endif