diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-11 15:16:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-11 15:16:53 +0300 |
commit | eae805845ace52c0056e7e426c5c8b3831e638af (patch) | |
tree | 2f9cba27a39fba868a3cbe57c6a7fe12310089f3 | |
parent | 3940228a5d6be203454f521c17f01f666564cd31 (diff) | |
download | manaverse-eae805845ace52c0056e7e426c5c8b3831e638af.tar.gz manaverse-eae805845ace52c0056e7e426c5c8b3831e638af.tar.bz2 manaverse-eae805845ace52c0056e7e426c5c8b3831e638af.tar.xz manaverse-eae805845ace52c0056e7e426c5c8b3831e638af.zip |
eathena: add partial support for packet SMSG_NPC_SHOW_DIGIT 0x01b1.
-rw-r--r-- | src/net/eathena/npchandler.cpp | 14 | ||||
-rw-r--r-- | src/net/eathena/npchandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 17 insertions, 0 deletions
diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp index a4487c408..790d498c6 100644 --- a/src/net/eathena/npchandler.cpp +++ b/src/net/eathena/npchandler.cpp @@ -23,6 +23,7 @@ #include "net/eathena/npchandler.h" #include "actormanager.h" +#include "logger.h" #include "being/localplayer.h" @@ -59,6 +60,7 @@ NpcHandler::NpcHandler() : SMSG_NPC_COMMAND, SMSG_NPC_CHANGETITLE, SMSG_NPC_AREA, + SMSG_NPC_SHOW_DIGIT, 0 }; handledMessages = _messages; @@ -121,6 +123,10 @@ void NpcHandler::handleMessage(Net::MessageIn &msg) processArea(msg); break; + case SMSG_NPC_SHOW_DIGIT: + processShowDigit(msg); + break; + default: break; } @@ -374,4 +380,12 @@ void NpcHandler::processArea(Net::MessageIn &msg) dstBeing->setAreaSize(area); } +void NpcHandler::processShowDigit(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + msg.readUInt8("type"); + msg.readInt32("value"); +} + } // namespace EAthena diff --git a/src/net/eathena/npchandler.h b/src/net/eathena/npchandler.h index c42030fd0..bfc4e2943 100644 --- a/src/net/eathena/npchandler.h +++ b/src/net/eathena/npchandler.h @@ -97,6 +97,8 @@ class NpcHandler final : public MessageHandler, public Ea::NpcHandler static void processNpcCloseTimeout(Net::MessageIn &msg); static void processArea(Net::MessageIn &msg); + + static void processShowDigit(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index d547c3b4b..02c024c88 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -170,6 +170,7 @@ #define SMSG_NPC_CASH_SHOP_OPEN 0x0287 #define SMSG_NPC_CASH_BUY_ACK 0x0289 #define SMSG_NPC_AREA 0x0b0b +#define SMSG_NPC_SHOW_DIGIT 0x01b1 #define SMSG_PLAYER_CHAT 0x008e /**< Player talks */ #define SMSG_WHISPER 0x0097 /**< Whisper Recieved */ |