summaryrefslogtreecommitdiff
path: root/npc/functions/weather.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-26 10:44:59 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-26 10:44:59 -0300
commit0baaf2674734e59ddaf27c326a6bdf07d34896eb (patch)
treea60b89f2518dfd04e6d5f6df0e4b2786283c805c /npc/functions/weather.txt
parentbcd58850a721a39dcf538aea2a14f009810c6cf9 (diff)
downloadserverdata-0baaf2674734e59ddaf27c326a6bdf07d34896eb.tar.gz
serverdata-0baaf2674734e59ddaf27c326a6bdf07d34896eb.tar.bz2
serverdata-0baaf2674734e59ddaf27c326a6bdf07d34896eb.tar.xz
serverdata-0baaf2674734e59ddaf27c326a6bdf07d34896eb.zip
De-hardcode the battle configuration flags (BCONF)
Reason: Automatize and protect the EXP Bonus on TMW2 Day Event.
Diffstat (limited to 'npc/functions/weather.txt')
-rw-r--r--npc/functions/weather.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt
index 1b9d57491..410fa221d 100644
--- a/npc/functions/weather.txt
+++ b/npc/functions/weather.txt
@@ -211,8 +211,8 @@ OnMinute45:
for (.@i = 0; .@i < .@c; .@i++) {
message(.@players[.@i], "The night falls.");
}
- setbattleflag("mob_spawn_delay", BCONFN_SPAWN);
- setbattleflag("monster_hp_rate", BCONFN_MOBHP);
+ setbattleflag("mob_spawn_delay", $BCONFN_SPAWN);
+ setbattleflag("monster_hp_rate", $BCONFN_MOBHP);
//charcommand("@reloadbattleconf"); // Careful!
donpcevent("@exprate::OnInheirtedReload");
//donpcevent("@droprate::OnReload");
@@ -221,8 +221,8 @@ OnMinute45:
for (.@i = 0; .@i < .@c; .@i++) {
message(.@players[.@i], "The day rises.");
}
- setbattleflag("mob_spawn_delay", BCONFD_SPAWN);
- setbattleflag("monster_hp_rate", BCONFD_MOBHP);
+ setbattleflag("mob_spawn_delay", $BCONFD_SPAWN);
+ setbattleflag("monster_hp_rate", $BCONFD_MOBHP);
//charcommand("@reloadbattleconf"); // Careful!
donpcevent("@exprate::OnInheirtedReload");
//donpcevent("@droprate::OnReload");