Examples of validateItemManipulation()


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

    if (!getClient().getFloodProtectors().getDropItem().tryPerformAction("drop item"))
      return;
   
    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;
    }
   
View Full Code Here

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

      player.cancelActiveTrade();
      return;
    }

    // Check validateItemManipulation
    if (!player.validateItemManipulation(_objectId, "trade"))
    {
      player.sendPacket(new SystemMessage(SystemMessageId.NOTHING_HAPPENED));
      return;
    }
View Full Code Here

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

            player.sendMessage("Transactions are disable for your Access Level");
            player.cancelActiveTrade();
            return;
        }

        if (!player.validateItemManipulation(_objectId, "trade"))
    {
      player.sendPacket(new SystemMessage(SystemMessageId.NOTHING_HAPPENED));
      return;
    }
View Full Code Here

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

      if (activeChar == null) return;
        L2ItemInstance item = activeChar.getInventory().getItemByObjectId(_objectId);

        if (item == null
            || _count == 0
            || !activeChar.validateItemManipulation(_objectId, "drop")
            || (!Config.ALLOW_DISCARDITEM && !activeChar.isGM())
            || !item.isDropable())
        {
          activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_DISCARD_THIS_ITEM));
          return;
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.