Package lineage2.gameserver.model.entity.residence

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


      else if (count > 0)
      {
        filename = "castle/warehouse/castlewarehouse-3.htm";
        castle.setRewardCount(0);
        castle.setJdbcState(JdbcEntityState.UPDATED);
        castle.update();
        Functions.addItem(player, ITEM_BLOOD_ALLI, count);
      }
      else
      {
        filename = "castle/warehouse/castlewarehouse-4.htm";
View Full Code Here


      clanHall.setAuctionMinBid(bid);
      clanHall.setAuctionDescription(comment);
      clanHall.setAuctionLength(day);
      clanHall.getSiegeDate().setTimeInMillis(System.currentTimeMillis());
      clanHall.setJdbcState(JdbcEntityState.UPDATED);
      clanHall.update();
     
      clanHall.getSiegeEvent().reCalcNextTime(false);
     
      onBypassFeedback(player, "info");
      player.sendPacket(SystemMsg.YOU_HAVE_REGISTERED_FOR_A_CLAN_HALL_AUCTION);
View Full Code Here

      clanHall.getLastSiegeDate().setTimeInMillis(System.currentTimeMillis());
      clanHall.setAuctionDescription(StringUtils.EMPTY);
      clanHall.setAuctionLength(0);
      clanHall.setAuctionMinBid(0);
      clanHall.setJdbcState(JdbcEntityState.UPDATED);
      clanHall.update();
     
      ClanHallAuctionEvent auctionEvent = clanHall.getSiegeEvent();
      List<AuctionSiegeClanObject> siegeClans = auctionEvent.removeObjects(SiegeEvent.ATTACKERS);
      SiegeClanDAO.getInstance().delete(clanHall);
     
View Full Code Here

    }
    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

      if (count > 0)
      {
        filename = "residence2/fortress/fortress_supply_officer013.htm";
        fortress.setRewardCount(0);
        fortress.setJdbcState(JdbcEntityState.UPDATED);
        fortress.update();
        Functions.addItem(player, ITEM_ID, count);
      }
      else
      {
        filename = "residence2/fortress/fortress_supply_officer014.htm";
View Full Code Here

        if (state != Fortress.NOT_DECIDED)
        {
          Fortress fortress = getFortress();
          fortress.setFortState(state, castleId);
          fortress.setJdbcState(JdbcEntityState.UPDATED);
          fortress.update();
          FortressSiegeEvent event = fortress.getSiegeEvent();
          event.despawnEnvoy();
        }
        player.sendPacket(new NpcHtmlMessage(player, this, fileName, 0));
        break;
View Full Code Here

        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

        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_stop:
        r = ResidenceHolder.getInstance().getResidence(Integer.parseInt(wordList[1]));
        if (r == null)
View Full Code Here

    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

    player.getSummonList().unsummonPet(false);
    ItemInstance control = player.getInventory().getItemByObjectId(controlItemId);
    control.setItemId(IN_COUGAR_CHIME);
    control.setEnchantLevel(L2Pet.IMPROVED_BABY_COUGAR.getMinLevel());
    control.setJdbcState(JdbcEntityState.UPDATED);
    control.update();
    player.sendItemList(false);
    show("scripts/services/petevolve/yes_pet.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.