From a37b34f16d81c0b60376c63a11974c401faa2f91 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 3 Sep 2014 23:16:04 +0300 Subject: eathena: fix packet SMSG_PLAYER_EQUIP 0x0999. --- src/net/eathena/inventoryhandler.cpp | 7 ++++--- src/net/eathena/protocol.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 3861945df..d0458a61b 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -399,9 +399,10 @@ void InventoryHandler::processPlayerInventory(Net::MessageIn &msg) void InventoryHandler::processPlayerEquip(Net::MessageIn &msg) { BLOCK_START("InventoryHandler::processPlayerEquip") - const int index = msg.readInt16() - INVENTORY_OFFSET; - const int equipType = msg.readInt16(); - const uint8_t flag = msg.readUInt8(); + const int index = msg.readInt16("index") - INVENTORY_OFFSET; + const int equipType = msg.readInt32("wear location"); + msg.readInt16("sprite"); + const uint8_t flag = msg.readUInt8("result"); if (!flag) NotifyManager::notify(NotifyTypes::EQUIP_FAILED); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 49e8502cb..cd6a654c1 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -73,7 +73,7 @@ #define SMSG_PLAYER_INVENTORY_REMOVE 0x00af #define SMSG_PLAYER_INVENTORY_USE 0x01c8 #define SMSG_PLAYER_EQUIPMENT 0x0992 -#define SMSG_PLAYER_EQUIP 0x00aa +#define SMSG_PLAYER_EQUIP 0x0999 #define SMSG_PLAYER_UNEQUIP 0x00ac #define SMSG_PLAYER_ATTACK_RANGE 0x013a #define SMSG_PLAYER_ARROW_EQUIP 0x013c -- cgit v1.2.3-70-g09d2