summaryrefslogtreecommitdiff
path: root/world/map/npc/annuals/halloween/config.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/annuals/halloween/config.txt')
-rw-r--r--world/map/npc/annuals/halloween/config.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/world/map/npc/annuals/halloween/config.txt b/world/map/npc/annuals/halloween/config.txt
index 59839668..a3d5fd58 100644
--- a/world/map/npc/annuals/halloween/config.txt
+++ b/world/map/npc/annuals/halloween/config.txt
@@ -127,8 +127,6 @@ L_Main:
set $@halloween_memory_count, 8;
// Level to go trick-or-treating
set $@halloween_min_level, 10;
- // Age to go trick-or-treating
- set $@halloween_min_age, (7*86400);
// Number of trick and treats completed to get charm.
set $@halloween_charm_count, 10;
@@ -333,6 +331,12 @@ L_Main:
set $@n, 0;
+ // Age to go trick-or-treating (1 week before the start)
+ if ((gettime(6) >= $@halloween_start_month) || (gettime(6) <= $@halloween_end_month))
+ set $@halloween_min_age, ((gettime(5) + 7)*86400);
+ if (gettime(6) == $@halloween_reward_start_month)
+ set $@halloween_min_age, ((gettime(5) + 38)*86400);
+
if((gettime(6) == $@halloween_reward_start_month && gettime(5) >= $@halloween_reward_start_day
&& (gettime(5) <= $@halloween_reward_end_day && $@halloween_reward_start_month == $@halloween_end_month
|| !($@halloween_reward_start_month == $@halloween_end_month)))