Package lineage2.gameserver.model

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


          break;
        case 2:
          actor.doCast(SkillTable.getInstance().getInfo(maguenRaceSkills[1], 1), caster, true);
          break;
        case 3:
          actor.doCast(SkillTable.getInstance().getInfo(maguenRaceSkills[2], 1), caster, true);
          break;
        default:
          break;
      }
    }
View Full Code Here


      for (Playable target : World.getAroundPlayables(actor, AGGRO_RANGE, AGGRO_RANGE))
      {
        if ((target != null) && !target.isAlikeDead() && !target.isInvul() && target.isVisible() && GeoEngine.canSeeTarget(actor, target, false))
        {
          actor.doCast(SKILL1, target, true);
          actor.doCast(SKILL2, target, true);
          lastThrow = System.currentTimeMillis();
          break;
        }
      }
    }
View Full Code Here

  protected void thinkAttack()
  {
    NpcInstance actor = getActor();
    Creature randomHated = actor.getAggroList().getRandomHated();
    if (randomHated != null && actor.getNpcId() == 22971 || actor.getNpcId() == 22972)
      actor.doCast(SkillTable.getInstance().getInfo(14139, 1), randomHated, true);
    super.thinkAttack();
  }
}
View Full Code Here

    {
      if (master != null && !master.isDead() && master.getCurrentHpPercents() < 80)
      {
        if (!actor.isCastingNow() && (_ReuseTimer < System.currentTimeMillis()))
        {
          actor.doCast(SkillTable.getInstance().getInfo(698, 1), master, true);
          _ReuseTimer = System.currentTimeMillis() + (3 * 1000L);
        }
      }
    }
    //Check for Aggression
View Full Code Here

          {
            if (npc instanceof MonsterInstance)
            {
              if (npc.getTarget() != null && npc.getTarget().isPlayer())
              {
                actor.doCast(SkillTable.getInstance().getInfo(10060, 1), npc, true);             
                _ReuseTimer = System.currentTimeMillis() + (7 * 1000L);
              }
            }
          }
        }
 
View Full Code Here

    if ((player.getLevel() > 39) || player.getClassId().isOfLevel(ClassLevel.Second))
    {
      show("default/newbie_blessing_no.htm", player, npc);
      return;
    }
    npc.doCast(SkillTable.getInstance().getInfo(5182, 1), player, true);
  }
 
  /**
   * Method doSupportMagic.
   * @param npc NpcInstance
View Full Code Here

      clearTasks();
      spawnTraps();
      actor.abortAttack(true, false);
      actor.abortCast(true, false);
      actor.setIsInvul(true);
      actor.doCast(TIAT_TRANSFORMATION_SKILL, actor, true);
      ThreadPoolManager.getInstance().schedule(new RunnableImpl()
      {
        @Override
        public void runImpl()
        {
View Full Code Here

    Creature mostHated = actor.getAggroList().getMostHated();

    //Eternal Blizzard Cast
    if(!actor.isCastingNow() && _eternalblizzardReuseTimer < System.currentTimeMillis())
    {
      actor.doCast(SkillTable.getInstance().getInfo(Skill_EternalBlizzard, 1), actor, true);

      Reflection r = getActor().getReflection();
      for(Player p : r.getPlayers())
        p.sendPacket(new ExShowScreenMessage(NpcString.I_FEEL_STRONG_MAGIC_FLOW, 3000, ScreenMessageAlign.MIDDLE_CENTER, true));
View Full Code Here

    // Ice Ball Cast
    if(!actor.isCastingNow() && !actor.isMoving && _iceballReuseTimer < System.currentTimeMillis())
      if(topDamager != null && !topDamager.isDead() && topDamager.isInRangeZ(actor, 1000))
      {
        actor.doCast(SkillTable.getInstance().getInfo(Skill_IceBall, 1), topDamager, true);
        _iceballReuseTimer = System.currentTimeMillis() + _iceballReuseDelay * 1000L;
      }

    // Summon Buff Cast
    if(!actor.isCastingNow() && _summonReuseTimer < System.currentTimeMillis())
View Full Code Here

      }

    // Summon Buff Cast
    if(!actor.isCastingNow() && _summonReuseTimer < System.currentTimeMillis())
    {
      actor.doCast(SkillTable.getInstance().getInfo(Skill_SummonElemental, 1), actor, true);

      for(NpcInstance guard : getActor().getAroundNpc(800, 100))
        guard.altOnMagicUseTimer(guard, SkillTable.getInstance().getInfo(Skill_SummonElemental, 1));

      _summonReuseTimer = System.currentTimeMillis() + _summonReuseDelay * 1000L;
 
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.