Examples of doCast()


Examples of lineage2.gameserver.model.instances.NpcInstance.doCast()

    {
      for (NpcInstance n : actor.getAroundNpc(2000, 300))
      {
        if ((n.getNpcId() == 18867) && !n.isDead())
        {
          actor.doCast(_skill, n, true);
          actor.setCurrentHp(actor.getMaxHp(), false);
          actor.broadcastCharInfo();
          _weeds++;
          return;
        }
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.doCast()

    final Creature topDamager = actor.getAggroList().getTopDamager();
    final Creature randomHated = actor.getAggroList().getRandomHated();
    final Creature mostHated = actor.getAggroList().getMostHated();
    if (!actor.isCastingNow() && (_eternalblizzardReuseTimer < System.currentTimeMillis()))
    {
      actor.doCast(SkillTable.getInstance().getInfo(Skill_EternalBlizzard, 1), actor, true);
      final 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

Examples of lineage2.gameserver.model.instances.NpcInstance.doCast()

    }
    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);
      }
    }
    if (!actor.isCastingNow() && (_summonReuseTimer < System.currentTimeMillis()))
    {
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.doCast()

        _iceballReuseTimer = System.currentTimeMillis() + (_iceballReuseDelay * 1000L);
      }
    }
    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

Examples of lineage2.gameserver.model.instances.NpcInstance.doCast()

      }
      _summonReuseTimer = System.currentTimeMillis() + (_summonReuseDelay * 1000L);
    }
    if (!actor.isCastingNow() && (_selfnovaReuseTimer < System.currentTimeMillis()))
    {
      actor.doCast(SkillTable.getInstance().getInfo(Skill_SelfNova, 1), actor, true);
      _selfnovaReuseTimer = System.currentTimeMillis() + (_selfnovaReuseDelay * 1000L);
    }
    if (!actor.isCastingNow() && (_reflectReuseTimer < System.currentTimeMillis()))
    {
      actor.doCast(SkillTable.getInstance().getInfo(Skill_ReflectMagic, 1), actor, true);
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.doCast()

      actor.doCast(SkillTable.getInstance().getInfo(Skill_SelfNova, 1), actor, true);
      _selfnovaReuseTimer = System.currentTimeMillis() + (_selfnovaReuseDelay * 1000L);
    }
    if (!actor.isCastingNow() && (_reflectReuseTimer < System.currentTimeMillis()))
    {
      actor.doCast(SkillTable.getInstance().getInfo(Skill_ReflectMagic, 1), actor, true);
      _reflectReuseTimer = System.currentTimeMillis() + (_reflectReuseDelay * 1000L);
    }
    if (!actor.isCastingNow() && (_icestormReuseTimer < System.currentTimeMillis()))
    {
      actor.doCast(SkillTable.getInstance().getInfo(Skill_IceStorm, 1), actor, true);
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.doCast()

      actor.doCast(SkillTable.getInstance().getInfo(Skill_ReflectMagic, 1), actor, true);
      _reflectReuseTimer = System.currentTimeMillis() + (_reflectReuseDelay * 1000L);
    }
    if (!actor.isCastingNow() && (_icestormReuseTimer < System.currentTimeMillis()))
    {
      actor.doCast(SkillTable.getInstance().getInfo(Skill_IceStorm, 1), actor, true);
      _icestormReuseTimer = System.currentTimeMillis() + (_icestormReuseDelay * 1000L);
    }
    if (!actor.isCastingNow() && !actor.isMoving && (_deathsentenceReuseTimer < System.currentTimeMillis()))
    {
      if ((randomHated != null) && !randomHated.isDead() && randomHated.isInRangeZ(actor, 1000))
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.doCast()

    }
    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);
      }
    }
    if (!actor.isCastingNow() && !actor.isMoving && (_angerReuseTimer < System.currentTimeMillis()))
    {
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.doCast()

        _deathsentenceReuseTimer = System.currentTimeMillis() + (_deathsentenceReuseDelay * 1000L);
      }
    }
    if (!actor.isCastingNow() && !actor.isMoving && (_angerReuseTimer < System.currentTimeMillis()))
    {
      actor.doCast(SkillTable.getInstance().getInfo(Skill_Anger, 1), actor, true);
      _angerReuseTimer = System.currentTimeMillis() + (_angerReuseDelay * 1000L);
      if ((mostHated != null) && (randomHated != null) && (actor.getAggroList().getCharMap().size() > 1))
      {
        actor.getAggroList().remove(mostHated, true);
        actor.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, randomHated, 900000);
View Full Code Here

Examples of lineage2.gameserver.model.instances.NpcInstance.doCast()

    final Creature topDamager = actor.getAggroList().getTopDamager();
    final Creature randomHated = actor.getAggroList().getRandomHated();
    final Creature mostHated = actor.getAggroList().getMostHated();
    if (!actor.isCastingNow() && (_eternalblizzardReuseTimer < System.currentTimeMillis()))
    {
      actor.doCast(SkillTable.getInstance().getInfo(Skill_EternalBlizzard, 1), actor, true);
      final 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
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.