Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Spawn.doSpawn()


          Location oldPos = SPAWN_POINTS[i];
          L2Spawn s = new L2Spawn(NpcTable.getTemplate(LEMATANS_FOLLOWER));
          Location newPos = GeoEngine.findPointToStay(oldPos.x, oldPos.y, oldPos.z, 0, 0, actor.getReflection().getGeoIndex());
          s.setReflection(actor.getReflection().getId());
          s.setLoc(newPos);
          s.doSpawn(true);
        }
      }
      catch (Exception e)
      {
        e.printStackTrace();
View Full Code Here


    }
    try
    {
      L2Spawn spawn1 = new L2Spawn(NpcTable.getTemplate(TELEPORTATION_CUBIC_ID));
      spawn1.setLoc(CUBIC_1_POSITION);
      spawn1.doSpawn(true);
      spawn1.stopRespawn();
      L2Spawn spawn2 = new L2Spawn(NpcTable.getTemplate(TELEPORTATION_CUBIC_ID));
      spawn2.setLoc(CUBIC_2_POSITION);
      spawn2.doSpawn(true);
      spawn2.stopRespawn();
View Full Code Here

      spawn1.setLoc(CUBIC_1_POSITION);
      spawn1.doSpawn(true);
      spawn1.stopRespawn();
      L2Spawn spawn2 = new L2Spawn(NpcTable.getTemplate(TELEPORTATION_CUBIC_ID));
      spawn2.setLoc(CUBIC_2_POSITION);
      spawn2.doSpawn(true);
      spawn2.stopRespawn();
      ThreadPoolManager.getInstance().scheduleAi(new DeSpawnScheduleTimerTask(spawn1, spawn2), CUBIC_DESPAWN_TIME, false);
    }
    catch(Exception e)
    {
View Full Code Here

        {
          try
          {
            L2Spawn spawn = new L2Spawn(NpcTable.getTemplate(MOBS[Rnd.get(MOBS.length)]));
            spawn.setLoc(actor.getLoc());
            L2NpcInstance npc = spawn.doSpawn(true);
            npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, killer, Rnd.get(1, 100));
          }
          catch(Exception e)
          {
            e.printStackTrace();
View Full Code Here

    {
      Location loc = GeoEngine.findPointToStay(npc.getX(), npc.getY(), npc.getZ(), 40, 60, npc.getReflection().getGeoIndex());
      loc.setH(Util.getHeadingTo(loc, player.getLoc()));
      L2Spawn spawn = new L2Spawn(NpcTable.getTemplate(NPC_ALEGRIA));
      spawn.setLoc(loc);
      spawn.doSpawn(true);
      ThreadPoolManager.getInstance().scheduleAi(new DeSpawnScheduleTimerTask(spawn), 180000, false);
    }
    catch(Exception e)
    {
      e.printStackTrace();
View Full Code Here

      try
      {
        Location pos = GeoEngine.findPointToStay(player.getX(), player.getY(), player.getZ(), 100, 120, player.getReflection().getGeoIndex());
        L2Spawn sp = new L2Spawn(NpcTable.getTemplate(25667));
        sp.setLoc(pos);
        L2NpcInstance npc = sp.doSpawn(true);
        npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, player, Rnd.get(1, 100));
      }
      catch(ClassNotFoundException e)
      {
        e.printStackTrace();
View Full Code Here

      {
        case 1:
          Dying = false;
          // Do spawn.
          L2Spawn valakasSpawn = _monsterSpawn.get(Valakas);
          _valakas = (L2BossInstance) valakasSpawn.doSpawn(true);
          _monsters.add(_valakas);
          _valakas.setImobilised(true);
          _state.setRespawnDate(Rnd.get(FWV_FIXINTERVALOFVALAKAS, FWV_FIXINTERVALOFVALAKAS + FWV_RANDOMINTERVALOFVALAKAS));
          _state.setState(EpicBossState.State.ALIVE);
          _state.update();
View Full Code Here

    L2Spawn baiumSpawn = _monsterSpawn.get(BAIUM);
    baiumSpawn.setLoc(_npcBaium.getLoc());
    // delete statue
    _npcBaium.getSpawn().stopRespawn();
    _npcBaium.deleteMe();
    final L2BossInstance baium = (L2BossInstance) baiumSpawn.doSpawn(true);
    _monsters.add(baium);
    _state.setRespawnDate(getRespawnInterval());
    _state.setState(EpicBossState.State.ALIVE);
    _state.update();
    Log.add("Spawned Baium, awake by: " + awake_by, "bosses");
View Full Code Here

        try
        {
          L2Spawn sp = new L2Spawn(NpcTable.getTemplate(Stakato_Cheif));
          Location pos = GeoEngine.findPointToStay(actor.getX(), actor.getY(), actor.getZ(), 0, 0, actor.getReflection().getGeoIndex());
          sp.setLoc(pos);
          L2NpcInstance npc = sp.doSpawn(true);
          actor.broadcastPacket(new SocialAction(actor.getObjectId(), 1));
          npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, caster, Rnd.get(1, 100));
          actor.doDie(caster);
        }
        catch(Exception e)
View Full Code Here

      {
        pos = GeoEngine.findPointToStay(144298, 154420, -11854, 300, 320, actor.getReflection().getGeoIndex());
        L2Spawn sp = new L2Spawn(NpcTable.getTemplate(Tears_Copy));
        sp.setLoc(pos);
        sp.setReflection(actor.getReflection().getId());
        L2NpcInstance copy = sp.doSpawn(true);
        spawns.add(copy);
        // Атакуем случайную цель
        hated = actor.getRandomHated();
        if(hated != null)
        {
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.