Examples of CharacterStatistic


Examples of lineage2.gameserver.model.worldstatistics.CharacterStatistic

    writeD(_subSection);

    writeD(_monthlyData.size());
    for (int i = 0, monthlyDataSize = _monthlyData.size(); i < monthlyDataSize; i++)
    {
      CharacterStatistic statistic = _monthlyData.get(i);
      writeH(i + 1);
      writeD(statistic.getObjId());
      writeS(statistic.getName());
      writeQ(statistic.getValue());
      writeH(0);
      writeD(statistic.getClanObjId());
      writeD(statistic.getClanCrestId());
    }

    writeD(_generalData.size());
    for (int i = 0, generalDataSize = _generalData.size(); i < generalDataSize; i++)
    {
      CharacterStatistic statistic = _generalData.get(i);
      writeH(i + 1);
      writeD(statistic.getObjId());
      writeS(statistic.getName());
      writeQ(statistic.getValue());
      writeH(0);
      writeD(statistic.getObjId());
      writeD(statistic.getClanCrestId());
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.worldstatistics.CharacterStatistic

      rset = statement.executeQuery();

      while (rset.next())
      {
        CharacterStatisticElement statisticElement = new CharacterStatisticElement(cat, rset.getLong(3));
        statistics.add(new CharacterStatistic(rset.getInt(1), rset.getString(2), statisticElement));
      }
    } catch (Exception e) {
      _log.info("WorldStatisticDAO.getStatisticForCategory(CategoryType, boolean, int): " + e, e);
    } finally {
      DbUtils.closeQuietly(con, statement, rset);
View Full Code Here

Examples of lineage2.gameserver.model.worldstatistics.CharacterStatistic

      statement.setInt(2, limit);
      rset = statement.executeQuery();

      while (rset.next()) {
        CharacterStatisticElement statisticElement = new CharacterStatisticElement(cat, rset.getLong(3));
        statistics.add(new CharacterStatistic(rset.getInt(1), rset.getString(2), statisticElement));
      }
    } catch (Exception e) {
      _log.info("WorldStatisticDAO.getWinners(CategoryType, boolean, int): " + e, e);
    } finally {
      DbUtils.closeQuietly(con, statement, rset);
View Full Code Here

Examples of lineage2.gameserver.model.worldstatistics.CharacterStatistic

    writeD(subCatId); // subCatId
    // Monthly
    writeD(monthlyStatistic.size()); // loop count (always 5)
    for (int i = 0; i < monthlyStatistic.size(); i++)
    {
      CharacterStatistic statistic = monthlyStatistic.get(i);
      writeH(i + 1); // rating pos
      writeD(statistic.getObjId()); // objId
      writeS(statistic.getName()); // CharName
      writeQ(statistic.getValue()); // Value
      writeH(0x00);// TODO: Поднялся или опустился в рейтинге
      writeD(0x00);
      writeD(0x00);
    }
    // General
    writeD(globalStatistic.size()); // loop count (always 5)
    for (int i = 0; i < globalStatistic.size(); i++)
    {
      CharacterStatistic statistic = globalStatistic.get(i);
      writeH(i + 1); // rating pos
      writeD(statistic.getObjId()); // objId
      writeS(statistic.getName()); // CharName
      writeQ(statistic.getValue()); // Value
      writeH(0x00);// TODO: Поднялся или опустился в рейтинге
      writeD(0x00);
      writeD(0x00);
    }
  }
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.