Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.PcInventory.addItem()


                // Generate the appropriate items
                for (MultiSellIngredient e : entry.getProducts())
                {
                        if (ItemTable.getInstance().createDummyItem(e.getItemId()).isStackable())
                        {
                                inv.addItem("Multisell["+_listId+"]" , e.getItemId(), (e.getItemCount() * _amount), player, player.getTarget());
                        }
                        else
                        {
                                L2ItemInstance product = null;
                                for (int i = 0; i < e.getItemCount() * _amount; i++)
View Full Code Here


                        else
                        {
                                L2ItemInstance product = null;
                                for (int i = 0; i < e.getItemCount() * _amount; i++)
                                {
                                        product = inv.addItem("Multisell["+_listId+"]", e.getItemId(), 1, player, player.getTarget());
                                        if (maintainEnchantment && (product != null))
                                        {
                                                if (i < augmentation.size())
                                                {
                                                        product.setAugmentation(new L2Augmentation(product, augmentation.get(i).getAugmentationId(), augmentation.get(i).getSkill(), true));
View Full Code Here

      if(player != null)
      {
        PcInventory inv = player.getInventory();
       
        if(ItemTable.getInstance().createDummyItem(_notVipReward).isStackable())
          inv.addItem("VIP Event: ", _notVipReward, _notVipRewardAmount, player, null);
        else
        {
          for(int i=0;i<=_notVipRewardAmount-1;i++)
            inv.addItem("VIP Event: ", _notVipReward, 1, player, null);
        }
View Full Code Here

        if(ItemTable.getInstance().createDummyItem(_notVipReward).isStackable())
          inv.addItem("VIP Event: ", _notVipReward, _notVipRewardAmount, player, null);
        else
        {
          for(int i=0;i<=_notVipRewardAmount-1;i++)
            inv.addItem("VIP Event: ", _notVipReward, 1, player, null);
        }

        SystemMessage sm;

        if(_notVipRewardAmount > 1)
View Full Code Here

      if(player != null && !player._isTheVIP)
      {
        PcInventory inv = player.getInventory();

        if(ItemTable.getInstance().createDummyItem(_vipReward).isStackable())
          inv.addItem("VIP Event: ", _vipReward, _vipRewardAmount, player, null);
        else
        {
          for(int i=0;i<=_vipRewardAmount-1;i++)
            inv.addItem("VIP Event: ", _vipReward, 1, player, null);
        }
View Full Code Here

        if(ItemTable.getInstance().createDummyItem(_vipReward).isStackable())
          inv.addItem("VIP Event: ", _vipReward, _vipRewardAmount, player, null);
        else
        {
          for(int i=0;i<=_vipRewardAmount-1;i++)
            inv.addItem("VIP Event: ", _vipReward, 1, player, null);
        }

        SystemMessage sm;

        if(_vipRewardAmount > 1)
View Full Code Here

      else if(player != null && player._isTheVIP)
      {
        PcInventory inv = player.getInventory();

        if(ItemTable.getInstance().createDummyItem(_theVipReward).isStackable())
          inv.addItem("VIP Event: ", _theVipReward, _theVipRewardAmount, player, null);
        else
        {
          for(int i=0;i<=_theVipRewardAmount-1;i++)
            inv.addItem("VIP Event: ", _theVipReward, 1, player, null);
        }
View Full Code Here

        if(ItemTable.getInstance().createDummyItem(_theVipReward).isStackable())
          inv.addItem("VIP Event: ", _theVipReward, _theVipRewardAmount, player, null);
        else
        {
          for(int i=0;i<=_theVipRewardAmount-1;i++)
            inv.addItem("VIP Event: ", _theVipReward, 1, player, null);
        }

        SystemMessage sm;

        if(_theVipRewardAmount > 1)
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.