Package lineage2.gameserver.templates.item

Examples of lineage2.gameserver.templates.item.RecipeTemplate.addProduct()


          if ((item != null) && item.isShadowItem() && item.isWeapon() && !Config.ALT_ALLOW_SHADOW_WEAPONS)
          {
            return null;
          }
        }
        entry.addProduct(mi);
      }
    }
    if (entry.getIngredients().isEmpty() || entry.getProduction().isEmpty())
    {
      _log.warn("MultiSell [" + multiSellId + "] is empty!");
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;
  }
 
  /**
   * Method SeparateAndSend.
View Full Code Here

                  if (enchant && template.canBeEnchanted())
                  {
                    p.setItemEnchant(item.getEnchantLevel());
                    p.setItemAttributes(item.getAttributes().clone());
                  }
                  possibleEntry.addProduct(p);
                }
                for (MultiSellIngredient ig : ingridients)
                {
                  if (enchant && (ig.getItemId() > 0) && ItemHolder.getInstance().getTemplate(ig.getItemId()).canBeEnchanted())
                  {
View Full Code Here

            if ("item".equalsIgnoreCase(e.getName()))
            {
              int item_id = Integer.parseInt(e.attributeValue("id"));
              long count = Long.parseLong(e.attributeValue("count"));
              int chance = Integer.parseInt(e.attributeValue("chance"));
              recipe.addProduct(new RecipeComponent(item_id, count, chance));
            }
          }
        }
        else if ("npc_fee".equalsIgnoreCase(subElement.getName()))
        {
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.