Examples of inObserverMode()


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

      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

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

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

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

    L2Player activeChar = getClient().getActiveChar();
    if(activeChar == null)
    {
      return;
    }
    if(Config.ENABLE_OLYMPIAD && activeChar.inObserverMode())
    {
      activeChar.leaveOlympiadObserverMode();
    }
  }
}
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.inObserverMode()

  protected void runImpl()
  {
    L2PcInstance activeChar = getClient().getActiveChar();
    if (activeChar == null)
      return;
    if (activeChar.inObserverMode()) activeChar.leaveOlympiadObserverMode();
  }

  /* (non-Javadoc)
   * @see net.sf.l2j.gameserver.BasePacket#getType()
   */
 
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.inObserverMode()

  protected void runImpl()
  {
    L2PcInstance activeChar = getClient().getActiveChar();
    if (activeChar == null)
      return;
    if (activeChar.inObserverMode()) activeChar.leaveObserverMode();
    //activeChar.teleToLocation(activeChar.getObsX(), activeChar.getObsY(), activeChar.getObsZ());
  }

  /* (non-Javadoc)
   * @see net.sf.l2j.gameserver.clientpackets.ClientBasePacket#getType()
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.inObserverMode()

    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.CANT_MOVE_SITTING));
      return;
    }

    if (activeChar.inObserverMode())
      return;

    if (activeChar.isInOlympiadMode())
        {
            activeChar.sendPacket(new SystemMessage(SystemMessageId.THIS_ITEM_IS_NOT_AVAILABLE_FOR_THE_OLYMPIAD_EVENT));
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.inObserverMode()

        else if (partner.isInParty() && partner.getParty().isInDimensionalRift())
        {
            activeChar.sendMessage("Your partner is in dimensional rift.");
            return false;
        }
        else if (partner.inObserverMode())
        {
          activeChar.sendMessage("Your partner is in the observation.");
        }
        else if(partner.getClan() != null
            && CastleManager.getInstance().getCastleByOwner(partner.getClan()) != null
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.inObserverMode()

          sm.addString("You already have "+count+" cubic(s).");
          activeChar.sendPacket(sm);
          return false;
        }
      } else {
        if (player.inObserverMode())
          return false;
        if (player.getPet() != null)
        {
          SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
          sm.addString("You already have a pet.");
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.