From d08bd96a8358ad9e399e9f7770d5265c81ff0b4e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 15 Nov 2014 00:30:36 +0300 Subject: eathena: add packet SMSG_NPC_COMMAND 0x0B00. --- src/net/eathena/npchandler.cpp | 5 +++++ src/net/eathena/packets.h | 21 +++++++++++++++++++++ src/net/eathena/protocol.h | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) (limited to 'src/net/eathena') 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 -- cgit v1.2.3-70-g09d2