Package lineage2.gameserver.templates

Examples of lineage2.gameserver.templates.StatsSet


   * @param objId int
   * @return int
   */
  public static synchronized int getNoblePoints(int objId)
  {
    StatsSet noble = _nobles.get(objId);
    if (noble == null)
    {
      return 0;
    }
    return noble.getInteger(POINTS);
  }
View Full Code Here


   * @param objId int
   * @return int
   */
  public static synchronized int getNoblePointsPast(int objId)
  {
    StatsSet noble = _nobles.get(objId);
    if (noble == null)
    {
      return 0;
    }
    return noble.getInteger(POINTS_PAST);
  }
View Full Code Here

   * @param objId int
   * @return int
   */
  public static synchronized int getCompetitionDone(int objId)
  {
    StatsSet noble = _nobles.get(objId);
    if (noble == null)
    {
      return 0;
    }
    return noble.getInteger(COMP_DONE);
  }
View Full Code Here

   * @param objId int
   * @return int
   */
  public static synchronized int getCompetitionWin(int objId)
  {
    StatsSet noble = _nobles.get(objId);
    if (noble == null)
    {
      return 0;
    }
    return noble.getInteger(COMP_WIN);
  }
View Full Code Here

   * @param objId int
   * @return int
   */
  public static synchronized int getCompetitionLoose(int objId)
  {
    StatsSet noble = _nobles.get(objId);
    if (noble == null)
    {
      return 0;
    }
    return noble.getInteger(COMP_LOOSE);
  }
View Full Code Here

   * @return int[]
   */
  public static synchronized int[] getWeekGameCounts(int objId)
  {
    int[] ar = new int[3];
    StatsSet noble = _nobles.get(objId);
    if (noble == null)
    {
      return ar;
    }
    ar[0] = Config.GAME_MAX_LIMIT - noble.getInteger(GAME_CLASSES_COUNT) - noble.getInteger(GAME_NOCLASSES_COUNT);
    ar[1] = Config.GAME_CLASSES_COUNT_LIMIT - noble.getInteger(GAME_CLASSES_COUNT);
    ar[2] = Config.GAME_NOCLASSES_COUNT_LIMIT - noble.getInteger(GAME_NOCLASSES_COUNT);
    return ar;
  }
View Full Code Here

   * @param objId int
   * @param newName String
   */
  public static void changeNobleName(int objId, String newName)
  {
    StatsSet noble = _nobles.get(objId);
    if (noble == null)
    {
      return;
    }
    noble.set(CHAR_NAME, newName);
    OlympiadDatabase.saveNobleData(objId);
  }
View Full Code Here

   * @param objId int
   * @return String
   */
  public static String getNobleName(int objId)
  {
    StatsSet noble = _nobles.get(objId);
    if (noble == null)
    {
      return null;
    }
    return noble.getString(CHAR_NAME);
  }
View Full Code Here

   * @param objId int
   * @return int
   */
  public static int getNobleClass(int objId)
  {
    StatsSet noble = _nobles.get(objId);
    if (noble == null)
    {
      return 0;
    }
    return noble.getInteger(CLASS_ID);
  }
View Full Code Here

   * @param objId int
   * @param points int
   */
  public static void manualSetNoblePoints(int objId, int points)
  {
    StatsSet noble = _nobles.get(objId);
    if (noble == null)
    {
      return;
    }
    noble.set(POINTS, points);
    OlympiadDatabase.saveNobleData(objId);
  }
View Full Code Here

TOP

Related Classes of lineage2.gameserver.templates.StatsSet

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.