Package com.l2jfrozen.gameserver.network.serverpackets

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


      {
        int lostPoints = playerTwoPoints / 3;
        playerTwoStat.set(POINTS, playerTwoPoints - lostPoints);
        Olympiad.updateNobleStats(_playerTwo.getObjectId(), playerTwoStat);
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_HAS_LOST_S2_OLYMPIAD_POINTS);
        sm.addString(_playerTwoName);
        sm.addNumber(lostPoints);
        broadcastMessage(sm, false);

        if (Config.DEBUG)
          _log.info("Olympia Result: " + _playerTwoName + " lost " + lostPoints + " points for defaulting");
View Full Code Here


        npcReply = null;
      }
      else
      {
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
        sm.addString(res);
        player.sendPacket(sm);
        sm = null;
      }

      player = null;
View Full Code Here

          else
          {
            activeChar.registerDwarvenRecipeList(rp);
            activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false);
            SystemMessage sm = new SystemMessage(SystemMessageId.S1_ADDED);
            sm.addString(item.getItemName());
            activeChar.sendPacket(sm);
            sm = null;
          }
        }
        else
View Full Code Here

          else
          {
            activeChar.registerCommonRecipeList(rp);
            activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false);
            SystemMessage sm = new SystemMessage(SystemMessageId.S1_ADDED);
            sm.addString(item.getItemName());
            activeChar.sendPacket(sm);
            sm = null;
          }
        }
        else
View Full Code Here

    }

    if(activeChar.isInOlympiadMode())
    {
      SystemMessage sm = new SystemMessage(SystemMessageId.THIS_ITEM_IS_NOT_AVAILABLE_FOR_THE_OLYMPIAD_EVENT);
      sm.addString(item.getItemName());
      activeChar.sendPacket(sm);
      sm = null;

      return;
    }
View Full Code Here

        if(activeChar.getAutoSoulShot().containsKey(itemId))
        {
          activeChar.removeAutoSoulShot(itemId);
          activeChar.sendPacket(new ExAutoSoulShot(itemId, 0));
          SystemMessage sm = new SystemMessage(SystemMessageId.AUTO_USE_OF_S1_CANCELLED);
          sm.addString(item.getItem().getName());
          activeChar.sendPacket(sm);
          sm = null;

          return;
        }
View Full Code Here

        else
        {
          sm = new SystemMessage(SystemMessageId.S1_SIEGE_WAS_CANCELED_BECAUSE_NO_CLANS_PARTICIPATED);
        }

        sm.addString(getFort().getName());
        Announcements.getInstance().announceToAll(sm);
        sm = null;

        return;
      }
View Full Code Here

    {
      String msg = preCondition.getMessage();
      if(msg != null)
      {
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
        sm.addString(msg);
        activeChar.sendPacket(sm);
        sm = null;
      }

      msg = null;
View Full Code Here

      }
      case TARGET_ITEM:
      {
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
        sm.addString("Target type of skill is not currently handled");
        activeChar.sendPacket(sm);
        sm = null;
        return null;
      }
      case TARGET_UNDEAD:
View Full Code Here

        return null;
      }
      default:
      {
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
        sm.addString("Target type of skill is not currently handled");
        activeChar.sendPacket(sm);
        sm = null;
        return null;
      }
    }//end switch
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.