From a980a18bee10ca9cd635b404425c66f66bba6edc Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Sat, 18 Feb 2006 23:52:44 +0000 Subject: Updated server packets documentation. Some minor updates. --- src/accounthandler.cpp | 2 +- src/chathandler.cpp | 2 +- src/defines.h | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/accounthandler.cpp b/src/accounthandler.cpp index 79aab94d..a0f6828a 100644 --- a/src/accounthandler.cpp +++ b/src/accounthandler.cpp @@ -463,7 +463,7 @@ void AccountHandler::receiveMessage(NetComputer &computer, MessageIn &message) LOG_INFO(name << ": Character's gender is invalid.", 1) break; } - // LATER_ON: Add race attribute. + // LATER_ON: Add race, face and maybe special attributes. // Customization of player's stats... std::vector rawStats; diff --git a/src/chathandler.cpp b/src/chathandler.cpp index 082a1b6a..5f57aeb6 100644 --- a/src/chathandler.cpp +++ b/src/chathandler.cpp @@ -371,7 +371,7 @@ void ChatHandler::sayInChannel(NetComputer &computer, short channel, const std:: LOG_INFO( computer.getCharacter()->getName() << " says in channel " << channel << ": " << text, 2) // Send it to every beings in channel - result.writeShort(SMSG_CHAT); + result.writeShort(SMSG_CHAT_CNL); result.writeShort(channel); std::string say = computer.getCharacter()->getName(); say += ": "; diff --git a/src/defines.h b/src/defines.h index d830af7b..3914dbe8 100644 --- a/src/defines.h +++ b/src/defines.h @@ -165,6 +165,7 @@ enum { SMSG_CHAT = 0x0401, SMSG_ANNOUNCEMENT = 0x0402, SMSG_PRIVMSG = 0x0403, + SMSG_CHAT_CNL = 0x0404, CMSG_SAY = 0x0410, CMSG_ANNOUNCE = 0x0411, CMSG_PRIVMSG = 0x0412, @@ -297,7 +298,7 @@ enum { // Chat errors return values enum { - // CHAT_OK = 0, + // CHAT_AROUND = 0, CHAT_NOLOGIN = 1, CHAT_NO_CHARACTER_SELECTED, CHAT_USING_BAD_WORDS, -- cgit v1.2.3-70-g09d2