Package lineage2.gameserver.model.entity

Examples of lineage2.gameserver.model.entity.Reflection


    {
      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

    {
      return;
    }
    if (command.startsWith("ExitSoloKama"))
    {
      Reflection r = getReflection();
      if (r.getReturnLoc() != null)
      {
        player.teleToLocation(r.getReturnLoc(), ReflectionManager.DEFAULT);
      }
      else
      {
        player.setReflection(ReflectionManager.DEFAULT);
      }
      player.unsetVar("backCoords");
      r.startCollapseTimer(1000);
    }
    else if (command.startsWith("ListPossible"))
    {
      if ((getNpcId() == 32484) && Config.ALT_KAMALOKA_NIGHTMARES_PREMIUM_ONLY && !player.hasBonus())
      {
        showChatWindow(player, "instance/soloKamaloka/32484-no.htm");
        return;
      }
      DomainArea domain = MapRegionManager.getInstance().getRegionData(DomainArea.class, this);
      String htmlpath = "instance/soloKamaloka/" + getNpcId();
      if (domain != null)
      {
        switch (domain.getId())
        {
          case 1:
            htmlpath += "-gludio";
            break;
          case 2:
            htmlpath += "-dion";
            break;
          case 4:
            htmlpath += "-oren";
            break;
          case 6:
            htmlpath += "-heine";
            break;
          case 8:
            htmlpath += "-rune";
            break;
          case 9:
            htmlpath += "-schuttgart";
            break;
        }
      }
      htmlpath += ".htm";
      showChatWindow(player, htmlpath);
    }
    else if (command.startsWith("ShowResults"))
    {
      String htmlpath = "instance/soloKamaloka/" + getNpcId();
      switch (getRewardRank())
      {
        case 0:
          htmlpath += "-F";
          break;
        case 1:
          htmlpath += "-D";
          break;
        case 2:
          htmlpath += "-C";
          break;
        case 3:
          htmlpath += "-B";
          break;
        case 4:
          htmlpath += "-A";
          break;
        case 5:
          htmlpath += "-S";
          break;
        case 6:
          if (getReflection().getInstancedZoneId() == INSTANCE_75LVL_ID)
          {
            htmlpath += "-G";
          }
          else
          {
            htmlpath += "-S";
          }
          break;
      }
      htmlpath += ".htm";
      showChatWindow(player, htmlpath);
    }
    else if (command.startsWith("SoloKamaReward"))
    {
      if (!_rewarded)
      {
        int[][] rewards = getRewardList(getRewardRank(), getReflection().getInstancedZone());
        if (rewards != null)
        {
          for (int[] item : rewards)
          {
            if (item != null)
            {
              int id = item[0];
              int count = item[1];
              if ((id > 0) && (count > 0))
              {
                Functions.addItem(player, id, count);
              }
            }
          }
        }
        _rewarded = true;
      }
      showChatWindow(player, 1);
    }
    else if (command.startsWith("Chat"))
    {
      try
      {
        int val = Integer.parseInt(command.substring(5));
        showChatWindow(player, val);
      }
      catch (NumberFormatException nfe)
      {
        String filename = command.substring(5).trim();
        if (filename.length() == 0)
        {
          showChatWindow(player, "npcdefault.htm");
        }
        else
        {
          showChatWindow(player, filename);
        }
      }
    }
    else if (command.startsWith("solo_kamaloka"))
    {
      int val = Integer.parseInt(command.substring(14));
      Reflection r = player.getActiveReflection();
      if (r != null)
      {
        if (player.canReenterInstance(val))
        {
          player.teleToLocation(r.getTeleportLoc(), r);
        }
      }
      else if (player.canEnterInstance(val))
      {
        ReflectionUtils.enterReflection(player, new KamalokaNightmare(player), val);
View Full Code Here

  {
    if (_rank >= 0)
    {
      return _rank;
    }
    Reflection r = getReflection();
    if (r instanceof KamalokaNightmare)
    {
      _rank = ((KamalokaNightmare) r).getRank();
    }
    else
View Full Code Here

    }
    if(event.equalsIgnoreCase("enter_instance"))
    {
      if(player.getInventory().getItemByItemId(MARK_OF_THE_RESISTANCE) != null)
      {
        Reflection r = player.getActiveReflection();
        if(r != null)
        {
          if(player.canReenterInstance(normalTautiInstanceId))
          {
            player.teleToLocation(r.getTeleportLoc(), r);
          }
        }
        else if(player.canEnterInstance(normalTautiInstanceId))
        {
          ReflectionUtils.enterReflection(player, new TautiNormal(), normalTautiInstanceId);
View Full Code Here

    {
      _followTask.cancel(false);
      _followTask = null;
    }
    _followTask = ThreadPoolManager.getInstance().schedule(new ThinkFollow(), 250L);
    final Reflection ref = actor.getReflection();
    if ((ref != null) && (_chatTimer < System.currentTimeMillis()))
    {
      _chatTimer = System.currentTimeMillis() + 5000;
      final Player masterplayer = target.getPlayer();
      final Map<Skill, Integer> d_skill = new HashMap<>();
      final double distance = actor.getDistance(target);
      switch (ref.getInstancedZoneId())
      {
        case 156:
          final QuestState qs = masterplayer.getQuestState(_10293_SevenSignsForbiddenBook.class);
          if ((qs != null) && !qs.isCompleted())
          {
View Full Code Here

        return;
      }

      Player player = cha.getPlayer();

      Reflection r = player.getActiveReflection();
      if(r != null)
      {
        if(player.canReenterInstance(InstanceId))
        {
          player.teleToLocation(r.getTeleportLoc(), r);
        }
      }
      else if(player.canEnterInstance(InstanceId))
      {
        ReflectionUtils.enterReflection(player, new Nursery(), InstanceId);
View Full Code Here

    {
      return;
    }
    if (command.equalsIgnoreCase("monastery_enter"))
    {
      Reflection r = player.getActiveReflection();
      if (r != null)
      {
        if (player.canReenterInstance(instancedZoneId))
        {
          player.teleToLocation(r.getTeleportLoc(), r);
        }
      }
      else if (player.canEnterInstance(instancedZoneId))
      {
        Reflection newfew = ReflectionUtils.enterReflection(player, instancedZoneId);
        ZoneListener zoneL = new ZoneListener();
        newfew.getZone("[ssq_holy_burial_ground]").addListener(zoneL);
        ZoneListener2 zoneL2 = new ZoneListener2();
        newfew.getZone("[ssq_holy_seal]").addListener(zoneL2);
      }
    }
    else
    {
      super.onBypassFeedback(player, command);
View Full Code Here

      return;
    }
    if (command.startsWith("kamaloka"))
    {
      int val = Integer.parseInt(command.substring(9));
      Reflection r = player.getActiveReflection();
      if (r != null)
      {
        if (player.canReenterInstance(val))
        {
          player.teleToLocation(r.getTeleportLoc(), r);
        }
      }
      else if (player.canEnterInstance(val))
      {
        ReflectionUtils.enterReflection(player, val);
      }
    }
    else if (command.startsWith("escape"))
    {
      if ((player.getParty() == null) || !player.getParty().isLeader(player))
      {
        showChatWindow(player, "not_party_leader.htm");
        return;
      }
      player.getReflection().collapse();
    }
    else if (command.startsWith("return"))
    {
      Reflection r = player.getReflection();
      if (r.getReturnLoc() != null)
      {
        player.teleToLocation(r.getReturnLoc(), ReflectionManager.DEFAULT);
      }
      else
      {
        player.setReflection(ReflectionManager.DEFAULT);
      }
View Full Code Here

    int npcId = npc.getNpcId();
    Location teleto = null;
    boolean spawn_captain = false;
    if (npcId == ORACLE_GUIDE2)
    {
      Reflection r = ReflectionManager.getInstance().get(world.instanceId);
      r.openDoor(DOOR5);
      r.openDoor(DOOR6);
    }
    else if (npcId == OG1)
    {
      spawn_captain = true;
    }
View Full Code Here

TOP

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

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.