Added limitshop craft inventory check and corrected some typos.
Contributed by CostyKiller.
This commit is contained in:
parent
c9fbbfd256
commit
05b95fdcc8
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -175,13 +175,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,13 +196,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -175,13 +175,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,13 +196,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -175,13 +175,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,13 +196,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -175,13 +175,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,13 +196,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -175,13 +175,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,13 +196,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -175,13 +175,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,13 +196,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -175,13 +175,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,13 +196,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -175,13 +175,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,13 +196,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -175,13 +175,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,13 +196,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -175,13 +175,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,13 +196,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -96,6 +96,12 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!player.isInventoryUnder80(false))
|
||||||
|
{
|
||||||
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ((player.getLevel() < _product.getMinLevel()) || (player.getLevel() > _product.getMaxLevel()))
|
if ((player.getLevel() < _product.getMinLevel()) || (player.getLevel() > _product.getMaxLevel()))
|
||||||
{
|
{
|
||||||
player.sendPacket(SystemMessageId.YOUR_LEVEL_CANNOT_PURCHASE_THIS_ITEM);
|
player.sendPacket(SystemMessageId.YOUR_LEVEL_CANNOT_PURCHASE_THIS_ITEM);
|
||||||
|
@ -175,13 +175,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,13 +196,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -214,13 +214,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -207,13 +207,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -214,13 +214,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -207,13 +207,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -214,13 +214,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -207,13 +207,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -214,13 +214,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -207,13 +207,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -214,13 +214,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -207,13 +207,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -214,13 +214,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -207,13 +207,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -175,13 +175,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,13 +196,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -96,6 +96,12 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!player.isInventoryUnder80(false))
|
||||||
|
{
|
||||||
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ((player.getLevel() < _product.getMinLevel()) || (player.getLevel() > _product.getMaxLevel()))
|
if ((player.getLevel() < _product.getMinLevel()) || (player.getLevel() > _product.getMaxLevel()))
|
||||||
{
|
{
|
||||||
player.sendPacket(SystemMessageId.YOUR_LEVEL_CANNOT_PURCHASE_THIS_ITEM);
|
player.sendPacket(SystemMessageId.YOUR_LEVEL_CANNOT_PURCHASE_THIS_ITEM);
|
||||||
|
@ -189,13 +189,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -207,13 +207,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -103,6 +103,12 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!player.isInventoryUnder80(false))
|
||||||
|
{
|
||||||
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ((player.getLevel() < _product.getMinLevel()) || (player.getLevel() > _product.getMaxLevel()))
|
if ((player.getLevel() < _product.getMinLevel()) || (player.getLevel() > _product.getMaxLevel()))
|
||||||
{
|
{
|
||||||
player.sendPacket(SystemMessageId.YOUR_LEVEL_CANNOT_PURCHASE_THIS_ITEM);
|
player.sendPacket(SystemMessageId.YOUR_LEVEL_CANNOT_PURCHASE_THIS_ITEM);
|
||||||
|
@ -189,13 +189,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -207,13 +207,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public enum ExBrProductReplyType implements IIdentifiable
|
|||||||
LACK_OF_POINT(-1),
|
LACK_OF_POINT(-1),
|
||||||
INVALID_PRODUCT(-2),
|
INVALID_PRODUCT(-2),
|
||||||
USER_CANCEL(-3),
|
USER_CANCEL(-3),
|
||||||
INVENTROY_OVERFLOW(-4),
|
INVENTORY_OVERFLOW(-4),
|
||||||
CLOSED_PRODUCT(-5),
|
CLOSED_PRODUCT(-5),
|
||||||
SERVER_ERROR(-6),
|
SERVER_ERROR(-6),
|
||||||
BEFORE_SALE_DATE(-7),
|
BEFORE_SALE_DATE(-7),
|
||||||
|
@ -103,6 +103,12 @@ public class RequestPurchaseLimitShopItemBuy implements IClientIncomingPacket
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!player.isInventoryUnder80(false))
|
||||||
|
{
|
||||||
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ((player.getLevel() < _product.getMinLevel()) || (player.getLevel() > _product.getMaxLevel()))
|
if ((player.getLevel() < _product.getMinLevel()) || (player.getLevel() > _product.getMaxLevel()))
|
||||||
{
|
{
|
||||||
player.sendPacket(SystemMessageId.YOUR_LEVEL_CANNOT_PURCHASE_THIS_ITEM);
|
player.sendPacket(SystemMessageId.YOUR_LEVEL_CANNOT_PURCHASE_THIS_ITEM);
|
||||||
|
@ -189,13 +189,13 @@ public class RequestBRBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -207,13 +207,13 @@ public class RequestBRPresentBuyProduct implements IClientIncomingPacket
|
|||||||
{
|
{
|
||||||
if (!player.getInventory().validateCapacity(slots))
|
if (!player.getInventory().validateCapacity(slots))
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTROY_OVERFLOW));
|
player.sendPacket(new ExBRBuyProduct(ExBrProductReplyType.INVENTORY_OVERFLOW));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user