Package lineage2.gameserver.templates.player

Examples of lineage2.gameserver.templates.player.StatAttributes


      ThreadPoolManager.getInstance().schedule(new RestoreOfflineTraders(), 30000L);
    }
    getListeners().onStart();
    if (Config.IS_TELNET_ENABLED)
    {
      statusServer = new TelnetServer();
    }
    else
    {
      _log.info("Telnet server is currently disabled.");
    }
View Full Code Here


      _selectorThreads[i].start();
    }
    LoginServerCommunication.getInstance().start();
    if (Config.SERVICES_OFFLINE_TRADE_RESTORE_AFTER_RESTART)
    {
      ThreadPoolManager.getInstance().schedule(new RestoreOfflineTraders(), 30000L);
    }
    getListeners().onStart();
    if (Config.IS_TELNET_ENABLED)
    {
      statusServer = new TelnetServer();
View Full Code Here

   * @param template NpcTemplate
   */
  public Kama26BossInstance(int objectId, NpcTemplate template)
  {
    super(objectId, template);
    getMinionList().addMinion(new MinionData(18556, 1));
  }
View Full Code Here

    ThreadPoolManager.getInstance().schedule(new RunnableImpl()
    {
      @Override
      public void runImpl()
      {
        final NpcTemplate template = NpcHolder.getInstance().getTemplate(18602);
        if (template != null)
        {
          final NpcInstance a = template.getNewInstance();
          a.setCurrentHpMp(a.getMaxHp(), a.getMaxMp());
          a.spawnMe(actor.getLoc());
        }
      }
    }, 10000L);
View Full Code Here

   * Constructor for CharTemplate.
   * @param set StatsSet
   */
  public CharTemplate(StatsSet set)
  {
    _baseAttr = new StatAttributes(set.getInteger("baseINT", 0), set.getInteger("baseSTR", 0), set.getInteger("baseCON", 0), set.getInteger("baseMEN", 0), set.getInteger("baseDEX", 0), set.getInteger("baseWIT", 0));
    _baseHpMax = set.getDouble("baseHpMax", 0);
    _baseCpMax = set.getDouble("baseCpMax", 0);
    _baseMpMax = set.getDouble("baseMpMax", 0);
    _baseHpReg = set.getDouble("baseHpReg", 3.e-3f);
    _baseCpReg = set.getDouble("baseCpReg", 3.e-3f);
View Full Code Here

    {
      Element element = iterator.next();
      Race race = Race.valueOf(element.attributeValue("race").toLowerCase());
      Sex sex = Sex.valueOf(element.attributeValue("sex").toUpperCase());
      ClassType classtype = ClassType.valueOf(element.attributeValue("type").toUpperCase());
      StatAttributes min_attr = null;
      StatAttributes max_attr = null;
      StatAttributes base_attr = null;
      BaseArmorDefence arm_defence = null;
      BaseJewelDefence jewl_defence = null;
      StatsSet stats_set = new StatsSet();
      List<StartItem> start_items = new ArrayList<>();
      List<Location> start_locations = new ArrayList<>();
      TIntObjectHashMap<LvlUpData> lvl_up_data = new TIntObjectHashMap<>();
      for (Iterator<Element> subIterator = element.elementIterator(); subIterator.hasNext();)
      {
        Element subElement = subIterator.next();
        if ("creation_data".equalsIgnoreCase(subElement.getName()))
        {
          for (Element e : subElement.elements())
          {
            if ("start_equipments".equalsIgnoreCase(e.getName()))
            {
              for (Element e2 : e.elements())
              {
                if ("equipment".equalsIgnoreCase(e2.getName()))
                {
                  int item_id = Integer.parseInt(e2.attributeValue("item_id"));
                  long count = Long.parseLong(e2.attributeValue("count"));
                  boolean equiped = Boolean.parseBoolean(e2.attributeValue("equiped"));
                  start_items.add(new StartItem(item_id, count, equiped));
                }
              }
            }
            else if ("start_points".equalsIgnoreCase(e.getName()))
            {
              for (Element e2 : e.elements())
              {
                if ("point".equalsIgnoreCase(e2.getName()))
                {
                  start_locations.add(Location.parse(e2));
                }
              }
            }
          }
        }
        else if ("stats_data".equalsIgnoreCase(subElement.getName()))
        {
          for (Element e : subElement.elements())
          {
            if (("min_attributes".equalsIgnoreCase(e.getName())) || ("max_attributes".equalsIgnoreCase(e.getName())) || ("base_attributes".equalsIgnoreCase(e.getName())))
            {
              int _int = Integer.parseInt(e.attributeValue("int"));
              int str = Integer.parseInt(e.attributeValue("str"));
              int con = Integer.parseInt(e.attributeValue("con"));
              int men = Integer.parseInt(e.attributeValue("men"));
              int dex = Integer.parseInt(e.attributeValue("dex"));
              int wit = Integer.parseInt(e.attributeValue("wit"));
              StatAttributes attr = new StatAttributes(_int, str, con, men, dex, wit);
              if ("min_attributes".equalsIgnoreCase(e.getName()))
              {
                min_attr = attr;
              }
              else if ("max_attributes".equalsIgnoreCase(e.getName()))
View Full Code Here

      {
        player.sendPacket(Msg.YOU_CANNOT_TELEPORT_TO_A_VILLAGE_THAT_IS_IN_A_SIEGE);
        return;
      }
    }
    final Location pos = Location.findPointToStay(x, y, z, 50, 100, player.getGeoIndex());
    if (price > 0)
    {
      player.reduceAdena(price, true);
    }
    player.teleToLocation(pos);
View Full Code Here

      player.sendPacket(SystemMessage2.removeItems(item, count));
    }
    final int x = Integer.parseInt(param[0]);
    final int y = Integer.parseInt(param[1]);
    final int z = Integer.parseInt(param[2]);
    final Location pos = Location.findPointToStay(x, y, z, 20, 70, player.getGeoIndex());
    player.teleToLocation(pos);
  }
View Full Code Here

      return;
    }
    final String var = player.getVar("DCBackCoords");
    if ((var == null) || var.isEmpty())
    {
      player.teleToLocation(new Location(43768, -48232, -800), 0);
      return;
    }
    player.teleToLocation(Location.parseLoc(var), 0);
    player.unsetVar("DCBackCoords");
  }
View Full Code Here

    }
    for (Player player : World.getAroundPlayers(actor, 200, 200))
    {
      if (player != null)
      {
        player.teleToLocation(new Location(207559, 86429, -1000));
      }
    }
    return true;
  }
View Full Code Here

TOP

Related Classes of lineage2.gameserver.templates.player.StatAttributes

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.