Package lineage2.gameserver.model

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


    Creature target = getAttackTarget();
    if ((_skill.getSkillType() == SkillType.CRAFT) || _skill.isToggle())
    {
      if (_skill.checkCondition(actor, target, _forceUse, _dontMove, true))
      {
        actor.doCast(_skill, target, _forceUse);
      }
      return;
    }
    if ((target == null) || ((target.isDead() != _skill.getCorpse()) && !_skill.isNotTargetAoE()))
    {
View Full Code Here


        clearNextAction();
      }
      clientStopMoving();
      if (_skill.checkCondition(actor, target, _forceUse, _dontMove, true))
      {
        actor.doCast(_skill, target, _forceUse);
      }
      else
      {
        setNextIntention();
        if (getIntention() == CtrlIntention.AI_INTENTION_ATTACK)
View Full Code Here

        clearNextAction();
      }
      if (_skill.checkCondition(actor, target, _forceUse, _dontMove, true))
      {
        clientStopMoving(false);
        actor.doCast(_skill, target, _forceUse);
      }
      else
      {
        setNextIntention();
        if (getIntention() == CtrlIntention.AI_INTENTION_ATTACK)
View Full Code Here

    {
      player.removeSkill(enchant4Skill, false);
    }
    if (unequipeSkill != null)
    {
      player.doCast(unequipeSkill, player, true);
    }
    if ((itemSkills.length > 0) || (enchant4Skill != null))
    {
      player.sendSkillList();
      player.updateStats();
View Full Code Here

      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

      }
      Creature target = skill.getAimingTarget(activeChar, activeChar.getTarget());
      activeChar.setGroundSkillLoc(null);
      if(activeChar.isStunned() && skill.isCastOverStun())
      {
        activeChar.doCast(skill, target, _ctrlPressed);
        return;
      }
      activeChar.getAI().Cast(skill, target, _ctrlPressed, _shiftPressed);
    }
    else
View Full Code Here

  {
    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

    {
      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

    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

    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.