summaryrefslogtreecommitdiff
path: root/npc/functions/weather.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-23 15:38:59 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-23 15:38:59 -0200
commit9f4f607e4a88b651ca1cd6eb38ea69c77d6633a8 (patch)
tree21eac1d9257d2a424ca1433e6f3806d380393fe2 /npc/functions/weather.txt
parent5db3f4ef79f98bf8987be3e569b54ca03b0e317f (diff)
downloadserverdata-9f4f607e4a88b651ca1cd6eb38ea69c77d6633a8.tar.gz
serverdata-9f4f607e4a88b651ca1cd6eb38ea69c77d6633a8.tar.bz2
serverdata-9f4f607e4a88b651ca1cd6eb38ea69c77d6633a8.tar.xz
serverdata-9f4f607e4a88b651ca1cd6eb38ea69c77d6633a8.zip
Handle exp/drop rate changes on day/night cycle changes.
Diffstat (limited to 'npc/functions/weather.txt')
-rw-r--r--npc/functions/weather.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt
index 9fbaec805..06770e948 100644
--- a/npc/functions/weather.txt
+++ b/npc/functions/weather.txt
@@ -165,10 +165,14 @@ OnMinute45:
announce("The night falls.", bc_all|bc_npc);
setbattleflag("mob_spawn_delay", 70);
charcommand("@reloadbattleconf"); // Careful!
+ donpcevent("@exprate::OnReload");
+ donpcevent("@droprate::OnReload");
} else if (!is_night() && $@WEATHER_NIGHT) {
announce("The day rises.", bc_all|bc_npc);
setbattleflag("mob_spawn_delay", 100);
charcommand("@reloadbattleconf"); // Careful!
+ donpcevent("@exprate::OnReload");
+ donpcevent("@droprate::OnReload");
}
$@WEATHER_NIGHT=is_night();