diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-15 00:30:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-15 00:30:36 +0300 |
commit | d08bd96a8358ad9e399e9f7770d5265c81ff0b4e (patch) | |
tree | 221d3fb3d5fbcc956f100824643c0974dd0b06cb /src/net/eathena | |
parent | 17a6ccbd6a52fd4dbf85a8f9ea0e20fc215a41a2 (diff) | |
download | manaverse-d08bd96a8358ad9e399e9f7770d5265c81ff0b4e.tar.gz manaverse-d08bd96a8358ad9e399e9f7770d5265c81ff0b4e.tar.bz2 manaverse-d08bd96a8358ad9e399e9f7770d5265c81ff0b4e.tar.xz manaverse-d08bd96a8358ad9e399e9f7770d5265c81ff0b4e.zip |
eathena: add packet SMSG_NPC_COMMAND 0x0B00.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/npchandler.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/packets.h | 21 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 2 |
3 files changed, 27 insertions, 1 deletions
diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp index 503dc642e..1dd6f1906 100644 --- a/src/net/eathena/npchandler.cpp +++ b/src/net/eathena/npchandler.cpp @@ -54,6 +54,7 @@ NpcHandler::NpcHandler() : SMSG_NPC_VIEWPOINT, SMSG_NPC_SHOW_PROGRESS_BAR, SMSG_NPC_CLOSE_TIMEOUT, + SMSG_NPC_COMMAND, 0 }; handledMessages = _messages; @@ -104,6 +105,10 @@ void NpcHandler::handleMessage(Net::MessageIn &msg) processNpcCloseTimeout(msg); break; + case SMSG_NPC_COMMAND: + processNpcCommand(msg); + break; + default: break; } diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index 6d7a99762..cdc21e72a 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -263,6 +263,27 @@ int16_t packet_lengths[] = 0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +// #0x0A40 + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +// #0x0A80 + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +// #0x0AC0 + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +// #0x0B00 + 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +// #0x0B40 }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 09e615cfd..bdf254d04 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -279,7 +279,7 @@ #define SMSG_MAP_TYPE 0x01d6 #define SMSG_IGNORE_ALL_RESPONSE 0x00d2 #define SMSG_ONLINE_LIST 0x0211 -#define SMSG_NPC_COMMAND 0x0212 +#define SMSG_NPC_COMMAND 0x0B00 #define SMSG_MAP_ACCOUNT_ID 0x0283 #define SMSG_PLAYER_SHORTCUTS 0x0a00 |