Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Player.sendActionFailed()


      activeChar.sendActionFailed();
      return;
    }
    if(target.isPlayer() && (activeChar.isInVehicle() || target.isInVehicle()))
    {
      activeChar.sendActionFailed();
      return;
    }
    if(activeChar.getTarget() != target)
    {
      target.onAction(activeChar, _attackId == 1);
View Full Code Here


      return;
    }
    L2AirShip boat = (L2AirShip) L2VehicleManager.getInstance().getBoat(_id);
    if(boat == null || boat.isMoving) // Не даем слезть с лодки на ходу
    {
      activeChar.sendActionFailed();
      return;
    }
    activeChar.setVehicle(null);
    double angle = Util.convertHeadingToDegree(activeChar.getHeading());
    double radian = Math.toRadians(angle - 90);
View Full Code Here

      return;
    }
    L2PetInstance pet = (L2PetInstance) activeChar.getPet();
    if(pet == null)
    {
      activeChar.sendActionFailed();
      return;
    }
    PetInventory petInventory = pet.getInventory();
    PcInventory playerInventory = activeChar.getInventory();
    L2ItemInstance petItem = petInventory.getItemByObjectId(_objectId);
View Full Code Here

      _log.warning(activeChar.getName() + " requested item obj_id: " + _objectId + " from pet, but its not there.");
      return;
    }
    if(petItem.isEquipped())
    {
      activeChar.sendActionFailed();
      return;
    }
    long finalLoad = petItem.getItem().getWeight() * _amount;
    if(!activeChar.getInventory().validateWeight(finalLoad))
    {
 
View Full Code Here

    {
      return;
    }
    if(activeChar.getDuel() != null)
    {
      activeChar.sendActionFailed();
      return;
    }
    if(activeChar.isAlikeDead())
    {
      activeChar.sendActionFailed();
View Full Code Here

      activeChar.sendActionFailed();
      return;
    }
    if(activeChar.isAlikeDead())
    {
      activeChar.sendActionFailed();
      return;
    }
    if(!activeChar.getTarget().isPlayer())
    {
      activeChar.sendActionFailed();
View Full Code Here

      activeChar.sendActionFailed();
      return;
    }
    if(!activeChar.getTarget().isPlayer())
    {
      activeChar.sendActionFailed();
      return;
    }
    L2Player target = (L2Player) activeChar.getTarget();
    activeChar.sendPacket(new RecipeShopSellList(activeChar, target));
  }
View Full Code Here

    {
      return;
    }
    if(_moveMovement == 0 && (!Config.ALLOW_KEYBOARD_MOVE || activeChar.getReflection().getId() > 0))
    {
      activeChar.sendActionFailed();
      return;
    }
    if(!FloodProtector.tryPerformAction(activeChar, Action.MOVE_TO))
    {
      activeChar.sendActionFailed();
View Full Code Here

      activeChar.sendActionFailed();
      return;
    }
    if(!FloodProtector.tryPerformAction(activeChar, Action.MOVE_TO))
    {
      activeChar.sendActionFailed();
      return;
    }
    if(activeChar.isTeleporting())
    {
      activeChar.sendActionFailed();
View Full Code Here

      activeChar.sendActionFailed();
      return;
    }
    if(activeChar.isTeleporting())
    {
      activeChar.sendActionFailed();
      return;
    }
    if(activeChar.inObserverMode())
    {
      if(activeChar.getOlympiadObserveId() == -1)
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.