Package com.l2jfrozen.gameserver.model.actor.instance

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.inObserverMode()


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

  @Override
  public String getType()
  {
View Full Code Here


      player.sendPacket(new PrivateStoreManageListBuy(player));
      player.sendPacket(ActionFailed.STATIC_PACKET);
      return;
    }
   
    if (player.isCastingNow() || player.isCastingPotionNow() || player.isMovementDisabled() || player.inObserverMode() || player.getActiveEnchantItem() != null)
    {
      player.sendMessage("You cannot start store now..");
      player.sendPacket(new PrivateStoreManageListBuy(player));
      player.sendPacket(ActionFailed.STATIC_PACKET);
      return;
View Full Code Here

      player.sendPacket(new PrivateStoreManageListSell(player));
      player.sendPacket(ActionFailed.STATIC_PACKET);
      return;
    }
   
    if (player.isCastingNow() || player.isCastingPotionNow() || player.isMovementDisabled() || player.inObserverMode() || player.getActiveEnchantItem() != null)
    {
      player.sendMessage("You cannot start store now..");
      player.sendPacket(new PrivateStoreManageListSell(player));
      player.sendPacket(ActionFailed.STATIC_PACKET);
      return;
View Full Code Here

    final L2PcInstance activeChar = getClient().getActiveChar();
   
    if(activeChar == null)
      return;
   
    if (activeChar.inObserverMode())
    {
      getClient().sendPacket(new SystemMessage(SystemMessageId.OBSERVERS_CANNOT_PARTICIPATE));
      getClient().sendPacket(ActionFailed.STATIC_PACKET);
      return;
    }
View Full Code Here

    L2PcInstance activeChar = getClient().getActiveChar();

    if(activeChar == null)
      return;

    if(activeChar.inObserverMode())
    {
      activeChar.leaveOlympiadObserverMode();
    }
  }
View Full Code Here

  {
    L2PcInstance activeChar = getClient().getActiveChar();
    if (activeChar == null)
      return;

    if (activeChar.inObserverMode())
      activeChar.leaveObserverMode();
      //activeChar.teleToLocation(activeChar.getObsX(), activeChar.getObsY(), activeChar.getObsZ());
  }

  @Override
View Full Code Here

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

    if(activeChar.inObserverMode())
    {
      activeChar.sendPacket(ActionFailed.STATIC_PACKET);
      return;
    }
View Full Code Here

      activeChar.sendMessage("You Cannot Use This While You Are Paralyzed");
      activeChar.sendPacket(ActionFailed.STATIC_PACKET);
      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

    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.");
      return false;
    }
    else if (partner.isInRaidEvent())
View Full Code Here

     * TEMP FIX: If player is not visible don't send packets broadcast to all his KnowList. This will avoid GM detection with l2net and olympiad's crash. We can now find old problems with invisible mode.
     */
    if (object_char != null && !active_char.isGM())
    { // GM has to receive remove however because he can see any invisible or inobservermode player
   
      if (!object_char.getAppearance().getInvisible() && !object_char.inObserverMode())
      {
        // Send Server-Client Packet DeleteObject to the L2PcInstance
        active_char.sendPacket(new DeleteObject(object));
      }
      else if (object_char.isGM() && object_char.getAppearance().getInvisible() && !object_char.isTeleporting())
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.