Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.InventoryUpdate


    {
      ItemInstance control = player.getInventory().getItemByObjectId(pl_pet.getControlItemObjId());
      control.setItemId(L2Pet.IMPROVED_BABY_COUGAR.getControlItemId());
      control.setJdbcState(JdbcEntityState.UPDATED);
      control.update();
      player.sendPacket(new InventoryUpdate().addModifiedItem(control));
      player.getSummonList().unsummonPet(false);
      show("�?ет изменен.", player);
    }
    else if (Config.SERVICES_EXCHANGE_BABY_PET_ITEM == 57)
    {
View Full Code Here


      control/**
       * Method exToKookaburra.
       */
      .setJdbcState(JdbcEntityState.UPDATED);
      control.update();
      player.sendPacket(new InventoryUpdate().addModifiedItem(control));
      player.getSummonList().unsummonPet(false);
      show("�?ет изменен.", player);
    }
    else if (Config.SERVICES_EXCHANGE_BABY_PET_ITEM == 57)
    {
View Full Code Here

    {
      ItemInstance control = player.getInventory().getItemByObjectId(pl_pet.getControlItemObjId());
      control.setItemId(L2Pet.IMPROVED_BABY_KOOKABURRA.getControlItemId());
      control.setJdbcState(JdbcEntityState.UPDATED);
      control.update();
      player.sendPacket(new InventoryUpdate().addModifiedItem(control));
      player.getSummonList().unsummonPet(false);
      show("�?ет изменен.", player);
    }
    else if (Config.SERVICES_EXCHANGE_BABY_PET_ITEM == 57)
    {
View Full Code Here

    targetItem.update();
    if (equipped)
    {
      player.getInventory().equipItem(targetItem);
    }
    player.sendPacket(new InventoryUpdate().addModifiedItem(targetItem));
    for (ShortCut sc : player.getAllShortCuts())
    {
      if ((sc.getId() == targetItem.getObjectId()) && (sc.getType() == ShortCut.TYPE_ITEM))
      {
        player.sendPacket(new ShortCutRegister(player, sc));
View Full Code Here

    itemToUnnchant.update();
    if (equipped)
    {
      activeChar.getInventory().equipItem(itemToUnnchant);
    }
    activeChar.sendPacket(new InventoryUpdate().addModifiedItem(itemToUnnchant));
    activeChar.sendPacket(new ExBaseAttributeCancelResult(true, itemToUnnchant, element));
    activeChar.updateStats();
  }
View Full Code Here

    {
      inventory.writeUnlock();
    }

    //player.sendPacket(new InventoryUpdate().addModifiedItem(player, targetItem));
    player.sendPacket(new InventoryUpdate().addModifiedItem(targetItem));
    //player.sendPacket(new IStaticPacket[] { new ExShapeShiftingResult(targetItem.getItemId(), extracItem.getVisualId()), new UserInfo(player), new ExBR_ExtraUserInfo(player) });

    player.setAppearanceStone(null);
    player.setAppearanceExtractItem(null);
    player.sendPacket(new ExShapeShiftingResult(ExShapeShiftingResult.SUCCESS_RESULT, targetItem.getItemId(), extracItemId));
View Full Code Here

    {
      curEnchant = itemInstance.getEnchantLevel();
      player.getInventory().unEquipItem(itemInstance);
      itemInstance.setEnchantLevel(ench);
      player.getInventory().equipItem(itemInstance);
      player.sendPacket(new InventoryUpdate().addModifiedItem(itemInstance));
      player.broadcastCharInfo();
      activeChar.sendMessage("Changed enchantment of " + player.getName() + "'s " + itemInstance.getName() + " from " + curEnchant + " to " + ench + ".");
      player.sendMessage("Admin has changed the enchantment of your " + itemInstance.getName() + " from " + curEnchant + " to " + ench + ".");
    }
  }
View Full Code Here

    controlItem.setEnchantLevel(_level);
    controlItem.setCustomType2(isDefaultName() ? 0 : 1);
    controlItem.setJdbcState(JdbcEntityState.UPDATED);
    controlItem.update();
    Player owner = getPlayer();
    owner.sendPacket(new InventoryUpdate().addModifiedItem(controlItem));
  }
View Full Code Here

          ItemInstance item = createItem(activeChar, item_id, 1);
          Element element = Element.getElementById(elementId);
          item.setAttributeElement(element, item.getAttributeElementValue(element, false) + value);
          item.setJdbcState(JdbcEntityState.UPDATED);
          item.update();
          activeChar.sendPacket(new InventoryUpdate().addModifiedItem(item));
        }
        catch (NumberFormatException nfe)
        {
          activeChar.sendMessage("USAGE: create_item id [count]");
        }
View Full Code Here

      {
        final int newMp = item.getLifeTime() - mp;
        if (newMp >= 0)
        {
          item.setLifeTime(newMp);
          sendPacket(new InventoryUpdate().addModifiedItem(item));
          return true;
        }
        break;
      }
    }
View Full Code Here

TOP

Related Classes of lineage2.gameserver.network.serverpackets.InventoryUpdate

Copyright © 2018 www.massapicom. 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.