diff options
author | wushin <pasekei@gmail.com> | 2013-12-26 07:57:21 -0800 |
---|---|---|
committer | wushin <pasekei@gmail.com> | 2013-12-26 07:57:21 -0800 |
commit | 06c8dd894939d096bc75f3b1c298cf310be7e5fe (patch) | |
tree | 1122db272deff33e017afd9011e6c92ffd3eea59 /world/map/npc/annuals/xmas/states.txt | |
parent | 91498af8d7e3f347ef5bcc3a9b1dc7d91d52fd61 (diff) | |
parent | cd71949def7c2c9b86991b92f4462136671757a3 (diff) | |
download | serverdata-06c8dd894939d096bc75f3b1c298cf310be7e5fe.tar.gz serverdata-06c8dd894939d096bc75f3b1c298cf310be7e5fe.tar.bz2 serverdata-06c8dd894939d096bc75f3b1c298cf310be7e5fe.tar.xz serverdata-06c8dd894939d096bc75f3b1c298cf310be7e5fe.zip |
Merge pull request #62 from wushin/Xmas-Annual
Annual Xmas Event
Diffstat (limited to 'world/map/npc/annuals/xmas/states.txt')
-rw-r--r-- | world/map/npc/annuals/xmas/states.txt | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/world/map/npc/annuals/xmas/states.txt b/world/map/npc/annuals/xmas/states.txt new file mode 100644 index 00000000..8d81864f --- /dev/null +++ b/world/map/npc/annuals/xmas/states.txt @@ -0,0 +1,55 @@ +// This file is part of Christmas Event +// author: Jenalya, Chayenne, cinderweb, wushin +// please see #XmasConfig + +function|script|XmasStates|, +{ + // Check for Old Quest Line Keys. Reset Quest if so. + callfunc "XmasCheckOld"; + // Main Quest + set @xmas_state, ((XMASTIME & NIBBLE_0_MASK) >> NIBBLE_0_SHIFT); + set @xmas_karma, ((XMASTIME & NIBBLE_1_MASK) >> NIBBLE_1_SHIFT); + set @xmas_side, XMASTIME & $@xmas_side_bit; + + set @xmas_list_gather, (@xmas_state >= $@xmas_list_path2_state); + set @xmas_list_path2, (@xmas_state == $@xmas_list_path2_state); + set @xmas_list_path1, (@xmas_state == $@xmas_list_path1_state); + set @xmas_list_both, (@xmas_state == $@xmas_list_both_state); + set @xmas_list_complete, (@xmas_state >= $@xmas_list_complete_state); + set @xmas_list_deliver, (@xmas_state >= $@xmas_list_deliver_state); + set @xmas_helper_start_state, (@xmas_state >= $@xmas_helpers_start_state); + set @xmas_helper_done_state, (@xmas_state >= $@xmas_helpers_done_state); + set @xmas_reagent_start_state, (@xmas_state >= $@xmas_reagents_start); + set @xmas_reagent_done_state, (@xmas_state >= $@xmas_reagents_done); + set @xmas_boss_door_state, (@xmas_state >= $@xmas_boss_door_open_state); + set @xmas_reward_start_state, (@xmas_state == $@xmas_reward_start); + set @xmas_reward1_done_state, (@xmas_state == $@xmas_reward1_done); + set @xmas_reward2_done_state, (@xmas_state == $@xmas_reward2_done); + set @xmas_reward_done_state, (@xmas_state == $@xmas_reward_done); + + // Basement Passage + set @xmas_basement_passage, XMASTIME & $@xmas_basement_passage; + // Thrown Out + set @xmas_thrown_out, XMASTIME & $@xmas_thrown_out_bit; + // Learned Route to Orum + set @xmas_knows_route, XMASTIME & $@xmas_route_bit; + // Santas Helper + set @xmas_sh_done, XMASTIME & $@xmas_sh_bit; + // List Quest + set @xmas_all_lists, XMASTIME & $@xmas_all_lists_bit; + // Helper Quest + set @xmas_helper_bit, XMASTIME & $@xmas_helper_bit; + set @xmas_all_helpers, XMASTIME & $@xmas_all_helpers_bit; + // Acorns + set @xmas_helper_acorn, XMASTIME & $@xmas_helper_bit_acorns; + // Bedding + set @xmas_helper_bedding, XMASTIME & $@xmas_helper_bit_bed_starts; + // Glitter + set @xmas_helper_glitter, XMASTIME & $@xmas_helper_bit_glitter_starts; + // Storage + set @xmas_helper_storage, XMASTIME & $@xmas_helper_bit_storage; + // Bosses + set @xmas_boss_start, XMASTIME & $@xmas_boss_start_bit; + set @xmas_boss_hero, XMASTIME & $@xmas_boss_hero_bit; + return; +} |