diff options
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/packetsout.inc | 14 | ||||
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 8 | ||||
-rw-r--r-- | src/net/eathena/playerhandler.h | 3 |
3 files changed, 22 insertions, 3 deletions
diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc index 5f5aa4847..f96c2563f 100644 --- a/src/net/eathena/packetsout.inc +++ b/src/net/eathena/packetsout.inc @@ -1299,7 +1299,7 @@ if (packetVersion >= 20140122) // 20140129 if (packetVersion >= 20140129) { - packet(CMSG_SHORTCUTS_ROW_SHIFT, 0x0a01, 3, clif->pHotkeyRowShift); + packet(CMSG_SHORTCUTS_ROW_SHIFT, 0x0a01, 3, clif->pHotkeyRowShift1); } // 20140212 @@ -1629,6 +1629,18 @@ if (packetVersionMain >= 20190227) packet(CMSG_MAP_PING2, 0x0b1c, 2, clif->pPing); } +// 20190508 re +if (packetVersionRe >= 20190508) +{ + packet(CMSG_SHORTCUTS_ROW_SHIFT, 0x0b22, 3, clif->pHotkeyRowShift2); +} + +// 20190522 main +if (packetVersionMain >= 20190522) +{ + packet(CMSG_SHORTCUTS_ROW_SHIFT, 0x0b22, 3, clif->pHotkeyRowShift2); +} + // 20160622 if (packetVersion >= 20160622) { diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index cefbcf285..551ab0144 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -460,11 +460,17 @@ void PlayerHandler::setShortcut(const int idx, outMsg.writeInt16(CAST_S16(level), "level"); } -void PlayerHandler::shortcutShiftRow(const int row) const +void PlayerHandler::shortcutShiftRow(const int row, + const int tab) const { if (packetVersion < 20140129) return; createOutPacket(CMSG_SHORTCUTS_ROW_SHIFT); + if (packetVersionMain >= 20190522 || + packetVersionRe >= 20190508) + { + outMsg.writeInt16(CAST_S16(tab), "tab"); + } outMsg.writeInt8(CAST_S8(row), "row"); } diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h index bb5facaa9..26bb21f85 100644 --- a/src/net/eathena/playerhandler.h +++ b/src/net/eathena/playerhandler.h @@ -60,7 +60,8 @@ class PlayerHandler final : public Ea::PlayerHandler const uint8_t type, const int id, const int level) const override final; - void shortcutShiftRow(const int row) const override final; + void shortcutShiftRow(const int row, + const int tab) const override final; void removeOption() const override final; void changeCart(const int type) const override final; void setMemo() const override final; |