summaryrefslogtreecommitdiff
path: root/npc/functions/weather.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-25 19:16:03 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-25 19:16:03 -0200
commit1535f8f7c610efa3311bc140e3b499f431d37424 (patch)
treea7dc66b0220991a259f9d76d286a098396bf8776 /npc/functions/weather.txt
parent73ff77bb75f50624224bfa7813548b338bdd9738 (diff)
downloadserverdata-1535f8f7c610efa3311bc140e3b499f431d37424.tar.gz
serverdata-1535f8f7c610efa3311bc140e3b499f431d37424.tar.bz2
serverdata-1535f8f7c610efa3311bc140e3b499f431d37424.tar.xz
serverdata-1535f8f7c610efa3311bc140e3b499f431d37424.zip
Before demure kills me >.<
Please revert if server becomes laggy because the announce
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");