Package lineage2.gameserver.model.entity.residence

Examples of lineage2.gameserver.model.entity.residence.Fortress.update()


    player.getSummonList().unsummonPet(false);
    ItemInstance control = player.getInventory().getItemByObjectId(controlItemId);
    control.setItemId(FENRIR_NECKLACE);
    control.setEnchantLevel(L2Pet.FENRIR_WOLF.getMinLevel());
    control.setJdbcState(JdbcEntityState.UPDATED);
    control.update();
    player.sendItemList(false);
    show("scripts/services/petevolve/yes_wolf.htm", player, npc);
  }
}
View Full Code Here


    int elementVal = _item.getAttributeElementValue(oldElement, false);
    _item.setAttributeElement(oldElement, 0);
    Element newElement = Element.VALUES[_newElementId];
    _item.setAttributeElement(newElement, _item.getAttributeElementValue(newElement, false) + elementVal);
    _item.setJdbcState(JdbcEntityState.UPDATED);
    _item.update();
    if (equipped)
    {
      activeChar.getInventory().equipItem(_item);
      activeChar.getInventory().isRefresh = false;
    }
View Full Code Here

    {
      activeChar.getInventory().unEquipItem(targetItem);
    }
    targetItem.setAugmentationId(0);
    targetItem.setJdbcState(JdbcEntityState.UPDATED);
    targetItem.update();
    if (equipped)
    {
      activeChar.getInventory().equipItem(targetItem);
    }
    InventoryUpdate iu = new InventoryUpdate().addModifiedItem(targetItem);
View Full Code Here

      else
      {
        item.setOwnerId(bid.getCharId());
        item.setLocation(ItemLocation.WAREHOUSE);
        item.setJdbcState(JdbcEntityState.UPDATED);
        item.update();
        _log.info("ItemAuction: Auction " + auction.getAuctionId() + " has finished. Highest bid by (id) " + bid.getCharId() + " for instance " + _instanceId);
      }
    }
    else
    {
View Full Code Here

        {
          return "30747_13a.htm";
        }
        dragonflute.setItemId((Dragon_Bugle_of_Wind + dragonflute.getItemId()) - Dragonflute_of_Wind);
        dragonflute.setJdbcState(JdbcEntityState.UPDATED);
        dragonflute.update();
        st.getPlayer().sendPacket(new InventoryUpdate().addModifiedItem(dragonflute));
        st.playSound(SOUND_FINISH);
        st.exitCurrentQuest(true);
        return "30747_13.htm";
      }
View Full Code Here

      ItemInstance control = _pet.getControlItem();
      if (control != null)
      {
        control.setCustomType2(1);
        control.setJdbcState(JdbcEntityState.UPDATED);
        control.update();
        player.sendPacket(new InventoryUpdate().addModifiedItem(control));
      }
      show("�?м�? �?терто.", player);
    }
    else if (Config.SERVICES_CHANGE_PET_NAME_ITEM == 57)
View Full Code Here

    if (player.getInventory().destroyItemByItemId(Config.SERVICES_EXCHANGE_BABY_PET_ITEM, Config.SERVICES_EXCHANGE_BABY_PET_PRICE))
    {
      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.setItemId(L2Pet.IMPROVED_BABY_BUFFALO.getControlItemId());
      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

    if (player.getInventory().destroyItemByItemId(Config.SERVICES_EXCHANGE_BABY_PET_ITEM, Config.SERVICES_EXCHANGE_BABY_PET_PRICE))
    {
      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

    player.getSummonList().unsummonPet(false);
    ItemInstance control = player.getInventory().getItemByObjectId(controlItemId);
    control.setItemId(GREAT_WOLF_NECKLACE);
    control.setEnchantLevel(L2Pet.GREAT_WOLF.getMinLevel());
    control.setJdbcState(JdbcEntityState.UPDATED);
    control.update();
    player.sendItemList(false);
    show("scripts/services/petevolve/yes_wolf.htm", player, npc);
  }
}
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.