summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-01-10 22:04:25 +0200
committerAndrei Karas <akaras@inbox.ru>2011-01-10 22:04:25 +0200
commitef1b9856c86512fe73154c17da3ea98a7cd5f896 (patch)
tree71ea377d66a44d51c41d58e8c0983ab4bb1c1082 /src/net/tmwa
parent5992d792bc8dffc92251cea4d292635943801520 (diff)
downloadmv-ef1b9856c86512fe73154c17da3ea98a7cd5f896.tar.gz
mv-ef1b9856c86512fe73154c17da3ea98a7cd5f896.tar.bz2
mv-ef1b9856c86512fe73154c17da3ea98a7cd5f896.tar.xz
mv-ef1b9856c86512fe73154c17da3ea98a7cd5f896.zip
Add more selling error messages.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/buysellhandler.cpp22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/net/tmwa/buysellhandler.cpp b/src/net/tmwa/buysellhandler.cpp
index bdc372238..84a02e92a 100644
--- a/src/net/tmwa/buysellhandler.cpp
+++ b/src/net/tmwa/buysellhandler.cpp
@@ -139,12 +139,22 @@ void BuySellHandler::handleMessage(Net::MessageIn &msg)
break;
case SMSG_NPC_SELL_RESPONSE:
- if (msg.readInt8() == 0)
- SERVER_NOTICE(_("Thanks for selling."))
- else
- SERVER_NOTICE(_("Unable to sell."))
-
- break;
+ switch (msg.readInt8())
+ {
+ case 0:
+ SERVER_NOTICE(_("Thanks for selling."))
+ break;
+ case 1:
+ default:
+ SERVER_NOTICE(_("Unable to sell."))
+ break;
+ case 2:
+ SERVER_NOTICE(_("Unable to sell while trading."))
+ break;
+ case 3:
+ SERVER_NOTICE(_("Unable to sell unsellable item."))
+ break;
+ }
default:
break;
}