Package l2p.gameserver.model.instances

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


          {
            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

          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

                  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

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.