Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.Playable.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


      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

    }
    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

        _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

    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

    }
    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

        _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

      }
      _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

      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

      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

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.