Package lineage2.gameserver.model.entity

Examples of lineage2.gameserver.model.entity.Reflection$ReflectionListenerList


    //Eternal Blizzard Cast
    if(!actor.isCastingNow() && _eternalblizzardReuseTimer < System.currentTimeMillis())
    {
      actor.doCast(SkillTable.getInstance().getInfo(Skill_EternalBlizzard, 1), actor, true);

      Reflection r = getActor().getReflection();
      for(Player p : r.getPlayers())
        p.sendPacket(new ExShowScreenMessage(NpcString.I_FEEL_STRONG_MAGIC_FLOW, 3000, ScreenMessageAlign.MIDDLE_CENTER, true));

      _eternalblizzardReuseTimer = System.currentTimeMillis() + _eternalblizzardReuseDelay * 1000L;
    }

 
View Full Code Here


    _reflectReuseTimer += generalReuse + Rnd.get(1, 20) * 1000L;
    _icestormReuseTimer += generalReuse + Rnd.get(1, 20) * 1000L;
    _deathsentenceReuseTimer += generalReuse + Rnd.get(1, 20) * 1000L;
    _angerReuseTimer += generalReuse + Rnd.get(1, 20) * 1000L;

    Reflection r = getActor().getReflection();
    for(Player p : r.getPlayers())
      this.notifyEvent(CtrlEvent.EVT_AGGRESSION, p, 2);
  }
View Full Code Here

  protected boolean thinkActive()
  {
    if(_idleDelay == 0 && !getActor().isCurrentHpFull())
      _idleDelay = System.currentTimeMillis();

    Reflection ref = getActor().getReflection();
    if(!getActor().isDead() && _idleDelay > 0 && _idleDelay + 60000 < System.currentTimeMillis())
      if(!ref.isDefault())
      {
        for(Player p : ref.getPlayers())
          p.sendPacket(new SystemMessage(SystemMessage.THIS_DUNGEON_WILL_EXPIRE_IN_S1_MINUTES).addNumber(1));
        ref.collapse();
      }

    super.thinkActive();
    return true;
  }
View Full Code Here

    }
    else if (command.equalsIgnoreCase("request_ekimus"))
    {
      if (SoIManager.getCurrentStage() == 2)
      {
        Reflection r = player.getActiveReflection();
        if (r != null)
        {
          if (player.canReenterInstance(ekimusIzId))
          {
            player.teleToLocation(r.getTeleportLoc(), r);
          }
        }
        else if (player.canEnterInstance(ekimusIzId))
        {
          ReflectionUtils.enterReflection(player, new HeartInfinityAttack(), ekimusIzId);
        }
      }
    }
    else if (command.equalsIgnoreCase("enter_seed"))
    {
      if (SoIManager.getCurrentStage() == 3)
      {
        SoIManager.teleportInSeed(player);
        return;
      }
    }
    else if (command.equalsIgnoreCase("hoi_defence"))
    {
      if (SoIManager.getCurrentStage() == 5)
      {
        Reflection r = player.getActiveReflection();
        if (r != null)
        {
          if (player.canReenterInstance(hoidefIzId))
          {
            player.teleToLocation(r.getTeleportLoc(), r);
          }
        }
        else if (player.canEnterInstance(hoidefIzId))
        {
          ReflectionUtils.enterReflection(player, new HeartInfinityDefence(), hoidefIzId);
View Full Code Here

   */
  @Override
  protected void onEvtDead(Creature killer)
  {
    final NpcInstance actor = getActor();
    final Reflection r = actor.getReflection();
    if (!r.isDefault())
    {
      if (actor.getNpcId() == 18711)
      {
        if (r.getInstancedZoneId() == 119)
        {
          ((ErosionHallAttack) r).notifyCoffinDeath();
        }
        else if (r.getInstancedZoneId() == 121)
        {
          ((HeartInfinityAttack) r).notifyCoffinDeath();
        }
        else if (r.getInstancedZoneId() == 120)
        {
          ((ErosionHallDefence) r).notifyCoffinDeath();
        }
        else if (r.getInstancedZoneId() == 122)
        {
          ((HeartInfinityDefence) r).notifyCoffinDeath();
        }
      }
    }
View Full Code Here

      {
        currentPoint++;
        loc = new Location((MOVE_LOC[currentPoint].getX() + Rnd.get(50)) - Rnd.get(50), (MOVE_LOC[currentPoint].getY() + Rnd.get(50)) - Rnd.get(50), (MOVE_LOC[currentPoint].getZ() + Rnd.get(50)) - Rnd.get(50));
        if (currentPoint == 0)
        {
          final Reflection r = getActor().getReflection();
          if (r instanceof MemoryOfDisaster)
          {
            ((MemoryOfDisaster) r).spawnTransparentTeredor();
          }
        }
View Full Code Here

   */
  @Override
  protected void onEvtTimer(int timerId, Object arg1, Object arg2)
  {
    super.onEvtTimer(timerId, arg1, arg2);
    final Reflection r = getActor().getReflection();
    if (r.equals(ReflectionManager.DEFAULT))
    {
      return;
    }
    switch (timerId)
    {
      case 1:
        Functions.npcSayInRange(getActor(), 1500, NpcString.ROGIN_IM_HERE);
        final List<NpcInstance> list = r.getAllByNpcId(ROGIN_ID, true);
        if (list.size() > 0)
        {
          final NpcInstance rogin = list.get(0);
          rogin.getAI().notifyEvent(CtrlEvent.EVT_SCRIPT_EVENT, "ROGIN_1");
        }
View Full Code Here

  protected void onEvtDead(Creature killer)
  {
    final NpcInstance actor = getActor();
    if ((actor.getNpcId() == 25694) || (actor.getNpcId() == 25695))
    {
      final Reflection ref = actor.getReflection();
      ref.setReenterTime(System.currentTimeMillis());
    }
    if (actor.getNpcId() == 25694)
    {
      for (int i = 0; i < 4; i++)
      {
View Full Code Here

    public void onBypassFeedback(Player player, String command) {
        if (!canBypassCheck(player, this))
            return;

        if (command.equalsIgnoreCase("start")) {
            Reflection r = player.getActiveReflection();
            if (r != null) {
                if (player.canReenterInstance(VullockInstance))
                    player.teleToLocation(r.getTeleportLoc(), r);
            } else if (player.canEnterInstance(VullockInstance)) {
                ReflectionUtils.enterReflection(player, new AltarShilen(), VullockInstance);
            }
        }else
            super.onBypassFeedback(player, command);
View Full Code Here

    if(!canBypassCheck(player, this))
      return;

    if(command.equalsIgnoreCase("request_normaloctavis"))
    {
      Reflection r = player.getActiveReflection();
      if(r != null)
      {
        if(player.canReenterInstance(normalOctavisInstId))
          player.teleToLocation(r.getTeleportLoc(), r);
      }
      else if(player.canEnterInstance(normalOctavisInstId))
        ReflectionUtils.enterReflection(player, new OctavisNormal(), normalOctavisInstId);
    }

    else if(command.equalsIgnoreCase("request_hardoctavis"))
    {
      Reflection r = player.getActiveReflection();
      if(r != null)
      {
        if(player.canReenterInstance(hardOctavisInstId))
          player.teleToLocation(r.getTeleportLoc(), r);
      }
      else if(player.canEnterInstance(hardOctavisInstId))
        ReflectionUtils.enterReflection(player, new OctavisNormal(), hardOctavisInstId);
    }
View Full Code Here

TOP

Related Classes of lineage2.gameserver.model.entity.Reflection$ReflectionListenerList

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.