Package com.l2jfrozen.gameserver.network.serverpackets

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


    target = null;

    if(player.getObjectId() == activeChar.getObjectId())
    {
      SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
      sm.addString("You cannot logout your character.");
      activeChar.sendPacket(sm);
      sm = null;
    }
    else
    {
View Full Code Here


      sm = null;
    }
    else
    {
      SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
      sm.addString("Character " + player.getName() + " disconnected from server.");
      activeChar.sendPacket(sm);

      //Logout Character
      LeaveWorld ql = new LeaveWorld();
      player.sendPacket(ql);
View Full Code Here

      sm = null;
     
      for (String name : getAllGmNames(player.isGM()))
      {
        SystemMessage sm1 = new SystemMessage(SystemMessageId.GM_S1);
        sm1.addString(name);
        player.sendPacket(sm1);
      }
    }
    else{
      SystemMessage sm2 = new SystemMessage(SystemMessageId.NO_GM_PROVIDING_SERVICE_NOW);
View Full Code Here

        if(player.getPet() == null)
        {
          if(player.isMounted())
          {
            SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
            sm.addString("You Already Have a Pet or Are Mounted.");
            player.sendPacket(sm);
          }
          else
          {
            SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
View Full Code Here

            player.sendPacket(sm);
          }
          else
          {
            SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
            sm.addString("Summon your Strider first.");
            player.sendPacket(sm);
          }
          return;
        }
        else if(player.getPet().getNpcId() == 12526 || player.getPet().getNpcId() == 12527 || player.getPet().getNpcId() == 12528)
View Full Code Here

          if(player.getInventory().getItemByItemId(1460) != null && player.getInventory().getItemByItemId(1460).getCount() >= 10)
          {
            if(player.getPet().getLevel() < 55)
            {
              SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
              sm.addString("Your Strider Has not reached the required level.");
              player.sendPacket(sm);
            }
            else
            {
              if(!player.disarmWeapons())
View Full Code Here

              player.sendPacket(mount);
              player.broadcastPacket(mount);
              player.setMountType(mount.getMountType());
              player.addSkill(SkillTable.getInstance().getInfo(4289, 1));
              SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
              sm.addString("The Wyvern has been summoned successfully!");
              player.sendPacket(sm);
            }
          }
          else
          {
View Full Code Here

            }
          }
          else
          {
            SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
            sm.addString("You need 10 Crystals: B Grade.");
            player.sendPacket(sm);
          }
          return;
        }
        else
View Full Code Here

          return;
        }
        else
        {
          SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
          sm.addString("Unsummon your pet.");
          player.sendPacket(sm);
          sm = null;
          return;
        }
      }
View Full Code Here

        L2PcInstance receiver = L2World.getInstance().getPlayer(_target);
       
        if(receiver == null){
         
          SystemMessage sm = new SystemMessage(SystemMessageId.S1_IS_NOT_ONLINE);
          sm.addString(_target);
          activeChar.sendPacket(sm);
          sm = null;
          return;
         
        }
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.