Package l2p.gameserver.model.instances

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


          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());
          }
          if(killer != null && killer.isPlayable())
View Full Code Here


            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)
            {
              r.addSpawn(npc.getSpawn());
            }
            npc.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, attacker, 100);
View Full Code Here

    L2MonsterInstance monster = new L2MonsterInstance(IdFactory.getInstance().getNextId(), template);
    monster.setCurrentHpMp(monster.getMaxHp(), monster.getMaxMp(), true);
    monster.setXYZ(points.get(0).x, points.get(0).y, points.get(0).z);
    MonstersAI ai = new MonstersAI(monster);
    monster.setAI(ai);
    monster.spawnMe();
    ai.setPoints(points);
    ai.startAITask();
    _spawns.add(monster);
  }
View Full Code Here

      L2MonsterInstance monster = new L2MonsterInstance(IdFactory.getInstance().getNextId(), template);
      monster.setCurrentHpMp(monster.getMaxHp(), monster.getMaxMp(), true);
      monster.setXYZ(73329, 117705, -3741);
      GilmoreAI ai = new GilmoreAI(monster);
      monster.setAI(ai);
      monster.spawnMe();
      ai.startAITask();
      _spawns.add(monster);
    }
  }
View Full Code Here

          {
            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)
          {
            e.printStackTrace();
View Full Code Here

      }
     
      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.