Package com.l2jfrozen.gameserver.network.serverpackets

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


         break;
       case L2Item.CRYSTAL_S:
         gemstoneCount = 25;
        gemstoneItemId = GEMSTONE_S;
         sm.addNumber(gemstoneCount);
        sm.addString("Gemstone S");
         break;
    }
   
    activeChar.sendPacket(new ExConfirmVariationRefiner(_refinerItemObjId, refinerItemId, gemstoneItemId, gemstoneCount));
    activeChar.sendPacket(sm);
View Full Code Here


      QuestState qs = activeChar.getQuestState(qe.getName());
      if(qs != null)
      {
        qs.exitQuest(true);
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
        sm.addString("Quest aborted.");
        activeChar.sendPacket(sm);
        sm = null;
        QuestList ql = new QuestList();
        activeChar.sendPacket(ql);
      }
View Full Code Here

     
      if (friend == null || friend.isOnline()==0)
      {
        // (Currently: Offline)
        sm = new SystemMessage(SystemMessageId.S1_OFFLINE);
        sm.addString(friendName);
      }
      else
      {
        // (Currently: Online)
        sm = new SystemMessage(SystemMessageId.S1_ONLINE);
View Full Code Here

      }
      else
      {
        // (Currently: Online)
        sm = new SystemMessage(SystemMessageId.S1_ONLINE);
        sm.addString(friendName);
      }
     
      activeChar.sendPacket(sm);
    }
   
View Full Code Here

      {
        String mobtype = ((L2NpcInstance) target).getTemplate().type;
        if (!Config.LIST_ALLOWED_NPC_TYPES.contains(mobtype))
        {
          SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
          sm.addString("Npc Type "+mobtype+" has Protection - No Attack Allowed!");
          ((L2PcInstance) this).sendPacket(sm);
          ((L2PcInstance) this).sendPacket(ActionFailed.STATIC_PACKET);
          return;
        }
      }
View Full Code Here

    {
      String mobtype = ((L2NpcInstance) target).getTemplate().type;
      if (!Config.LIST_ALLOWED_NPC_TYPES.contains(mobtype))
      {
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
        sm.addString("Npc Type "+mobtype+" has Protection - No Attack Allowed!");
        ((L2PcInstance) activeChar).sendPacket(sm);
        ((L2PcInstance) activeChar).sendPacket(ActionFailed.STATIC_PACKET);
        return;
      }
    }
View Full Code Here

          SystemMessage msg = new SystemMessage(SystemMessageId.YOU_HAVE_SUCCEEDED_INVITING_FRIEND);
          requestor.sendPacket(msg);
         
          // Player added to your friendlist
          msg = new SystemMessage(SystemMessageId.S1_ADDED_TO_FRIENDS);
          msg.addString(player.getName());
          requestor.sendPacket(msg);
          requestor.getFriendList().add(player.getName());
         
          // has joined as friend.
          msg = new SystemMessage(SystemMessageId.S1_JOINED_AS_FRIEND);
View Full Code Here

          requestor.sendPacket(msg);
          requestor.getFriendList().add(player.getName());
         
          // has joined as friend.
          msg = new SystemMessage(SystemMessageId.S1_JOINED_AS_FRIEND);
          msg.addString(requestor.getName());
          player.sendPacket(msg);
          player.getFriendList().add(requestor.getName());
         
          msg = null;
         
View Full Code Here

    }
   
    if (target.isInParty())
    {
      SystemMessage msg = new SystemMessage(SystemMessageId.S1_IS_ALREADY_IN_PARTY);
      msg.addString(target.getName());
      requestor.sendPacket(msg);
      return;
    }
   
    if (target == requestor)
View Full Code Here

    }
   
    if (target.getBlockList().isInBlockList(requestor.getName()))
    {
      SystemMessage sm = new SystemMessage(SystemMessageId.S1_HAS_ADDED_YOU_TO_IGNORE_LIST);
      sm.addString(target.getName());
      requestor.sendPacket(sm);
      return;
    }
   
    if (target.isInOlympiadMode() || requestor.isInOlympiadMode())
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.