Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.Skill$AddedSkill


   * Method updateAura.
   */
  void updateAura()
  {
    Creature effector = getEffector();
    Skill forceSkill = SkillTable.getInstance().getInfo(forceSkillId, 1);
    Skill auraSkill = getSkill();
    if ((effector == null) || (forceSkill == null) || (auraSkill == null))
    {
      return;
    }
    List<Creature> targets = forceSkill.getTargets(effector, effector, false);
View Full Code Here


    }
    if (activeAura >= 4)
    {
      if (!psActive || psEffect.getSkill().getLevel() < Math.min((activeAura - 3), 3) || psEffect.getSkill().getLevel() > Math.min((activeAura - 3), 3))
      {
        Skill PartySolidarity = SkillTable.getInstance().getInfo(1955, Math.min((activeAura - 3), 3));
        PartySolidarity.getEffects(getEffected(), getEffected(), false, false);
      }
    }
    else if (psActive)
    {
      psEffect.exit();
View Full Code Here

          for (Iterator<org.dom4j.Element> nextIterator = subElement.elementIterator(); nextIterator.hasNext();)
          {
            org.dom4j.Element nextElement = nextIterator.next();
            int id = Integer.parseInt(nextElement.attributeValue("id"));
            int level = Integer.parseInt(nextElement.attributeValue("level"));
            Skill skill = SkillTable.getInstance().getInfo(id, level);
            if (skill != null)
            {
              template.attachSkill(skill);
            }
            else
            {
              info("Skill not found(" + id + "," + level + ") for item:" + set.getObject("item_id") + "; file:" + getCurrentFileName());
            }
          }
        }
        else if (subName.equalsIgnoreCase("enchant4_skill"))
        {
          int id = Integer.parseInt(subElement.attributeValue("id"));
          int level = Integer.parseInt(subElement.attributeValue("level"));
          Skill skill = SkillTable.getInstance().getInfo(id, level);
          if (skill != null)
          {
            template.setEnchant4Skill(skill);
          }
        }
        else if (subName.equalsIgnoreCase("unequip_skill"))
        {
          int id = Integer.parseInt(subElement.attributeValue("id"));
          int level = Integer.parseInt(subElement.attributeValue("level"));
          Skill skill = SkillTable.getInstance().getInfo(id, level);
          if (skill != null)
          {
            template.setUnequipeSkill(skill);
          }
        }
View Full Code Here

      }
      else if (actor.getNpcId() == 18368)
      {
        Functions.npcSay(actor, "You're out of mind comming here...");
      }
      final Skill petrification = SkillTable.getInstance().getInfo(4578, 1);
      actor.doCast(petrification, attacker, true);
      for (Summon summon : attacker.getPlayer().getSummonList())
      {
        actor.doCast(petrification, summon, true);
      }
View Full Code Here

              {
                player.sendPacket(new ExShowScreenMessage(NpcString.LORD_TAUTI_REVEIVE_MY_PETRA_AND_BE_STRENGTHENED_THEN_DEFEAT_THESE_FEEBLE_WRETCHES, 5000, ExShowScreenMessage.ScreenMessageAlign.TOP_CENTER, true, ExShowScreenMessage.STRING_TYPE, 0, true, 0));
              }
              for(NpcInstance npc : getAllByNpcId(JAHAK, true))
              {
                Skill skill = SkillTable.getInstance().getInfo(14625, 1);
                npc.doCast(skill, actor, false);
                npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker, 300);
              }
            }
          }, 5000L);
View Full Code Here

    protected final void writeImpl() {
        writeEx(0xFA);

        writeD(allskills.size());
        for (SkillLearn sk : allskills) {
            Skill skill = SkillTable.getInstance().getInfo(sk.getId(), sk.getLevel());

            if (skill == null) {
                continue;
            }

            writeD(sk.getId());
            writeD(sk.getLevel());
            writeD(sk.getCost());
            writeH(sk.getMinLevel());
            writeH(0x00); // Tauti
            boolean consumeItem = sk.getItemId() > 0;
            writeD(consumeItem ? 1 : 0);
            if (consumeItem) {
                writeD(sk.getItemId());
                writeQ(sk.getItemCount());
            }
            Skill relskill = SkillTable.getInstance().getInfo(sk.getId(), sk.getLevel());
            if (relskill != null && relskill.isRelationSkill()) {
                int[] _dels = relskill.getRelationSkills();
                writeD(_dels.length);// deletedSkillsSize
                for (int skillId : _dels) {
                    writeD(skillId);// skillId
                    writeD(SkillTable.getInstance().getBaseLevel(skillId));// skillLvl
                }
View Full Code Here

      {
        player.sendMessage("Invalid effect!");
        ShowHtml(page, player);
        return;
      }
      Skill skill = SkillTable.getInstance().getInfo(id, lvl);
      if (!player.getVarB("isPlayerBuff"))
      {
          for (Summon summon : player.getSummonList())
          {
            for (EffectTemplate et : skill.getEffectTemplates())
            {
              Env env = new Env(summon, summon, skill);
              Effect effect = et.getEffect(env);
              effect.setPeriod(time);
              summon.getEffectList().addEffect(effect);
              summon.updateEffectIconsImpl();
            }
          }
      }
      else
      {
        for (EffectTemplate et : skill.getEffectTemplates())
        {
          Env env = new Env(player, player, skill);
          Effect effect = et.getEffect(env);
          effect.setPeriod(time);
          player.getEffectList().addEffect(effect);
View Full Code Here

   * @param list List<Integer>
   */
  private void GroupBuff(Player player, List<Integer> list)
  {
    int time = Config.COMMUNITYBOARD_BUFF_TIME;
    Skill skill = null;
    for (int i : list)
    {
      int lvl = SkillTable.getInstance().getBaseLevel(i);
      if (!Config.COMMUNITYBOARD_BUFF_ALLOW.contains(i))
      {
        continue;
      }
      skill = SkillTable.getInstance().getInfo(i, lvl);
      if (!player.getVarB("isPlayerBuff") && (player.getSummonList().getServitors() != null))
      {
        for (EffectTemplate et : skill.getEffectTemplates())
        {
          for (Summon summon : player.getSummonList())
          {
            Env env = new Env(summon, summon, skill);
            Effect effect = et.getEffect(env);
            effect.setPeriod(time);
            summon.getEffectList().addEffect(effect);
            summon.updateEffectIconsImpl();
          }
        }
      }
      else
      {
        for (EffectTemplate et : skill.getEffectTemplates())
        {
          Env env = new Env(player, player, skill);
          Effect effect = et.getEffect(env);
          effect.setPeriod(time);
          player.getEffectList().addEffect(effect);
View Full Code Here

  {
    secondRoomGroup++;
    if(secondRoomGroup == 2)
    {
      ThreadPoolManager.getInstance().schedule(new ScreenMessageTask(NpcString.I_MUST_GO_HELP_SOME_MORE), 100);
      Skill skill = SkillTable.getInstance().getInfo(DEFENSE_SKILL_ID, 1);
      for(Player player : getPlayers())
        skill.getEffects(player, player, false, false);
      spawnByGroup(SECOND_ROOM_SOURCE_POWER);
    }
    else if(secondRoomGroup == 4)
    {
      openDoor(DOOR2_ID);
View Full Code Here

          for (Iterator<org.dom4j.Element> nextIterator = subElement.elementIterator(); nextIterator.hasNext();)
          {
            org.dom4j.Element nextElement = nextIterator.next();
            int id = Integer.parseInt(nextElement.attributeValue("id"));
            int level = Integer.parseInt(nextElement.attributeValue("level"));
            Skill skill = SkillTable.getInstance().getInfo(id, level);
            if (skill != null)
            {
              template.attachSkill(skill);
            }
            else
            {
              info("Skill not found(" + id + "," + level + ") for item:" + set.getObject("item_id") + "; file:" + getCurrentFileName());
            }
          }
        }
        else if (subName.equalsIgnoreCase("enchant4_skill"))
        {
          int id = Integer.parseInt(subElement.attributeValue("id"));
          int level = Integer.parseInt(subElement.attributeValue("level"));
          Skill skill = SkillTable.getInstance().getInfo(id, level);
          if (skill != null)
          {
            template.setEnchant4Skill(skill);
          }
        }
        else if (subName.equalsIgnoreCase("unequip_skill"))
        {
          int id = Integer.parseInt(subElement.attributeValue("id"));
          int level = Integer.parseInt(subElement.attributeValue("level"));
          Skill skill = SkillTable.getInstance().getInfo(id, level);
          if (skill != null)
          {
            template.setUnequipeSkill(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.