summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-23 15:10:09 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-23 15:10:09 -0200
commit99b172bad8ccb3bdf9405577573368a1145ac9cd (patch)
tree59a6c69ef522c5571e2afb426c7091262111ddb3 /npc
parentb4a0dc3269536dedae8a6aada6bc86502d2070d5 (diff)
downloadserverdata-99b172bad8ccb3bdf9405577573368a1145ac9cd.tar.gz
serverdata-99b172bad8ccb3bdf9405577573368a1145ac9cd.tar.bz2
serverdata-99b172bad8ccb3bdf9405577573368a1145ac9cd.tar.xz
serverdata-99b172bad8ccb3bdf9405577573368a1145ac9cd.zip
[EXPERIMENTAL] Reload battle conf, so the mobs respawn faster at night time
May affect negatively the @exprate and @droprate commands.
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/weather.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt
index 264c16bd7..9fbaec805 100644
--- a/npc/functions/weather.txt
+++ b/npc/functions/weather.txt
@@ -164,9 +164,11 @@ OnMinute45:
if (is_night() && !$@WEATHER_NIGHT) {
announce("The night falls.", bc_all|bc_npc);
setbattleflag("mob_spawn_delay", 70);
+ charcommand("@reloadbattleconf"); // Careful!
} else if (!is_night() && $@WEATHER_NIGHT) {
announce("The day rises.", bc_all|bc_npc);
setbattleflag("mob_spawn_delay", 100);
+ charcommand("@reloadbattleconf"); // Careful!
}
$@WEATHER_NIGHT=is_night();