Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.Skill$AddedSkill


  @Override
  public void onEquip(int slot, ItemInstance item, Playable actor)
  {
    Player player = (Player) actor;
    Skill[] itemSkills = null;
    Skill enchant4Skill = null;
    ItemTemplate it = item.getTemplate();
    itemSkills = it.getAttachedSkills();
    if (item.getEnchantLevel() >= 4)
    {
      enchant4Skill = it.getEnchant4Skill();
View Full Code Here


    player.setCurrentHpMp(player.getMaxHp(), player.getMaxMp());
    player.setCurrentCp(player.getMaxCp());
   
    for (int j = 0; j < SKILL_IDS.length; j++)
    {
      Skill skill = SkillTable.getInstance().getInfo(SKILL_IDS[j], SKILL_LEVEL[j]);
      if (skill != null)
      {
        skill.getEffects(player, player, false, false);
      }
    }
  }
View Full Code Here

  /**
   * Method paralyzeTeams.
   */
  public void paralyzeTeams()
  {
    Skill revengeSkill = SkillTable.getInstance().getInfo(Skill.SKILL_RAID_CURSE, 1);
    for (Player player : getPlayers(_team1list))
    {
      player.getEffectList().stopEffect(Skill.SKILL_MYSTIC_IMMUNITY);
      revengeSkill.getEffects(player, player, false, false);
      for (Summon summon : player.getSummonList())
      {
        revengeSkill.getEffects(player, summon, false, false);
      }
    }
    for (Player player : getPlayers(_team2list))
    {
      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

    }
    else
    {
      _team2live.remove(player.getStoredId());
    }
    Skill revengeSkill = SkillTable.getInstance().getInfo(Skill.SKILL_RAID_CURSE, 1);
    revengeSkill.getEffects(player, player, false, false);
    return !checkTeams();
  }
View Full Code Here

        int objId = rset.getInt("objId");
        int curHp = rset.getInt("curHp");
        int curMp = rset.getInt("curMp");
        int skill_id = rset.getInt("skill_id");
        int skill_lvl = rset.getInt("skill_lvl");
        Skill skill = SkillTable.getInstance().getInfo(skill_id, skill_lvl);
        if (skill == null)
        {
          continue;
        }
        if (skill.getSkillType() != Skill.SkillType.SUMMON)
        {
          continue;
        }
        NpcTemplate template = NpcHolder.getInstance().getTemplate(skill.getNpcId());
        SummonInstance s = new SummonInstance(objId, template, owner, ((SummonServitor) skill).getLifeTime(), ((SummonServitor) skill).getSummonPoint(), skill);
        s.setCurrentHp(curHp, true);
        s.setCurrentMp(curMp, true);
        summons.add(s);
      }
View Full Code Here

    writeD(_objId);
    writeH(_effectArray.length);

    for(final Effect temp : _effectArray)
    {
      final Skill sk = temp.getSkill();

      writeD(sk.getDisplayId());
      writeH(sk.getDisplayLevel());
      writeD(getDisplayTypeOfEffect(sk));
      writeD(temp.getTimeLeft());
      writeD((temp.getEffector() != null) ? temp.getEffector().getObjectId() : 0);
    }
  }
View Full Code Here

        }
        else
        {
          skillId = 4362;
        }
        Skill skill = SkillTable.getInstance().getInfo(skillId, skillLevel);
        if (activeChar.getEffectList().getEffectsBySkill(skill) == null)
        {
          skill.getEffects(activeChar, activeChar, false, false);
          activeChar.sendPacket(new SystemMessage(SystemMessage.S1_S2S_EFFECT_CAN_BE_FELT).addSkillName(skillId, skillLevel));
        }
      }
      return false;
    }
View Full Code Here

              continue loop;
            }
          }
          lvl = SkillTreeTable.convertEnchantLevel(sl.getBaseLevel(), lvl, sl.getMaxLevel());
        }
        Skill s = getInfo(id, lvl);
        if (s != null)
        {
          if (reuse > 0)
          {
            s.setReuseDelay(reuse);
          }
          if (cool > 0)
          {
            s.setCoolTime(cool);
          }
          if (hit_time > 0)
          {
            s.setHitTime(hit_time);
          }
          if (s.getSkillInterruptTime() == 0)
          {
            s.setSkillInterruptTime((s.getHitTime() * 3) / 4);
          }
          if (mp_consume > 0)
          {
            if (((mp_consume / 4) >= 1) && is_magic)
            {
              s.setMpConsume1((mp_consume * 1.) / 4);
              s.setMpConsume2((mp_consume * 3.) / 4);
            }
            else
            {
              s.setMpConsume2(mp_consume);
            }
          }
          if (cast_range > 0)
          {
            s.setCastRange(cast_range);
          }
        }
      }
    }
    catch (FileNotFoundException e)
View Full Code Here

    if (slevel == sl.getBaseLevel() ? (_skillLvl % 100) != 1 : slevel != (enchantLevel - 1))
    {
      activeChar.sendMessage("Incorrect enchant level.");
      return;
    }
    Skill skill = SkillTable.getInstance().getInfo(_skillId, enchantLevel);
    if (skill == null)
    {
      activeChar.sendMessage("Internal error: not found skill level");
      return;
    }
View Full Code Here

  {
    if ((target == null) || target.isInvul() || target.isRaid() || !target.isCastingNow())
    {
      return false;
    }
    Skill skill = target.getCastingSkill();
    if ((skill != null) && ((skill.getSkillType() == SkillType.TAKECASTLE) || (skill.getSkillType() == SkillType.TAKEFORTRESS)))
    {
      return false;
    }
    return Rnd.chance(target.calcStat(Stats.CAST_INTERRUPT, crit ? 75 : 10, null, skill));
  }
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.