Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Player.teleToLocation()


        if(player.getLevel() < min_level || player.getLevel() > max_level)
        {
          player.sendPacket(new SystemMessage(SystemMessage.C1S_LEVEL_REQUIREMENT_IS_NOT_SUFFICIENT_AND_CANNOT_BE_ENTERED).addName(player));
          return;
        }
        player.teleToLocation(old_ref.getTeleportLoc(), old_ref.getId());
        if(dispellBuffs)
        {
          for(L2Effect e : player.getEffectList().getAllEffects())
          {
            if(!e.getSkill().isOffensive() && !e.getSkill().getName().startsWith("Adventurer's "))
View Full Code Here


    if(!L2NpcInstance.canBypassCheck(player, npc))
    {
      return;
    }
    player.setVar("backCoords", player.getLoc().toXYZString());
    player.teleToLocation(12661, 181687, -3560);
  }

  public void fromMDT()
  {
    L2Player player = (L2Player) getSelf();
View Full Code Here

    if(var == null || var.equals(""))
    {
      teleOut();
      return;
    }
    player.teleToLocation(new Location(var));
  }

  public void teleOut()
  {
    L2Player player = (L2Player) getSelf();
View Full Code Here

    L2NpcInstance npc = getNpc();
    if(player == null || npc == null)
    {
      return;
    }
    player.teleToLocation(12902, 181011, -3563);
    show(player.isLangRus() ? "Я не знаю, как Вы попали сюда, но я могу Вас отправить за ограждение." : "I don't know from where you came here, but I can teleport you the another border side.", player, npc);
  }
}
View Full Code Here

    }
    KamalokaNightmare r = ReflectionTable.getInstance().findSoloKamaloka(player.getObjectId());
    if(r != null)
    {
      player.setVar("backCoords", r.getReturnLoc().toXYZString());
      player.teleToLocation(r.getTeleportLoc(), r.getId());
      return;
    }
    if(param[0].equals("-1"))
    {
      player.sendPacket(Msg.SYSTEM_ERROR);
View Full Code Here

      r.FillDoors(i.getDoors());
    }
    player.setVar(name, String.valueOf(System.currentTimeMillis()));
    r.setReturnLoc(player.getLoc());
    player.setVar("backCoords", r.getReturnLoc().toXYZString());
    player.teleToLocation(r.getTeleportLoc(), r.getId());
    ReflectionTable.getInstance().addSoloKamaloka(player.getObjectId(), r);
    if(timelimit > 0)
    {
      r.startCollapseTimer(timelimit * 60 * 1000L);
      player.sendPacket(new SystemMessage(SystemMessage.THIS_DUNGEON_WILL_EXPIRE_IN_S1_MINUTES).addNumber(timelimit));
View Full Code Here

    }
    Reflection r = ReflectionTable.SOD_REFLECTION_ID == 0 ? null : ReflectionTable.getInstance().get(ReflectionTable.SOD_REFLECTION_ID);
    if(ReflectionTable.SOD_REFLECTION_ID > 0 && r != null)
    {
      player.setVar("backCoords", r.getReturnLoc().toXYZString());
      player.teleToLocation(r.getTeleportLoc(), r.getId());
      return;
    }
    else
    {
      r = new Reflection(iz.getName());
View Full Code Here

      r.FillDoors(i.getDoors());
    }
    r.setCoreLoc(r.getReturnLoc());
    r.setReturnLoc(player.getLoc());
    player.setVar("backCoords", r.getReturnLoc().toXYZString());
    player.teleToLocation(r.getTeleportLoc(), r.getId());
    if(timelimit > 0)
    {
      r.startCollapseTimer(timelimit);
    }
  }
View Full Code Here

    if(!L2NpcInstance.canBypassCheck(player, npc))
    {
      return;
    }
    player.setVar("DCBackCoords", player.getLoc().toXYZString());
    player.teleToLocation(-114582, -152635, -6742);
  }

  public void fromDC()
  {
    L2Player player = (L2Player) getSelf();
View Full Code Here

    String var = player.getVar("DCBackCoords");
    if(var == null || var.equals(""))
    {
      return;
    }
    player.teleToLocation(new Location(var), 0);
    player.unsetVar("DCBackCoords");
  }

  public void enterDC(String[] param)
  {
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.