Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.Skill$AddedSkill


      _monster = monster;
    }
    @Override
    public void runImpl() throws Exception
    {
      Skill fp = SkillTable.getInstance().getInfo(14190, 1);
      fp.getEffects(_monster, _monster, false, false);
      _monster.setNpcState(1);
    }
View Full Code Here


  {
    if (npc.isCastingNow())
    {
      return;
    }
    Skill skillToCast;
    final NpcInstance npcs = npc;
    if (!npc.isCastingNow())
    {
      if ((Rnd.get() <= 0.4D) && (ACID_ERUPTION1_TIMER < System.currentTimeMillis()))
      {
View Full Code Here

            int level = Integer.parseInt(nextElement.attributeValue("level"));
            if (id == 4416)
            {
              template.setRace(level);
            }
            Skill skill = SkillTable.getInstance().getInfo(id, level);
            if (skill == null)
            {
              continue;
            }
            template.addSkill(skill);
View Full Code Here

        List<Effect> effects = target.getEffectList().getAllEffects();
        for (Stats stat : _negateStats)
        {
          for (Effect e : effects)
          {
            Skill skill = e.getSkill();
            if (!skill.isOffensive() && (skill.getMagicLevel() > getMagicLevel()) && Rnd.chance(skill.getMagicLevel() - getMagicLevel()))
            {
              count++;
              continue;
            }
            if ((skill.isOffensive() == _negateOffensive) && containsStat(e, stat) && skill.isCancelable())
            {
              target.sendPacket(new SystemMessage(SystemMessage.THE_EFFECT_OF_S1_HAS_BEEN_REMOVED).addSkillName(e.getSkill().getId(), e.getSkill().getDisplayLevel()));
              e.exit();
              count++;
            }
View Full Code Here

  protected boolean thinkActive()
  {
    final NpcInstance actor = getActor();
    if (!actor.getAroundCharacters(200, 150).isEmpty())
    {
      Skill skill = null;
      if (ArrayUtils.contains(holdTraps, actor.getNpcId()))
      {
        skill = SkillTable.getInstance().getInfo(4186, 9);
      }
      else if (ArrayUtils.contains(damageTraps, actor.getNpcId()))
View Full Code Here

      CollectionUtils.eqSort(chars, _nearestTargetComparator);
      for (Creature cha : chars)
      {
        if ((getActor().getAggroList().get(cha) != null) && checkAggression(cha))
        {
          Skill sk = SkillTable.getInstance().getInfo(SKILL_ID, 1);
          if ((lastCastTime + sk.getHitTime() + sk.getReuseDelay()) <= System.currentTimeMillis())
          {
            lastCastTime = System.currentTimeMillis();
            addTaskCast(cha, sk);
          }
        }
View Full Code Here

      final List<Creature> list = World.getAroundCharacters(getActor(), getActor().getAggroRange(), getActor().getAggroRange());
      for (Creature target : list)
      {
        if ((target != null) && !target.isDead() && ArrayUtils.contains(ATTACK_IDS, target.getNpcId()))
        {
          Skill sk = SkillTable.getInstance().getInfo(SKILL_ID, 1);
          if ((lastCastTime + sk.getHitTime() + sk.getReuseDelay()) <= System.currentTimeMillis())
          {
            lastCastTime = System.currentTimeMillis();
            clearTasks();
            addTaskCast(target, sk);
            return true;
View Full Code Here

  /**
   * Method paralyzePlayers.
   */
  public static void paralyzePlayers()
  {
    Skill revengeSkill = SkillTable.getInstance().getInfo(Skill.SKILL_RAID_CURSE, 1);
    for (Player player : getPlayers(players_list))
    {
      player.getEffectList().stopEffect(Skill.SKILL_MYSTIC_IMMUNITY);
      revengeSkill.getEffects(player, player, false, false);
      for (Summon summon : player.getSummonList())
      {
        revengeSkill.getEffects(player, summon, false, false);
      }
    }
  }
View Full Code Here

    {
      if (!isActive())
      {
        return;
      }
      final Skill skill = SkillTable.getInstance().getInfo(SKILL_ID, 1);
      addTaskBuff(getActor(), skill);
      addTimer(1, skill.getHitTime() + 10000);
    }
  }
View Full Code Here

  {
    if (_effected.isInvul())
    {
      return false;
    }
    Skill skill = _effected.getCastingSkill();
    if ((skill != null) && ((skill.getSkillType() == SkillType.TAKECASTLE) || (skill.getSkillType() == SkillType.TAKEFORTRESS)))
    {
      return false;
    }
    return super.checkCondition();
  }
View Full Code Here

TOP

Related Classes of lineage2.gameserver.model.Skill$AddedSkill

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.