summaryrefslogtreecommitdiff
path: root/world/map/npc/annuals/xmas/states.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/annuals/xmas/states.txt')
-rw-r--r--world/map/npc/annuals/xmas/states.txt55
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;
+}