Package l2p.gameserver.model.entity.siege

Examples of l2p.gameserver.model.entity.siege.SiegeEndTask


      MercTicketManager.getInstance().deleteTickets(getSiegeUnit().getId()); // remove the tickets from the ground
      _defenderRespawnPenalty = 0; // Reset respawn delay
      // Schedule a task to prepare auto siege end
      _siegeEndDate = Calendar.getInstance();
      _siegeEndDate.add(Calendar.MINUTE, getSiegeLength());
      ThreadPoolManager.getInstance().scheduleGeneral(new SiegeEndTask(this), 1000); // Prepare auto end task
      _fameTask = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new SiegeFameTask(), 5 * 60 * 1000L, 5 * 60 * 1000L);
      announceToPlayer(Msg.THE_TEMPORARY_ALLIANCE_OF_THE_CASTLE_ATTACKER_TEAM_IS_IN_EFFECT_IT_WILL_BE_DISSOLVED_WHEN_THE_CASTLE_LORD_IS_REPLACED, false, true);
      announceToPlayer(new SystemMessage(SystemMessage.THE_SIEGE_OF_S1_HAS_STARTED).addString(getSiegeUnit().getName()), false, false);
    }
  }
View Full Code Here


      getSiegeUnit().spawnDoor(); // Spawn door
      getSiegeGuardManager().spawnSiegeGuard(); // Spawn siege guard
      // Schedule a task to prepare auto siege end
      _siegeEndDate = Calendar.getInstance();
      _siegeEndDate.add(Calendar.MINUTE, getSiegeLength());
      ThreadPoolManager.getInstance().scheduleGeneral(new SiegeEndTask(this), 1000); // Prepare auto end task
      _fameTask = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new SiegeFameTask(), 5 * 60 * 1000L, 5 * 60 * 1000L);
      announceToPlayer(Msg.THE_SIEGE_OF_THE_CLAN_HALL_HAS_BEGUN, false, false);
    }
  }
View Full Code Here

      MercTicketManager.getInstance().deleteTickets(getSiegeUnit().getId()); // remove the tickets from the ground
      _defenderRespawnPenalty = 0; // Reset respawn delay
      // Schedule a task to prepare auto siege end
      _siegeEndDate = Calendar.getInstance();
      _siegeEndDate.add(Calendar.MINUTE, getSiegeLength());
      ThreadPoolManager.getInstance().scheduleGeneral(new SiegeEndTask(this), 1000); // Prepare auto end task
      _fameTask = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new SiegeFameTask(), 5 * 60 * 1000L, 5 * 60 * 1000L);
      announceToPlayer(new SystemMessage(SystemMessage.THE_FORTRESS_BATTLE_S1_HAS_BEGAN).addString(getSiegeUnit().getName()), false, true);
    }
  }
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.entity.siege.SiegeEndTask

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.