Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.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;
        }
       
        _items.put(itemID, new L2ExtractableItem(itemID, product_temp));
      }

      System.out.println("Extractable items data: Loaded " + _items.size() + " extractable items!");
    }
    catch(Exception e)
View Full Code Here


   
    if (count > item.getCount())
      return;
    while (count-- > 0)
    {
      L2ExtractableItem exitem = ExtractableItemsData.getInstance().getExtractableItem(itemID);
      if (exitem == null)
        return;
      int createItemID = 0, createAmount = 0, rndNum = Rnd.get(100), chanceFrom = 0;
      for (L2ExtractableProductItem expi : exitem.getProductItems())
      {
        int chance = expi.getChance();
       
        if (rndNum >= chanceFrom && rndNum <= chance + chanceFrom)
        {
View Full Code Here

TOP

Related Classes of com.l2jfrozen.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.