summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerrecv.cpp
diff options
context:
space:
mode:
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)