Package com.l2jfrozen.gameserver.network.serverpackets

Examples of com.l2jfrozen.gameserver.network.serverpackets.SystemMessage.addString()


        SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);

        if(plyr != null)
        {
          plyr.logout();
          sm.addString("You kicked " + plyr.getName() + " from the game.");
        }
        else
        {
          sm.addString("Player " + player + " was not found in the game.");
        }
View Full Code Here


          plyr.logout();
          sm.addString("You kicked " + plyr.getName() + " from the game.");
        }
        else
        {
          sm.addString("Player " + player + " was not found in the game.");
        }

        activeChar.sendPacket(sm);

        sm = null;
View Full Code Here

        SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);

        if(acc_name.length() > 0)
        {
          LoginServerThread.getInstance().sendAccessLevel(acc_name, banLevel);
          sm.addString("Account Access Level for " + player + " set to " + banLevel + ".");
        }
        else
        {
          sm.addString("Couldn't find player: " + player + ".");
        }
View Full Code Here

          LoginServerThread.getInstance().sendAccessLevel(acc_name, banLevel);
          sm.addString("Account Access Level for " + player + " set to " + banLevel + ".");
        }
        else
        {
          sm.addString("Couldn't find player: " + player + ".");
        }

        activeChar.sendPacket(sm);
        sm = null;
        acc_name = null;
View Full Code Here

        if(!Formulas.getInstance().calcBuffSuccess(target, skill))
        {
          if(player!=null)
          {
            SystemMessage sm = new SystemMessage(SystemMessageId.S1_WAS_UNAFFECTED_BY_S2);
            sm.addString(target.getName());
            sm.addSkillName(skill.getDisplayId());
            activeChar.sendPacket(sm);
          }
          continue;
        }
View Full Code Here

      su.addAttribute(StatusUpdate.CUR_HP, (int) target.getCurrentHp());
      target.sendPacket(su);
      su = null;

      SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
      sm.addString("HP of the party has been balanced.");
      target.sendPacket(sm);
      sm = null;

    }
    target = null;
View Full Code Here

   
    SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
    L2PcInstance player = (L2PcInstance) activeChar;
   
    if (castle == null || castle.getCastleId() <= 0)
      sm.addString("You must be on castle ground to place a flag");
    else if (!castle.getSiege().getIsInProgress())
      sm.addString("You can only place a flag during a siege.");
    else if (castle.getSiege().getAttackerClan(player.getClan()) == null)
      sm.addString("You must be an attacker to place a flag");
    else if (player.getClan() == null || !player.isClanLeader())
View Full Code Here

    sm.addNumber(currPetition.getId());
    currPetition.sendResponderPacket(sm);

    // Petition consultation with <Player> underway.
    sm = new SystemMessage(SystemMessageId.PETITION_WITH_S1_UNDER_WAY);
    sm.addString(currPetition.getPetitioner().getName());
    currPetition.sendResponderPacket(sm);
    sm = null;
    currPetition = null;
    return true;
  }
View Full Code Here

        }
        else
        {
          // Ending petition consultation with <Player>.
          SystemMessage sm = new SystemMessage(SystemMessageId.PETITION_ENDED_WITH_S1);
          sm.addString(getPetitioner().getName());
          getResponder().sendPacket(sm);
          sm = null;

          if(endState == PetitionState.Petitioner_Cancel)
          {
View Full Code Here

      {
        int lostPoints = playerOnePoints / 3;
        playerOneStat.set(POINTS, playerOnePoints - lostPoints);
        Olympiad.updateNobleStats(_playerOne.getObjectId(), playerOneStat);
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_HAS_LOST_S2_OLYMPIAD_POINTS);
        sm.addString(_playerOneName);
        sm.addNumber(lostPoints);
        broadcastMessage(sm, false);

        if (Config.DEBUG)
          _log.info("Olympia Result: " + _playerOneName + " lost " + lostPoints + " points for defaulting");
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.