Examples of teleToLocation()

  • com.l2jfrozen.gameserver.model.L2Summon.teleToLocation()
  • com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.teleToLocation()
  • l2p.gameserver.model.L2Playable.teleToLocation()
  • l2p.gameserver.model.L2Player.teleToLocation()
  • l2p.gameserver.model.instances.L2NpcInstance.teleToLocation()
  • lineage2.gameserver.model.Player.teleToLocation()
    Method teleToLocation. @param x int @param y int @param z int @param refId int
  • lineage2.gameserver.model.instances.NpcInstance.teleToLocation()
    Method teleToLocation. @param loc Location
  • net.sf.l2j.gameserver.model.L2Character.teleToLocation()
    Teleport a L2Character and its pet if necessary.

    Actions :

  • Stop the movement of the L2Character
  • Set the x,y,z position of the L2Object and if necessary modify its _worldRegion
  • Send a Server->Client packet TeleportToLocationt to the L2Character AND to all L2PcInstance in its _KnownPlayers
  • Modify the position of the pet if necessary


  • @param x the x @param y the y @param z the z @param allowRandomOffset the allow random offset
  • net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.teleToLocation()

  • Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.teleToLocation()

           LinkedList<String> linked = L2Event.players.get(team);
           Iterator<String> it = linked.iterator();
           while(it.hasNext()){
               try{L2PcInstance pc = L2World.getInstance().getPlayer(it.next().toString());
               pc.setTitle(L2Event.names.get(team));
               pc.teleToLocation(activeChar.getX(), activeChar.getY(), activeChar.getZ(), true);}catch(Exception e){}
           }

       }
       void sitTeam(int team){
           LinkedList<String> linked = L2Event.players.get(team);
    View Full Code Here

    Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.teleToLocation()

           LinkedList<String> linked = L2Event.players.get(team);
           Iterator<String> it = linked.iterator();
           while(it.hasNext()){
            try{   L2PcInstance target = L2World.getInstance().getPlayer(it.next().toString());
            target.getPoly().setPolyInfo("npc", id);
            target.teleToLocation(target.getX(), target.getY(), target.getZ(), true);
            CharInfo info1 = new CharInfo(target);
            target.broadcastPacket(info1);
                UserInfo info2 = new UserInfo(target);
                target.sendPacket(info2);}catch(Exception e){}
           }
    View Full Code Here

    Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.teleToLocation()

             try{ L2PcInstance target = L2World.getInstance().getPlayer(it.next().toString());
              target.setTitle(target.eventTitle);
              target.setKarma(target.eventkarma);
              target.setPvpKills(target.eventpvpkills);
              target.setPkKills(target.eventpkkills);
              target.teleToLocation(target.eventX, target.eventY, target.eventZ, true);
              target.kills.clear();
              target.eventSitForced = false;
              target.atEvent = false;}catch(Exception e){}
           }
       }
    View Full Code Here

    Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.teleToLocation()

        activeChar.onPlayerEnter();

        if (Olympiad.getInstance().playerInStadia(activeChar))
            {
                activeChar.teleToLocation(MapRegionTable.TeleportWhereType.Town);
                activeChar.sendMessage("You have been teleported to the nearest town due to you being in an Olympiad Stadium");
            }

            if (DimensionalRiftManager.getInstance().checkIfInRiftZone(activeChar.getX(), activeChar.getY(), activeChar.getZ(), false))
            {
    View Full Code Here

    Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.teleToLocation()

        }

        if (!activeChar.isGM() && activeChar.getSiegeState() < 2 && activeChar.isInsideZone(L2Character.ZONE_SIEGE))
        {
                // Attacker or spectator logging in to a siege zone. Actually should be checked for inside castle only?
          activeChar.teleToLocation(MapRegionTable.TeleportWhereType.Town);
                activeChar.sendMessage("You have been teleported to the nearest town due to you being in siege zone");
        }

        RegionBBSManager.getInstance().changeCommunityBoard();
    View Full Code Here

    Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.teleToLocation()

        if (activeChar.getTeleMode() > 0)
        {
          if (activeChar.getTeleMode() == 1)
            activeChar.setTeleMode(0);
          activeChar.sendPacket(new ActionFailed());
          activeChar.teleToLocation(_targetX, _targetY, _targetZ, false);
          return;
        }

        if (_moveMovement == 0 && Config.GEODATA < 1) // cursor movement without geodata is disabled
        {
    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.