summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-24 01:15:01 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-24 01:15:01 +0300
commit39b049572ef0a734d3a6bd2a3def04c100f606df (patch)
treefc8eacfd9fd22930890ebe2849bd134a4f282557
parent23ae275efc756f4c75146c741d1f5bd5be315368 (diff)
downloadmanaverse-39b049572ef0a734d3a6bd2a3def04c100f606df.tar.gz
manaverse-39b049572ef0a734d3a6bd2a3def04c100f606df.tar.bz2
manaverse-39b049572ef0a734d3a6bd2a3def04c100f606df.tar.xz
manaverse-39b049572ef0a734d3a6bd2a3def04c100f606df.zip
Add name request packet into protocol.h
-rw-r--r--src/net/eathena/beinghandler.cpp2
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/tmwa/beinghandler.cpp2
-rw-r--r--src/net/tmwa/protocol.h1
4 files changed, 4 insertions, 2 deletions
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
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp
index 53ca71aca..cf2c50bf7 100644
--- a/src/net/tmwa/beinghandler.cpp
+++ b/src/net/tmwa/beinghandler.cpp
@@ -95,7 +95,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/tmwa/protocol.h b/src/net/tmwa/protocol.h
index 1531aae5f..e1d96f0fd 100644
--- a/src/net/tmwa/protocol.h
+++ b/src/net/tmwa/protocol.h
@@ -100,6 +100,7 @@
#define SMSG_BEING_ACTION 0x008a /**< Attack, sit, stand up, ... */
#define SMSG_BEING_CHAT 0x008d /**< A being talks */
#define SMSG_BEING_CHAT2 0x0223 /**< A being talks in channels */
+#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