Minimum range for private stores.
This commit is contained in:
@ -101,6 +101,12 @@ public final class RequestRecipeShopListSet extends L2GameClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (!player.canOpenPrivateStore())
|
||||
{
|
||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
}
|
||||
|
||||
List<L2RecipeList> dwarfRecipes = Arrays.asList(player.getDwarvenRecipeBook());
|
||||
List<L2RecipeList> commonRecipes = Arrays.asList(player.getCommonRecipeBook());
|
||||
|
||||
|
@ -116,6 +116,13 @@ public final class SetPrivateStoreListBuy extends L2GameClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (!player.canOpenPrivateStore())
|
||||
{
|
||||
player.sendPacket(new PrivateStoreManageListBuy(player));
|
||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
}
|
||||
|
||||
TradeList tradeList = player.getBuyList();
|
||||
tradeList.clear();
|
||||
|
||||
|
@ -111,6 +111,13 @@ public class SetPrivateStoreListSell extends L2GameClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
if (!player.canOpenPrivateStore())
|
||||
{
|
||||
player.sendPacket(new PrivateStoreManageListSell(player, _packageSale));
|
||||
player.sendPacket(ActionFailed.STATIC_PACKET);
|
||||
return;
|
||||
}
|
||||
|
||||
// Check maximum number of allowed slots for pvt shops
|
||||
if (_items.length > player.getPrivateSellStoreLimit())
|
||||
{
|
||||
|
Reference in New Issue
Block a user