diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-03 23:13:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-03 23:13:33 +0300 |
commit | ef52c9f9df0dd3b1e79226af71c772c4a23f9df8 (patch) | |
tree | 761598377d0a4025836202d4a4e32c2f74d7c118 /src | |
parent | cb7857484a05fe6a27511ea0d61f87463c031da0 (diff) | |
download | manaplus-ef52c9f9df0dd3b1e79226af71c772c4a23f9df8.tar.gz manaplus-ef52c9f9df0dd3b1e79226af71c772c4a23f9df8.tar.bz2 manaplus-ef52c9f9df0dd3b1e79226af71c772c4a23f9df8.tar.xz manaplus-ef52c9f9df0dd3b1e79226af71c772c4a23f9df8.zip |
Add packet SMSG_PLAYER_EQUIP 0x00aa.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/eathena/inventoryrecv.cpp | 3 | ||||
-rw-r--r-- | src/net/eathena/packetsin.inc | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp index d313c8c7c..e5d5ec059 100644 --- a/src/net/eathena/inventoryrecv.cpp +++ b/src/net/eathena/inventoryrecv.cpp @@ -493,7 +493,8 @@ void InventoryRecv::processPlayerEquip(Net::MessageIn &msg) equipType = msg.readInt32("wear location"); else equipType = msg.readInt16("wear location"); - msg.readInt16("sprite"); + if (msg.getVersion() >= 20100629) + msg.readInt16("sprite"); const uint8_t flag = msg.readUInt8("result"); switch (flag) diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index d48213f27..209c19040 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -53,6 +53,7 @@ packet(SMSG_QUEST_LIST, 0x02b1, -1, &QuestRecv::processAddQu packet(SMSG_BEING_VIEW_EQUIPMENT, 0x02d7, -1, &BeingRecv::processBeingViewEquipment, 1); packet(SMSG_PARTY_SETTINGS, 0x0101, 6, &PartyRecv::processPartySettings, 1); packet(SMSG_PLAYER_HP, 0x0106, 10, &BeingRecv::processBeingHp, 1); +packet(SMSG_PLAYER_EQUIP, 0x00aa, 7, &InventoryRecv::processPlayerEquip, 1); // fake packets for add packet name packet(SMSG_SELECT_CART, 0x0000, 0, nullptr, 0); @@ -633,6 +634,7 @@ if (packetVersion >= 20100629) packet(SMSG_PLAYER_EQUIPMENT, 0x02d0, -1, &InventoryRecv::processPlayerEquipment, 20100629); packet(SMSG_PLAYER_STORAGE_EQUIP, 0x02d1, -1, &InventoryRecv::processPlayerStorageEquip, 20100629); packet(SMSG_PLAYER_CART_EQUIP, 0x02d2, -1, &InventoryRecv::processPlayerCartEquip, 20100629); + packet(SMSG_PLAYER_EQUIP, 0x00aa, 9, &InventoryRecv::processPlayerEquip, 20100629); } // 20100701 |