Package com.l2jfrozen.gameserver.network.serverpackets

Examples of com.l2jfrozen.gameserver.network.serverpackets.CreatureSay


  public void anonce(String text, int type)
  {
    if(type == 1)
    {
      CreatureSay cs = new CreatureSay(0, 1, "Journal", text);
      for(String clanName : getRegisteredClans())
      {
        L2Clan clan = ClanTable.getInstance().getClanByName(clanName);
        for(String playerName : getRegisteredPlayers(clan))
        {
          L2PcInstance cha = L2World.getInstance().getPlayer(playerName);
          if(cha != null)
          {
            cha.sendPacket(cs);
          }
        }
      }
    }
    else
    {
      CreatureSay cs = new CreatureSay(0, 1, "Journal", text);
      /* L2MapRegion region = MapRegionManager.getInstance().getRegion(53508, -93776, -1584); */
      for(L2PcInstance player : L2World.getInstance().getAllPlayers())
      {
        if /*
           * (region == MapRegionManager.getInstance().getRegion(player.getX(), player.getY(), player.getZ()) &&
View Full Code Here


    for (L2PcInstance player : players)
    player.setIsParalyzed(true);
    for (L2PcInstance player : players)
    player.setTeam(1);
    for (L2PcInstance player : players
    player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "LMS: ", "In 1 minute you will be unparalyzed and you will start fighting.The last one who survives is the winner"));
    for (L2PcInstance player : players
    if(player.getParty() != null)
    {
      L2Party party = player.getParty();
      party.removePartyMember(player);
View Full Code Here

  public static void prepare()
  {
    for (L2PcInstance player : players)
    player.setInLMS(true);
    for (L2PcInstance player : players)
    player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "LMS:", "In 2 minutes you will be teleported to the fighting area."));
    Announcements.getInstance().announceToAll("LMS: Event will start in 2 minutes!",true);
  }
View Full Code Here

         for(L2PcInstance player : players)
         player.setIsParalyzed(false);
         for (L2PcInstance player : players)
          player.setInLMS(true);
         for (L2PcInstance player : players)
         player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "LMS:", "Event started! Go kill your enemies!"));
         battleTime(Config.LMS_BATTLE_TIME * 60 * 1000);
         ending();
       }
       else
         {
View Full Code Here

        teleAllPlayers();
        battleWait(1 * 60 * 1000);
        for(L2PcInstance player : players)
        player.setIsParalyzed(false);
        for (L2PcInstance player : players)
        player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "LMS:", "Event started! Go kill your enemies!"));
        battleTime(Config.LMS_BATTLE_TIME * 60 * 1000);
        ending();
        }
        else
        {
View Full Code Here

            {
            case 3600: // 1 hour left
              if (isActive())
              {
                for (L2PcInstance player : players)
                player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "LMS:", "You will be teleported to the fighting area in " + seconds / 60 / 60 +" hour(s)."));
              }
              break;
            case 1800: // 30 minutes left
            case 900: // 15 minutes left
            case 600: //  10 minutes left
            case 300: // 5 minutes left
            case 60: // 1 minute left
              if (isActive())
              {
                for (L2PcInstance player : players)
                player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "LMS:", "You will be teleported to the fighting area in " + seconds / 60 +" minute(s)."));
              }
              break;
            case 30: // 30 seconds left
            case 10: // 10 seconds left
            case 3: // 3 seconds left
            case 2: // 2 seconds left
            case 1: // 1 seconds left
              if (isActive())
                for (L2PcInstance player : players)
                player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "LMS:", "You will be teleported to the fighting area in " + seconds  +" second(s)."));
              break;
            }
          }

          long startOneSecondWaiterStartTime = System.currentTimeMillis();
View Full Code Here

            {
            case 3600: // 1 hour left
              if (isActive())
              {
                for (L2PcInstance player : players)
                player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "LMS: ", "In " + seconds / 60 / 60 + " hour(s) you will be unparalyzed and you will start fighting.The last one who survives is the winner"));
              }
              break;
            case 1800: // 30 minutes left
            case 900: // 15 minutes left
            case 600: //  10 minutes left
            case 300: // 5 minutes left
            case 60: // 1 minute left
              if (isActive())
              {
                for (L2PcInstance player : players)
                player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "LMS: ", "In " + seconds / 60 + " minute(s) you will be unparalyzed and you will start fighting.The last one who survives is the winner"));
              }
              break;
            case 30: // 30 seconds left
            case 10: // 10 seconds left
            case 3: // 3 seconds left
            case 2: // 2 seconds left
            case 1: // 1 seconds left
              if (isActive())
                for (L2PcInstance player : players)
                player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "LMS: ", "In " + seconds + " second(s) you will be unparalyzed and you will start fighting.The last one who survives is the winner"));
              break;
            }
          }

          long startOneSecondWaiterStartTime = System.currentTimeMillis();
View Full Code Here

            {
            case 3600: // 1 hour left
              if (isActive())
              {
                for (L2PcInstance player : players)
                player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "LMS:", "Event ends in " + seconds / 60 / 60 +" hour(s)."));
                //announcewinnerDiscon();
              }
              break;
            case 1800: // 30 minutes left
            case 900: // 15 minutes left
            case 600: //  10 minutes left
            case 300: // 5 minutes left
              if (isActive())
              {
                for (L2PcInstance player : players)
                player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "LMS:", "Event ends in " + seconds / 60 +" minute(s)."));
                //announcewinnerDiscon();
              }
              break;
            case 60: // 1 minute left
              if (isActive())
              {
                for (L2PcInstance player : players)
                player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "LMS:", "Event ends in " + seconds / 60 +" minute(s)."));
                //announcewinnerDiscon();
              }
              break;
            case 30: // 30 seconds left
            case 10: // 10 seconds left
            case 3: // 3 seconds left
            case 2: // 2 seconds left
            case 1: // 1 seconds left
              if (isActive())
                for (L2PcInstance player : players)
                player.sendPacket(new CreatureSay(1, Say2.HERO_VOICE, "LMS:", "Event ends in " + seconds  +" second(s)."));
                  announcewinnerDiscon();
              break;
            }
          }
View Full Code Here

       
        if(!blocked)
        {
          if(!receiver.getMessageRefusal())
          {
            CreatureSay cs = new CreatureSay(activeChar.getObjectId(), Say2.TELL, activeChar.getName(), ar3);

            receiver.sendPacket(cs);
            cs = null;
            activeChar.sendPacket(new CreatureSay(activeChar.getObjectId(), Say2.TELL, "->" + receiver.getName(), ar3));
            htmlCode.append("Message Sent<br><button value=\"Back\" action=\"bypass _bbsloc;playerinfo;" + receiver.getName() + "\" width=40 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\">");
            htmlCode.append("</td></tr></table></body></html>");
            separateAndSend(htmlCode.toString(), activeChar);
          }
          else
View Full Code Here

  public void anonce(String text, int type)
  {
    if(type == 1)
    {
      CreatureSay cs = new CreatureSay(0, 1, "Journal", text);
      for(String clanName : getRegisteredClans())
      {
        L2Clan clan = ClanTable.getInstance().getClanByName(clanName);
        for(String playerName : getRegisteredPlayers(clan))
        {
          L2PcInstance cha = L2World.getInstance().getPlayer(playerName);
          if(cha != null)
          {
            cha.sendPacket(cs);
          }
        }
      }
    }
    else
    {
      CreatureSay cs = new CreatureSay(0, 1, "Journal", text);
      //L2MapRegion region = MapRegionManager.getInstance().getRegion(88404, -21821, -2276);
      for(L2PcInstance player : L2World.getInstance().getAllPlayers())
      {
        if /*(region == MapRegionManager.getInstance().getRegion(player.getX(), player.getY(), player.getZ())
            && */(player.getInstanceId() == 0/*)*/)
 
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.network.serverpackets.CreatureSay

Copyright © 2018 www.massapicom. 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.