Package l2p.gameserver.model.base

Examples of l2p.gameserver.model.base.MultiSellEntry.addProduct()


          {
            return null;
          }
        }
        l2p.util.Log.add(MultiSellId + " loaded product " + id + " count " + count, "multiselldebug");
        entry.addProduct(new MultiSellIngredient(id, count, enchant, element, elementValue));
      }
      else
      {
        l2p.util.Log.add(MultiSellId + " skipping node " + d.getNodeName(), "multiselldebug");
      }
View Full Code Here


    {
      return null;
    }
    MultiSellEntry entry = new MultiSellEntry();
    entry.addIngredient(new MultiSellIngredient((int) ingredient[0], ingredient[1]));
    entry.addProduct(new MultiSellIngredient((int) production[0], production[1]));
    return entry;
  }

  public void SeparateAndSend(int listId, L2Player player, double taxRate)
  {
View Full Code Here

                  _itm.add(enchant ? i.getItemId() + i.getItemEnchant() * 100000 : i.getItemId());
                  MultiSellEntry possibleEntry = new MultiSellEntry(enchant ? ent.getEntryId() + item.getEnchantLevel() * 100000 : ent.getEntryId());
                  for(MultiSellIngredient p : ent.getProduction())
                  {
                    p.setItemEnchant(item.getEnchantLevel());
                    possibleEntry.addProduct(p);
                  }
                  for(MultiSellIngredient ig : ingridients)
                  {
                    if(template != null && template.getType2() <= L2Item.TYPE2_ACCESSORY)
                    {
View Full Code Here

        e1.addIngredient(new MultiSellIngredient(price[0], price[1]));
        if(price[2] > 0)
        {
          e1.addIngredient(new MultiSellIngredient(57, price[2]));
        }
        e1.addProduct(new MultiSellIngredient(item[ItemTable.WEX_SA1], 1));
        list.addEntry(e1);
      }
      if(item[ItemTable.WEX_SA2] > 0 && item[ItemTable.WEX_SA_CRY2] > 0)
      {
        MultiSellEntry e1 = new MultiSellEntry(entId++);
View Full Code Here

      }
      if(item[ItemTable.WEX_RARE_PVP3] > 0 && item[ItemTable.WEX_RARE_SA3] > 0)
      {
        MultiSellEntry e1 = new MultiSellEntry(entId++);
        e1.addIngredient(new MultiSellIngredient(item[ItemTable.WEX_RARE_PVP3], 1));
        e1.addProduct(new MultiSellIngredient(item[ItemTable.WEX_RARE_SA3], 1));
        list.addEntry(e1);
      }
    }
    int[][] armors = ItemTable.getInstance().getArmorEx();
    for(int i = 0; i < armors.length; i++)
View Full Code Here

      {
        MultiSellEntry e1 = new MultiSellEntry(entId++);
        e1.addIngredient(new MultiSellIngredient(item[ItemTable.AEX_PvP], 1));
        if(item[ItemTable.AEX_UNSEALED_1] > 0)
        {
          e1.addProduct(new MultiSellIngredient(item[ItemTable.AEX_UNSEALED_1], 1));
        }
        else
        {
          e1.addProduct(new MultiSellIngredient(i, 1));
        }
View Full Code Here

        {
          e1.addProduct(new MultiSellIngredient(item[ItemTable.AEX_UNSEALED_1], 1));
        }
        else
        {
          e1.addProduct(new MultiSellIngredient(i, 1));
        }
        list.addEntry(e1);
      }
    }
  }
View Full Code Here

        e1.addIngredient(new MultiSellIngredient(i, 1));
        if(item[ItemTable.AEX_UNSEAL_PRICE] > 0)
        {
          e1.addIngredient(new MultiSellIngredient(unsealItem, item[ItemTable.AEX_UNSEAL_PRICE] * priceMult));
        }
        e1.addProduct(new MultiSellIngredient(item[ItemTable.AEX_UNSEALED_1], 1));
        list.addEntry(e1);
      }
      if(item[ItemTable.AEX_UNSEALED_2] > 0)
      {
        MultiSellEntry e1 = new MultiSellEntry(entId++);
View Full Code Here

        e1.addIngredient(new MultiSellIngredient(i, 1));
        if(item[ItemTable.AEX_UNSEAL_PRICE] > 0)
        {
          e1.addIngredient(new MultiSellIngredient(unsealItem, item[ItemTable.AEX_UNSEAL_PRICE] * priceMult));
        }
        e1.addProduct(new MultiSellIngredient(item[ItemTable.AEX_UNSEALED_2], 1));
        list.addEntry(e1);
      }
      if(item[ItemTable.AEX_UNSEALED_3] > 0)
      {
        MultiSellEntry e1 = new MultiSellEntry(entId++);
View Full Code Here

        e1.addIngredient(new MultiSellIngredient(i, 1));
        if(item[ItemTable.AEX_UNSEAL_PRICE] > 0)
        {
          e1.addIngredient(new MultiSellIngredient(unsealItem, item[ItemTable.AEX_UNSEAL_PRICE] * priceMult));
        }
        e1.addProduct(new MultiSellIngredient(item[ItemTable.AEX_UNSEALED_3], 1));
        list.addEntry(e1);
      }
      if(item[ItemTable.AEX_UNSEALED_RARE_1] > 0 && item[ItemTable.AEX_SEALED_RARE_1] > 0)
      {
        MultiSellEntry e1 = new MultiSellEntry(entId++);
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.