Examples of BossInstance


Examples of lineage2.gameserver.model.instances.BossInstance

    _npcBaium = NpcBaium;
    final SimpleSpawner baiumSpawn = _monsterSpawn.get(BAIUM);
    baiumSpawn.setLoc(_npcBaium.getLoc());
    _npcBaium.getSpawn().stopRespawn();
    _npcBaium.deleteMe();
    final BossInstance baium = (BossInstance) 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");
    setLastAttackTime();
    baium.startImmobilized();
    baium.broadcastPacket(new PlaySound(PlaySound.Type.MUSIC, "BS02_A", 1, 0, baium.getLoc()));
    baium.broadcastPacket(new SocialAction(baium.getObjectId(), 2));
    _socialTask = ThreadPoolManager.getInstance().schedule(new Social(baium, 3), 15000);
    ThreadPoolManager.getInstance().schedule(new EarthquakeTask(baium), 25000);
    _socialTask2 = ThreadPoolManager.getInstance().schedule(new Social(baium, 1), 25000);
    _killPcTask = ThreadPoolManager.getInstance().schedule(new KillPc(awake_by, baium), 26000);
    _callAngelTask = ThreadPoolManager.getInstance().schedule(new CallArchAngel(), 35000);
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.