diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-09 00:41:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-09 00:41:19 +0300 |
commit | 3d1770d40bb11292d79bbdf0a6c9e628509632d5 (patch) | |
tree | 3e3bf62a1821fb67dc59fd29d35e7d462be54714 /src/net/eathena/playerhandler.cpp | |
parent | df01c98c8a7c0b45de0b67cf484994e5886fef4d (diff) | |
download | plus-3d1770d40bb11292d79bbdf0a6c9e628509632d5.tar.gz plus-3d1770d40bb11292d79bbdf0a6c9e628509632d5.tar.bz2 plus-3d1770d40bb11292d79bbdf0a6c9e628509632d5.tar.xz plus-3d1770d40bb11292d79bbdf0a6c9e628509632d5.zip |
eathena: add packet CMSG_SET_SHORTCUTS 0x02ba.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index 35759bfd6..d6ae04585 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -234,6 +234,18 @@ void PlayerHandler::updateStatus(const uint8_t status) const outMsg.writeInt8(0); } +void PlayerHandler::setShortcut(const int idx, + const uint8_t type, + const int id, + const int level) const +{ + MessageOut outMsg(CMSG_SET_SHORTCUTS); + outMsg.writeInt16(idx, "index"); + outMsg.writeInt8(type, "type"); + outMsg.writeInt32(id, "id"); + outMsg.writeInt16(level, "level"); +} + void PlayerHandler::processPlayerShortcuts(Net::MessageIn &msg) { for (int f = 0; f < 27; f ++) |