diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/charserverhandler.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/packets.h | 34 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 2 |
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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, +// #0x08C0 + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 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 |