L2JMobius

C6 Spawn day&night

ver · 1 · 4819

Offline ver

  • Knight
  • ***
    • Posts: 70
Hi there,

Im in the middle of investigating a bug with not respawning some night mobs in forest. In the meanwhile I've found that admin commands spawnday and spawnnight should be called before the spawn command. If they would stay after admin_spawn they will never be reached.

file: java/org/l2jmobius/gameserver/handler/admincommandhandlers/AdminSpawn.java
Code: [Select]

                else if (command.startsWith("admin_spawnday"))
                {
                        DayNightSpawnManager.getInstance().spawnDayCreatures();
                }
                else if (command.startsWith("admin_spawnnight"))
                {
                        DayNightSpawnManager.getInstance().spawnNightCreatures();
                }
                // Command spawn '//spawn name numberSpawn respawnTime'.
                // With command '//spawn name' the respawnTime will be 10 seconds.
                else if (command.startsWith("admin_spawn") || command.startsWith("admin_spawn_monster"))
                {