Package lineage2.gameserver.model.instances

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


    if (!NpcInstance.canBypassCheck(player, npc))
    {
      return;
    }
    player.setVar("backCoords", player.getLoc().toXYZString(), -1);
    player.teleToLocation(12661, 181687, -3560);
  }
 
  /**
   * Method fromMDT.
   */
 
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(12902, 181011, -3563);
    show("I don't know from where you came here, but I can teleport you the another border side.", player, npc);
  }
}
View Full Code Here

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

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

    if (_count > 0)
    {
      if (player.getInventory().destroyItemByItemId(8615, _count))
      {
        player.sendPacket(SystemMessage2.removeItems(8615, _count));
        player.teleToLocation(_location);
      }
      else
      {
        player.sendPacket(SystemMsg.INCORRECT_ITEM_COUNT);
      }
View Full Code Here

        player.sendPacket(SystemMsg.INCORRECT_ITEM_COUNT);
      }
    }
    else
    {
      player.teleToLocation(_location);
    }
  }
 
  /**
   * Method sayNo.
View Full Code Here

    if (event.equalsIgnoreCase("teleportCruma"))
    {
      st.setCond(1);
      st.setState(2);
      st.playSound("ItemSound.quest_accept");
      player.teleToLocation(17192, 114173, -3439);
      return null;
    }
    if (event.equalsIgnoreCase("33163-8.htm"))
    {
      if (st.getQuestItemsCount(17619) == 0L)
View Full Code Here

      return null;
    }
   
    if (event.equalsIgnoreCase("LeaveInstance"))
    {
      player.teleToLocation(17192, 114173, -3439, ReflectionManager.DEFAULT);
      return null;
    }
   
    return event;
  }
View Full Code Here

    }
    if (player.isDead() || !player.getReflection().isDefault() || player.isInOlympiadMode() || player.isInObserverMode() || player.isTeleporting() || (player.getTeam() != TeamType.NONE))
    {
      return;
    }
    player.teleToLocation(World.getPlayer(_mentee).getLoc());
  }
 
  /**
   * Method sayNo.
   * @see lineage2.gameserver.listener.actor.player.OnAnswerListener#sayNo()
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.