U3Games

Games | Desarrollo & Soporte => L2 | Implementaciones => L2 | Sección de Servidores => Lineage => L2 | Codes => Mensaje iniciado por: djjose en Jul 26, 2025, 11:58 PM

Título: Respawn NPCs
Publicado por: djjose en Jul 26, 2025, 11:58 PM
find SpawnTable.java
Citarprotected SpawnTable()
    {
        if (!Config.ALT_DEV_NO_SPAWNS)
            fillSpawnTable();
    }
change:
   
Citarprivate SpawnTable()
    {
        ThreadPoolManager.getInstance().scheduleGeneral(new NPCServerTask(), Config.npcServerDelay * 1000);
    }
add:
 
Citarclass NPCServerTask implements Runnable
    {
        public void run()
        {
            fillSpawnTable();
            _log.info("NPC Server: Task initialization...");

        }
    }

find Config.java

add:
Citarpublic static long npcServerDelay;

find config:
add:
CitarnpcServerDelay = Integer.parseInt(npcs.getProperty("npcServerDelay", "1"));