Examples of FishTemplate


Examples of lineage2.gameserver.templates.FishTemplate

    {
      player.sendPacket(Msg.NOT_ENOUGH_BAIT);
      return;
    }
    int check = Rnd.get(fishs.size());
    FishTemplate fish = fishs.get(check);
    player.startFishing(fish, lureId);
  }
View Full Code Here

Examples of lineage2.gameserver.templates.FishTemplate

    try
    {
      con = DatabaseFactory.getInstance().getConnection();
      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 = statement.executeQuery();
      FishTemplate fish;
      List<FishTemplate> fishes;
      while (resultSet.next())
      {
        int id = resultSet.getInt("id");
        int lvl = resultSet.getInt("level");
        String name = resultSet.getString("name");
        int hp = resultSet.getInt("hp");
        int hpreg = resultSet.getInt("hpregen");
        int type = resultSet.getInt("fish_type");
        int group = resultSet.getInt("fish_group");
        int fish_guts = resultSet.getInt("fish_guts");
        int guts_check_time = resultSet.getInt("guts_check_time");
        int wait_time = resultSet.getInt("wait_time");
        int combat_time = resultSet.getInt("combat_time");
        fish = new FishTemplate(id, lvl, name, hp, hpreg, type, group, fish_guts, guts_check_time, wait_time, combat_time);
        if ((fishes = _fishes.get(group)) == null)
        {
          _fishes.put(group, fishes = new ArrayList<>());
        }
        fishes.add(fish);
View Full Code Here

Examples of lineage2.gameserver.templates.item.support.FishTemplate

        for (Iterator<Attribute> attributeIterator = e.attributeIterator(); attributeIterator.hasNext();)
        {
          Attribute attribute = attributeIterator.next();
          map.put(attribute.getName(), attribute.getValue());
        }
        getHolder().addFish(new FishTemplate(map));
      }
      else if ("lure".equals(e.getName()))
      {
        MultiValueSet<String> map = new MultiValueSet<>();
        for (Iterator<Attribute> attributeIterator = e.attributeIterator(); attributeIterator.hasNext();)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.