Package lineage2.gameserver.model

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


    }

    // Self Nova
    if(!actor.isCastingNow() && _selfnovaReuseTimer < System.currentTimeMillis())
    {
      actor.doCast(SkillTable.getInstance().getInfo(Skill_SelfNova, 1), actor, true);
      _selfnovaReuseTimer = System.currentTimeMillis() + _selfnovaReuseDelay * 1000L;
    }

    // Reflect
    if(!actor.isCastingNow() && _reflectReuseTimer < System.currentTimeMillis())
View Full Code Here


    }

    // Reflect
    if(!actor.isCastingNow() && _reflectReuseTimer < System.currentTimeMillis())
    {
      actor.doCast(SkillTable.getInstance().getInfo(Skill_ReflectMagic, 1), actor, true);
      _reflectReuseTimer = System.currentTimeMillis() + _reflectReuseDelay * 1000L;
    }

    // Ice Storm
    if(!actor.isCastingNow() && _icestormReuseTimer < System.currentTimeMillis())
View Full Code Here

    }

    // 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

    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

    }

    // Self Nova
    if(!actor.isCastingNow() && _selfnovaReuseTimer < System.currentTimeMillis())
    {
      actor.doCast(SkillTable.getInstance().getInfo(Skill_SelfNova, 1), actor, true);
      _selfnovaReuseTimer = System.currentTimeMillis() + _selfnovaReuseDelay * 1000L;
    }

    // Reflect
    if(!actor.isCastingNow() && _reflectReuseTimer < System.currentTimeMillis())
View Full Code Here

    }

    // Reflect
    if(!actor.isCastingNow() && _reflectReuseTimer < System.currentTimeMillis())
    {
      actor.doCast(SkillTable.getInstance().getInfo(Skill_ReflectMagic, 1), actor, true);
      _reflectReuseTimer = System.currentTimeMillis() + _reflectReuseDelay * 1000L;
    }

    // Ice Storm
    if(!actor.isCastingNow() && _icestormReuseTimer < System.currentTimeMillis())
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.