Examples of doAttack()


Examples of l2p.gameserver.model.L2Playable.doAttack()

      return;
    }
    if(!checkRange)
    {
      clientStopMoving();
      actor.doAttack(attack_target);
      return;
    }
    int range = actor.getPhysicalAttackRange();
    if(range < 10)
    {
View Full Code Here

Examples of l2p.gameserver.model.L2Playable.doAttack()

        onAttackFail();
        actor.sendActionFailed();
        return;
      }
      clientStopMoving(false);
      actor.doAttack(attack_target);
    }
    else if(!_dontMove)
    {
      ThreadPoolManager.getInstance().executePathfind(new ExecuteFollow(actor, attack_target, range - 20));
    }
View Full Code Here

Examples of l2p.gameserver.model.instances.L2NpcInstance.doAttack()

        if(actor.getRealDistance(temp_attack_target) <= actor.getPhysicalAttackRange() + 40 && GeoEngine.canSeeTarget(actor, temp_attack_target, false))
        {
          clientStopMoving();
          _pathfind_fails = 0;
          actor.setAttackTimeout(getMaxAttackTimeout() + System.currentTimeMillis());
          actor.doAttack(temp_attack_target);
          return maybeNextTask(currentTask);
        }
        if(actor.isMovementDisabled() || !getIsMobile())
        {
          return true;
View Full Code Here

Examples of lineage2.gameserver.model.FakePlayer.doAttack()

      return;
    }
    if (!checkRange)
    {
      clientStopMoving();
      actor.doAttack(attack_target);
      return;
    }
    int range = actor.getPhysicalAttackRange();
    if (range < 10)
    {
View Full Code Here

Examples of lineage2.gameserver.model.FakePlayer.doAttack()

      {
        setIntention(CtrlIntention.AI_INTENTION_FOLLOW);
        return;
      }
      clientStopMoving(false);
      actor.doAttack(attack_target);
    }
  }
 
  /**
   * Method getActor.
View Full Code Here

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

      return;
    }
    if (!checkRange)
    {
      clientStopMoving();
      actor.doAttack(attack_target);
      return;
    }
    int range = actor.getPhysicalAttackRange();
    if (range < 10)
    {
View Full Code Here

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

        setIntention(AI_INTENTION_ACTIVE);
        actor.sendActionFailed();
        return;
      }
      clientStopMoving(false);
      actor.doAttack(attack_target);
    }
    else if (!_dontMove)
    {
      ThreadPoolManager.getInstance().execute(new ExecuteFollow(attack_target, range - 20));
    }
View Full Code Here

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

        if ((actor.getRealDistance3D(target) <= (actor.getPhysicalAttackRange() + 40)) && GeoEngine.canSeeTarget(actor, target, false))
        {
          clientStopMoving();
          _pathfindFails = 0;
          setAttackTimeout(getMaxAttackTimeout() + System.currentTimeMillis());
          actor.doAttack(target);
          return maybeNextTask(currentTask);
        }
        if (actor.isMovementDisabled() || !getIsMobile())
        {
          return 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.