summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-08-02 10:16:35 -0300
committerJesusaves <cpntb1@ymail.com>2018-08-02 10:19:39 -0300
commit91581a92cfff42f0fc9332981e70a4e5ceb51498 (patch)
tree937fd91aedeb43c21d7262876090f1a0115f2751
parentdb843bc101eb73e77b9299e101f3b13d0a278ae0 (diff)
downloadserverdata-91581a92cfff42f0fc9332981e70a4e5ceb51498.tar.gz
serverdata-91581a92cfff42f0fc9332981e70a4e5ceb51498.tar.bz2
serverdata-91581a92cfff42f0fc9332981e70a4e5ceb51498.tar.xz
serverdata-91581a92cfff42f0fc9332981e70a4e5ceb51498.zip
skip_checks flag, so SeasonReload work as desired
-rw-r--r--npc/functions/seasons.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/functions/seasons.txt b/npc/functions/seasons.txt
index a93cc78f9..e29c64146 100644
--- a/npc/functions/seasons.txt
+++ b/npc/functions/seasons.txt
@@ -49,7 +49,14 @@ function script SeasonControl {
} while (@menu != 3);
return;
}
+
+// If skip_checks is set, it'll ignore $@SEASON control.
+// SeasonReload( {skip_checks} )
function script SeasonReload {
+ // Proccess skip_checks
+ if (getarg(0,0))
+ $@SEASON=99;
+
// Summer extra drops
if (season() == SUMMER && $@SEASON != SUMMER) {
donpcevent("#SeasonCore::OnSummerStart");