summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/weather.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt
index 410fa221d..e9931e5a1 100644
--- a/npc/functions/weather.txt
+++ b/npc/functions/weather.txt
@@ -209,7 +209,11 @@ OnMinute45:
if (is_night() && (!.@current || .@init)) {
.@c = getunits(BL_PC, .@players, MAX_CYCLE_PC);
for (.@i = 0; .@i < .@c; .@i++) {
+ attachrid(.@players[.@i]);
+ SC_Bonus(30000, SC_INCMHPRATE, 10, 10);
+ percentheal 100, 100;
message(.@players[.@i], "The night falls.");
+ detachrid();
}
setbattleflag("mob_spawn_delay", $BCONFN_SPAWN);
setbattleflag("monster_hp_rate", $BCONFN_MOBHP);
@@ -219,7 +223,11 @@ OnMinute45:
} else if (!is_night() && (.@current || .@init)) {
.@c = getunits(BL_PC, .@players, MAX_CYCLE_PC);
for (.@i = 0; .@i < .@c; .@i++) {
+ attachrid(.@players[.@i]);
+ SC_Bonus(30000, SC_INCMHPRATE, 10, 10);
+ percentheal 100, 100;
message(.@players[.@i], "The day rises.");
+ detachrid();
}
setbattleflag("mob_spawn_delay", $BCONFD_SPAWN);
setbattleflag("monster_hp_rate", $BCONFD_MOBHP);