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 com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.teleToLocation()

        {
          if (activeChar.getTeleMode() == 1)
            activeChar.setTeleMode(0);
         
          activeChar.sendPacket(ActionFailed.STATIC_PACKET);
          activeChar.teleToLocation(_targetX, _targetY, _targetZ, false);
          return;
        }
       
        if (_moveMovement == 0 && !Config.ALLOW_USE_CURSOR_FOR_WALK)
          activeChar.sendPacket(ActionFailed.STATIC_PACKET);
    View Full Code Here

    Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.teleToLocation()

          {
            L2PcInstance player = (L2PcInstance) character;

            if(player.isOnline() == 1)
            {
              player.teleToLocation(MapRegionTable.TeleportWhereType.Town);
            }

            player = null;
          }
        }
    View Full Code Here

    Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.teleToLocation()

            {
              @Override
              public void run()
              {
                player.sendMessage("You're not allowed in this zone!");
                player.teleToLocation(46525, 187585, -3512);
              }
            }, 10000);
          }
          }
        }
    View Full Code Here

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

          if(Config.SERVICES_GIRAN_HARBOR_ENABLED && player.getReflection().getId() == -2 && player.isVisible())
          {
            L2Playable playable = (L2Playable) object;
            double angle = Util.convertHeadingToDegree(playable.getHeading()); // угол в градусах
            double radian = Math.toRadians(angle - 90); // угол в радианах
            playable.teleToLocation((int) (playable.getX() + 50 * Math.sin(radian)), (int) (playable.getY() - 50 * Math.cos(radian)), playable.getZ());
          }
        }
      }
    }
    View Full Code Here

    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

    Examples of l2p.gameserver.model.instances.L2NpcInstance.teleToLocation()

        if (actor.getCurrentHpPercents() < 50 && !_teleported)
        {
          Location loc = (new Location(84968, -208728, -3367));
          actor.setSpawnedLoc(loc);
          actor.getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE, null, null);
          actor.teleToLocation(loc);
          _teleported = true;
          try
          {
            for (int i = 0; i < SPAWN_POINTS.length; i++)
            {
    View Full Code Here

    Examples of lineage2.gameserver.model.Player.teleToLocation()

        final Location pos = Location.findPointToStay(x, y, z, 50, 100, player.getGeoIndex());
        if (price > 0)
        {
          player.reduceAdena(price, true);
        }
        player.teleToLocation(pos);
      }
     
      /**
       * Method QuestGatekeeper.
       * @param param String[]
    View Full Code Here

    Examples of lineage2.gameserver.model.instances.NpcInstance.teleToLocation()

          }
          final Creature target = actor.getFollowTarget();
          if ((target == null) || (actor.getDistance(target) > 4000))
          {
            setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
            actor.teleToLocation(120664, -86968, -3392);
            return;
          }
          if (!actor.isInRange(target, Config.FOLLOW_RANGE + 20) && (!actor.isFollow || (!actor.getFollowTarget().equals(target))))
          {
            final Location loc = new Location(target.getX() + Rnd.get(-60, 60), target.getY() + Rnd.get(-60, 60), target.getZ());
    View Full Code Here

    Examples of net.sf.l2j.gameserver.model.L2Character.teleToLocation()

                            targetChar.sendPacket(SystemMessage.sendString("You cannot use escape skills during a duel."));
                            continue;
                        }
                    }

                    target.teleToLocation(MapRegionTable.TeleportWhereType.Town);
          }
            } catch (Throwable e) {
             if (Config.DEBUG) e.printStackTrace();
          }
       }
    View Full Code Here

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

                        if (!Util.checkIfInRange(0, activeChar, target, false))
                        {
                          targetChar.getInventory().destroyItemByItemId("Consume", 8615, 1, targetChar, activeChar);
                          targetChar.sendPacket(SystemMessage.sendString("You are summoned to a party member."));

                          targetChar.teleToLocation(activeChar.getX(),activeChar.getY(),activeChar.getZ(), true);
                        }
                        else
                        {

                        }
    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.