Package l2p.gameserver.model

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


        }
        else
        {
          activeChar.sendMessage(new CustomMessage("common.ChatBannedPermanently", activeChar));
        }
        activeChar.sendActionFailed();
        return;
      }
      activeChar.updateNoChannel(0);
    }
    if(globalchat)
View Full Code Here


      if(Config.MAT_REPLACE)
      {
        if(Config.containsMat(_text))
        {
          _text = Config.MAT_REPLACE_STRING;
          activeChar.sendActionFailed();
        }
      }
      else if(Config.MAT_BANCHAT && Config.containsMat(_text))
      {
        activeChar.sendMessage("You are banned in all chats. Time to unban: " + Config.UNCHATBANTIME * 60 + "sec.");
View Full Code Here

      else if(Config.MAT_BANCHAT && Config.containsMat(_text))
      {
        activeChar.sendMessage("You are banned in all chats. Time to unban: " + Config.UNCHATBANTIME * 60 + "sec.");
        Log.add("" + activeChar + ": " + _text, "abuse");
        activeChar.updateNoChannel(Config.UNCHATBANTIME * 60000);
        activeChar.sendActionFailed();
        return;
      }
    }
    // Кэширование линков предметов
    String links[] = _text.split("\u0008");
View Full Code Here

      return;
    }
    L2Clan leaderClan = activeChar.getClan();
    if(leaderClan == null)
    {
      activeChar.sendActionFailed();
      return;
    }
    L2Alliance alliance = leaderClan.getAlliance();
    if(alliance == null)
    {
View Full Code Here

    clan = ClanTable.getInstance().getClanByName(_clanName);
    if(clan != null)
    {
      if(!alliance.isMember(clan.getClanId()))
      {
        activeChar.sendActionFailed();
        return;
      }
      if(alliance.getLeader().equals(clan))
      {
        activeChar.sendPacket(Msg.YOU_HAVE_FAILED_TO_WITHDRAW_FROM_THE_ALLIANCE);
View Full Code Here

    {
      return;
    }
    if(activeChar.getDuel() != null)
    {
      activeChar.sendActionFailed();
      return;
    }
    L2Player target = (L2Player) activeChar.getVisibleObject(_manufacturerObjectId);
    if(target == null || target.getPrivateStoreType() != L2Player.STORE_PRIVATE_MANUFACTURE)
    {
View Full Code Here

    {
      return;
    }
    if(activeChar.isOutOfControl())
    {
      activeChar.sendActionFailed();
      return;
    }
    if(!activeChar.getPlayerAccess().CanAttack)
    {
      activeChar.sendActionFailed();
View Full Code Here

      activeChar.sendActionFailed();
      return;
    }
    if(!activeChar.getPlayerAccess().CanAttack)
    {
      activeChar.sendActionFailed();
      return;
    }
    L2Object target = activeChar.getVisibleObject(_objectId);
    if(target == null && ((target = L2ObjectsStorage.getItemByObjId(_objectId)) == null || !activeChar.isInRange(target, 1000)))
    {
View Full Code Here

      return;
    }
    L2Object target = activeChar.getVisibleObject(_objectId);
    if(target == null && ((target = L2ObjectsStorage.getItemByObjId(_objectId)) == null || !activeChar.isInRange(target, 1000)))
    {
      activeChar.sendActionFailed();
      return;
    }
    if(activeChar.getAggressionTarget() != null && activeChar.getAggressionTarget() != target)
    {
      activeChar.sendActionFailed();
View Full Code Here

      activeChar.sendActionFailed();
      return;
    }
    if(activeChar.getAggressionTarget() != null && activeChar.getAggressionTarget() != target)
    {
      activeChar.sendActionFailed();
      return;
    }
    if(target.isPlayer() && (activeChar.isInVehicle() || target.isInVehicle()))
    {
      activeChar.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.