Skip to content

Hellman Boss

Featured Replies

Hi how to disable von helman boss spawning days and nights? i whant make him all time avialable.. here is the code from DayNightSpawnManager.

 

 

private void specialNightBoss(int mode)
{
try
{
for (L2Spawn spawn : _bosses.keySet())
{
L2RaidBossInstance boss = _bosses.get(spawn);
 
if (boss == null)
{
if (mode == 1)
{
boss = (L2RaidBossInstance) spawn.doSpawn();
RaidBossSpawnManager.getInstance().notifySpawnNightBoss(boss);
_bosses.remove(spawn);
_bosses.put(spawn, boss);
}
continue;
}
 
if (boss.getNpcId() == 25328 && boss.getRaidStatus().equals(RaidBossSpawnManager.StatusEnum.ALIVE))
handleHellmans(boss, mode);
return;
}
}
catch (Exception e)
{
_log.log(Level.WARNING, "Error while specialNoghtBoss(): " + e.getMessage(), e);
}
}
 
private static void handleHellmans(L2RaidBossInstance boss, int mode)
{
switch (mode)
{
case 0:
boss.deleteMe();
_log.info("DayNightSpawnManager: Deleting Hellman raidboss");
break;
case 1:
boss.spawnMe();
_log.info("DayNightSpawnManager: Spawning Hellman raidboss");
break;
}
}
 
public L2RaidBossInstance handleBoss(L2Spawn spawnDat)
{
if (_bosses.containsKey(spawnDat))
return _bosses.get(spawnDat);
 
if (GameTimeController.getInstance().isNowNight())
{
L2RaidBossInstance raidboss = (L2RaidBossInstance) spawnDat.doSpawn();
_bosses.put(spawnDat, raidboss);
 
return raidboss;
}
_bosses.put(spawnDat, null);
 
return null;
}

 

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.