Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Skill


      }
      else if(actor.getNpcId() == 18368)
      {
        Functions.npcSay(actor, "Убирайтесь прочь...");
      }
      L2Skill petrification = SkillTable.getInstance().getInfo(4578, 1); // Petrification
      actor.doCast(petrification, attacker, true);
      if(attacker.getPet() != null)
      {
        actor.doCast(petrification, attacker.getPet(), true);
      }
View Full Code Here


    {
      for(int i = 0; i < skills.length; i++)
      {
        if(!(_noskill.matcher(skills[i]).matches() || _noskill.matcher(skilllevels[i]).matches()))
        {
          L2Skill skill = SkillTable.getInstance().getInfo(Integer.parseInt(skills[i]), Integer.parseInt(skilllevels[i]));
          if(skill != null)
          {
            if(skill.getSkillType() == SkillType.NOTDONE)
            {
              System.out.println("WARNING: item " + _itemId + " action attached skill not done: " + skill);
            }
            attachSkill(skill);
          }
View Full Code Here

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

        int chest = rset.getInt("chest");
        int legs = rset.getInt("legs");
        int head = rset.getInt("head");
        int gloves = rset.getInt("gloves");
        int feet = rset.getInt("feet");
        L2Skill skill = null;
        StringTokenizer st = new StringTokenizer(rset.getString("skill"), ";");
        if(st.hasMoreTokens())
        {
          skill = SkillTable.getInstance().getInfo(Integer.valueOf(st.nextToken()), Integer.valueOf(st.nextToken()));
        }
        int shield = rset.getInt("shield");
        L2Skill shield_skill = null;
        st = new StringTokenizer(rset.getString("shield_skill"), ";");
        if(st.hasMoreTokens())
        {
          shield_skill = SkillTable.getInstance().getInfo(Integer.valueOf(st.nextToken()), Integer.valueOf(st.nextToken()));
        }
        L2Skill enchant6skill = null;
        st = new StringTokenizer(rset.getString("enchant6skill"), ";");
        if(st.hasMoreTokens())
        {
          enchant6skill = SkillTable.getInstance().getInfo(Integer.valueOf(st.nextToken()), Integer.valueOf(st.nextToken()));
        }
View Full Code Here

    else
    {
      resultColor = 2;
    }
    // generate a skill if neccessary
    L2Skill skill = null;
    if(generateSkill)
    {
      switch(resultColor)
      {
        case 1: // blue skill
View Full Code Here

        break;
      default:
        return null;
    }
    int resultColor = Rnd.get(0, 3);
    L2Skill skill = null;
    // first augmentation (stats only)
    stat12 = Rnd.get(ACC_STAT_SUBBLOCKSIZE);
    if(Rnd.get(1, 100) <= Config.AUGMENTATION_ACC_SKILL_CHANCE)
    {
      // second augmentation (skill)
View Full Code Here

    _tx = target.getX();
    _ty = target.getY();
    _tz = target.getZ();
    if(Config.SAY_CASTING_SKILL_NAME && cha.isNpc())
    {
      L2Skill sk = SkillTable.getInstance().getInfo(_skillId, _skillLevel);
      Functions.npcSay((L2NpcInstance) cha, "Casting " + sk.getName() + "[" + _skillId + "." + _skillLevel + "]");
    }
  }
View Full Code Here

    _tx = cha.getX();
    _ty = cha.getY();
    _tz = cha.getZ();
    if(Config.SAY_CASTING_SKILL_NAME && cha.isNpc())
    {
      L2Skill sk = SkillTable.getInstance().getInfo(_skillId, _skillLevel);
      Functions.npcSay((L2NpcInstance) cha, "Casting " + sk.getName() + "[" + _skillId + "." + _skillLevel + "]");
    }
  }
View Full Code Here

    FastMap<L2Skill, Integer> d_skill = new FastMap<L2Skill, Integer>();
    addDesiredSkill(d_skill, target, distance, DeadlyDualSwordWeapon);
    addDesiredSkill(d_skill, target, distance, DeadlyDualSwordWeaponRangeAttack);
    addDesiredSkill(d_skill, target, distance, Hold);
    addDesiredSkill(d_skill, target, distance, AbsorbHPMP);
    L2Skill r_skill = selectTopSkill(d_skill);
    return chooseTaskAndTargets(r_skill, target, distance);
  }
View Full Code Here

    if(activeChar.isOutOfControl())
    {
      activeChar.sendActionFailed();
      return;
    }
    L2Skill skill = SkillTable.getInstance().getInfo(_magicId, activeChar.getSkillLevel(_magicId));
    if(skill != null)
    {
      if(!(skill.isActive() || skill.isToggle()))
      {
        return;
      }
      // В режиме трансформации доступны только скилы трансформы
      if(activeChar.getTransformation() != 0 && !activeChar.getAllSkills().contains(skill))
      {
        return;
      }
      if(skill.isToggle())
      {
        if(activeChar.getEffectList().getEffectsBySkill(skill) != null)
        {
          activeChar.getEffectList().stopEffect(skill.getId());
          activeChar.sendActionFailed();
          return;
        }
      }
      L2Character target = skill.getAimingTarget(activeChar, activeChar.getTarget());
      activeChar.setGroundSkillLoc(null);
      activeChar.getAI().Cast(skill, target, _ctrlPressed, _shiftPressed);
    }
    else
    {
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.L2Skill

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.