Examples of doCast()


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

      try
      {
        int var_gmspeed = Integer.parseInt(activeChar.getVar("gm_gmspeed"));
        if ((var_gmspeed >= 1) && (var_gmspeed <= 4))
        {
          activeChar.doCast(SkillTable.getInstance().getInfo(7029, var_gmspeed), activeChar, true);
        }
      }
      catch (Exception E)
      {
      }
View Full Code Here

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

  {
    if ((System.currentTimeMillis() - _lastFire) > 60000L)
    {
      final NpcInstance actor = getActor();
      Functions.npcSayCustomMessage(actor, "scripts.ai.Gargos.fire");
      actor.doCast(SkillTable.getInstance().getInfo(5705, 1), actor, false);
      _lastFire = System.currentTimeMillis();
      return true;
    }
    return false;
  }
View Full Code Here

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

    {
      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

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

    final List<Player> players = World.getAroundPlayers(actor, TAR_BEETLE_SEARCH_RADIUS, 200);
    if ((players == null) || (players.size() < 1))
    {
      return false;
    }
    actor.doCast(SkillTable.getInstance().getInfo(6142, Rnd.get(1, 3)), players.get(Rnd.get(players.size())), false);
    return true;
  }
 
  /**
   * Method onEvtDead.
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()) && Rnd.chance(_iceballChance))
    {
      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()) && Rnd.chance(_summonChance))
    {
View Full Code Here

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

        _iceballReuseTimer = System.currentTimeMillis() + (_iceballReuseDelay * 1000L);
      }
    }
    if (!actor.isCastingNow() && (_summonReuseTimer < System.currentTimeMillis()) && Rnd.chance(_summonChance))
    {
      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() && !actor.isMoving && (_deathsentenceReuseTimer < System.currentTimeMillis()) && Rnd.chance(_deathsentenceChance))
    {
      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()) && Rnd.chance(_deathsentenceChance))
    {
      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()) && Rnd.chance(_angerChance))
    {
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()) && Rnd.chance(_angerChance))
    {
      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, 300000);
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.