Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.ItemContainer.transferItem()


      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.