Package l2p.gameserver.model

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


            if(plyr != null)
            {
              int newKarma = Integer.parseInt(srok) + plyr.getKarma();
              // update karma
              plyr.setKarma(newKarma);
              plyr.sendMessage("You get karma(" + srok + ") by GM " + activeChar.getName());
              AutoBan.Karma(plyr, Integer.parseInt(srok), msg, activeChar.getName());
              activeChar.sendMessage("You set karma(" + srok + ") " + plyr.getName());
            }
            else if(AutoBan.Karma(player, Integer.parseInt(srok), msg, activeChar.getName()))
            {
View Full Code Here


    player.updatePledgeClass();
    player.updateNobleSkills();
    player.sendPacket(new SkillList(player));
    player.broadcastPacket(new SocialAction(player.getObjectId(), SocialAction.VICTORY));
    player.broadcastUserInfo(true);
    player.sendMessage("Поздравляем, вы стали дворянином");
  }

  public void dialogTW()
  {
    L2Player player = (L2Player) getSelf();
View Full Code Here

        msg.trim();
      }
      L2Player plyr = L2World.getPlayer(player);
      if(plyr != null)
      {
        plyr.sendMessage(new CustomMessage("scripts.commands.admin.AdminBan.YoureBannedByGM", plyr).addString(activeChar.getName()));
        plyr.setAccessLevel(-100);
        AutoBan.Banned(plyr, time, msg, activeChar.getName());
        plyr.logout(false, false, true, true);
        activeChar.sendMessage("You banned " + plyr.getName());
      }
View Full Code Here

  public void changeClanName(String[] args)
  {
    L2Player player = (L2Player) getSelf();
    if(player.getClan() == null)
    {
      player.sendMessage("У вас нет клана.");
      return;
    }
    if(!Util.isMatchingRegexp(args[0], Config.CLAN_NAME_TEMPLATE))
    {
      player.sendPacket(Msg.CLAN_NAME_IS_INCORRECT);
View Full Code Here

      list();
      return;
    }
    if(ClanTable.getInstance().getClanByName(args[0]) != null)
    {
      player.sendMessage("Такое имя клана уже занято.");
      list();
      return;
    }
    if(mOption.price(player, Config.ClanChangeNameId, Config.ClanChangeNameCount))
    {
View Full Code Here

  public void buyClanPoints()
  {
    L2Player player = (L2Player) getSelf();
    if(player.getClan() == null || player.getClan().getLevel() < 5)
    {
      player.sendMessage("У вас нет клана или ваш клан ниже 5го уровня.");
      list();
      return;
    }
    else if(mOption.price(player, Config.ClanPointPriceId, Config.ClanPointPriceCount))
    {
View Full Code Here

  public void buyClanLevel(String[] args)
  {
    L2Player player = (L2Player) getSelf();
    if(args[0].length() > 2)
    {
      player.sendMessage("Не верно указанный уровень.");
      list();
      return;
    }
    int level;
    try
View Full Code Here

    try
    {
      level = Integer.parseInt(args[0]);
      if(level < 1 || level > 11)
      {
        player.sendMessage("Не верно указанный уровень.");
        list();
        return;
      }
    }
    catch(Exception e)
View Full Code Here

        return;
      }
    }
    catch(Exception e)
    {
      player.sendMessage("Не верно указанный уровень.");
      list();
      return;
    }
    if(player.getClan() == null)
    {
View Full Code Here

      list();
      return;
    }
    if(player.getClan() == null)
    {
      player.sendMessage("У вас нет клана.");
      return;
    }
    else if(player.getClan().getLevel() != level - 1)
    {
      player.sendMessage("Для покупки " + level + " уровня клана ваш клан должен быть " + (level - 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.