summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-12 13:13:43 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-12 13:13:43 +0300
commit16958b5635ab990881039ea71bca15e90088b12f (patch)
tree205e75c07b8f6e904829ad118c7565ece18d5b36 /src
parent89ed065dd03979e7029f76cb44185dd9fc861576 (diff)
downloadplus-16958b5635ab990881039ea71bca15e90088b12f.tar.gz
plus-16958b5635ab990881039ea71bca15e90088b12f.tar.bz2
plus-16958b5635ab990881039ea71bca15e90088b12f.tar.xz
plus-16958b5635ab990881039ea71bca15e90088b12f.zip
eathena: add partial support for packet SMSG_PLAYER_FAME_ALCHEMIST 0x021c.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/packets.h2
-rw-r--r--src/net/eathena/playerhandler.cpp12
-rw-r--r--src/net/eathena/playerhandler.h2
-rw-r--r--src/net/eathena/protocol.h1
4 files changed, 16 insertions, 1 deletions
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