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

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


        return;

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

    if(activeChar.isInCraftMode())
    {
View Full Code Here


      return;
    }

    if(activeChar.isInCraftMode())
    {
      activeChar.sendMessage("Currently in Craft Mode");
      return;
    }

    RecipeController.getInstance().requestMakeItem(activeChar, _id);
  }
View Full Code Here

      return;

    //Checks The Access and notify requester if requester access it not allowed for that command
    if(!AdminCommandAccessRights.getInstance().hasAccess(_command, activeChar.getAccessLevel()))
    {
      activeChar.sendMessage("You don't have the access right to use this command!");
      _log.log(Level.WARNING, "Character " + activeChar.getName() + " tried to use admin command " + _command + ", but doesn't have access to it!");
      return;
    }

    //gets the Handler of That Commmand
View Full Code Here

     
      ach.useAdminCommand(_command, activeChar);
    }
    else
    {
      activeChar.sendMessage("The command " + _command + " doesn't exists!");
      _log.log(Level.WARNING, "No handler registered for admin command '" + _command + "'");
      return;
    }
  }
View Full Code Here

        if (item.getItem() instanceof L2Weapon && ((L2Weapon) item.getItem()).getItemType() == L2WeaponType.BOW && !item.isCupidBow())
        {
         
          if (Config.DISABLE_BOW_CLASSES.contains(activeChar.getClassId().getId()))
          {
            activeChar.sendMessage("This item can not be equipped by your class");
            activeChar.sendPacket(ActionFailed.STATIC_PACKET);
            return;
          }
         
        }
View Full Code Here

      IVoicedCommandHandler ach = VoicedCommandHandler.getInstance().getVoicedCommandHandler(_command.substring(7));

      if (ach == null)
      {
      activeChar.sendMessage("The command " + command.substring(7) + " does not exist!");

      _log.info("No handler registered for command '" + _command + "'");
      return;
      }
        }
View Full Code Here

      _baseLvl = s.getBaseLevel();
    }

    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

      return;

    if(member.getPledgeType() == L2Clan.SUBUNIT_ACADEMY)
    {
      // also checked from client side
      activeChar.sendMessage("You cannot change academy member grade");
      return;
    }

    member.setPowerGrade(_powerGrade);
    clan.broadcastClanStatus();
View Full Code Here

    if(item == null)
      return;

    if(activeChar.getLevel() < 46)
    {
      activeChar.sendMessage("You have to be level 46 in order to augment an item");
      return;
    }

    // check if the item is augmentable
    int itemGrade = item.getItem().getItemGrade();
View Full Code Here

    if(player == null)
      return;

    if(!Config.ALLOW_WEAR)
    {
      player.sendMessage("Item wear is disabled");
      Util.handleIllegalPlayerAction(player, "Warning!! Character " + player.getName() + " of account " + player.getAccountName() + " sent a false BuyList list_id.", Config.DEFAULT_PUNISH);
    }

    // If Alternate rule Karma punishment is set to true, forbid Wear to player with Karma
    if(!Config.ALT_GAME_KARMA_PLAYER_CAN_SHOP && player.getKarma() > 0)
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.