From 0baaf2674734e59ddaf27c326a6bdf07d34896eb Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 26 Feb 2020 10:44:59 -0300 Subject: De-hardcode the battle configuration flags (BCONF) Reason: Automatize and protect the EXP Bonus on TMW2 Day Event. --- npc/functions/weather.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'npc/functions/weather.txt') 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"); -- cgit v1.2.3-70-g09d2