Examples of update()


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

    }
    if (player.consumeItem(ItemTemplate.ITEM_ID_ADENA, price))
    {
      fortress.setFacilityLevel(type, lvl);
      fortress.setJdbcState(JdbcEntityState.UPDATED);
      fortress.update();
      showChatWindow(player, "residence2/fortress/fortress_supply_officer006.htm");
      return true;
    }
    showChatWindow(player, "residence2/fortress/fortress_not_enough_money.htm");
    return false;
View Full Code Here

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

        event = r.getSiegeEvent();
        event.clearActions();
        r.getSiegeDate().setTimeInMillis(calendar.getTimeInMillis());
        event.registerActions();
        r.setJdbcState(JdbcEntityState.UPDATED);
        r.update();
        AdminCommandHandler.getInstance().useAdminCommandHandler(activeChar, "admin_residence " + r.getId());
        break;
      case admin_quick_siege_start:
        r = ResidenceHolder.getInstance().getResidence(Integer.parseInt(wordList[1]));
        if (r == null)
View Full Code Here

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

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

Examples of lineage2.gameserver.model.mail.Mail.update()

    {
      if (mail.isUnread())
      {
        mail.setUnread(false);
        mail.setJdbcState(JdbcEntityState.UPDATED);
        mail.update();
        activeChar.sendPacket(new ExChangePostState(true, Mail.READED, mail));
      }
      activeChar.sendPacket(new ExReplyReceivedPost(mail));
      return;
    }
View Full Code Here

Examples of lineage2.loginserver.accounts.Account.update()

  {
    Account acc = new Account(account);
    acc.restore();
    acc.setAccessLevel(level);
    acc.setBanExpire(banExpire);
    acc.update();
  }
}
View Full Code Here

Examples of liquibase.Liquibase.update()

            try {
                Connection connection = provider.getConnection();
                Liquibase liquibase = new Liquibase("org/socialmusicdiscovery/server/database/smd-database-drop.xml", new
                        ClassLoaderResourceAccessor(),
                        new JdbcConnection(connection));
                liquibase.update("");
                liquibase = new Liquibase("org/socialmusicdiscovery/server/database/smd-database.changelog.xml", new
                        ClassLoaderResourceAccessor(),
                        new JdbcConnection(connection));
                liquibase.update("");
            } catch (LiquibaseException e) {
View Full Code Here

Examples of liquibase.executor.Executor.update()

      if (checkReturnValue(lockObject)) {
        // To here
        return false;
      } else {
        executor.comment("Lock Database");
        int rowsUpdated = executor.update(new LockExDatabaseChangeLogStatement());
        if (rowsUpdated > 1) {
          throw new LockException("Did not update change log lock correctly");
        }

        if (rowsUpdated == 0) {
View Full Code Here

Examples of mage.cards.MageCard.update()

    }
    MageCard cardImg = Plugins.getInstance().getMageCard(card, bigCard, dimension, gameId);
    cardImg.setBounds(rectangle);
    cardArea.add(cardImg);
    cardArea.moveToFront(cardImg);
    cardImg.update(card);
    cardImg.addMouseListener(this);
    cardImg.setCardBounds(rectangle.x, rectangle.y, Config.dimensions.frameWidth, Config.dimensions.frameHeight);
  }

  private void loadCardsMany(CardsView showCards, BigCard bigCard, CardDimensions dimension, UUID gameId) {
View Full Code Here

Examples of mage.cards.MagePermanent.update()

    permanents.put(permanent.getId(), perm);
   
    BattlefieldPanel.this.add(perm, 10);
    if (!Plugins.getInstance().isCardPluginLoaded()) {
      moveToFront(perm);
      perm.update(permanent);
    } else {
      Thread t = new Thread(new Runnable() {
        @Override
        public void run() {
              Plugins.getInstance().onAddCard(perm);
View Full Code Here

Examples of mage.client.game.CombatGroup.update()

  public void showDialog(List<CombatGroupView> combat) {
    combatArea.removeAll();
    for (CombatGroupView group: combat) {
      CombatGroup combatGroup = new CombatGroup();
      combatGroup.init(gameId, bigCard);
      combatGroup.update(group);
      combatGroup.setVisible(true);
      combatArea.add(combatGroup);
      combatGroup.revalidate();
    }
    try {
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.