Package net.sf.l2j.gameserver.model

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


  protected void runImpl()
    {
        L2PcInstance activeChar = getClient().getActiveChar();
        if (activeChar != null)
        {
          L2RecipeList rp = RecipeController.getInstance().getRecipeList(_recipeID-1);
           if (rp == null)
             return;
            activeChar.unregisterRecipeList(_recipeID);

            RecipeBookItemList response = new RecipeBookItemList(rp.isDwarvenRecipe(),activeChar.getMaxMp());
           if (rp.isDwarvenRecipe())
             response.addRecipes(activeChar.getDwarvenRecipeBook());
           else
             response.addRecipes(activeChar.getCommonRecipeBook());

            activeChar.sendPacket(response);
View Full Code Here


      con = L2DatabaseFactory.getInstance().getConnection();
      PreparedStatement statement = con.prepareStatement("SELECT id, type FROM character_recipebook WHERE char_id=?");
      statement.setInt(1, getObjectId());
      ResultSet rset = statement.executeQuery();
     
      L2RecipeList recipe;
      while (rset.next())
      {
        recipe = RecipeController.getInstance().getRecipeList(rset.getInt("id") - 1);
       
        if (rset.getInt("type") == 1)
View Full Code Here

TOP

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

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.