Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.Playable.doCast()


    }

    // Ice Storm
    if(!actor.isCastingNow() && _icestormReuseTimer < System.currentTimeMillis())
    {
      actor.doCast(SkillTable.getInstance().getInfo(Skill_IceStorm, 1), actor, true);
      _icestormReuseTimer = System.currentTimeMillis() + _icestormReuseDelay * 1000L;
    }

    // Death Sentence
    if(!actor.isCastingNow() && !actor.isMoving && _deathsentenceReuseTimer < System.currentTimeMillis())
View Full Code Here


    // Death Sentence
    if(!actor.isCastingNow() && !actor.isMoving && _deathsentenceReuseTimer < System.currentTimeMillis())
      if(randomHated != null && !randomHated.isDead() && randomHated.isInRangeZ(actor, 1000))
      {
        actor.doCast(SkillTable.getInstance().getInfo(Skill_DeathSentence, 1), randomHated, true);
        _deathsentenceReuseTimer = System.currentTimeMillis() + _deathsentenceReuseDelay * 1000L;
      }

    // Freya Anger
    if(!actor.isCastingNow() && !actor.isMoving && _angerReuseTimer < System.currentTimeMillis())
View Full Code Here

      }

    // Freya Anger
    if(!actor.isCastingNow() && !actor.isMoving && _angerReuseTimer < System.currentTimeMillis())
    {
      actor.doCast(SkillTable.getInstance().getInfo(Skill_Anger, 1), actor, true);
      _angerReuseTimer = System.currentTimeMillis() + _angerReuseDelay * 1000L;
      //Random agro
      if(mostHated != null && randomHated != null && actor.getAggroList().getCharMap().size() > 1)
      {
        actor.getAggroList().remove(mostHated, true);
View Full Code Here

    final NpcInstance actor = getActor();
    if (target.isInRange(actor, actor.getAggroRange()) && target.isPlayable() && !target.isDead() && !target.isInvisible())
    {
      if (actor.getNpcId() == 18667)
      {
        actor.doCast(SkillTable.getInstance().getInfo(Rnd.get(5423, 5424), 9), actor, false);
        actor.doDie(null);
      }
      else if (actor.getNpcId() == 18668)
      {
        for (int i = 0; i < Rnd.get(1, 4); i++)
View Full Code Here

        npc.doCast(FLOOD, npc, false);
      }
    }
    if ((npcs.getEffectList().getEffectsBySkill(BARRIER_OF_REFLECTION) == null) && !npc.isCastingNow())
    {
      npcs.doCast(BARRIER_OF_REFLECTION, npcs, false);
    }
  }
 
  /**
   * Method authorityField.
View Full Code Here

      }
      else
      {
        return false;
      }
      actor.doCast(skill, actor, true);
      ThreadPoolManager.getInstance().schedule(new RunnableImpl()
      {
        @Override
        public void runImpl()
        {
View Full Code Here

    final int skillId = 2139;
    for (Player player : World.getAroundPlayers(actor, 200, 200))
    {
      if ((player != null) && !player.isInZonePeace() && (player.getEffectList().getEffectsBySkillId(skillId) == null))
      {
        actor.doCast(SkillTable.getInstance().getInfo(skillId, 1), player, true);
      }
    }
    return false;
  }
 
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);
      }
      return;
View Full Code 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);
      }
      return;
    }
    if (actor.getNpcId() == 18367)
    {
View Full Code Here

        if ((actor.getRealDistance3D(target) <= (castRange + 60)) && GeoEngine.canSeeTarget(actor, target, false))
        {
          clientStopMoving();
          _pathfindFails = 0;
          setAttackTimeout(getMaxAttackTimeout() + System.currentTimeMillis());
          actor.doCast(currentTask.skill, isAoE ? actor : target, !target.isPlayable());
          return maybeNextTask(currentTask);
        }
        if (actor.isMoving)
        {
          return Rnd.chance(10);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.