Package net.sf.l2j.gameserver.serverpackets

Examples of net.sf.l2j.gameserver.serverpackets.SystemMessage.addString()


        if (castle == null || castle.getCastleId() <= 0)
            sm.addString("You must be on castle ground to summon this");
        else if (!castle.getSiege().getIsInProgress())
            sm.addString("You can only summon this during a siege.");
        else if (player.getClanId() != 0 && castle.getSiege().getAttackerClan(player.getClanId()) == null)
            sm.addString("You can only summon this as a registered attacker.");
        else
            return true;

        if (!isCheckOnly) {player.sendPacket(sm);}
        return false;
View Full Code Here


          }
        }
        else
        {
          SystemMessage sm = new SystemMessage(SystemMessageId.S1_IS_NOT_ONLINE);
          sm.addString(_target);
          activeChar.sendPacket(sm);
          sm = null;
        }
        break;
      case SHOUT:
View Full Code Here

            return;
        }
        else if (_clan.isAtWarWith(clan.getClanId()))
        {
            SystemMessage sm = new SystemMessage(SystemMessageId.ALREADY_AT_WAR_WITH_S1_WAIT_5_DAYS); //msg id 628
            sm.addString(clan.getName());
            player.sendPacket(sm);
            player.sendPacket(new ActionFailed());
            sm = null;
            return;
        }
View Full Code Here

      Dice d = new Dice (activeChar.getObjectId(),item.getItemId(),number,activeChar.getX()-30,activeChar.getY()-30,activeChar.getZ() );
            Broadcast.toSelfAndKnownPlayers(activeChar, d);

      SystemMessage sm = new SystemMessage(SystemMessageId.S1_ROLLED_S2);
      sm.addString(activeChar.getName());
      sm.addNumber(number);

      activeChar.sendPacket(sm);
            if (activeChar.isInsideZone(L2Character.ZONE_PEACE))
          Broadcast.toKnownPlayers(activeChar, sm);
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);
    return true;
  }

  public boolean cancelActivePetition(L2PcInstance player)
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);

          if (endState == PetitionState.Petitioner_Cancel)
          {
                        // Receipt No. <ID> petition cancelled.
View Full Code Here

        newLeader.broadcastUserInfo();

        broadcastClanStatus();

      SystemMessage sm = new SystemMessage(SystemMessageId.CLAN_LEADER_PRIVILEGES_HAVE_BEEN_TRANSFERRED_TO_S1);
      sm.addString(newLeader.getName());
      broadcastToOnlineMembers(sm);
      sm = null;
  }
  /**
   * @return Returns the leaderName.
View Full Code Here

      return false;
    }
    if (getCharPenaltyExpiryTime() > System.currentTimeMillis())
    {
          SystemMessage sm = new SystemMessage(SystemMessageId.YOU_MUST_WAIT_BEFORE_ACCEPTING_A_NEW_MEMBER);
          sm.addString(target.getName());
          activeChar.sendPacket(sm);
          sm = null;
      return false;
    }
    if (target.getClanId() != 0)
View Full Code Here

      return false;
    }
    if (target.getClanId() != 0)
    {
          SystemMessage sm = new SystemMessage(SystemMessageId.S1_WORKING_WITH_ANOTHER_CLAN);
          sm.addString(target.getName());
          activeChar.sendPacket(sm);
          sm = null;
      return false;
    }
    if (target.getClanId() != 0)
View Full Code Here

      return false;
    }
    if (target.getClanId() != 0)
    {
          SystemMessage sm = new SystemMessage(SystemMessageId.S1_WORKING_WITH_ANOTHER_CLAN);
          sm.addString(target.getName());
          activeChar.sendPacket(sm);
          sm = null;
      return false;
    }
    if (target.getClanJoinExpiryTime() > System.currentTimeMillis())
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.