From 1111fdbeb39d01e7612e164512fecf4289569b10 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 31 Aug 2014 15:46:35 +0300 Subject: eathena: add packet CMSG_CHAR_CREATE 0x0970. --- src/net/eathena/charserverhandler.cpp | 5 ++--- src/net/eathena/packets.h | 34 ++++++++++++++++++++++++++++++++++ src/net/eathena/protocol.h | 2 +- 3 files changed, 37 insertions(+), 4 deletions(-) (limited to 'src/net') 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 &stats) const + const std::vector &stats A_UNUSED) + const { MessageOut outMsg(CMSG_CHAR_CREATE); outMsg.writeString(name, 24); - for (int i = 0; i < 6; i++) - outMsg.writeInt8(static_cast(stats[i])); outMsg.writeInt8(static_cast(slot)); outMsg.writeInt16(static_cast(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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, +// #0x0880 + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0,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0, 0, 0, 0, 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 -- cgit v1.2.3-70-g09d2