Examples of InstantZone


Examples of lineage2.gameserver.templates.InstantZone

   * Method start.
   */
  private static void start()
  {
    final int instancedZoneId = 504;
    final InstantZone iz = InstantZoneHolder.getInstance().getInstantZone(instancedZoneId);
    if (iz == null)
    {
      _log.warn("GvG: InstanceZone : " + instancedZoneId + " not found!");
      return;
    }
View Full Code Here

Examples of lineage2.gameserver.templates.InstantZone

   * @param id int
   * @return SchedulingPattern
   */
  private SchedulingPattern getResetReuseById(int id)
  {
    InstantZone zone = getInstantZone(id);
    return zone == null ? null : zone.getResetReuse();
  }
View Full Code Here

Examples of lineage2.gameserver.templates.InstantZone

  protected void onDeath(Creature killer)
  {
    Reflection r = getReflection();
    r.setReenterTime(System.currentTimeMillis());
    super.onDeath(killer);
    InstantZone iz = r.getInstancedZone();
    if (iz != null)
    {
      String tele_device_loc = iz.getAddParams().getString("tele_device_loc", null);
      if (tele_device_loc != null)
      {
        KamalokaGuardInstance npc = new KamalokaGuardInstance(IdFactory.getInstance().getNextId(), NpcHolder.getInstance().getTemplate(TELE_DEVICE_ID));
        npc.setSpawnedLoc(Location.parseLoc(tele_device_loc));
        npc.setReflection(r);
View Full Code Here

Examples of lineage2.gameserver.templates.InstantZone

   * @param instancedZoneId int
   * @return boolean
   */
  public boolean canEnterInstance(int instancedZoneId)
  {
    InstantZone iz = InstantZoneHolder.getInstance().getInstantZone(instancedZoneId);
    if (isDead())
    {
      return false;
    }
    if (ReflectionManager.getInstance().size() > Config.MAX_REFLECTIONS_COUNT)
    {
      sendPacket(SystemMsg.THE_MAXIMUM_NUMBER_OF_INSTANCE_ZONES_HAS_BEEN_EXCEEDED);
      return false;
    }
    if (iz == null)
    {
      sendPacket(SystemMsg.SYSTEM_ERROR);
      return false;
    }
    if (ReflectionManager.getInstance().getCountByIzId(instancedZoneId) >= iz.getMaxChannels())
    {
      sendPacket(SystemMsg.THE_MAXIMUM_NUMBER_OF_INSTANCE_ZONES_HAS_BEEN_EXCEEDED);
      return false;
    }
    return iz.getEntryType().canEnter(this, iz);
  }
View Full Code Here

Examples of lineage2.gameserver.templates.InstantZone

   * @param instancedZoneId int
   * @return boolean
   */
  public boolean canReenterInstance(int instancedZoneId)
  {
    InstantZone iz = InstantZoneHolder.getInstance().getInstantZone(instancedZoneId);
    if ((getActiveReflection() != null) && (getActiveReflection().getInstancedZoneId() != instancedZoneId))
    {
      sendPacket(SystemMsg.YOU_HAVE_ENTERED_ANOTHER_INSTANCE_ZONE_THEREFORE_YOU_CANNOT_ENTER_CORRESPONDING_DUNGEON);
      return false;
    }
    if (iz.isDispelBuffs())
    {
      dispelBuffs();
    }
    return iz.getEntryType().canReEnter(this, iz);
  }
View Full Code Here

Examples of lineage2.gameserver.templates.InstantZone

   * @param instancedZoneId int
   * @return Reflection
   */
  public static Reflection enterReflection(Player invoker, int instancedZoneId)
  {
    InstantZone iz = InstantZoneHolder.getInstance().getInstantZone(instancedZoneId);
    return enterReflection(invoker, new Reflection(), iz);
  }
View Full Code Here

Examples of lineage2.gameserver.templates.InstantZone

   * @param instancedZoneId int
   * @return Reflection
   */
  public static Reflection enterReflection(Player invoker, Reflection r, int instancedZoneId)
  {
    InstantZone iz = InstantZoneHolder.getInstance().getInstantZone(instancedZoneId);
    return enterReflection(invoker, r, iz);
  }
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.