summaryrefslogtreecommitdiff
path: root/src/net/eathena/adminhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-09-26 01:34:06 +0300
committerAndrei Karas <akaras@inbox.ru>2018-09-26 01:34:06 +0300
commit40895672b5bbb32192c3e36c8fcd3125e2c9baf2 (patch)
tree5dd219a23a0182180b36bf37791fa7a20b1af818 /src/net/eathena/adminhandler.cpp
parent736f10a4310e861dd9a2a712ab9209fad7c92fe8 (diff)
downloadmanaverse-40895672b5bbb32192c3e36c8fcd3125e2c9baf2.tar.gz
manaverse-40895672b5bbb32192c3e36c8fcd3125e2c9baf2.tar.bz2
manaverse-40895672b5bbb32192c3e36c8fcd3125e2c9baf2.tar.xz
manaverse-40895672b5bbb32192c3e36c8fcd3125e2c9baf2.zip
Add packet CMSG_CHANGE_DRESS 0x0ae8.
Diffstat (limited to 'src/net/eathena/adminhandler.cpp')
-rw-r--r--src/net/eathena/adminhandler.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp
index a3cb53fa9..757f1df4d 100644
--- a/src/net/eathena/adminhandler.cpp
+++ b/src/net/eathena/adminhandler.cpp
@@ -32,6 +32,9 @@
#include "debug.h"
+extern int packetVersion;
+extern int packetVersionZero;
+
namespace EAthena
{
@@ -376,4 +379,14 @@ void AdminHandler::slide(const int x, const int y) const
strprintf("%d %d", x, y));
}
+void AdminHandler::changeDress() const
+{
+ if (packetVersionZero < 20171214 &&
+ packetVersion < 20171220)
+ {
+ return;
+ }
+ createOutPacket(CMSG_CHANGE_DRESS);
+}
+
} // namespace EAthena