summaryrefslogtreecommitdiff
path: root/src/net/eathena/npchandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-09 21:47:47 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-09 21:47:47 +0300
commit9a215b52f97968426b4163da93f2820a3b9f8146 (patch)
tree41bac23955cb8edb4687a8fed81a1880d82874a5 /src/net/eathena/npchandler.cpp
parentd2f917c54af30d98302da7d913afbae5f8d91c4f (diff)
downloadmv-9a215b52f97968426b4163da93f2820a3b9f8146.tar.gz
mv-9a215b52f97968426b4163da93f2820a3b9f8146.tar.bz2
mv-9a215b52f97968426b4163da93f2820a3b9f8146.tar.xz
mv-9a215b52f97968426b4163da93f2820a3b9f8146.zip
eathena: add packet CMSG_NPC_REFINE 0x0222.
Diffstat (limited to 'src/net/eathena/npchandler.cpp')
-rw-r--r--src/net/eathena/npchandler.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp
index f00b0fa07..bf6e874e1 100644
--- a/src/net/eathena/npchandler.cpp
+++ b/src/net/eathena/npchandler.cpp
@@ -223,6 +223,12 @@ void NpcHandler::repair(const int index) const
outMsg.writeInt16(static_cast<int16_t>(index), "index");
}
+void NpcHandler::refine(const int index) const
+{
+ MessageOut outMsg(CMSG_NPC_REFINE);
+ outMsg.writeInt32(index, "index");
+}
+
int NpcHandler::getNpc(Net::MessageIn &msg)
{
if (msg.getId() == SMSG_NPC_CHOICE