From b583034b4e998a6596a4246e364c4f31ba299b49 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 11 Feb 2024 17:01:42 -0600 Subject: [PATCH] hotzone removed from game --- src/engine/server/world/WorldServer.java | 2 +- src/engine/workthreads/HourlyJobThread.java | 30 ++++++++++----------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/engine/server/world/WorldServer.java b/src/engine/server/world/WorldServer.java index d662eaa5..d3add44a 100644 --- a/src/engine/server/world/WorldServer.java +++ b/src/engine/server/world/WorldServer.java @@ -436,7 +436,7 @@ public class WorldServer { DbManager.SkillsBaseQueries.LOAD_ALL_MAX_SKILLS_FOR_CONTRACT(); //pick a startup Hotzone - ZoneManager.generateAndSetRandomHotzone(); + //ZoneManager.generateAndSetRandomHotzone(); Logger.info("Loading All Players from database to Server Cache"); long start = System.currentTimeMillis(); diff --git a/src/engine/workthreads/HourlyJobThread.java b/src/engine/workthreads/HourlyJobThread.java index dbf17e0c..eabd71f1 100644 --- a/src/engine/workthreads/HourlyJobThread.java +++ b/src/engine/workthreads/HourlyJobThread.java @@ -189,28 +189,28 @@ public class HourlyJobThread implements Runnable { Logger.info("Hourly job is now running."); - try { + //try { // Use the same hotZone this hour up and until // the HotZone_Duration from the ConfigManager - if (ZoneManager.hotZone == null) - ZoneManager.generateAndSetRandomHotzone(); - else - ZoneManager.hotZoneCycle = ZoneManager.hotZoneCycle + 1; + //if (ZoneManager.hotZone == null) + // ZoneManager.generateAndSetRandomHotzone(); + //else + // ZoneManager.hotZoneCycle = ZoneManager.hotZoneCycle + 1; - if (ZoneManager.hotZoneCycle > Integer.parseInt(ConfigManager.MB_HOTZONE_DURATION.getValue())) - ZoneManager.generateAndSetRandomHotzone(); + //if (ZoneManager.hotZoneCycle > Integer.parseInt(ConfigManager.MB_HOTZONE_DURATION.getValue())) + // ZoneManager.generateAndSetRandomHotzone(); - if (ZoneManager.hotZone == null) { - Logger.error("Null HotZone returned from ZoneManager"); - } else { - Logger.info("HotZone switched to: " + ZoneManager.hotZone.getName()); - } + //if (ZoneManager.hotZone == null) { + // Logger.error("Null HotZone returned from ZoneManager"); + //} else { + // Logger.info("HotZone switched to: " + ZoneManager.hotZone.getName()); + //} - } catch (Exception e) { - Logger.error(e.toString()); - } + //} catch (Exception e) { + // Logger.error(e.toString()); + //} // Open or Close mines for the current mine window.