From 4466f50d7bb2d83d2b3cd86d85aff14486f84756 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 13 Jan 2016 22:42:13 +0300 Subject: Add support for packet version 20150513. --- src/net/eathena/beingrecv.cpp | 7 +++++++ src/net/eathena/packetsin.inc | 3 +++ src/net/eathena/packetsout.inc | 6 +++++- 3 files changed, 15 insertions(+), 1 deletion(-) 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( @@ -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( @@ -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( 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 -- cgit v1.2.3-70-g09d2