Package lineage2.gameserver.model

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


      return;
    }
    Request request = activeChar.getRequest();
    if ((request == null) || !request.isTypeOf(L2RequestType.TRADE_REQUEST))
    {
      activeChar.sendActionFailed();
      return;
    }
    if (!request.isInProgress())
    {
      request.cancel();
View Full Code Here


      return;
    }
    if (!request.isInProgress())
    {
      request.cancel();
      activeChar.sendActionFailed();
      return;
    }
    if (activeChar.isOutOfControl())
    {
      request.cancel();
View Full Code Here

      return;
    }
    if (activeChar.isOutOfControl())
    {
      request.cancel();
      activeChar.sendActionFailed();
      return;
    }
    Player requestor = request.getRequestor();
    if (requestor == null)
    {
View Full Code Here

    {
      return;
    }
    if (activeChar.isOutOfControl())
    {
      activeChar.sendActionFailed();
      return;
    }
    if (activeChar.isProcessingRequest())
    {
      activeChar.sendPacket(Msg.WAITING_FOR_ANOTHER_REPLY);
View Full Code Here

      return;
    }
    Request request = parthner1.getRequest();
    if ((request == null) || !request.isTypeOf(L2RequestType.TRADE))
    {
      parthner1.sendActionFailed();
      return;
    }
    if (!request.isInProgress())
    {
      request.cancel();
View Full Code Here

    }
    if (!request.isInProgress())
    {
      request.cancel();
      parthner1.sendPacket(SendTradeDone.FAIL);
      parthner1.sendActionFailed();
      return;
    }
    if (parthner1.isOutOfControl())
    {
      request.cancel();
View Full Code Here

    }
    if (parthner1.isOutOfControl())
    {
      request.cancel();
      parthner1.sendPacket(SendTradeDone.FAIL);
      parthner1.sendActionFailed();
      return;
    }
    Player parthner2 = request.getOtherPlayer(parthner1);
    if (parthner2 == null)
    {
View Full Code Here

    }
    FlagItemAttachment attachment = actor.getActiveWeaponFlagAttachment();
    if ((attachment != null) && !attachment.canAttack(actor))
    {
      setIntention(AI_INTENTION_ACTIVE);
      actor.sendActionFailed();
      return;
    }
    if (actor.isFrozen())
    {
      setIntention(AI_INTENTION_ACTIVE);
View Full Code Here

    Player actor = getActor();
    FlagItemAttachment attachment = actor.getActiveWeaponFlagAttachment();
    if ((attachment != null) && !attachment.canCast(actor, _skill))
    {
      setIntention(AI_INTENTION_ACTIVE);
      actor.sendActionFailed();
      return;
    }
    if (actor.isFrozen())
    {
      setIntention(AI_INTENTION_ACTIVE);
View Full Code Here

  public void Attack(GameObject target, boolean forceUse, boolean dontMove)
  {
    Player actor = getActor();
    if (actor.isInFlyingTransform())
    {
      actor.sendActionFailed();
      return;
    }
    if ((System.currentTimeMillis() - actor.getLastAttackPacket()) < Config.ATTACK_PACKET_DELAY)
    {
      actor.sendActionFailed();
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.