hotzone removed from game

This commit is contained in:
2024-02-11 17:01:42 -06:00
parent 3360a034b2
commit b583034b4e
2 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -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();
+15 -15
View File
@@ -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.