Package lineage2.gameserver.model.entity.events.impl

Examples of lineage2.gameserver.model.entity.events.impl.DuelEvent$OnPlayerExitListenerImpl


  private void init()
  {
    _zoneListener = new ZoneListener();
    for (String s : zones)
    {
      Zone zone = ReflectionUtils.getZone(s);
      zone.addListener(_zoneListener);
    }
  }
View Full Code Here


   * Method init.
   */
  private void init()
  {
    _zoneListener = new ZoneListener();
    Zone zone = ReflectionUtils.getZone(ZONE_NAME);
    if (zone != null)
    {
      zone.addListener(_zoneListener);
    }
  }
View Full Code Here

    {
      return;
    }
    if (command.equalsIgnoreCase("request_nightzaken"))
    {
      Reflection r = player.getActiveReflection();
      if (r != null)
      {
        if (player.canReenterInstance(nightZakenIzId))
        {
          player.teleToLocation(r.getTeleportLoc(), r);
        }
      }
      else if (player.canEnterInstance(nightZakenIzId))
      {
        ReflectionUtils.enterReflection(player, new ZakenNight(), nightZakenIzId);
      }
    }
    else if (command.equalsIgnoreCase("request_dayzaken"))
    {
      Reflection r = player.getActiveReflection();
      if (r != null)
      {
        if (player.canReenterInstance(dayZakenIzId))
        {
          player.teleToLocation(r.getTeleportLoc(), r);
        }
      }
      else if (player.canEnterInstance(dayZakenIzId))
      {
        ReflectionUtils.enterReflection(player, new ZakenDay(), dayZakenIzId);
      }
    }
    else if (command.equalsIgnoreCase("request_ultrazaken"))
    {
      Reflection r = player.getActiveReflection();
      if (r != null)
      {
        if (player.canReenterInstance(ultraZakenIzId))
        {
          player.teleToLocation(r.getTeleportLoc(), r);
        }
      }
      else if (player.canEnterInstance(ultraZakenIzId))
      {
        ReflectionUtils.enterReflection(player, new ZakenDay83(), ultraZakenIzId);
View Full Code Here

      else if (Rnd.chance(50))
      {
        nextId = getNextVoid(npcId);
      }
    }
    final Reflection r = actor.getReflection();
    boolean spawnPossible = true;
    if (r instanceof KamalokaNightmare)
    {
      final KamalokaNightmare kama = (KamalokaNightmare) r;
      kama.addKilledKanabion(type);
View Full Code Here

      Player pk = (Player) killer;
      if (isInZone(ZoneType.SIEGE))
      {
        return;
      }
      DuelEvent duelEvent = getEvent(DuelEvent.class);
      if ((owner.getPvpFlag() > 0) || owner.atMutualWarWith(pk))
      {
        pk.setPvpKills(pk.getPvpKills() + 1);
      }
      else if (((duelEvent == null) || (duelEvent != pk.getEvent(DuelEvent.class))) && (getKarma() <= 0))
View Full Code Here

      if (skill.getTargetType() == SkillTargetType.TARGET_CHEST)
      {
        return false;
      }
    }
    DuelEvent duelEvent = getEvent(DuelEvent.class);
    if ((duelEvent != null) && (duelEvent == target.getEvent(DuelEvent.class)))
    {
      return false;
    }
    if (isInZonePeace() && target.isInZonePeace())
View Full Code Here

    {
      getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE, null, null);
      player.sendActionFailed();
      return;
    }
    DuelEvent duelEvent = getEvent(DuelEvent.class);
    if ((duelEvent != null) && (target.getEvent(DuelEvent.class) != duelEvent))
    {
      duelEvent.abortDuel(getPlayer());
    }
    WeaponTemplate weaponItem = getActiveWeaponItem();
    if ((weaponItem != null) && ((weaponItem.getItemType() == WeaponType.BOW) || (weaponItem.getItemType() == WeaponType.CROSSBOW)))
    {
      double bowMpConsume = weaponItem.getMpConsume();
View Full Code Here

  {
    if (skill == null)
    {
      return;
    }
    DuelEvent duelEvent = getEvent(DuelEvent.class);
    if ((duelEvent != null) && (target.getEvent(DuelEvent.class) != duelEvent))
    {
      duelEvent.abortDuel(getPlayer());
    }
    if (skill.isAoE() && isInPeaceZone())
    {
      getPlayer().sendPacket(Msg.A_MALICIOUS_SKILL_CANNOT_BE_USED_IN_A_PEACE_ZONE);
      return;
View Full Code Here

        {
          attacker.getPlayer().sendPacket(Msg.INVALID_TARGET);
        }
        return;
      }
      DuelEvent duelEvent = getEvent(DuelEvent.class);
      if ((duelEvent != null) && (attacker.getEvent(DuelEvent.class) != duelEvent))
      {
        duelEvent.abortDuel(player);
      }
    }
    super.reduceCurrentHp(damage, reflectableDamage, attacker, skill, awake, standUp, directHp, canReflect, transferDamage, isDot, sendMessage);
  }
View Full Code Here

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    DuelEvent duelEvent = player.getEvent(DuelEvent.class);
    if (duelEvent == null)
    {
      return;
    }
    duelEvent.packetSurrender(player);
  }
View Full Code Here

TOP

Related Classes of lineage2.gameserver.model.entity.events.impl.DuelEvent$OnPlayerExitListenerImpl

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.