diff options
author | Wushin <pasekei@gmail.com> | 2014-11-01 20:07:24 -0500 |
---|---|---|
committer | Wushin <pasekei@gmail.com> | 2014-11-01 20:07:24 -0500 |
commit | 3a5bc4a33708f18dd4d481006337f2ea2e60326e (patch) | |
tree | f36113564ce938f589bb6be114447a91b73120f3 /world/map/npc/annuals/halloween/config.txt | |
parent | bbda2ecbab0e798e98e83151ed166a83fa3e3185 (diff) | |
parent | ca14cc2a830a2e614c1d86f1db75000b68421200 (diff) | |
download | serverdata-3a5bc4a33708f18dd4d481006337f2ea2e60326e.tar.gz serverdata-3a5bc4a33708f18dd4d481006337f2ea2e60326e.tar.bz2 serverdata-3a5bc4a33708f18dd4d481006337f2ea2e60326e.tar.xz serverdata-3a5bc4a33708f18dd4d481006337f2ea2e60326e.zip |
Merge pull request #193 from wushin/halloween-karma-debug
Halloween Debug and Age fixed to pre-start date
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))) |