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

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


      if (!getClient().getFloodProtectors().getUseItem().tryPerformAction("use item"))
        return;
    }
    if (activeChar.isStunned() || activeChar.isConfused() || activeChar.isAway() || activeChar.isParalyzed() || activeChar.isSleeping())
    {
      activeChar.sendMessage("You Cannot Use Items Right Now.");
      return;
    }
   
    if (activeChar.getPrivateStoreType() != 0)
    {
View Full Code Here


      return;
   
    if(!Config.ARENA_ALLOW_S && item.getItem().getItemGrade() == L2Item.CRYSTAL_S &&
        (activeChar.isInArenaEvent() || EvtArenaManager.getInstance().isRegistered(activeChar)))
    {
      activeChar.sendMessage("Event Arena Manager: Items Grade S cannot be used in Arena Event");
      return;
    }
   
    if ((itemId == 5858) && (ClanHallManager.getInstance().getClanHallByOwner(activeChar.getClan()) == null))
    {
View Full Code Here

      return;
    }
   
    if ((itemId == 5858) && (ClanHallManager.getInstance().getClanHallByOwner(activeChar.getClan()) == null))
    {
      activeChar.sendMessage("Blessed Scroll of Escape: Clan Hall cannot be used due to unsuitable terms.");
      return;
    }
    else if ((itemId == 5859) && (CastleManager.getInstance().getCastleByOwner(activeChar.getClan()) == null))
    {
      activeChar.sendMessage("Blessed Scroll of Escape: Castle cannot be used due to unsuitable terms.");
View Full Code Here

      activeChar.sendMessage("Blessed Scroll of Escape: Clan Hall cannot be used due to unsuitable terms.");
      return;
    }
    else if ((itemId == 5859) && (CastleManager.getInstance().getCastleByOwner(activeChar.getClan()) == null))
    {
      activeChar.sendMessage("Blessed Scroll of Escape: Castle cannot be used due to unsuitable terms.");
      return;
    }
   
    if (activeChar.isFishing() && (itemId < 6535 || itemId > 6540))
    {
View Full Code Here

    }
   
    if (activeChar.getPkKills() > 0 && (itemId >= 7816 && itemId <= 7831))
    {
      // Retail messages... same L2OFF
      activeChar.sendMessage("You do not meet the required condition to equip that item.");
      activeChar.sendMessage("You are unable to equip this item when your PK count is greater than or equal to one.");
      return;
    }
   
    L2Clan cl = activeChar.getClan();
View Full Code Here

   
    if (activeChar.getPkKills() > 0 && (itemId >= 7816 && itemId <= 7831))
    {
      // Retail messages... same L2OFF
      activeChar.sendMessage("You do not meet the required condition to equip that item.");
      activeChar.sendMessage("You are unable to equip this item when your PK count is greater than or equal to one.");
      return;
    }
   
    L2Clan cl = activeChar.getClan();
    // A shield that can only be used by the members of a clan that owns a castle.
View Full Code Here

   
    L2Clan cl = activeChar.getClan();
    // A shield that can only be used by the members of a clan that owns a castle.
    if ((cl == null || cl.getHasCastle() == 0) && itemId == 7015 && Config.CASTLE_SHIELD)
    {
      activeChar.sendMessage("You can't equip that");
      return;
    }
   
    // A shield that can only be used by the members of a clan that owns a clan hall.
    if ((cl == null || cl.getHasHideout() == 0) && itemId == 6902 && Config.CLANHALL_SHIELD)
View Full Code Here

    }
   
    // A shield that can only be used by the members of a clan that owns a clan hall.
    if ((cl == null || cl.getHasHideout() == 0) && itemId == 6902 && Config.CLANHALL_SHIELD)
    {
      activeChar.sendMessage("You can't equip that");
      return;
    }
   
    // Apella armor used by clan members may be worn by a Baron or a higher level Aristocrat.
    if (itemId >= 7860 && itemId <= 7879 && Config.APELLA_ARMORS && (cl == null || activeChar.getPledgeClass() < 5))
View Full Code Here

    }
   
    // Apella armor used by clan members may be worn by a Baron or a higher level Aristocrat.
    if (itemId >= 7860 && itemId <= 7879 && Config.APELLA_ARMORS && (cl == null || activeChar.getPledgeClass() < 5))
    {
      activeChar.sendMessage("You can't equip that");
      return;
    }
   
    // Clan Oath armor used by all clan members
    if (itemId >= 7850 && itemId <= 7859 && Config.OATH_ARMORS && cl == null)
View Full Code Here

    }
   
    // Clan Oath armor used by all clan members
    if (itemId >= 7850 && itemId <= 7859 && Config.OATH_ARMORS && cl == null)
    {
      activeChar.sendMessage("You can't equip that");
      return;
    }
   
    // The Lord's Crown used by castle lords only
    if (itemId == 6841 && Config.CASTLE_CROWN && (cl == null || cl.getHasCastle() == 0 || !activeChar.isClanLeader()))
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.