Package l2p.gameserver.model

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


    {
      L2Spawn sp = new L2Spawn(template);
      sp.setLoc(pos);
      sp.setAmount(1);
      sp.setRespawnDelay(0);
      _thomas = sp.doSpawn(true);
    }
    catch(Exception e)
    {
      e.printStackTrace();
    }
View Full Code Here


    }
    try
    {
      L2Spawn spawn = new L2Spawn(template);
      spawn.setLoc(activeChar.getLoc());
      L2NpcInstance npc = spawn.doSpawn(false);
      npc.setTitle(activeChar.getName()); //FIXME Почему-то не устанавливается
      spawn.respawnNpc(npc);
      // АИ вещающее бафф регена устанавливается только для большой елки
      if(itemId == 5561)
      {
View Full Code Here

    }
    try
    {
      L2Spawn spawn = new L2Spawn(template);
      spawn.setLoc(GeoEngine.findPointToStay(activeChar.getX(), activeChar.getY(), activeChar.getZ(), 30, 70, activeChar.getReflection().getGeoIndex()));
      L2NpcInstance npc = spawn.doSpawn(true);
      npc.setAI(new SquashAI(npc));
      ((SquashInstance) npc).setSpawner(activeChar);
      ThreadPoolManager.getInstance().scheduleAi(new DeSpawnScheduleTimerTask(spawn), 180000, false);
      activeChar.getInventory().destroyItem(item.getObjectId(), 1, false);
    }
View Full Code Here

    {
      if(!(((L2MonsterInstance) actor).getChampion() > 0) && actor.getCurrentHpPercents() > 50 && Rnd.chance(5))
      {
        L2Spawn spawn = new L2Spawn(NpcTable.getTemplate(21522));
        spawn.setLoc(actor.getLoc());
        L2NpcInstance npc = spawn.doSpawn(true);
        npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker, 100);
        actor.decayMe();
        actor.doDie(actor);
        return;
      }
View Full Code Here

      try
      {
        Location pos = GeoEngine.findPointToStay(actor.getX(), actor.getY(), actor.getZ(), 100, 120, actor.getReflection().getGeoIndex());
        L2Spawn sp = new L2Spawn(NpcTable.getTemplate(id));
        sp.setLoc(pos);
        spawns.add(sp.doSpawn(true));
      }
      catch(Exception e)
      {
        e.printStackTrace();
      }
View Full Code Here

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

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

        try
        {
          Location pos = GeoEngine.findPointToStay(actor.getX(), actor.getY(), actor.getZ(), 100, 120, actor.getReflection().getGeoIndex());
          L2Spawn sp = new L2Spawn(NpcTable.getTemplate(MOBS));
          sp.setLoc(pos);
          L2NpcInstance npc = sp.doSpawn(true);
          if(caster.isPet() || caster.isSummon())
          {
            npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, caster, Rnd.get(2, 100));
          }
          npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, caster.getPlayer(), Rnd.get(1, 100));
View Full Code Here

    {
      e.printStackTrace();
      return null;
    }
    spawn.setLoc(loc);
    L2NpcInstance npc = spawn.doSpawn(true);
    spawn.stopRespawn();
    return npc;
  }

  public void giveHallishaMark(QuestState st2)
View Full Code Here

        try
        {
          Location pos = GeoEngine.findPointToStay(actor.getX(), actor.getY(), actor.getZ(), 100, 120, actor.getReflection().getGeoIndex());
          L2Spawn sp = new L2Spawn(NpcTable.getTemplate(MOBS[Rnd.get(MOBS.length)]));
          sp.setLoc(pos);
          L2NpcInstance npc = sp.doSpawn(true);
          npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker, Rnd.get(1, 100));
        }
        catch(Exception e)
        {
          e.printStackTrace();
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.