Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.SimpleSpawner.doSpawn()


    {
      return false;
    }
    final SimpleSpawner spawn = new SimpleSpawner(template);
    spawn.setLoc(activeChar.getLoc());
    final NpcInstance npc = spawn.doSpawn(false);
    npc.setTitle(activeChar.getName());
    spawn.respawnNpc(npc);
    if (itemId == 5561)
    {
      npc.setAI(new ctreeAI(npc));
View Full Code Here


    {
      return false;
    }
    final SimpleSpawner spawn = new SimpleSpawner(template);
    spawn.setLoc(Location.findPointToStay(activeChar, 30, 70));
    final NpcInstance npc = spawn.doSpawn(true);
    npc.setAI(new SquashAI(npc));
    ((SquashInstance) npc).setSpawner(activeChar);
    ThreadPoolManager.getInstance().schedule(new DeSpawnScheduleTimerTask(spawn), 180000);
    return true;
  }
View Full Code Here

      SimpleSpawner spawn = null;
      try
      {
        spawn = new SimpleSpawner(NpcHolder.getInstance().getTemplate(_npcId));
        spawn.setLoc(actor.getLoc());
        final NpcInstance npc = spawn.doSpawn(true);
        npc.setAI(new SquashAI(npc));
        ((SquashInstance) npc).setSpawner(actor.getSpawner());
      }
      catch (Exception e)
      {
View Full Code Here

    try
    {
      final SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(MOB));
      sp.setLoc(Location.findPointToStay(actor, 100, 120));
      sp.setReflection(actor.getReflection());
      final NpcInstance npc = sp.doSpawn(true);
      npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker, 100);
    }
    catch (Exception e)
    {
      e.printStackTrace();
View Full Code Here

      }
      try
      {
        final SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(DarkShamanVarangka));
        sp.setLoc(Location.findPointToStay(actor, 400, 420));
        final NpcInstance npc = sp.doSpawn(true);
        if (attacker.isPet() || attacker.isServitor())
        {
          npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker, Rnd.get(2, 100));
        }
        npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker.getPlayer(), Rnd.get(1, 100));
View Full Code Here

      {
        try
        {
          SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(22702));
          sp.setLoc(Location.findPointToStay(actor, 150, 160));
          NpcInstance npc = sp.doSpawn(true);
          if (attacker.isPet() || attacker.isServitor())
          {
            npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker, Rnd.get(2, 100));
          }
          npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker.getPlayer(), Rnd.get(1, 100));
View Full Code Here

      {
        pos = Location.findPointToStay(144298, 154420, -11854, 300, 320, actor.getGeoIndex());
        SimpleSpawner sp = new SimpleSpawner(NpcHolder.getInstance().getTemplate(Tears_Copy));
        sp.setLoc(pos);
        sp.setReflection(actor.getReflection());
        NpcInstance copy = sp.doSpawn(true);
        spawns.add(copy);
        hated = actor.getAggroList().getRandomHated();
        if (hated != null)
        {
          copy.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, hated, Rnd.get(1, 100));
View Full Code Here

        {
          SimpleSpawner sp = new SimpleSpawner(TANTA_LIZARDMAN_SCOUT);
          // @SuppressWarnings("unused")
          // int radius = (((i % 2) == 0) ? -1 : 1) * 16000;
          sp.setLoc(actor.getLoc());
          NpcInstance npc = sp.doSpawn(true);
          npc.setHeading(PositionUtils.calculateHeadingFrom(npc, attacker));
          npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker, 1000);
        }
        catch (Exception e)
        {
View Full Code Here

    }
    try
    {
      SimpleSpawner sp = new SimpleSpawner(epidostospawn);
      sp.setLoc(spawnLoc);
      sp.doSpawn(true);
      sp.stopRespawn();
      _bossSpawned = true;
    }
    catch (Exception e)
    {
View Full Code Here

    }
    try
    {
      SimpleSpawner sp = new SimpleSpawner(teleCube);
      sp.setLoc(spawnLoc);
      sp.doSpawn(true);
      sp.stopRespawn();
      Functions.npcShout(sp.getLastSpawn(), "Teleportation to Beleth Throne Room is available for 2 minutes");
    }
    catch (Exception e)
    {
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.