Package lineage2.gameserver.model.instances

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


      if (obj != null)
      {
        Player player = obj.getPlayer();
        if ((player != null) && (playerInCommand(player.getStoredId()) == 0))
        {
          player.teleToLocation(147451, 46728, -3410);
        }
      }
    }
  }
 
View Full Code Here


    if (!NpcInstance.canBypassCheck(player, player.getLastNpc()))
    {
      return;
    }
    player.setVar("backCoords", player.getLoc().toXYZString(), -1);
    player.teleToLocation(POINTS[Rnd.get(POINTS.length)]);
  }
 
  /**
   * Method fromFantasyIsle.
   */
 
View Full Code Here

    if ((var == null) || var.equals(""))
    {
      teleOut();
      return;
    }
    player.teleToLocation(Location.parseLoc(var));
  }
 
  /**
   * Method teleOut.
   */
 
View Full Code Here

    NpcInstance npc = getNpc();
    if ((player == null) || (npc == null))
    {
      return;
    }
    player.teleToLocation(-44316, -113136, -80);
    show("I don't know from where you came here, but I can teleport you the nearest town.", player, npc);
  }
}
View Full Code Here

    if (!NpcInstance.canBypassCheck(player, npc))
    {
      return;
    }
    player.setVar("backCoords", player.getLoc().toXYZString(), -1);
    player.teleToLocation(Location.findPointToStay(_zone.getSpawn(), 30, 200, ReflectionManager.GIRAN_HARBOR.getGeoIndex()), ReflectionManager.GIRAN_HARBOR);
  }
 
  /**
   * Method fromGH.
   */
 
View Full Code Here

    if ((var == null) || var.equals(""))
    {
      teleOut();
      return;
    }
    player.teleToLocation(Location.parseLoc(var), 0);
  }
 
  /**
   * Method teleOut.
   */
 
View Full Code Here

    NpcInstance npc = getNpc();
    if ((player == null) || (npc == null))
    {
      return;
    }
    player.teleToLocation(46776, 185784, -3528, 0);
    show("I don't know from where you came here, but I can teleport you the another border side.", player, npc);
  }
 
  /**
   * Method DialogAppend_30059.
View Full Code Here

    }
    Location loc = teleports[Integer.parseInt(args[0]) - 1];
    Party party = player.getParty();
    if (party == null)
    {
      player.teleToLocation(loc);
    }
    else
    {
      for (Player member : party.getPartyMembers())
      {
View Full Code Here

    {
      case VSCOMMAO1:
      case VSCOMMAO2:
        if (st.getInt("stage") < 2)
        {
          player.teleToLocation(122789, -45692, -3036);
          return null;
        }
        break;
      case VSGMAG1:
      case VSGMAG2:
View Full Code Here

        break;
      case VSGMAG1:
      case VSGMAG2:
        if (st.getInt("stage") == 1)
        {
          player.teleToLocation(122789, -45692, -3036);
          return null;
        }
        else if (st.getInt("stage") == 2)
        {
          player.teleToLocation(116948, -46445, -2673);
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.