Examples of canBeSold()


Examples of lineage2.gameserver.model.items.ItemInstance.canBeSold()

   * @param itemObjId int
   */
  public void showCommissionInfo(Player player, int itemObjId)
  {
    ItemInstance item = player.getInventory().getItemByObjectId(itemObjId);
    if ((item != null) && item.canBeSold(player))
    {
      player.sendPacket(new ExResponseCommissionInfo(item));
    }
    else
    {
View Full Code Here

Examples of lineage2.gameserver.model.items.ItemInstance.canBeSold()

   */
  public void registerItem(Player player, int objectId, String item_name, long price, long count, int sale_days)
  {
    PcInventory inventory = player.getInventory();
    ItemInstance item = inventory.getItemByObjectId(objectId);
    if ((item == null) || (item.getCount() < count) || !item.canBeSold(player))
    {
      return;
    }
    int days = (sale_days * 2) + 1;
    if ((days <= 0) || (days > 7))
View Full Code Here

Examples of lineage2.gameserver.model.items.ItemInstance.canBeSold()

      for (int i = 0; i < _count; i++)
      {
        int objectId = _items[i];
        long count = _itemQ[i];
        ItemInstance item = activeChar.getInventory().getItemByObjectId(objectId);
        if ((item == null) || (item.getCount() < count) || !item.canBeSold(activeChar))
        {
          continue;
        }
        long price = SafeMath.mulAndCheck(item.getReferencePrice(), count) / 2;
        ItemInstance refund = activeChar.getInventory().removeItemByObjectId(objectId, count);
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.