Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.Skill$AddedSkill


        addDesiredSkill(d_skill, target, distance, s_breath);
        break;
      default:
        break;
    }
    final Skill r_skill = selectTopSkill(d_skill);
    if ((r_skill != null) && !r_skill.isOffensive())
    {
      target = actor;
    }
    return chooseTaskAndTargets(r_skill, target, distance);
  }
View Full Code Here


   * Method fakeOpen.
   * @param opener Creature
   */
  private void fakeOpen(Creature opener)
  {
    Skill bomb = SkillTable.getInstance().getInfo(TREASURE_BOMB_ID, getBombLvl());
    if (bomb != null)
    {
      doCast(bomb, opener, false);
    }
    onDecay();
View Full Code Here

        for (Iterator<Element> nextIterator = element.elementIterator(); nextIterator.hasNext();)
        {
          Element nextElement = nextIterator.next();
          int id2 = Integer.parseInt(nextElement.attributeValue("id"));
          int level2 = Integer.parseInt(nextElement.attributeValue("level"));
          Skill skill = SkillTable.getInstance().getInfo(id2, level2);
          if (skill != null)
          {
            residence.addSkill(skill);
          }
        }
View Full Code Here

      Skill[] skills = actorHp < 50 ? selectUsableSkills(actor, 0, _healSkills) : selectUsableSkills(actor, 0, _buffSkills);
      if ((skills == null) || (skills.length == 0))
      {
        return false;
      }
      Skill skill = skills[Rnd.get(skills.length)];
      addTaskBuff(actor, skill);
      return true;
    }
    if (Rnd.chance(rateFriends))
    {
      for (NpcInstance npc : activeFactionTargets())
      {
        double targetHp = npc.getCurrentHpPercents();
        Skill[] skills = targetHp < 50 ? selectUsableSkills(actor, 0, _healSkills) : selectUsableSkills(actor, 0, _buffSkills);
        if ((skills == null) || (skills.length == 0))
        {
          continue;
        }
        Skill skill = skills[Rnd.get(skills.length)];
        addTaskBuff(actor, skill);
        return true;
      }
    }
    return false;
View Full Code Here

          }
          if ((chance2 == 0) && set.isEmpty())
          {
            warn("Wrong skill chance. Cubic: " + id + "/" + level);
          }
          Skill skill = SkillTable.getInstance().getInfo(id2, level2);
          if (skill != null)
          {
            skill.setCubicSkill(true);
            skills.add(new CubicTemplate.SkillInfo(skill, chance2, type, canAttackDoor, set));
          }
        }
        template.putSkills(chance, skills);
      }
View Full Code Here

  @Override
  protected void onEvtTimer(int timerId, Object arg1, Object arg2)
  {
    super.onEvtTimer(timerId, arg1, arg2);
    Skill sk;
    switch(timerId)
    {
      case 1:
        sk = SkillTable.getInstance().getInfo(ENRAGED_SKILL_ID, 1);
        addTaskBuff(getActor(), sk);
View Full Code Here

    addDesiredSkill(skills, target, distance, JumpAttack);
    addDesiredSkill(skills, target, distance, StrongPunch);
    addDesiredSkill(skills, target, distance, Stun1);
    addDesiredSkill(skills, target, distance, Stun2);
    addDesiredSkill(skills, target, distance, Stun3);
    final Skill skill = selectTopSkill(skills);
    if ((skill != null) && !skill.isOffensive())
    {
      target = actor;
    }
    return chooseTaskAndTargets(skill, target, distance);
  }
View Full Code Here

  public void onStart()
  {
    super.onStart();
    if (!_effected.startMuted())
    {
      Skill castingSkill = _effected.getCastingSkill();
      if ((castingSkill != null) && castingSkill.isMagic())
      {
        _effected.abortCast(true, true);
      }
    }
  }
View Full Code Here

      if(getActor().getCurrentHpPercents() < 90)
        SKILL_ID = SKILL_IDS[1];
      else if(getActor().getCurrentHpPercents() < 75)
        SKILL_ID = SKILL_IDS[2];

      Skill skill = SkillTable.getInstance().getInfo(SKILL_ID, 1);
      skill.getEffects(getActor(), getActor(), false, false);
    }
  }
View Full Code Here

        if(getActor().getCurrentHpPercents() < 60)
          SKILL_ID = SKILL_IDS[1];
        else if(getActor().getCurrentHpPercents() < 35)
          SKILL_ID = SKILL_IDS[2];

        Skill skill = SkillTable.getInstance().getInfo(SKILL_ID, 1);
        skill.getEffects(getActor(), getActor(), false, false);
      }
    if(ROOM_ID == 2)
      if(IS_LAST_GROUP && getActor().getCurrentHpPercents() < 80 && getActor().getEffectList().getEffectsBySkillId(ULTIMATE_BUFF_ID) == null)
      {
        Skill skill = SkillTable.getInstance().getInfo(ULTIMATE_BUFF_ID, 1);
        skill.getEffects(getActor(), getActor(), false, false);
      }
  }
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.