diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-09 22:46:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-09 22:46:03 +0300 |
commit | 605691e70927a3b44064562f7507c14e4600c3d3 (patch) | |
tree | fe6bd13b3528a9bda1e0d85bdafa408246e52a7d /src/net/eathena | |
parent | 8a6f2c9d9a88668a12e69ea0ce632b1633c1c0eb (diff) | |
download | manaverse-605691e70927a3b44064562f7507c14e4600c3d3.tar.gz manaverse-605691e70927a3b44064562f7507c14e4600c3d3.tar.bz2 manaverse-605691e70927a3b44064562f7507c14e4600c3d3.tar.xz manaverse-605691e70927a3b44064562f7507c14e4600c3d3.zip |
eathena: add packet CMSG_NPC_IDENTIFY 0x0178.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/npchandler.cpp | 6 | ||||
-rw-r--r-- | src/net/eathena/npchandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp index bf6e874e1..33fbbea43 100644 --- a/src/net/eathena/npchandler.cpp +++ b/src/net/eathena/npchandler.cpp @@ -229,6 +229,12 @@ void NpcHandler::refine(const int index) const outMsg.writeInt32(index, "index"); } +void NpcHandler::identify(const int index) const +{ + MessageOut outMsg(CMSG_NPC_IDENTIFY); + outMsg.writeInt16(index, "index"); +} + int NpcHandler::getNpc(Net::MessageIn &msg) { if (msg.getId() == SMSG_NPC_CHOICE diff --git a/src/net/eathena/npchandler.h b/src/net/eathena/npchandler.h index 285f8e0c2..5bf7ae0c0 100644 --- a/src/net/eathena/npchandler.h +++ b/src/net/eathena/npchandler.h @@ -81,6 +81,8 @@ class NpcHandler final : public MessageHandler, public Ea::NpcHandler int getNpc(Net::MessageIn &msg) override final; + void identify(const int index) const override final; + protected: static void processNpcCutin(Net::MessageIn &msg); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 64678961a..3aa0471af 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -318,6 +318,7 @@ #define CMSG_NPC_COOKING 0x025b #define CMSG_NPC_REPAIR 0x01fd #define CMSG_NPC_REFINE 0x0222 +#define CMSG_NPC_IDENTIFY 0x0178 #define CMSG_PLAYER_MAPMOVE 0x0140 #define CMSG_REMOVE_OPTION 0x012a #define CMSG_PLAYER_SET_MEMO 0x011d |