Examples of NpcTemplate


Examples of lineage2.gameserver.templates.npc.NpcTemplate

        148936,
        -3472,
        0
      }
    };
    final NpcTemplate template = NpcHolder.getInstance().getTemplate(31392);
    for (int[] element : EVENT_MANAGERS)
    {
      SimpleSpawner sp = new SimpleSpawner(template);
      sp.setLocx(element[0]);
      sp.setLocy(element[1]);
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

      _flag.setHasChatWindow(false);
      _flag.spawnMe(_flagLoc);
    }
    else if (_mob == null)
    {
      NpcTemplate template = (_siegeClan == null) || (_siegeClan.getParam() == 0) ? _mobTemplate : NpcHolder.getInstance().getTemplate((int) _siegeClan.getParam());
      _mob = (CTBBossInstance) template.getNewInstance();
      _mob.setCurrentHpMp(_mob.getMaxHp(), _mob.getMaxMp());
      _mob.setMatchTeamObject(this);
      _mob.addEvent(event);
      int x = (int) (_flagLoc.x + (300 * Math.cos(_mob.headingToRadians(_flag.getHeading() - 32768))));
      int y = (int) (_flagLoc.y + (300 * Math.sin(_mob.headingToRadians(_flag.getHeading() - 32768))));
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

   */
  public NpcTemplate addEventId(int npcId, QuestEventType eventType)
  {
    try
    {
      NpcTemplate t = NpcHolder.getInstance().getTemplate(npcId);
      if (t != null)
      {
        t.addQuestEvent(eventType, this);
      }
      return t;
    }
    catch (Exception e)
    {
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

   */
  public static NpcInstance addSpawnToInstance(int npcId, Location loc, int randomOffset, int refId)
  {
    try
    {
      NpcTemplate template = NpcHolder.getInstance().getTemplate(npcId);
      if (template != null)
      {
        NpcInstance npc = NpcHolder.getInstance().getTemplate(npcId).getNewInstance();
        npc.setReflection(refId);
        npc.setSpawnedLoc(randomOffset > 50 ? Location.findPointToStay(loc, 50, randomOffset, npc.getGeoIndex()) : loc);
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

    {
      if (BumbalumpSpawned())
      {
        return;
      }
      NpcTemplate template = NpcHolder.getInstance().getTemplate(RB_Icicle_Emperor_Bumbalump);
      if (template == null)
      {
        return;
      }
      try
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

   * @param locations int[][]
   * @param list List<SimpleSpawner>
   */
  public static void SpawnNPCs(int npcId, int[][] locations, List<SimpleSpawner> list)
  {
    NpcTemplate template = NpcHolder.getInstance().getTemplate(npcId);
    if (template == null)
    {
      System.out.println("WARNING! Functions.SpawnNPCs template is null for npc: " + npcId);
      Thread.dumpStack();
      return;
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

  public NpcInfoPoly(Player cha)
  {
    _obj = cha;
    _npcId = cha.getPolyId();
    NpcTemplate template = NpcHolder.getInstance().getTemplate(_npcId);
    _rhand = 0;
    _lhand = 0;
    _isSummoned = false;
    colRadius = template.getCollisionRadius();
    colHeight = template.getCollisionHeight();
    _x = _obj.getX();
    _y = _obj.getY();
    _z = _obj.getZ();
    _rhand = template.rhand;
    _lhand = template.lhand;
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

    if (!activeChar.getReflection().isDefault())
    {
      activeChar.sendMessage("�?ел�?з�? взращиват�? арбуз в ин�?тан�?е.");
      return false;
    }
    NpcTemplate template = null;
    final int itemId = item.getItemId();
    for (int i = 0; i < _itemIds.length; i++)
    {
      if (_itemIds[i] == itemId)
      {
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

   * @param id int
   * @param points List<Location>
   */
  private static void spawn(int id, List<Location> points)
  {
    NpcTemplate template = NpcHolder.getInstance().getTemplate(id);
    MonsterInstance monster = new MonsterInstance(IdFactory.getInstance().getNextId(), template);
    monster.setCurrentHpMp(monster.getMaxHp(), monster.getMaxMp(), true);
    monster.setXYZ(points.get(0).x, points.get(0).y, points.get(0).z);
    MonstersAI ai = new MonstersAI(monster);
    ai.setPoints(points);
View Full Code Here

Examples of lineage2.gameserver.templates.npc.NpcTemplate

    NpcInstance target = GameObjectsStorage.getByNpcId(Gilmore);
    if (target != null)
    {
      _oldGilmoreRef = target.getRef();
      target.decayMe();
      NpcTemplate template = NpcHolder.getInstance().getTemplate(Gilmore);
      MonsterInstance monster = new MonsterInstance(IdFactory.getInstance().getNextId(), template);
      monster.setCurrentHpMp(monster.getMaxHp(), monster.getMaxMp(), true);
      monster.setXYZ(73329, 117705, -3741);
      GilmoreAI ai = new GilmoreAI(monster);
      monster.setAI(ai);
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.