Package net.sf.l2j.gameserver.model

Examples of net.sf.l2j.gameserver.model.L2ItemInstance.updateDatabase()


    {
      L2ItemInstance controlItem = pet.getOwner().getInventory().getItemByObjectId(pet.getControlItemId());
      if (controlItem != null)
      {
        controlItem.setCustomType2(1);
        controlItem.updateDatabase();
        InventoryUpdate iu = new InventoryUpdate();
        iu.addModifiedItem(controlItem);
        activeChar.sendPacket(iu);
      }
    }
View Full Code Here


    L2ItemInstance itemInst = getControlItem();
    if (itemInst != null && itemInst.getEnchantLevel() != getStat().getLevel())
    {
      itemInst.setEnchantLevel(getStat().getLevel());
      itemInst.updateDatabase();
    }
  }

  public synchronized void stopFeed()
  {
View Full Code Here

        item.setLastChange(L2ItemInstance.MODIFIED);
       
        // could do also without saving, but let's save approx 1 of 10
        if ((GameTimeController.getGameTicks() % 10) == 0)
        {
          item.updateDatabase();
        }
        _inventory.refreshWeight();
      }
    }
    else
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.