Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Player.inObserverMode()


      return;
    }
    _player = player;
    try
    {
      if(player.inObserverMode())
      {
        if(player.getOlympiadObserveId() > 0)
        {
          player.leaveOlympiadObserverMode();
        }
View Full Code Here


    L2Player activeChar = getClient().getActiveChar();
    if(activeChar == null)
    {
      return;
    }
    if(activeChar.inObserverMode())
    {
      activeChar.sendPacket(Msg.OBSERVERS_CANNOT_PARTICIPATE, RestartResponse.FAIL, Msg.ActionFail);
      return;
    }
    if(activeChar.isInCombat())
View Full Code Here

    L2Player activeChar = getClient().getActiveChar();
    if(activeChar == null)
    {
      return;
    }
    if(activeChar.inObserverMode())
    {
      if(activeChar.getOlympiadObserveId() > 0)
      {
        activeChar.leaveOlympiadObserverMode();
      }
View Full Code Here

    if(activeChar.isTeleporting())
    {
      activeChar.sendActionFailed();
      return;
    }
    if(activeChar.inObserverMode())
    {
      if(activeChar.getOlympiadObserveId() == -1)
      {
        activeChar.sendActionFailed();
      }
View Full Code Here

  @Override
  public void runImpl()
  {
    L2Player activeChar = getClient().getActiveChar();
    if(!activeChar.inObserverMode())
    {
      return;
    }
    NpcHtmlMessage reply = new NpcHtmlMessage(0);
    StringBuffer msg = new StringBuffer("");
View Full Code Here

        // Временно отключено, глючит.
        if(Boolean.TRUE)
        {
          return;
        }
        if(!activeChar.inObserverMode())
        {
          _log.warning(activeChar.getName() + " possible cheater: tried to switch arena usind not standart method!");
          return;
        }
        int arenaId = Integer.parseInt(bypass.substring(4));
View Full Code Here

    {
      activeChar.sendMessage(new CustomMessage("l2p.gameserver.clientpackets.Logout.Olympiad", activeChar));
      activeChar.sendActionFailed();
      return;
    }
    if(activeChar.inObserverMode())
    {
      activeChar.sendMessage(new CustomMessage("l2p.gameserver.clientpackets.Logout.Observer", activeChar));
      activeChar.sendActionFailed();
      return;
    }
View Full Code Here

      if(activeChar.isOutOfControl())
      {
        activeChar.sendActionFailed();
        return;
      }
      if(activeChar.inObserverMode() && activeChar.getObservNeighbor() != null)
      {
        for(L2WorldRegion region : activeChar.getObservNeighbor().getNeighbors())
        {
          for(L2Object obj : region.getObjectsList(new GArray<L2Object>(region.getObjectsSize()), activeChar.getObjectId(), activeChar.getReflection()))
          {
View Full Code Here

    L2Player activeChar = getClient().getActiveChar();
    if(activeChar == null)
    {
      return;
    }
    if(activeChar.isTeleporting() || activeChar.inObserverMode())
    {
      return;
    }
    _lastClientPosition = activeChar.getLastClientPosition();
    _lastServerPosition = activeChar.getLastServerPosition();
View Full Code Here

    L2Player activeChar = getClient().getActiveChar();
    if(activeChar == null)
    {
      return;
    }
    if(Config.ENABLE_OLYMPIAD && activeChar.inObserverMode())
    {
      activeChar.leaveOlympiadObserverMode();
    }
  }
}
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.