summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-06-14 23:28:55 +0300
committerAndrei Karas <akaras@inbox.ru>2018-06-14 23:28:55 +0300
commitf349460cedb54d3490e016a48036ced26cd8e998 (patch)
treee93d9bae4296dc021c93a620da9d8dc652fdd64f /src/net/eathena/playerhandler.cpp
parent7b7771f90573b462b16ccb467500f4d7d533b6a9 (diff)
downloadplus-f349460cedb54d3490e016a48036ced26cd8e998.tar.gz
plus-f349460cedb54d3490e016a48036ced26cd8e998.tar.bz2
plus-f349460cedb54d3490e016a48036ced26cd8e998.tar.xz
plus-f349460cedb54d3490e016a48036ced26cd8e998.zip
Add packet CMSG_PLAYER_SELECT_STYLE 0x0a46.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r--src/net/eathena/playerhandler.cpp18
1 files changed, 18 insertions, 0 deletions
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