Examples of onSpawn()


Examples of l2p.gameserver.model.instances.L2MonsterInstance.onSpawn()

        for(int i = 0; i < 2; i++)
        {
          L2MonsterInstance npc = new L2MonsterInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(PENALTY_MOBS[Rnd.get(PENALTY_MOBS.length)]));
          npc.setSpawnedLoc(((L2MonsterInstance) actor).getMinionPosition());
          npc.setReflection(actor.getReflection());
          npc.onSpawn();
          npc.spawnMe(npc.getSpawnedLoc());
          npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker, Rnd.get(1, 100));
        }
      }
    }
View Full Code Here

Examples of l2p.gameserver.model.instances.L2MonsterInstance.onSpawn()

      if(count <= 10)
      {
        int i = Rnd.get(locs.length);
        L2MonsterInstance mob = new L2MonsterInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(18493));
        mob.setSpawnedLoc(new Location(locs[i]));
        mob.onSpawn();
        mob.spawnMe(new Location(locs[i]));
        count++;
      }
    }
  }
View Full Code Here

Examples of l2p.gameserver.model.instances.L2MonsterInstance.onSpawn()

          continue;
        }
        L2MonsterInstance trap = new L2MonsterInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(TRAP_NPC_ID));
        trap.setSpawnedLoc(TRAP_LOCS[index]);
        trap.setReflection(r);
        trap.onSpawn();
        trap.spawnMe(trap.getSpawnedLoc());
        r.addSpawn(trap.getSpawn());
        if(index < _traps.size())
        {
          _traps.remove(index);
View Full Code Here

Examples of l2p.gameserver.model.instances.L2MonsterInstance.onSpawn()

        {
          Reflection r = actor.getReflection();
          L2MonsterInstance npc = (L2MonsterInstance) NpcTable.getTemplate(transformer).getNewInstance();
          npc.setSpawnedLoc(actor.getLoc());
          npc.setReflection(r);
          npc.onSpawn();
          npc.spawnMe(npc.getSpawnedLoc());
          if(r.getId() > 0)
          {
            r.addSpawn(npc.getSpawn());
          }
View Full Code Here

Examples of l2p.gameserver.model.instances.L2MonsterInstance.onSpawn()

          {
            Reflection r = actor.getReflection();
            L2MonsterInstance npc = (L2MonsterInstance) NpcTable.getTemplate(transformer).getNewInstance();
            npc.setSpawnedLoc(actor.getLoc());
            npc.setReflection(r);
            npc.onSpawn();
            npc.setChampion(((L2MonsterInstance) actor).getChampion());
            npc.setCurrentHpMp(npc.getMaxHp(), npc.getMaxMp(), true);
            npc.spawnMe(npc.getSpawnedLoc());
            if(r.getId() > 0)
            {
View Full Code Here

Examples of l2p.gameserver.model.instances.L2MonsterInstance.onSpawn()

          try
          {
            L2MonsterInstance npc = new L2MonsterInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(PENALTY_MOBS[Rnd.get(PENALTY_MOBS.length)]));
            npc.setSpawnedLoc(((L2MonsterInstance) actor).getMinionPosition());
            npc.setReflection(actor.getReflection());
            npc.onSpawn();
            npc.spawnMe(npc.getSpawnedLoc());
            npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker, Rnd.get(1, 100));
          }
          catch(Exception e)
          {
View Full Code Here

Examples of l2p.gameserver.model.instances.L2MonsterInstance.onSpawn()

                  break;
      }
     
      L2MonsterInstance epidos = new L2MonsterInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(epidosId));
      epidos.setSpawnedLoc(CENTRAL_COLUMN);
      epidos.onSpawn();
      epidos.spawnMe(CENTRAL_COLUMN);
     
      ThreadPoolManager.getInstance().scheduleGeneral(new TeleportEpidosTask(epidos), 3000);
   
  }
View Full Code Here

Examples of l2p.gameserver.model.instances.L2NpcInstance.onSpawn()

  private static L2NpcInstance spawn(Location loc)
  {
    L2NpcTemplate template = NpcTable.getTemplate(loc.id);
    L2NpcInstance npc = template.getNewInstance();
    npc.setSpawnedLoc(loc);
    npc.onSpawn();
    npc.setHeading(loc.h);
    npc.setXYZInvisible(loc);
    npc.spawnMe();
    return npc;
  }
View Full Code Here

Examples of l2p.gameserver.model.instances.L2NpcInstance.onSpawn()

        try
        {
          L2NpcInstance npc = NpcTable.getTemplate(bro).getNewInstance();
          npc.setSpawnedLoc(((L2MonsterInstance) actor).getMinionPosition());
          npc.setReflection(actor.getReflection());
          npc.onSpawn();
          npc.spawnMe(npc.getSpawnedLoc());
          npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker, Rnd.get(1, 100));
        }
        catch(Exception e)
        {
View Full Code Here

Examples of l2p.gameserver.model.instances.L2NpcInstance.onSpawn()

        }
        else
        {
          npc = new L2SepulcherNpcInstance(IdFactory.getInstance().getNextId(), template);
        }
        npc.onSpawn();
        npc.setSpawnedLoc(loc);
        npc.spawnMe(loc);
        _allMobs.add(npc);
      }
    }
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.