Examples of containsItemId()


Examples of com.l2jfrozen.gameserver.model.L2TradeList.containsItemId()

    {
      int itemId = _items[i * 2 + 0];
      int count = _items[i * 2 + 1];
      int price = -1;

      if(!list.containsItemId(itemId))
      {
        Util.handleIllegalPlayerAction(player, "Warning!! Character " + player.getName() + " of account " + player.getAccountName() + " sent a false BuyList list_id.", Config.DEFAULT_PUNISH);
        return;
      }

View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2TradeList.containsItemId()

      if(count < 0)
      {
        count = 0;
      }

      if(!list.containsItemId(itemId))
      {
        Util.handleIllegalPlayerAction(player, "Warning!! Character " + player.getName() + " of account " + player.getAccountName() + " sent a false BuyList list_id.", Config.DEFAULT_PUNISH);
        return;
      }
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2TradeList.containsItemId()

    for(int i = 0; i < _count; i++)
    {
      int itemId = _items[i];

      if(!list.containsItemId(itemId))
      {
        Util.handleIllegalPlayerAction(player, "Warning!! Character " + player.getName() + " of account " + player.getAccountName() + " sent a false BuyList list_id.", Config.DEFAULT_PUNISH);
        return;
      }
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.L2TradeList.containsItemId()

    InventoryUpdate playerIU = new InventoryUpdate();
    for(int i = 0; i < _count; i++)
    {
      int itemId = _items[i];

      if(!list.containsItemId(itemId))
      {
        Util.handleIllegalPlayerAction(player, "Warning!! Character " + player.getName() + " of account " + player.getAccountName() + " sent a false BuyList list_id.", Config.DEFAULT_PUNISH);
        return;
      }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.L2TradeList.containsItemId()

    {
      int itemId = _items[i * 2 + 0];
      int count  = _items[i * 2 + 1];
      int price = -1;

      if (!list.containsItemId(itemId))
      {
        Util.handleIllegalPlayerAction(player,"Warning!! Character "+player.getName()+" of account "+player.getAccountName()+" sent a false BuyList list_id.",Config.DEFAULT_PUNISH);
        return;
      }

View Full Code Here

Examples of net.sf.l2j.gameserver.model.L2TradeList.containsItemId()

    {
      int itemId = _items[i * 2 + 0];
      int count  = _items[i * 2 + 1];
      if (count < 0) count = 0;

      if (!list.containsItemId(itemId))
      {
        Util.handleIllegalPlayerAction(player,"Warning!! Character "+player.getName()+" of account "+player.getAccountName()+" sent a false BuyList list_id.",Config.DEFAULT_PUNISH);
        return;
      }
      if(list.countDecrease(itemId))
View Full Code Here

Examples of net.sf.l2j.gameserver.model.L2TradeList.containsItemId()

    for (int i = 0; i < _count; i++)
    {
      int itemId = _items[i];

      if (!list.containsItemId(itemId))
      {
        Util.handleIllegalPlayerAction(player,"Warning!! Character "+player.getName()+" of account "+player.getAccountName()+" sent a false BuyList list_id.",Config.DEFAULT_PUNISH);
        return;
      }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.L2TradeList.containsItemId()

    InventoryUpdate playerIU = new InventoryUpdate();
    for (int i=0; i < _count; i++)
    {
      int itemId = _items[i];

      if (!list.containsItemId(itemId))
      {
        Util.handleIllegalPlayerAction(player,"Warning!! Character "+player.getName()+" of account "+player.getAccountName()+" sent a false BuyList list_id.",Config.DEFAULT_PUNISH);
        return;
      }
View Full Code Here

Examples of org.apache.beehive.samples.petstore.model.Cart.containsItemId()

                                 }),
                    @Jpf.Forward(name="cart", path="cart.jsp")
                })
    protected Forward addItemToCart(CartForm form) throws InvalidIdentifierException {
        Cart cart = form.getCart();
        if (cart.containsItemId(form.getWorkingItemId()))
        {
            cart.incrementQuantityByItemId(form.getWorkingItemId());
        }
        else
        {
View Full Code Here

Examples of org.apache.beehive.samples.petstore.model.Cart.containsItemId()

        if(workingItemId == null)
            throw new InvalidIdentifierException("Could not find working item identifier");

        Cart cart = lookupCart();
        if (cart.containsItemId(workingItemId))
            cart.incrementQuantityByItemId(workingItemId);
        else {
            Item toAddItem = _catalogControl.getItem(workingItemId);
            if (toAddItem != null)
                cart.addItem(toAddItem);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.