Package net.sf.l2j.gameserver.model

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


      try
      {
        PreparedStatement statement4 = con.prepareStatement("SELECT " + L2DatabaseFactory.getInstance().safetyString(new String[] {"boss_id", "minion_id", "amount_min", "amount_max"}) + " FROM minions");
        ResultSet minionData = statement4.executeQuery();
        L2MinionData minionDat = null;
        L2NpcTemplate npcDat = null;
        int cnt = 0;

        while (minionData.next())
        {
          int raidId = minionData.getInt("boss_id");
          npcDat = _npcs.get(raidId);
          minionDat = new L2MinionData();         
          minionDat.setMinionId(minionData.getInt("minion_id"));
          minionDat.setAmountMin(minionData.getInt("amount_min"));
          minionDat.setAmountMax(minionData.getInt("amount_max"));
          npcDat.addRaidData(minionDat);
          cnt++;
        }

        minionData.close();
View Full Code Here

TOP

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

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.