Jump to content

Question

Posted

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

 

 

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...