diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-13 21:07:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-13 21:07:52 +0300 |
commit | a515a9c9f6f1a6f7a0d94e0ceba5ed52c69902bb (patch) | |
tree | fb07bb55e2d630172b847238718f6d4ade596cbe /src/net/eathena/chathandler.cpp | |
parent | 259c2b3803bcf1dd16759b6adad7ac9006c36f09 (diff) | |
download | manaverse-a515a9c9f6f1a6f7a0d94e0ceba5ed52c69902bb.tar.gz manaverse-a515a9c9f6f1a6f7a0d94e0ceba5ed52c69902bb.tar.bz2 manaverse-a515a9c9f6f1a6f7a0d94e0ceba5ed52c69902bb.tar.xz manaverse-a515a9c9f6f1a6f7a0d94e0ceba5ed52c69902bb.zip |
eathena: show correct message if item cant be used because not left delay.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r-- | src/net/eathena/chathandler.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 7461f8bd8..1ff0e9035 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -470,6 +470,11 @@ void ChatHandler::processFormatMessageNumber(Net::MessageIn &msg) { int msgId = msg.readInt16("msg id"); int value = msg.readInt32("value"); + if (msgId == 1862) + { + NotifyManager::notify(NotifyTypes::USE_ITEM_WAIT, value); + return; + } // +++ here need load message from configuration file const std::string chatMsg = strprintf( "Message #%d, value: %d", msgId, value); |