From 2ebb5d6ac8f2dcd6908e32952e759fd47887e3c1 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 23 Apr 2020 14:03:14 -0300 Subject: Day/Night Cycle change hack: Heal players and buff their HP in 10% for 30s This will compensate them for a while, hopefully. Bonus stack with Sacred Health Potion. --- npc/functions/weather.txt | 8 ++++++++ 1 file changed, 8 insertions(+) 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); -- cgit v1.2.3-70-g09d2