From 1535f8f7c610efa3311bc140e3b499f431d37424 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 25 Jan 2019 19:16:03 -0200 Subject: Before demure kills me >.< Please revert if server becomes laggy because the announce --- npc/functions/weather.txt | 10 ++++++++-- 1 file 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"); -- cgit v1.2.3-70-g09d2