Package net.sf.l2j.gameserver.model

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


    {
      con = L2DatabaseFactory.getInstance().getConnection();
      _fishsEasy = new FastList<FishData>();
      _fishsNormal = new FastList<FishData>();
      _fishsHard = new FastList<FishData>();
      FishData fish;
      PreparedStatement statement = con.prepareStatement("SELECT id, level, name, hp, hpregen, fish_type, fish_group, fish_guts, guts_check_time, wait_time, combat_time FROM fish ORDER BY id");
      ResultSet Fishes = statement.executeQuery();

        while (Fishes.next())
        {
          int id = Fishes.getInt("id");
          int lvl = Fishes.getInt("level");
          String name = Fishes.getString("name");
          int hp = Fishes.getInt("hp");
          int hpreg = Fishes.getInt("hpregen");
          int type = Fishes.getInt("fish_type");
          int group = Fishes.getInt("fish_group");
          int fish_guts = Fishes.getInt("fish_guts");
          int guts_check_time = Fishes.getInt("guts_check_time");
          int wait_time = Fishes.getInt("wait_time");
          int combat_time = Fishes.getInt("combat_time");
          fish = new FishData(id, lvl, name, hp, hpreg, type, group, fish_guts, guts_check_time, wait_time, combat_time);
          switch (fish.getGroup()) {
            case 0:
              _fishsEasy.add(fish);
              break;
            case 1:
              _fishsNormal.add(fish);
View Full Code Here


      EndFishing(false);
      return;
    }
    int check = Rnd.get(fishs.size());
    // Use a copy constructor else the fish data may be over-written below
    _fish = new FishData(fishs.get(check));
    fishs.clear();
    fishs = null;
    sendPacket(new SystemMessage(SystemMessageId.CAST_LINE_AND_START_FISHING));
    ExFishingStart efs = null;
    if (!GameTimeController.getInstance().isNowNight() && _lure.isNightLure())
View Full Code Here

TOP

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

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.