Package com.l2jfrozen.gameserver.model.actor.instance

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.sendMessage()


      return;
    }
   
    if (player.isInOlympiadMode() || Olympiad.getInstance().isRegistered(player))
    {
      player.sendMessage("You can't Logout in Olympiad mode.");
      return;
    }
   
    // Prevent player from logging out if they are a festival participant nd it is in progress,
    // otherwise notify party members that the player is not longer a participant.
View Full Code Here


    // otherwise notify party members that the player is not longer a participant.
    if (player.isFestivalParticipant())
    {
      if (SevenSignsFestival.getInstance().isFestivalInitialized())
      {
        player.sendMessage("You cannot Logout while you are a participant in a Festival.");
        return;
      }
     
      L2Party playerParty = player.getParty();
      if (playerParty != null)
View Full Code Here

     
      if(!checkSecurityOnCommand(command)){
       
        //Invalid macro. Refer to the Help file for instructions.
        player.sendPacket(new SystemMessage(SystemMessageId.INVALID_MACRO));
        player.sendMessage("SecurityCheck: not more then 2x ',' or 2x ';' in the same command");
        return;
       
      }
     
    }
View Full Code Here

    if(player == null || !(player.getPet() instanceof L2PetInstance))
      return;

    if (!getClient().getFloodProtectors().getTransaction().tryPerformAction("giveitemtopet"))
    {
      player.sendMessage("You give items to pet too fast.");
      return;
    }

   
    // Alt game - Karma punishment
View Full Code Here

    if(!Config.ALT_GAME_KARMA_PLAYER_CAN_TRADE && player.getKarma() > 0)
      return;

    if(player.getPrivateStoreType() != 0)
    {
      player.sendMessage("Cannot exchange items while trading");
      return;
    }

    if(player.isCastingNow()|| player.isCastingPotionNow())
    {
View Full Code Here

        _requiredSp = SkillTreeTable.getInstance().getSkillCost(player, skill);
      }

      if(counts == 0 && !Config.ALT_GAME_SKILL_LEARN)
      {
        player.sendMessage("You are trying to learn skill that u can't..");
        Util.handleIllegalPlayerAction(player, "Player " + player.getName() + " tried to learn skill that he can't!!!", IllegalPlayerAction.PUNISH_KICK);
        return;
      }

      if(player.getSp() >= _requiredSp)
View Full Code Here

        _requiredSp = s.getSpCost();
      }

      if(counts == 0)
      {
        player.sendMessage("You are trying to learn skill that u can't..");
        Util.handleIllegalPlayerAction(player, "Player " + player.getName() + " tried to learn skill that he can't!!!", IllegalPlayerAction.PUNISH_KICK);
        return;
      }

      if(player.getSp() >= _requiredSp)
View Full Code Here

    else if(_skillType == 2) //pledgeskills TODO: Find appropriate system messages.
    {
      if(!player.isClanLeader())
      {
        // TODO: Find and add system msg
        player.sendMessage("This feature is available only for the clan leader");
        return;
      }

      int itemId = 0;
      int repCost = 100000000;
View Full Code Here

        repCost = s.getRepCost();
      }

      if(counts == 0)
      {
        player.sendMessage("You are trying to learn skill that u can't..");
        Util.handleIllegalPlayerAction(player, "Player " + player.getName() + " tried to learn skill that he can't!!!", IllegalPlayerAction.PUNISH_KICK);
        return;
      }

      if(player.getClan().getReputationScore() >= repCost)
View Full Code Here

    if (player == null)
      return;
   
    if (!player.getAccessLevel().allowTransaction())
    {
      player.sendMessage("Transactions are disable for your Access Level");
      player.sendPacket(ActionFailed.STATIC_PACKET);
      return;
    }
   
    if (player.isTradeDisabled())
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.