summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-31 15:46:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:53 +0300
commit1111fdbeb39d01e7612e164512fecf4289569b10 (patch)
tree41d43be04c0fb38d89589c1b5e5958fe1a8d721c /src/net/eathena
parentc911d47ad83dca749945a0cfd159299e0ad0fecd (diff)
downloadplus-1111fdbeb39d01e7612e164512fecf4289569b10.tar.gz
plus-1111fdbeb39d01e7612e164512fecf4289569b10.tar.bz2
plus-1111fdbeb39d01e7612e164512fecf4289569b10.tar.xz
plus-1111fdbeb39d01e7612e164512fecf4289569b10.zip
eathena: add packet CMSG_CHAR_CREATE 0x0970.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/charserverhandler.cpp5
-rw-r--r--src/net/eathena/packets.h34
-rw-r--r--src/net/eathena/protocol.h2
3 files changed, 37 insertions, 4 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp
index 2e9d7d5e0..3dd5134e0 100644
--- a/src/net/eathena/charserverhandler.cpp
+++ b/src/net/eathena/charserverhandler.cpp
@@ -226,12 +226,11 @@ void CharServerHandler::newCharacter(const std::string &name, const int slot,
const int hairstyle, const int hairColor,
const unsigned char race A_UNUSED,
const unsigned char look A_UNUSED,
- const std::vector<int> &stats) const
+ const std::vector<int> &stats A_UNUSED)
+ const
{
MessageOut outMsg(CMSG_CHAR_CREATE);
outMsg.writeString(name, 24);
- for (int i = 0; i < 6; i++)
- outMsg.writeInt8(static_cast<unsigned char>(stats[i]));
outMsg.writeInt8(static_cast<unsigned char>(slot));
outMsg.writeInt16(static_cast<int16_t>(hairColor));
diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h
index 0a98e1cc5..dd5994fd1 100644
--- a/src/net/eathena/packets.h
+++ b/src/net/eathena/packets.h
@@ -224,6 +224,40 @@ int16_t packet_lengths[] =
0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0,
+// #0x0980
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+// #0x09C0
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+//0 1 2 3 4 5 6 7 8 9 a b c d e f
+//0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
};
} // namespace EAthena
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index d7f5da4b7..3251c5faf 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -194,7 +194,7 @@
#define CMSG_CHAR_PASSWORD_CHANGE 0x0061
#define CMSG_CHAR_SERVER_CONNECT 0x0065
#define CMSG_CHAR_SELECT 0x0066
-#define CMSG_CHAR_CREATE 0x0067
+#define CMSG_CHAR_CREATE 0x0970
#define CMSG_CHAR_DELETE 0x0068
#define CMSG_MAP_SERVER_CONNECT 0x0072