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

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


    {
      ClanTable.getInstance().storeclanswars(requestor.getClanId(), activeChar.getClanId());
    }
    else
    {
      requestor.sendPacket(new SystemMessage(SystemMessageId.WAR_PROCLAMATION_HAS_BEEN_REFUSED));
    }

    activeChar.setActiveRequester(null);
    requestor.onTransactionResponse();
  }
View Full Code Here


    if(activeChar.getClan() == null)
      return;

    //do we need powers to do that??
    activeChar.sendPacket(new PledgeReceiveWarList(activeChar.getClan(), _tab));
  }

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

   
    L2ItemInstance item = activeChar.getInventory().getItemByObjectId(_objectId);
   
    if(item == null || _count == 0 || !activeChar.validateItemManipulation(_objectId, "drop") || !Config.ALLOW_DISCARDITEM && !activeChar.isGM() || (!item.isDropable() && !(activeChar.isGM() && Config.GM_TRADE_RESTRICTED_ITEMS)))
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_DISCARD_THIS_ITEM));
      return;
    }
   
    if (item.isAugmented())
    {
View Full Code Here

      return;
    }
   
    if (item.isAugmented())
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.AUGMENTED_ITEM_CANNOT_BE_DISCARDED));
      return;
    }
   

    if(item.getItemType() == L2EtcItemType.QUEST && !(activeChar.isGM() && Config.GM_TRADE_RESTRICTED_ITEMS))
View Full Code Here

    if(CursedWeaponsManager.getInstance().isCursed(itemId))
      return;

    if(_count > item.getCount())
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_DISCARD_THIS_ITEM));
      return;
    }

    if(Config.PLAYER_SPAWN_PROTECTION > 0 && activeChar.isInvul() && !activeChar.isGM())
    {
View Full Code Here

      return;
    }

    if(Config.PLAYER_SPAWN_PROTECTION > 0 && activeChar.isInvul() && !activeChar.isGM())
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_DISCARD_THIS_ITEM));
      return;
    }

    if(_count <= 0)
    {
View Full Code Here

    }

    if(!activeChar.getAccessLevel().allowTransaction())
    {
      activeChar.sendMessage("Unsufficient privileges.");
      activeChar.sendPacket(ActionFailed.STATIC_PACKET);
      return;
    }

    if(activeChar.isProcessingTransaction() || activeChar.getPrivateStoreType() != 0)
    {
View Full Code Here

      return;
    }

    if(activeChar.isProcessingTransaction() || activeChar.getPrivateStoreType() != 0)
    {
      activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_TRADE_DISCARD_DROP_ITEM_WHILE_IN_SHOPMODE));
      return;
    }

    if(activeChar.isFishing())
    {
View Full Code Here

    }

    if(activeChar.isFishing())
    {
      //You can't mount, dismount, break and drop items while fishing
      activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_DO_WHILE_FISHING_2));
      return;
    }

    // Cannot discard item that the skill is consumming
    if(activeChar.isCastingNow())
View Full Code Here

    // Cannot discard item that the skill is consumming
    if(activeChar.isCastingNow())
    {
      if(activeChar.getCurrentSkill() != null && activeChar.getCurrentSkill().getSkill().getItemConsumeId() == item.getItemId())
      {
        activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_DISCARD_THIS_ITEM));
        return;
      }
    }

    if(L2Item.TYPE2_QUEST == item.getItem().getType2() && !activeChar.isGM())
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.