From f349460cedb54d3490e016a48036ced26cd8e998 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 14 Jun 2018 23:28:55 +0300 Subject: Add packet CMSG_PLAYER_SELECT_STYLE 0x0a46. --- src/net/eathena/playerhandler.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/net/eathena/playerhandler.cpp') diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index c86eb5c28..e22ca822b 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -789,6 +789,24 @@ void PlayerHandler::setStat(Net::MessageIn &msg, } } +void PlayerHandler::selectStyle(const int headColor, + const int headStyle, + const int bodyColor, + const int topStyle, + const int middleStyle, + const int bottomStyle) const +{ + if (packetVersion < 20151104) + return; + createOutPacket(CMSG_PLAYER_SELECT_STYLE); + outMsg.writeInt16(headColor, "head color"); + outMsg.writeInt16(headStyle, "head style"); + outMsg.writeInt16(bodyColor, "body color"); + outMsg.writeInt16(topStyle, "top style"); + outMsg.writeInt16(middleStyle, "middle style"); + outMsg.writeInt16(bottomStyle, "bottom style"); +} + #undef setStatComplex } // namespace EAthena -- cgit v1.2.3-70-g09d2