|
|
|
@ -247,20 +247,24 @@ public class WorldServer {
@@ -247,20 +247,24 @@ public class WorldServer {
|
|
|
|
|
nextWareHousePushTime = LocalDateTime.now().plusMinutes(15); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
switch(LocalDateTime.now().getHour()){ |
|
|
|
|
case 0: |
|
|
|
|
case 4: |
|
|
|
|
case 8: |
|
|
|
|
case 12: |
|
|
|
|
case 16: |
|
|
|
|
case 20: |
|
|
|
|
for(Mob dropper : Mob.disciplineDroppers) { |
|
|
|
|
if (!dropper.isAlive()) { |
|
|
|
|
Zone.respawnQue.add(dropper); |
|
|
|
|
|
|
|
|
|
if(LocalDateTime.now().isAfter(nextDiscSpawn)) { |
|
|
|
|
switch (LocalDateTime.now().getHour()) { |
|
|
|
|
case 0: |
|
|
|
|
case 4: |
|
|
|
|
case 8: |
|
|
|
|
case 12: |
|
|
|
|
case 16: |
|
|
|
|
case 20: |
|
|
|
|
for (Mob dropper : Mob.disciplineDroppers) { |
|
|
|
|
if (!dropper.isAlive()) { |
|
|
|
|
Zone.respawnQue.add(dropper); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
nextDiscSpawn = nextDiscSpawn.plusHours(1); |
|
|
|
|
} |
|
|
|
|
ThreadUtils.sleep(50); |
|
|
|
|
} |
|
|
|
|