From ef52c9f9df0dd3b1e79226af71c772c4a23f9df8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Apr 2016 23:13:33 +0300 Subject: Add packet SMSG_PLAYER_EQUIP 0x00aa. --- src/net/eathena/inventoryrecv.cpp | 3 ++- src/net/eathena/packetsin.inc | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-60-g2f50