summaryrefslogtreecommitdiff
path: root/npc/functions/weather.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/weather.txt')
-rw-r--r--npc/functions/weather.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt
index 4d3da152e..9e4006d08 100644
--- a/npc/functions/weather.txt
+++ b/npc/functions/weather.txt
@@ -163,13 +163,19 @@ OnMinute45:
// 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) {
- announce("The night falls.", bc_all|bc_npc);
+ .@c = getunits(BL_PC, .@players, 20);
+ for (.@i = 0; .@i < .@c; .@i++) {
+ message(.@players[.@i], "The night falls.");
+ }
setbattleflag("mob_spawn_delay", 70);
charcommand("@reloadbattleconf"); // Careful!
donpcevent("@exprate::OnReload");
donpcevent("@droprate::OnReload");
} else if (!is_night() && $@WEATHER_NIGHT) {
- announce("The day rises.", bc_all|bc_npc);
+ .@c = getunits(BL_PC, .@players, 20);
+ for (.@i = 0; .@i < .@c; .@i++) {
+ message(.@players[.@i], "The day rises.");
+ }
setbattleflag("mob_spawn_delay", 100);
charcommand("@reloadbattleconf"); // Careful!
donpcevent("@exprate::OnReload");