summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-08-19 22:09:10 +0300
committerAndrei Karas <akaras@inbox.ru>2019-08-19 22:09:10 +0300
commit205fb78eab4072466c17116f7e39323aaa03ed2c (patch)
tree55e2cd56b5a9dee8d7271883c8665d857c3e08d6 /src/net/eathena
parentdd35a596b1d5ac51a6aac853c07823ca60438df6 (diff)
downloadmanaverse-205fb78eab4072466c17116f7e39323aaa03ed2c.tar.gz
manaverse-205fb78eab4072466c17116f7e39323aaa03ed2c.tar.bz2
manaverse-205fb78eab4072466c17116f7e39323aaa03ed2c.tar.xz
manaverse-205fb78eab4072466c17116f7e39323aaa03ed2c.zip
Update shortcuts related packets for zero
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/packetsin.inc6
-rw-r--r--src/net/eathena/packetsout.inc7
-rw-r--r--src/net/eathena/playerhandler.cpp6
3 files changed, 17 insertions, 2 deletions
diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc
index 0fa21fd70..3b50b44c1 100644
--- a/src/net/eathena/packetsin.inc
+++ b/src/net/eathena/packetsin.inc
@@ -1811,6 +1811,12 @@ if (packetVersionRe >= 20190605)
packet(SMSG_HOMUNCULUS_INFO, 0x0b2f, 73, &HomunculusRecv::processHomunculusInfo3, 20190605);
}
+// 20190605 zero
+if (packetVersionZero >= 20190605)
+{
+ packet(SMSG_PLAYER_SHORTCUTS, 0x0b20, 271, &PlayerRecv::processPlayerShortcuts3, 20190605);
+}
+
// 20190619 main
if (packetVersionMain >= 20190619)
{
diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc
index 5b905d20c..124b58257 100644
--- a/src/net/eathena/packetsout.inc
+++ b/src/net/eathena/packetsout.inc
@@ -1643,6 +1643,13 @@ if (packetVersionMain >= 20190522)
packet(CMSG_SHORTCUTS_ROW_SHIFT, 0x0b22, 3, clif->pHotkeyRowShift2);
}
+// 20190605 zero
+if (packetVersionZero >= 20190605)
+{
+ packet(CMSG_SET_SHORTCUTS, 0x0b21, 13, clif->pHotkey2);
+ 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 d3b0e6803..0e206f2b7 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -456,7 +456,8 @@ void PlayerHandler::setShortcut(const int idx,
{
createOutPacket(CMSG_SET_SHORTCUTS);
if (packetVersionMain >= 20190522 ||
- packetVersionRe >= 20190508)
+ packetVersionRe >= 20190508 ||
+ packetVersionZero >= 20190605)
{
outMsg.writeInt16(CAST_S16(tab), "tab");
}
@@ -473,7 +474,8 @@ void PlayerHandler::shortcutShiftRow(const int row,
return;
createOutPacket(CMSG_SHORTCUTS_ROW_SHIFT);
if (packetVersionMain >= 20190522 ||
- packetVersionRe >= 20190508)
+ packetVersionRe >= 20190508 ||
+ packetVersionZero >= 20190605)
{
outMsg.writeInt16(CAST_S16(tab), "tab");
}