Package l2p.gameserver.model

Examples of l2p.gameserver.model.FishDropData


      // Create Table that contains all fish rewards (drop of fish)
      int count2 = 0;
      try
      {
        _fishRewards = new GArray<FishDropData>();
        FishDropData fishreward;
        statement = con.prepareStatement("SELECT fishid, rewardid, min, max, chance FROM fishreward ORDER BY fishid");
        resultSet = statement.executeQuery();
        while(resultSet.next())
        {
          short fishid = resultSet.getShort("fishid");
          short rewardid = resultSet.getShort("rewardid");
          int mindrop = resultSet.getInt("min");
          int maxdrop = resultSet.getInt("max");
          int chance = resultSet.getInt("chance");
          fishreward = new FishDropData(fishid, rewardid, mindrop, maxdrop, chance);
          _fishRewards.add(fishreward);
        }
        count2 = _fishRewards.size();
      }
      catch(Exception e)
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.FishDropData

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.