summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/scoreboards.txt1
-rw-r--r--npc/functions/weather.txt15
2 files changed, 10 insertions, 6 deletions
diff --git a/npc/functions/scoreboards.txt b/npc/functions/scoreboards.txt
index 7a3379aa1..0a3fa29e6 100644
--- a/npc/functions/scoreboards.txt
+++ b/npc/functions/scoreboards.txt
@@ -57,6 +57,7 @@ OnDay1201:
end;
+// Hourly Reload (maybe "OnMinute00" would work better?)
OnHour00:
OnHour01:
OnHour02:
diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt
index 561c6b596..039c2e7a9 100644
--- a/npc/functions/weather.txt
+++ b/npc/functions/weather.txt
@@ -110,6 +110,7 @@ OnMinute00:
OnMinute15:
OnMinute30:
OnMinute45:
+ debugmes "[Weather.sys] Starting to regen";
.@hti = htiterator(.wcore);
for(.@key$ = htinextkey(.@hti); hticheck(.@hti); .@key$ = htinextkey(.@hti)) {
@@ -193,6 +194,7 @@ OnMinute45:
}
}
htidelete(.@hti);
+ debugmes "[Weather.sys] Regenerated";
// During night, normal monsters respawn 30% faster. (Bifs and Bosses are immune)
//
@@ -205,25 +207,26 @@ OnMinute45:
for (.@i = 0; .@i < .@c; .@i++) {
message(.@players[.@i], "The night falls.");
}
+ $@WEATHER_NIGHT=is_night(true);
setbattleflag("mob_spawn_delay", BCONFN_SPAWN);
setbattleflag("monster_hp_rate", BCONFN_MOBHP);
//charcommand("@reloadbattleconf"); // Careful!
- donpcevent("@exprate::OnReload");
- donpcevent("@droprate::OnReload");
+ donpcevent("@exprate::OnInheirtedReload");
+ //donpcevent("@droprate::OnReload");
} else if (!is_night() && $@WEATHER_NIGHT) {
.@c = getunits(BL_PC, .@players, MAX_CYCLE_PC);
for (.@i = 0; .@i < .@c; .@i++) {
message(.@players[.@i], "The day rises.");
}
+ $@WEATHER_NIGHT=is_night(true);
setbattleflag("mob_spawn_delay", BCONFD_SPAWN);
setbattleflag("monster_hp_rate", BCONFD_MOBHP);
//charcommand("@reloadbattleconf"); // Careful!
- donpcevent("@exprate::OnReload");
- donpcevent("@droprate::OnReload");
+ donpcevent("@exprate::OnInheirtedReload");
+ //donpcevent("@droprate::OnReload");
}
- $@WEATHER_NIGHT=is_night(true);
- //debugmes "[Weather.sys] Weather reloaded";
+ debugmes "[Weather.sys] Weather reloaded";
end;
// Function to check stuff