Package net.sf.l2j.gameserver.model

Examples of net.sf.l2j.gameserver.model.ItemContainer.transferItem()


      int count = _items[i * 2 + 1];

      L2ItemInstance oldItem = warehouse.getItemByObjectId(objectId);
      if (oldItem == null || oldItem.getCount() < count)
        player.sendMessage("Can't withdraw requested item"+(count>1?"s":""));
      L2ItemInstance newItem = warehouse.transferItem("Warehouse", objectId, count, player.getInventory(), player, player.getLastFolkNPC());
            if (newItem == null)
            {
              _log.warning("Error withdrawing a warehouse object for char " + player.getName());
              continue;
            }
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.