diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-12-23 15:38:59 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-12-23 15:38:59 -0200 |
commit | 9f4f607e4a88b651ca1cd6eb38ea69c77d6633a8 (patch) | |
tree | 21eac1d9257d2a424ca1433e6f3806d380393fe2 /npc/functions/weather.txt | |
parent | 5db3f4ef79f98bf8987be3e569b54ca03b0e317f (diff) | |
download | serverdata-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.txt | 4 |
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(); |