Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.GameObject.sendMessage()


      player.sendMessage("To register in the tournament you have to leave the command channel.");
      return;
    }
    if (leaderList.size() >= _groupsLimit)
    {
      player.sendMessage("The tournament reached the limit number.");
      return;
    }
    final List<Player> party = player.getParty().getPartyMembers();
    final String[] abuseReason =
    {
View Full Code Here


    for (Player eachmember : party)
    {
      int abuseId = checkPlayer(eachmember, false);
      if (abuseId != 0)
      {
        player.sendMessage("Player " + eachmember.getName() + " " + abuseReason[abuseId - 1]);
        return;
      }
    }
    leaderList.add(player.getRef());
    player.getParty().broadcastMessageToPartyMembers("Ва�?а группа вне�?ена в �?пи�?ок ожидани�?. �?ожалуй�?та, не реги�?трируйте�?�? в других ивентах и не уча�?твуйте в ду�?л�?х до начала турнира. �?олный �?пи�?ок требований турнира в Community Board (Alt+B)");
View Full Code Here

    {
      final int rndindex = Rnd.get(leaderList.size());
      final Player expelled = leaderList.remove(rndindex).get();
      if (expelled != null)
      {
        expelled.sendMessage("�?ри формировании �?пи�?ка уча�?тников турнира ва�?а группа была от�?е�?на. �?рино�?им извинени�?, ��опробуйте в �?леду�?щий раз.");
      }
    }
    for (int i = 0; i < leaderList.size(); i++)
    {
      int rndindex = Rnd.get(leaderList.size());
View Full Code Here

      show("Warehouse Enabled", player);
      return;
    }
    if (player.getClan() == null)
    {
      player.sendMessage("You must be in clan.");
      return;
    }
    ItemTemplate item = ItemHolder.getInstance().getTemplate(Config.SERVICES_EXPAND_CWH_ITEM);
    String out = "";
    out += "<html><body>Expand Clan Warehouse Slots";
View Full Code Here

    {
      return;
    }
    if (player.getSubLevel() < 75)
    {
      player.sendMessage("You must make sub class level 75 first.");
      return;
    }
    if (player.getInventory().destroyItemByItemId(Config.SERVICES_NOBLESS_SELL_ITEM, Config.SERVICES_NOBLESS_SELL_PRICE))
    {
      becomeNoble();
View Full Code Here

          Player owner = target.getPlayer();
          if (owner != null)
          {
            if (activeChar == target)
            {
              owner.sendMessage(new CustomMessage("YOU_HAVE_RESTORED_S1_HP_OF_YOUR_PET", owner).addNumber(Math.round(addToHp)));
            }
            else if (owner == activeChar)
            {
              owner.sendMessage(new CustomMessage("YOU_HAVE_RESTORED_S1_HP_OF_YOUR_PET", owner).addNumber(Math.round(addToHp)));
            }
View Full Code Here

            {
              owner.sendMessage(new CustomMessage("YOU_HAVE_RESTORED_S1_HP_OF_YOUR_PET", owner).addNumber(Math.round(addToHp)));
            }
            else if (owner == activeChar)
            {
              owner.sendMessage(new CustomMessage("YOU_HAVE_RESTORED_S1_HP_OF_YOUR_PET", owner).addNumber(Math.round(addToHp)));
            }
            else
            {
              owner.sendMessage(new CustomMessage("S1_HAS_BEEN_RESTORED_S2_HP_OF_YOUR_PET", owner).addString(activeChar.getName()).addNumber(Math.round(addToHp)));
            }
View Full Code Here

            {
              owner.sendMessage(new CustomMessage("YOU_HAVE_RESTORED_S1_HP_OF_YOUR_PET", owner).addNumber(Math.round(addToHp)));
            }
            else
            {
              owner.sendMessage(new CustomMessage("S1_HAS_BEEN_RESTORED_S2_HP_OF_YOUR_PET", owner).addString(activeChar.getName()).addNumber(Math.round(addToHp)));
            }
          }
        }
        getEffects(activeChar, target, getActivateRate() > 0, false);
      }
View Full Code Here

      _log.info("Event 'Last Hero' activated.");
      Announcements.getInstance().announceByCustomMessage("scripts.events.LastHero.AnnounceEventStarted", null);
    }
    else
    {
      player.sendMessage("Event 'Last Hero' already active.");
    }
    _active = true;
    show("admin/events.htm", player);
  }
 
View Full Code Here

      _log.info("Event 'Last Hero' deactivated.");
      Announcements.getInstance().announceByCustomMessage("scripts.events.LastHero.AnnounceEventStoped", null);
    }
    else
    {
      player.sendMessage("Event 'LastHero' not active.");
    }
    _active = false;
    show("admin/events.htm", player);
  }
 
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.