diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-09 20:17:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-09 20:17:29 +0300 |
commit | 6b4beb683308a0df2d08c7ae499cffa0d87f5dae (patch) | |
tree | 2bd2c3064a1350f46302eadce733c0f03ef0820f /src/net/eathena/npchandler.cpp | |
parent | 7ac2da363583a568256f5efc2ab58fa2b342b233 (diff) | |
download | mv-6b4beb683308a0df2d08c7ae499cffa0d87f5dae.tar.gz mv-6b4beb683308a0df2d08c7ae499cffa0d87f5dae.tar.bz2 mv-6b4beb683308a0df2d08c7ae499cffa0d87f5dae.tar.xz mv-6b4beb683308a0df2d08c7ae499cffa0d87f5dae.zip |
eathena: add packet CMSG_NPC_REPAIR 0x01fd.
Diffstat (limited to 'src/net/eathena/npchandler.cpp')
-rw-r--r-- | src/net/eathena/npchandler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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<int16_t>(index), "index"); +} + int NpcHandler::getNpc(Net::MessageIn &msg) { if (msg.getId() == SMSG_NPC_CHOICE |