Package l2p.gameserver.model.instances

Examples of l2p.gameserver.model.instances.L2BossInstance


    L2Spawn baiumSpawn = _monsterSpawn.get(BAIUM);
    baiumSpawn.setLoc(_npcBaium.getLoc());
    // delete statue
    _npcBaium.getSpawn().stopRespawn();
    _npcBaium.deleteMe();
    final L2BossInstance baium = (L2BossInstance) baiumSpawn.doSpawn(true);
    _monsters.add(baium);
    _state.setRespawnDate(getRespawnInterval());
    _state.setState(EpicBossState.State.ALIVE);
    _state.update();
    Log.add("Spawned Baium, awake by: " + awake_by, "bosses");
    // set last attack time.
    setLastAttackTime();
    baium.setImobilised(true);
    baium.broadcastPacket(new PlaySound(1, "BS02_A", 1, 0, baium.getLoc()));
    baium.broadcastPacket(new SocialAction(baium.getObjectId(), 2));
    _socialTask = ThreadPoolManager.getInstance().scheduleGeneral(new Social(baium, 3), 15000);
    ThreadPoolManager.getInstance().scheduleGeneral(new EarthquakeTask(baium), 25000);
    _socialTask2 = ThreadPoolManager.getInstance().scheduleGeneral(new Social(baium, 1), 25000);
    _killPcTask = ThreadPoolManager.getInstance().scheduleGeneral(new KillPc(awake_by, baium), 26000);
    _callAngelTask = ThreadPoolManager.getInstance().scheduleGeneral(new CallArchAngel(), 35000);
View Full Code Here


          {
            npcId = 29067;
          } // normal
          Dying = false;
          // do spawn.
          _antharas = new L2BossInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(npcId));
          _antharas.setSpawnedLoc(_antharasLocation);
          _antharas.onSpawn();
          _antharas.spawnMe(_antharas.getSpawnedLoc());
          _antharas.setImobilised(true);
          _state.setRespawnDate(Rnd.get(FWA_FIXINTERVALOFANTHARAS, FWA_FIXINTERVALOFANTHARAS + FWA_RANDOMINTERVALOFANTHARAS));
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.instances.L2BossInstance

Copyright © 2018 www.massapicom. 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.