summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-22 16:11:48 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-22 16:11:48 -0300
commit6396f4eb19d32de1561a2e98e8dc5222b913e64d (patch)
treee4cb0472894fafa9772a6a53522ffa9ed6fc3b35
parenta45799c7f28a75e1b4c5639dab81e0fcb6f158b7 (diff)
downloadserverdata-6396f4eb19d32de1561a2e98e8dc5222b913e64d.tar.gz
serverdata-6396f4eb19d32de1561a2e98e8dc5222b913e64d.tar.bz2
serverdata-6396f4eb19d32de1561a2e98e8dc5222b913e64d.tar.xz
serverdata-6396f4eb19d32de1561a2e98e8dc5222b913e64d.zip
Weather should be fixed. Do not forcing back to itself will not work '-'
-rw-r--r--npc/functions/weather.txt8
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;