diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-13 22:42:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-13 22:42:13 +0300 |
commit | 4466f50d7bb2d83d2b3cd86d85aff14486f84756 (patch) | |
tree | 116a29b5c4a4efc6789e812814156fbd240c6865 /src/net/eathena | |
parent | 027112ebe8e30a23e0478eae27861e95b12ccb69 (diff) | |
download | manaplus-4466f50d7bb2d83d2b3cd86d85aff14486f84756.tar.gz manaplus-4466f50d7bb2d83d2b3cd86d85aff14486f84756.tar.bz2 manaplus-4466f50d7bb2d83d2b3cd86d85aff14486f84756.tar.xz manaplus-4466f50d7bb2d83d2b3cd86d85aff14486f84756.zip |
Add support for packet version 20150513.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/beingrecv.cpp | 7 | ||||
-rw-r--r-- | src/net/eathena/packetsin.inc | 3 | ||||
-rw-r--r-- | src/net/eathena/packetsout.inc | 6 |
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 |