Package lineage2.gameserver.model

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


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

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

        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

        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.