Examples of doCast()


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, 1500000);
View Full Code Here

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

      switch (actor.getNpcState())
      {
        case 1:
          if (Rnd.chance(80))
          {
            actor.doCast(SkillTable.getInstance().getInfo(maguenRaceSkills[0], Rnd.get(2, 3)), caster, true);
          }
          else
          {
            actor.doCast(SkillTable.getInstance().getInfo(maguenStatsSkills[0], Rnd.get(1, 2)), caster, true);
          }
View Full Code Here

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

          {
            actor.doCast(SkillTable.getInstance().getInfo(maguenRaceSkills[0], Rnd.get(2, 3)), caster, true);
          }
          else
          {
            actor.doCast(SkillTable.getInstance().getInfo(maguenStatsSkills[0], Rnd.get(1, 2)), caster, true);
          }
          break;
        case 2:
          if (Rnd.chance(80))
          {
View Full Code Here

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

          }
          break;
        case 2:
          if (Rnd.chance(80))
          {
            actor.doCast(SkillTable.getInstance().getInfo(maguenRaceSkills[1], Rnd.get(2, 3)), caster, true);
          }
          else
          {
            actor.doCast(SkillTable.getInstance().getInfo(maguenStatsSkills[1], Rnd.get(1, 2)), caster, 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.