Package net.sf.l2j.gameserver.model.actor.instance

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


  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

    {
      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

        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

          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.