summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/packetsout.inc4
-rw-r--r--src/net/eathena/playerhandler.cpp6
-rw-r--r--src/net/eathena/playerhandler.h1
3 files changed, 10 insertions, 1 deletions
diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc
index f96c2563f..5b905d20c 100644
--- a/src/net/eathena/packetsout.inc
+++ b/src/net/eathena/packetsout.inc
@@ -181,7 +181,7 @@ packet(CMSG_SOLVE_CHAR_NAME, 0x0193, 6, clif->pSolveCharName);
packet(CMSG_IGNORE_ALL, 0x00d0, 3, clif->pPMIgnoreAll);
packet(CMSG_IGNORE_NICK, 0x00cf, 27, clif->pPMIgnore);
packet(CMSG_REQUEST_IGNORE_LIST, 0x00d3, 2, clif->pPMIgnoreList);
-packet(CMSG_SET_SHORTCUTS, 0x02ba, 11, clif->pHotkey);
+packet(CMSG_SET_SHORTCUTS, 0x02ba, 11, clif->pHotkey1);
packet(CMSG_NPC_COMPLETE_PROGRESS_BAR, 0x02f1, 2, clif->pProgressbar);
packet(CMSG_NPC_PRODUCE_MIX, 0x018e, 10, clif->pProduceMix);
packet(CMSG_NPC_COOKING, 0x025b, 6, clif->pCooking);
@@ -1632,12 +1632,14 @@ if (packetVersionMain >= 20190227)
// 20190508 re
if (packetVersionRe >= 20190508)
{
+ packet(CMSG_SET_SHORTCUTS, 0x0b21, 13, clif->pHotkey2);
packet(CMSG_SHORTCUTS_ROW_SHIFT, 0x0b22, 3, clif->pHotkeyRowShift2);
}
// 20190522 main
if (packetVersionMain >= 20190522)
{
+ packet(CMSG_SET_SHORTCUTS, 0x0b21, 13, clif->pHotkey2);
packet(CMSG_SHORTCUTS_ROW_SHIFT, 0x0b22, 3, clif->pHotkeyRowShift2);
}
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index 551ab0144..d3b0e6803 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -449,11 +449,17 @@ void PlayerHandler::updateStatus(const uint8_t status) const
}
void PlayerHandler::setShortcut(const int idx,
+ const int tab,
const uint8_t type,
const int id,
const int level) const
{
createOutPacket(CMSG_SET_SHORTCUTS);
+ if (packetVersionMain >= 20190522 ||
+ packetVersionRe >= 20190508)
+ {
+ outMsg.writeInt16(CAST_S16(tab), "tab");
+ }
outMsg.writeInt16(CAST_S16(idx), "index");
outMsg.writeInt8(CAST_S8(type), "type");
outMsg.writeInt32(id, "id");
diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h
index 26bb21f85..8609a3372 100644
--- a/src/net/eathena/playerhandler.h
+++ b/src/net/eathena/playerhandler.h
@@ -57,6 +57,7 @@ class PlayerHandler final : public Ea::PlayerHandler
void requestOnlineList() const override final;
void respawn() const override final;
void setShortcut(const int idx,
+ const int tab,
const uint8_t type,
const int id,
const int level) const override final;