diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-08 22:25:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-08 23:44:33 +0300 |
commit | 6328313a6d8a76b4d38a82f6f4dcef350c695704 (patch) | |
tree | fd2aba6ed0af90547f0805b335a461bda555a170 /src/net/eathena/buysellhandler.cpp | |
parent | dcd0d2e4d8a827d06a10344855d8d044bd26630d (diff) | |
download | mv-6328313a6d8a76b4d38a82f6f4dcef350c695704.tar.gz mv-6328313a6d8a76b4d38a82f6f4dcef350c695704.tar.bz2 mv-6328313a6d8a76b4d38a82f6f4dcef350c695704.tar.xz mv-6328313a6d8a76b4d38a82f6f4dcef350c695704.zip |
Impliment notify manager.
Move buy/sell notifications to NotifyManager.
Diffstat (limited to 'src/net/eathena/buysellhandler.cpp')
-rw-r--r-- | src/net/eathena/buysellhandler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/eathena/buysellhandler.cpp b/src/net/eathena/buysellhandler.cpp index 4214a76f0..3e81304b0 100644 --- a/src/net/eathena/buysellhandler.cpp +++ b/src/net/eathena/buysellhandler.cpp @@ -24,9 +24,9 @@ #include "actorspritemanager.h" #include "configuration.h" -#include "depricatedevent.h" #include "inventory.h" #include "localplayer.h" +#include "notifymanager.h" #include "playerinfo.h" #include "gui/buydialog.h" @@ -124,17 +124,17 @@ void BuySellHandler::processNpcSellResponse(Net::MessageIn &msg) switch (msg.readInt8()) { case 0: - SERVER_NOTICE(_("Thanks for selling.")) + NotifyManager::notify(NotifyManager::SOLD); break; case 1: default: - SERVER_NOTICE(_("Unable to sell.")) + NotifyManager::notify(NotifyManager::SELL_FAILED); break; case 2: - SERVER_NOTICE(_("Unable to sell while trading.")) + NotifyManager::notify(NotifyManager::SELL_TRADE_FAILED); break; case 3: - SERVER_NOTICE(_("Unable to sell unsellable item.")) + NotifyManager::notify(NotifyManager::SELL_UNSELLABLE_FAILED); break; } } |