summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-06-26 22:12:11 +0300
committerAndrei Karas <akaras@inbox.ru>2019-06-26 22:12:11 +0300
commit888c5621cfe3a646f1f21290d3c5cd027eeba0a9 (patch)
tree234e38ddd674990c1f54cebbe36edbec597150e5 /src/net/eathena/playerrecv.cpp
parenta6445adf61a87f73a3cd7781c36e36e228ac526e (diff)
downloadmanaverse-888c5621cfe3a646f1f21290d3c5cd027eeba0a9.tar.gz
manaverse-888c5621cfe3a646f1f21290d3c5cd027eeba0a9.tar.bz2
manaverse-888c5621cfe3a646f1f21290d3c5cd027eeba0a9.tar.xz
manaverse-888c5621cfe3a646f1f21290d3c5cd027eeba0a9.zip
Update packet SMSG_PLAYER_SHORTCUTS
Diffstat (limited to 'src/net/eathena/playerrecv.cpp')
-rw-r--r--src/net/eathena/playerrecv.cpp34
1 files changed, 29 insertions, 5 deletions
diff --git a/src/net/eathena/playerrecv.cpp b/src/net/eathena/playerrecv.cpp
index c6f843168..9b4108cc0 100644
--- a/src/net/eathena/playerrecv.cpp
+++ b/src/net/eathena/playerrecv.cpp
@@ -52,19 +52,43 @@
namespace EAthena
{
-void PlayerRecv::processPlayerShortcuts(Net::MessageIn &msg)
+void PlayerRecv::processPlayerShortcuts1(Net::MessageIn &msg)
{
// +++ player shortcuts ignored. It also disabled on server side.
// may be in future better use it?
- if (msg.getVersion() >= 20141022)
- msg.readUInt8("rotate");
- for (int f = 0; f < 27; f ++)
+ for (int f = 0; f < 38; f ++)
+ {
+ msg.readUInt8("type 0: item, 1: skill");
+ msg.readInt32("item or skill id");
+ msg.readInt16("skill level");
+ }
+}
+
+void PlayerRecv::processPlayerShortcuts2(Net::MessageIn &msg)
+{
+ // +++ player shortcuts ignored. It also disabled on server side.
+ // may be in future better use it?
+ msg.readUInt8("rotate");
+ for (int f = 0; f < 38; f ++)
+ {
+ msg.readUInt8("type 0: item, 1: skill");
+ msg.readInt32("item or skill id");
+ msg.readInt16("skill level");
+ }
+}
+
+void PlayerRecv::processPlayerShortcuts3(Net::MessageIn &msg)
+{
+ // +++ player shortcuts ignored. It also disabled on server side.
+ // may be in future better use it?
+ msg.readUInt8("rotate");
+ msg.readInt16("tab");
+ for (int f = 0; f < 38; f ++)
{
msg.readUInt8("type 0: item, 1: skill");
msg.readInt32("item or skill id");
msg.readInt16("skill level");
}
- msg.skip(77, "unused");
}
void PlayerRecv::processPlayerShowEquip(Net::MessageIn &msg)