From 6396f4eb19d32de1561a2e98e8dc5222b913e64d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 22 Feb 2020 16:11:48 -0300 Subject: Weather should be fixed. Do not forcing back to itself will not work '-' --- npc/functions/weather.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'npc') 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; -- cgit v1.2.3-60-g2f50