diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-04-23 14:03:14 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-04-23 14:03:14 -0300 |
commit | 2ebb5d6ac8f2dcd6908e32952e759fd47887e3c1 (patch) | |
tree | 9db4ec2cc640e03895c42e04935d3bbeed652b2e /npc | |
parent | 7ff1da710188d18769ef8b0852479a2a84a229b9 (diff) | |
download | serverdata-2ebb5d6ac8f2dcd6908e32952e759fd47887e3c1.tar.gz serverdata-2ebb5d6ac8f2dcd6908e32952e759fd47887e3c1.tar.bz2 serverdata-2ebb5d6ac8f2dcd6908e32952e759fd47887e3c1.tar.xz serverdata-2ebb5d6ac8f2dcd6908e32952e759fd47887e3c1.zip |
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.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/weather.txt | 8 |
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); |