summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-21 20:47:04 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-21 20:47:04 -0300
commit4b39e827cab45bfb3ce492cb9b284aa27e902ef1 (patch)
tree01fd04a9c5d2e71f357b9084bbfaedde77109163 /npc
parent166e356b976caed5a644a2ccf8b4b874a57b9bd5 (diff)
downloadserverdata-4b39e827cab45bfb3ce492cb9b284aa27e902ef1.tar.gz
serverdata-4b39e827cab45bfb3ce492cb9b284aa27e902ef1.tar.bz2
serverdata-4b39e827cab45bfb3ce492cb9b284aa27e902ef1.tar.xz
serverdata-4b39e827cab45bfb3ce492cb9b284aa27e902ef1.zip
Move weather battle conf reloads to constants,
modify monster HP during day/night cycle (day: all mobs -10% HP)
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/weather.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt
index c18d12c24..10ac73e97 100644
--- a/npc/functions/weather.txt
+++ b/npc/functions/weather.txt
@@ -197,7 +197,8 @@ OnMinute45:
for (.@i = 0; .@i < .@c; .@i++) {
message(.@players[.@i], "The night falls.");
}
- setbattleflag("mob_spawn_delay", 70);
+ setbattleflag("mob_spawn_delay", BCONFN_SPAWN);
+ setbattleflag("monster_hp_rate", BCONFN_MOBHP);
//charcommand("@reloadbattleconf"); // Careful!
donpcevent("@exprate::OnReload");
donpcevent("@droprate::OnReload");
@@ -206,7 +207,8 @@ OnMinute45:
for (.@i = 0; .@i < .@c; .@i++) {
message(.@players[.@i], "The day rises.");
}
- setbattleflag("mob_spawn_delay", 100);
+ setbattleflag("mob_spawn_delay", BCONFD_SPAWN);
+ setbattleflag("monster_hp_rate", BCONFD_MOBHP);
//charcommand("@reloadbattleconf"); // Careful!
donpcevent("@exprate::OnReload");
donpcevent("@droprate::OnReload");