diff options
-rw-r--r-- | npc/functions/weather.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt index d67212bb0..1b9d57491 100644 --- a/npc/functions/weather.txt +++ b/npc/functions/weather.txt @@ -205,29 +205,29 @@ OnMinute45: // The fastest you'll get is 30 minutes for night cycle. // It's 2 messages every 3 hours. (r7.5) // Player might be on cave, and this will help them tracking time. - if (is_night() && (!$@WEATHER_NIGHT || .@init)) { + .@current=is_night(true); + if (is_night() && (!.@current || .@init)) { .@c = getunits(BL_PC, .@players, MAX_CYCLE_PC); for (.@i = 0; .@i < .@c; .@i++) { message(.@players[.@i], "The night falls."); } - $@WEATHER_NIGHT=is_night(true); setbattleflag("mob_spawn_delay", BCONFN_SPAWN); setbattleflag("monster_hp_rate", BCONFN_MOBHP); //charcommand("@reloadbattleconf"); // Careful! donpcevent("@exprate::OnInheirtedReload"); //donpcevent("@droprate::OnReload"); - } else if (!is_night() && ($@WEATHER_NIGHT || .@init)) { + } else if (!is_night() && (.@current || .@init)) { .@c = getunits(BL_PC, .@players, MAX_CYCLE_PC); for (.@i = 0; .@i < .@c; .@i++) { message(.@players[.@i], "The day rises."); } - $@WEATHER_NIGHT=is_night(true); setbattleflag("mob_spawn_delay", BCONFD_SPAWN); setbattleflag("monster_hp_rate", BCONFD_MOBHP); //charcommand("@reloadbattleconf"); // Careful! donpcevent("@exprate::OnInheirtedReload"); //donpcevent("@droprate::OnReload"); } + $@WEATHER_NIGHT=.@current; debugmes "[Weather.sys] Weather reloaded"; end; |