From 16121e499c734c00c714abd0998c24f4845329c3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 20 Feb 2015 00:15:59 +0300 Subject: eathena: add packet CMSG_SET_STATUS. --- src/net/eathena/playerhandler.cpp | 5 ++++- src/net/eathena/protocol.h | 2 ++ src/net/eathena/serverfeatures.cpp | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src/net/eathena') diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index 601dab1c6..03dbb2cf5 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -251,8 +251,11 @@ void PlayerHandler::requestOnlineList() const { } -void PlayerHandler::updateStatus(const uint8_t status A_UNUSED) const +void PlayerHandler::updateStatus(const uint8_t status) const { + createOutPacket(CMSG_SET_STATUS); + outMsg.writeInt8(status, "status"); + outMsg.writeInt8(0, "unused"); } void PlayerHandler::setShortcut(const int idx, diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index a02495b19..73357f562 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -573,4 +573,6 @@ #define CMSG_SEARCHSTORE_CLOSE 0x083b #define CMSG_SEARCHSTORE_CLICK 0x0835 +#define CMSG_SET_STATUS 0x0b0e + #endif // NET_EATHENA_PROTOCOL_H diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp index b9a752946..182c97186 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -67,7 +67,7 @@ bool ServerFeatures::haveLangTab() const bool ServerFeatures::havePlayerStatusUpdate() const { - return false; + return serverVersion >= 5; } bool ServerFeatures::haveBrokenPlayerAttackDistance() const -- cgit v1.2.3-70-g09d2