Package l2p.gameserver.model

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


    }
    if(activeChar.inObserverMode())
    {
      if(activeChar.getOlympiadObserveId() == -1)
      {
        activeChar.sendActionFailed();
      }
      else
      {
        activeChar.sendPacket(new CharMoveToLocation(activeChar.getObjectId(), _originLoc, _targetLoc));
      }
View Full Code Here


      }
      return;
    }
    if(activeChar.isOutOfControl() && activeChar.getOlympiadGameId() == -1)
    {
      activeChar.sendActionFailed();
      return;
    }
    if(activeChar.getTeleMode() > 0)
    {
      if(activeChar.getTeleMode() == 1)
View Full Code Here

    {
      if(activeChar.getTeleMode() == 1)
      {
        activeChar.setTeleMode(0);
      }
      activeChar.sendActionFailed();
      activeChar.teleToLocation(_targetLoc);
      return;
    }
    int water_z = activeChar.getWaterZ();
    if(water_z != Integer.MIN_VALUE && _targetLoc.z > water_z)
View Full Code Here

    if(activeChar.isInVehicle())
    {
      // Чтобы не падать с летающих кораблей.
      if(activeChar.isAirShip())
      {
        activeChar.sendActionFailed();
        return;
      }
      if(activeChar.getDistance(_targetLoc) > 400)
      {
        activeChar.sendActionFailed();
View Full Code Here

        activeChar.sendActionFailed();
        return;
      }
      if(activeChar.getDistance(_targetLoc) > 400)
      {
        activeChar.sendActionFailed();
        return;
      }
      activeChar.setVehicle(null);
      activeChar.setLastClientPosition(null);
      activeChar.setLastServerPosition(null);
View Full Code Here

      activeChar.setLastClientPosition(null);
      activeChar.setLastServerPosition(null);
      activeChar.setLoc(_targetLoc.changeZ(64).correctGeoZ());
      activeChar.validateLocation(1);
      activeChar.stopMove(false);
      activeChar.sendActionFailed();
      return;
    }
    ThreadPoolManager.getInstance().executePathfind(new StartMoveTask(activeChar, _targetLoc, _moveMovement != 0));
  }
View Full Code Here

    {
      return;
    }
    if(activeChar.isLogoutStarted())
    {
      activeChar.sendActionFailed();
      return;
    }
    if(activeChar.getObserverMode() == 1)
    {
      activeChar.appearObserverMode();
View Full Code Here

      activeChar.returnFromObserverMode();
      return;
    }
    if(!activeChar.isTeleporting())
    {
      activeChar.sendActionFailed();
      return;
    }
    activeChar.onTeleported();
  }
}
View Full Code Here

    {
      return;
    }
    if(_clanId < 10000000)
    {
      activeChar.sendActionFailed();
      return;
    }
    L2Clan clan = ClanTable.getInstance().getClan(_clanId);
    if(clan == null)
    {
View Full Code Here

    L2Clan clan = ClanTable.getInstance().getClan(_clanId);
    if(clan == null)
    {
      //Util.handleIllegalPlayerAction(activeChar, "RequestPledgeInfo[40]", "Clan data for clanId " + _clanId + " is missing", 1);
      //_log.warning("Host " + getClient().getIpAddr() + " possibly sends fake packets. activeChar: " + activeChar);
      activeChar.sendActionFailed();
      return;
    }
    activeChar.sendPacket(new PledgeInfo(clan));
  }
}
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.