Package net.sf.l2j.gameserver.model

Examples of net.sf.l2j.gameserver.model.L2ExtractableItem


            {
               System.out.println("Extractable items data: Error in line " + lineCount + " -> all chances together are more then 100!");
               System.out.println("    " + line);
              continue;
            }
            L2ExtractableItem product = new L2ExtractableItem(itemID, product_temp);
            _items.put(itemID, product);           
        }
       
        s.close();
        System.out.println("Extractable items data: Loaded " + _items.size() + " extractable items!");
View Full Code Here


      return;

    L2PcInstance activeChar = (L2PcInstance) playable;

    int itemID = item.getItemId();
    L2ExtractableItem exitem = ExtractableItemsData.getInstance()
        .getExtractableItem(itemID);

    if (exitem == null)
      return;

    int createItemID = 0, createAmount = 0, rndNum = Rnd.get(100), chanceFrom = 0;

    // calculate extraction
    for (L2ExtractableProductItem expi : exitem.getProductItemsArray())
    {
      int chance = expi.getChance();

      if (rndNum >= chanceFrom && rndNum <= chance + chanceFrom)
      {
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.model.L2ExtractableItem

Copyright © 2018 www.massapicom. 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.