Package l2p.gameserver.model

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


      player.sendMessage("У вас нет клана.");
      return;
    }
    else if(player.getClan().getLevel() != level - 1)
    {
      player.sendMessage("Для покупки " + level + " уровня клана ваш клан должен быть " + (level - 1) + " уровня.");
      list();
      return;
    }
    AllowedLvl allowedLvl = allowedLvls.get(level);
    if(allowedLvl != null)
View Full Code Here


        }
      }
    }
    else
    {
      player.sendMessage(level + "й уровень клана не продается.");
    }
    list();
  }

  public void onLoad()
View Full Code Here

      try
      {
        String name = st.nextToken();
        if(player.schemes.size() >= buffer_max_schemes)
        {
          player.sendMessage("Максимальное количество схем: " + buffer_max_schemes);
          return;
        }
        if(!Util.isMatchingRegexp(name, Config.CNAME_TEMPLATE))
        {
          player.sendMessage("Название должно состоять только из английских букв.");
View Full Code Here

          player.sendMessage("Максимальное количество схем: " + buffer_max_schemes);
          return;
        }
        if(!Util.isMatchingRegexp(name, Config.CNAME_TEMPLATE))
        {
          player.sendMessage("Название должно состоять только из английских букв.");
          return;
        }
        if(player.schemes.size() > 0)
        {
          for(OneScheme oneScheme : player.schemes)
View Full Code Here

        {
          for(OneScheme oneScheme : player.schemes)
          {
            if(oneScheme.getName().equals(name))
            {
              player.sendMessage("Схема с таким именем уже существует.");
              return;
            }
          }
        }
        player.schemes.add(new OneScheme(name));
View Full Code Here

        player.schemes.add(new OneScheme(name));
        player.setVar("Buf_" + name, "");
      }
      catch(Exception e)
      {
        player.sendMessage("Введите имя схемы.");
      }
      Community.getInstance().show(objectId, showBuffer(objectId, null));
    }
    else if(command.startsWith("_bbsbaffer_select_scheme"))
    {
View Full Code Here

            }
            oneScheme.buffs.add(getBuff(id));
          }
          else
          {
            player.sendMessage("Максимальное количество баффов в схеме: " + buffer_max_buffs);
          }
        }
        else if(del)
        {
          if(oneScheme != null)
View Full Code Here

      show("Сервис отключен.", player);
      return;
    }
    if(player.getInventoryLimit() >= Config.SERVICES_EXPAND_INVENTORY_MAX)
    {
      player.sendMessage("Already max count.");
      return;
    }
    L2Item item = ItemTable.getInstance().getTemplate(Config.SERVICES_EXPAND_INVENTORY_ITEM);
    L2ItemInstance pay = player.getInventory().getItemByItemId(item.getItemId());
    if(pay != null && pay.getCount() >= Config.SERVICES_EXPAND_INVENTORY_PRICE)
View Full Code Here

    if(pay != null && pay.getCount() >= Config.SERVICES_EXPAND_INVENTORY_PRICE)
    {
      player.getInventory().destroyItem(pay, Config.SERVICES_EXPAND_INVENTORY_PRICE, true);
      player.setExpandInventory(player.getExpandInventory() + 1);
      player.setVar("ExpandInventory", String.valueOf(player.getExpandInventory()));
      player.sendMessage("Inventory capacity is now " + player.getInventoryLimit());
    }
    else if(Config.SERVICES_EXPAND_INVENTORY_ITEM == 57)
    {
      player.sendPacket(Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);
    }
View Full Code Here

      boolean allowTeleport = false;
      String coords = command.substring(18).trim();
      // player can not teleport in frog transformation _194_SevenSignContractOfMammon
      if (player.getTransformation() == 111)
      {
        player.sendMessage("Вы не можете телепортироватся в этой трансформации.");
        allowTeleport = false;
      }
      else if(_serverTeleportPoints.contains(coords))
      {
        allowTeleport = true;
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.