From 6b4beb683308a0df2d08c7ae499cffa0d87f5dae Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Sep 2014 20:17:29 +0300 Subject: eathena: add packet CMSG_NPC_REPAIR 0x01fd. --- src/net/eathena/npchandler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/net/eathena/npchandler.cpp') diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp index 3943d99c4..f00b0fa07 100644 --- a/src/net/eathena/npchandler.cpp +++ b/src/net/eathena/npchandler.cpp @@ -217,6 +217,12 @@ void NpcHandler::cooking(const CookingType::Type type, outMsg.writeInt16(nameId, "name id"); } +void NpcHandler::repair(const int index) const +{ + MessageOut outMsg(CMSG_NPC_REPAIR); + outMsg.writeInt16(static_cast(index), "index"); +} + int NpcHandler::getNpc(Net::MessageIn &msg) { if (msg.getId() == SMSG_NPC_CHOICE -- cgit v1.2.3-70-g09d2