Package l2p.gameserver.model

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


        if((type == 11 || type == 12) && InstancedZoneManager.getInstance().getTimeToNextEnterInstance(DelusionChamber.getNameById(type), player) > 0)
        {
          player.sendPacket(new SystemMessage(SystemMessage.C1_MAY_NOT_RE_ENTER_YET).addName(player));
          return;
        }
        player.teleToLocation(old_ref.getTeleportLoc(), old_ref.getId());
        return;
      }
    }
    if(!player.getParty().isLeader(player))
    {
View Full Code Here


    Location pos = GeoEngine.findPointToStay(x, y, z, 50, 100, player.getReflection().getGeoIndex());
    if(price > 0)
    {
      player.reduceAdena(price, true);
    }
    player.teleToLocation(pos);
  }

  public void SSGatekeeper(String[] param)
  {
    if(param.length < 4)
View Full Code Here

        {
          return;
        }
      }
    }
    player.teleToLocation(Integer.parseInt(param[0]), Integer.parseInt(param[1]), Integer.parseInt(param[2]));
  }

  /**
   * Перемещает за определенный предмет
   *
 
View Full Code Here

    }
    int x = Integer.parseInt(param[0]);
    int y = Integer.parseInt(param[1]);
    int z = Integer.parseInt(param[2]);
    Location pos = GeoEngine.findPointToStay(x, y, z, 20, 70, player.getReflection().getGeoIndex());
    player.teleToLocation(pos);
  }

  public void ReflectionGatekeeper(String[] param)
  {
    if(param.length < 5)
View Full Code Here

        teleport = false;
      }
    }
    if(teleport)
    {
      p.teleToLocation(TullyFloor2LocationPoint);
    }
  }

  public static void CheckPlayerInTully2Zone(L2Zone zone, final L2Object object, final Boolean enter)
  {
View Full Code Here

        teleport = false;
      }
    }
    if(teleport)
    {
      p.teleToLocation(TullyFloor4LocationPoint);
    }
  }
}
View Full Code Here

    if(!L2NpcInstance.canBypassCheck(player, npc))
    {
      return;
    }
    player.setVar("backCoords", player.getLoc().toXYZString());
    player.teleToLocation(_zone.getSpawn().rnd(30, 200, false), -2);
  }

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

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

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

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

  public String DialogAppend_30059(Integer val)
  {
View Full Code Here

    }
    Location loc = teleports[Integer.parseInt(args[0]) - 1];
    L2Party party = player.getParty();
    if(party == null)
    {
      player.teleToLocation(loc);
    }
    else
    {
      for(L2Player member : party.getPartyMembers())
      {
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.