summaryrefslogtreecommitdiff
path: root/npc/functions/weather.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-22 15:57:45 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-22 15:57:45 -0300
commit973617e2bb8b5d065ef59dd17afc3830bf498572 (patch)
tree27f2cb8d3c1cbb9aca5fb1d345453b4a343adf28 /npc/functions/weather.txt
parent692a195e2e973f7ee81fbb4848c85198d74face5 (diff)
downloadserverdata-973617e2bb8b5d065ef59dd17afc3830bf498572.tar.gz
serverdata-973617e2bb8b5d065ef59dd17afc3830bf498572.tar.bz2
serverdata-973617e2bb8b5d065ef59dd17afc3830bf498572.tar.xz
serverdata-973617e2bb8b5d065ef59dd17afc3830bf498572.zip
A lot of debug markers and rework at logic.
Diffstat (limited to 'npc/functions/weather.txt')
-rw-r--r--npc/functions/weather.txt15
1 files changed, 9 insertions, 6 deletions
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