|
@@ -6589,7 +6589,7 @@ void Client::BuyItem(int32 item_id, int16 quantity) {
|
|
|
Message(CHANNEL_MERCHANT_BUY_SELL, "You buy %s from %s for%s.", master_item->CreateItemLink(GetVersion()).c_str(), spawn->GetName(), GetCoinMessage(total_buy_price).c_str());
|
|
|
AddItem(item);
|
|
|
CheckPlayerQuestsItemUpdate(item);
|
|
|
- if (item && total_available < 0xFFFF) {
|
|
|
+ if (item && total_available < 0xFF) {
|
|
|
world.DecreaseMerchantQuantity(spawn->GetMerchantID(), item_id, quantity);
|
|
|
SendBuyMerchantList();
|
|
|
}
|
|
@@ -6687,7 +6687,7 @@ void Client::BuyItem(int32 item_id, int16 quantity) {
|
|
|
Message(CHANNEL_MERCHANT_BUY_SELL, "You buy %s from %s for%s.", master_item->CreateItemLink(GetVersion()).c_str(), spawn->GetName(), GetCoinMessage(ItemInfo->price_coins * quantity).c_str());
|
|
|
AddItem(item);
|
|
|
CheckPlayerQuestsItemUpdate(item);
|
|
|
- if (item && total_available < 0xFFFF) {
|
|
|
+ if (item && total_available < 0xFF) {
|
|
|
world.DecreaseMerchantQuantity(spawn->GetMerchantID(), item_id, quantity);
|
|
|
SendBuyMerchantList();
|
|
|
}
|
|
@@ -10218,4 +10218,4 @@ void Client::AwardCoins(int64 total_coins, std::string reason)
|
|
|
int8 type = CHANNEL_LOOT;
|
|
|
SimpleMessage(type, message.c_str());
|
|
|
}
|
|
|
-}
|
|
|
+}
|