From 39b049572ef0a734d3a6bd2a3def04c100f606df Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 24 Jun 2014 01:15:01 +0300 Subject: Add name request packet into protocol.h --- src/net/eathena/beinghandler.cpp | 2 +- src/net/eathena/protocol.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net/eathena') diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index 38f495454..a11f3bae8 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -99,7 +99,7 @@ BeingHandler::BeingHandler(const bool enableSync) : void BeingHandler::requestNameById(const int id) const { - MessageOut outMsg(0x0094); + MessageOut outMsg(CMSG_NAME_REQUEST); outMsg.writeInt32(id); // readLong(2)); } diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 2479efa08..df0527b4c 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -95,6 +95,7 @@ #define SMSG_BEING_EMOTION 0x00c0 #define SMSG_BEING_ACTION 0x008a /**< Attack, sit, stand up, ... */ #define SMSG_BEING_CHAT 0x008d /**< A being talks */ +#define CMSG_NAME_REQUEST 0x0094 #define SMSG_BEING_NAME_RESPONSE 0x0095 /**< Has to be requested */ #define SMSG_BEING_NAME_RESPONSE2 0x0220 /**< Has to be requested */ #define SMSG_BEING_CHANGE_DIRECTION 0x009c -- cgit v1.2.3-70-g09d2