summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-06 02:29:43 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-06 02:38:52 +0300
commit206123cda79c8b77aafcd042c99f5ea1c38f084d (patch)
tree8010f20d7813d5b2bacd5adc3f51def7d04f0310 /src/net/eathena/playerhandler.cpp
parentcc79a815a38dab8970e28a692b9a051627c8e56a (diff)
downloadmanaplus-206123cda79c8b77aafcd042c99f5ea1c38f084d.tar.gz
manaplus-206123cda79c8b77aafcd042c99f5ea1c38f084d.tar.bz2
manaplus-206123cda79c8b77aafcd042c99f5ea1c38f084d.tar.xz
manaplus-206123cda79c8b77aafcd042c99f5ea1c38f084d.zip
Impliment packet CMSG_SHORTCUTS_ROW_SHIFT 0x0a01.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r--src/net/eathena/playerhandler.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index 8c82cd93e..c319c6e8d 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -31,6 +31,7 @@
#include "debug.h"
extern Net::PlayerHandler *playerHandler;
+extern int serverVersion;
namespace EAthena
{
@@ -170,6 +171,14 @@ void PlayerHandler::setShortcut(const int idx,
outMsg.writeInt16(static_cast<int16_t>(level), "level");
}
+void PlayerHandler::shortcutShiftRow(const int row) const
+{
+ if (serverVersion != 0 && serverVersion < 11)
+ return;
+ createOutPacket(CMSG_SHORTCUTS_ROW_SHIFT);
+ outMsg.writeInt8(static_cast<int8_t>(row), "row");
+}
+
void PlayerHandler::removeOption() const
{
createOutPacket(CMSG_REMOVE_OPTION);