Examples of Reflection


Examples of lineage2.gameserver.model.entity.Reflection

      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

Examples of lineage2.gameserver.model.entity.Reflection

    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

Examples of lineage2.gameserver.model.entity.Reflection

    return null;
  }
 
  private void enterInstance(Player player, int type)
  {
    Reflection r = player.getActiveReflection();
    if (r != null)
    {
      if (player.canReenterInstance(INCSTANCED_ZONE_ID))
      {
        player.teleToLocation(r.getTeleportLoc(), r);
      }
    }
    else if (player.canEnterInstance(INCSTANCED_ZONE_ID))
    {
      ReflectionUtils.enterReflection(player, INCSTANCED_ZONE_ID);
      Reflection ref = ReflectionUtils.enterReflection(player, INCSTANCED_ZONE_ID);
      World world = new World();
      world.rewarded = new ArrayList<>();
      world.instanceId = ref.getId();
      world.bosses = 5;
      worlds.put(ref.getId(), world);
      for (Player member : player.getParty().getPartyMembers())
      {
        if (member != player)
        {
          newQuestState(member, STARTED);
        }
      }
      if (type == 1)
      {
        runEmeraldAndSteamFirstRoom(world);
        ref.openDoor(DOOR1);
        ref.openDoor(DOOR2);
      }
      else if (type == 2)
      {
        runCoralGardenHall(world);
        ref.openDoor(CORAL_GARDEN_GATEWAY);
      }
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.Reflection

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

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

Examples of lineage2.gameserver.model.entity.Reflection

    world.DarnelRoom = new Room();
    world.DarnelRoom.npclist = new HashMap<>();
    NpcInstance newNpc;
    newNpc = addSpawnToInstance(DARNEL, new Location(152759, 145949, -12588, 21592), 0, world.instanceId);
    world.DarnelRoom.npclist.put(newNpc, false);
    Reflection r = ReflectionManager.getInstance().get(world.instanceId);
    r.openDoor(DOOR3);
    r.openDoor(DOOR4);
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.Reflection

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

        if (command.startsWith("request_vallock")) {
            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 Vullock(), VullockInstance);
            }
        } else if (command.equalsIgnoreCase("request_Baylor")) {
            Reflection r = player.getActiveReflection();
            if (r != null) {
                if (player.canReenterInstance(BaylorInstance))
                    player.teleToLocation(r.getTeleportLoc(), r);
            } else if (player.canEnterInstance(BaylorInstance)) {
                ReflectionUtils.enterReflection(player, new Baylor(), BaylorInstance);
            }
        }else
            super.onBypassFeedback(player, command);
View Full Code Here

Examples of lineage2.gameserver.model.entity.Reflection

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

Examples of lineage2.gameserver.model.entity.Reflection

   * @param arg Object[]
   */
  @Override
  public void showChatWindow(Player player, int val, Object... arg)
  {
    Reflection r = getReflection();
    if (r.isDefault() || used)
    {
      return;
    }
    for (NpcInstance npc : getAroundNpc(1000, 100))
    {
View Full Code Here

Examples of lineage2.gameserver.model.entity.Reflection

   * Method getBoss.
   * @return NpcInstance
   */
  private NpcInstance getBoss()
  {
    final Reflection r = getActor().getReflection();
    if (!r.isDefault())
    {
      for (NpcInstance n : r.getNpcs())
      {
        if ((n.getNpcId() == 25542) && !n.isDead())
        {
          return n;
        }
View Full Code Here

Examples of lineage2.gameserver.model.entity.Reflection

    {
      return;
    }
    if (command.equalsIgnoreCase("elcardia_enter"))
    {
      Reflection r = player.getActiveReflection();
      if (r != null)
      {
        if (player.canReenterInstance(elcardiaIzId))
        {
          player.teleToLocation(r.getTeleportLoc(), r);
        }
      }
      else if (player.canEnterInstance(elcardiaIzId))
      {
        ReflectionUtils.enterReflection(player, elcardiaIzId);
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.