diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-09 20:00:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-09 20:00:59 +0300 |
commit | 7ac2da363583a568256f5efc2ab58fa2b342b233 (patch) | |
tree | ed99f960b5b5c6cbaa7a7ca9db19f3dedb43bf33 /src/net/eathena/npchandler.cpp | |
parent | 0e58c7c1df7d4e02b1dc06d5ee40bd7ab25ef284 (diff) | |
download | manaverse-7ac2da363583a568256f5efc2ab58fa2b342b233.tar.gz manaverse-7ac2da363583a568256f5efc2ab58fa2b342b233.tar.bz2 manaverse-7ac2da363583a568256f5efc2ab58fa2b342b233.tar.xz manaverse-7ac2da363583a568256f5efc2ab58fa2b342b233.zip |
eathena: add packet CMSG_NPC_COOKING 0x025b.
Diffstat (limited to 'src/net/eathena/npchandler.cpp')
-rw-r--r-- | src/net/eathena/npchandler.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp index be82548fd..3943d99c4 100644 --- a/src/net/eathena/npchandler.cpp +++ b/src/net/eathena/npchandler.cpp @@ -209,6 +209,14 @@ void NpcHandler::produceMix(const int nameId, outMsg.writeInt16(materialId3, "material 3"); } +void NpcHandler::cooking(const CookingType::Type type, + const int nameId) const +{ + MessageOut outMsg(CMSG_NPC_COOKING); + outMsg.writeInt16(static_cast<int16_t>(type), "type"); + outMsg.writeInt16(nameId, "name id"); +} + int NpcHandler::getNpc(Net::MessageIn &msg) { if (msg.getId() == SMSG_NPC_CHOICE |