From 16958b5635ab990881039ea71bca15e90088b12f Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Thu, 12 Mar 2015 13:13:43 +0300
Subject: eathena: add partial support for packet SMSG_PLAYER_FAME_ALCHEMIST
 0x021c.

---
 src/net/eathena/packets.h         |  2 +-
 src/net/eathena/playerhandler.cpp | 12 ++++++++++++
 src/net/eathena/playerhandler.h   |  2 ++
 src/net/eathena/protocol.h        |  1 +
 4 files changed, 16 insertions(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h
index eb192bfa2..3cd224249 100644
--- a/src/net/eathena/packets.h
+++ b/src/net/eathena/packets.h
@@ -84,7 +84,7 @@ int16_t packet_lengths[] =
 //0    1    2    3    4    5    6    7    8    9   10   11   12   13   14   15
 // #0x0200
  26,  -1,   0,   0,  18,  26,  11,  34,   0,  36,  10,  19,  10,   0,  32,   0,
- 22,  -1,  16,   0,  42,   6,   6,   0,   0, 282, 282,  10,   0,   0,   0,   0,
+ 22,  -1,  16,   0,  42,   6,   6,   0,   0, 282, 282,  10,  10,   0,   0,   0,
  -1, 122,   0,   0,   0,   0,   0,   0,   0,  15,   0,   0,   0,  19,  71,   5,
  12,   0,   0,   0,   0,  -1,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,
 // #0x0240
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index 12d39531f..93cd5ccf9 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -65,6 +65,7 @@ PlayerHandler::PlayerHandler() :
         SMSG_ONLINE_LIST,
         SMSG_PLAYER_NOTIFY_MAPINFO,
         SMSG_PLAYER_FAME_BLACKSMITH,
+        SMSG_PLAYER_FAME_ALCHEMIST,
         0
     };
     handledMessages = _messages;
@@ -156,6 +157,10 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg)
             processPlayerFameBlacksmith(msg);
             break;
 
+        case SMSG_PLAYER_FAME_ALCHEMIST:
+            processPlayerFameAlchemist(msg);
+            break;
+
         default:
             break;
     }
@@ -537,4 +542,11 @@ void PlayerHandler::processPlayerFameBlacksmith(Net::MessageIn &msg)
     msg.readInt32("total points");
 }
 
+void PlayerHandler::processPlayerFameAlchemist(Net::MessageIn &msg)
+{
+    UNIMPLIMENTEDPACKET;
+    msg.readInt32("points");
+    msg.readInt32("total points");
+}
+
 }  // namespace EAthena
diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h
index 43e3af52e..151ac9131 100644
--- a/src/net/eathena/playerhandler.h
+++ b/src/net/eathena/playerhandler.h
@@ -94,6 +94,8 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler
         static void processNotifyMapInfo(Net::MessageIn &msg);
 
         static void processPlayerFameBlacksmith(Net::MessageIn &msg);
+
+        static void processPlayerFameAlchemist(Net::MessageIn &msg);
 };
 
 }  // namespace EAthena
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index f46524c09..e1fdb8bae 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -106,6 +106,7 @@
 #define SMSG_PLAYER_REPAIR_LIST      0x01fc
 #define SMSG_PLAYER_REPAIR_EFFECT    0x01fe
 #define SMSG_PLAYER_FAME_BLACKSMITH  0x021b
+#define SMSG_PLAYER_FAME_ALCHEMIST   0x021c
 #define SMSG_SKILL_FAILED            0x0110
 #define SMSG_SKILL_DAMAGE            0x01de
 #define SMSG_SKILL_AUTO_CAST         0x0147
-- 
cgit v1.2.3-70-g09d2