diff options
author | wushin <pasekei@gmail.com> | 2014-10-27 15:55:26 -0500 |
---|---|---|
committer | wushin <pasekei@gmail.com> | 2014-10-28 22:24:25 -0500 |
commit | ca14cc2a830a2e614c1d86f1db75000b68421200 (patch) | |
tree | a25b8b166f3099b46e3fa9885ecd56ed8681924c /world/map/npc/annuals/halloween/config.txt | |
parent | 0bc1c20799c9b01e60035ce1c82fd8a38c110c4c (diff) | |
download | serverdata-ca14cc2a830a2e614c1d86f1db75000b68421200.tar.gz serverdata-ca14cc2a830a2e614c1d86f1db75000b68421200.tar.bz2 serverdata-ca14cc2a830a2e614c1d86f1db75000b68421200.tar.xz serverdata-ca14cc2a830a2e614c1d86f1db75000b68421200.zip |
Halloween Debug
Age is now 1 week older then event start
Diffstat (limited to 'world/map/npc/annuals/halloween/config.txt')
-rw-r--r-- | world/map/npc/annuals/halloween/config.txt | 8 |
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))) |