summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-11 00:15:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-11 00:15:41 +0300
commit05fe7fa2f5a3a8c31bce7336da82145d99e5f477 (patch)
treeaf7dfedfbb192d5ee30620f82c04a7a87c07c5a5 /src/net
parent42995dce106291da04f0e23c00668e0d2afccb08 (diff)
downloadmv-05fe7fa2f5a3a8c31bce7336da82145d99e5f477.tar.gz
mv-05fe7fa2f5a3a8c31bce7336da82145d99e5f477.tar.bz2
mv-05fe7fa2f5a3a8c31bce7336da82145d99e5f477.tar.xz
mv-05fe7fa2f5a3a8c31bce7336da82145d99e5f477.zip
eathena: add partial support for packet SMSG_PLAYER_IDENTIFIED 0x0179.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/inventoryhandler.cpp13
-rw-r--r--src/net/eathena/inventoryhandler.h2
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index e936955e1..96a88c0b3 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -105,6 +105,7 @@ InventoryHandler::InventoryHandler() :
SMSG_PLAYER_CART_ITEMS,
SMSG_PLAYER_CART_REMOVE,
SMSG_PLAYER_IDENTIFY_LIST,
+ SMSG_PLAYER_IDENTIFIED,
0
};
handledMessages = _messages;
@@ -233,6 +234,10 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg)
processPlayerIdentifyList(msg);
break;
+ case SMSG_PLAYER_IDENTIFIED:
+ processPlayerIdentified(msg);
+ break;
+
default:
break;
}
@@ -959,4 +964,12 @@ void InventoryHandler::processPlayerIdentifyList(Net::MessageIn &msg)
msg.readInt16("inv index");
}
+void InventoryHandler::processPlayerIdentified(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+
+ msg.readInt16("inv index");
+ msg.readUInt8("flag");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/inventoryhandler.h b/src/net/eathena/inventoryhandler.h
index b65ebdba9..719515c33 100644
--- a/src/net/eathena/inventoryhandler.h
+++ b/src/net/eathena/inventoryhandler.h
@@ -117,6 +117,8 @@ class InventoryHandler final : public MessageHandler,
static void processPlayerIdentifyList(Net::MessageIn &msg);
+ static void processPlayerIdentified(Net::MessageIn &msg);
+
static Ea::InventoryItems mCartItems;
};
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index e9f045341..fe77ca0ea 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -73,6 +73,7 @@
#define SMSG_PLAYER_INVENTORY_REMOVE2 0x07fa
#define SMSG_PLAYER_INVENTORY_USE 0x01c8
#define SMSG_PLAYER_IDENTIFY_LIST 0x0177
+#define SMSG_PLAYER_IDENTIFIED 0x0179
#define SMSG_PLAYER_CART_ADD 0x01c5
#define SMSG_PLAYER_CART_ITEMS 0x0993
#define SMSG_PLAYER_CART_EQUIP 0x0994