summaryrefslogtreecommitdiff
path: root/src/net/eathena/buyingstorehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/buyingstorehandler.cpp')
-rw-r--r--src/net/eathena/buyingstorehandler.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/buyingstorehandler.cpp b/src/net/eathena/buyingstorehandler.cpp
index 2356f6546..68fe18f2a 100644
--- a/src/net/eathena/buyingstorehandler.cpp
+++ b/src/net/eathena/buyingstorehandler.cpp
@@ -52,6 +52,7 @@ BuyingStoreHandler::BuyingStoreHandler() :
SMSG_BUYINGSTORE_ITEMS_LIST,
SMSG_BUYINGSTORE_SELL_FAILED,
SMSG_BUYINGSTORE_REPORT,
+ SMSG_BUYINGSTORE_DELETE_ITEM,
0
};
handledMessages = _messages;
@@ -94,6 +95,10 @@ void BuyingStoreHandler::handleMessage(Net::MessageIn &msg)
processBuyingStoreReport(msg);
break;
+ case SMSG_BUYINGSTORE_DELETE_ITEM:
+ processBuyingStoreDeleteItem(msg);
+ break;
+
default:
break;
}
@@ -191,6 +196,13 @@ void BuyingStoreHandler::processBuyingStoreReport(Net::MessageIn &msg)
msg.readInt32("money limit");
}
+void BuyingStoreHandler::processBuyingStoreDeleteItem(Net::MessageIn &msg)
+{
+ msg.readInt16("item index");
+ msg.readInt16("amount");
+ msg.readInt32("price");
+}
+
void BuyingStoreHandler::create(const std::string &name,
const int maxMoney,
const bool flag,