summaryrefslogtreecommitdiff
path: root/npc/annuals/xmas/states.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-09 13:33:57 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-09 13:33:57 -0300
commitcf18ce071c79ae37e14ea38943e0b1d88da70a7b (patch)
treef9159c9b60b3018300dd22ffba0d797bc5e828e5 /npc/annuals/xmas/states.txt
parent8a4bf716002a017de77fe7df301ef8e4aaf00a2e (diff)
downloadserverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.gz
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.bz2
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.xz
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.zip
Override
Diffstat (limited to 'npc/annuals/xmas/states.txt')
-rwxr-xr-xnpc/annuals/xmas/states.txt51
1 files changed, 51 insertions, 0 deletions
diff --git a/npc/annuals/xmas/states.txt b/npc/annuals/xmas/states.txt
new file mode 100755
index 00000000..c21ccce5
--- /dev/null
+++ b/npc/annuals/xmas/states.txt
@@ -0,0 +1,51 @@
+
+function script XmasStates {
+ // Check for Old Quest Line Keys. Reset Quest if so.
+ callfunc "XmasCheckOld";
+ // Main Quest
+ @xmas_state = ((XMASTIME & NIBBLE_0_MASK) >> NIBBLE_0_SHIFT);
+ @xmas_karma = ((XMASTIME & NIBBLE_1_MASK) >> NIBBLE_1_SHIFT);
+ @xmas_side = XMASTIME & $@xmas_side_bit;
+
+ @xmas_list_gather = (@xmas_state >= $@xmas_list_path2_state);
+ @xmas_list_path2 = (@xmas_state == $@xmas_list_path2_state);
+ @xmas_list_path1 = (@xmas_state == $@xmas_list_path1_state);
+ @xmas_list_both = (@xmas_state == $@xmas_list_both_state);
+ @xmas_list_complete = (@xmas_state >= $@xmas_list_complete_state);
+ @xmas_list_deliver = (@xmas_state >= $@xmas_list_deliver_state);
+ @xmas_helper_start_state = (@xmas_state >= $@xmas_helpers_start_state);
+ @xmas_helper_done_state = (@xmas_state >= $@xmas_helpers_done_state);
+ @xmas_reagent_start_state = (@xmas_state >= $@xmas_reagents_start);
+ @xmas_reagent_done_state = (@xmas_state >= $@xmas_reagents_done);
+ @xmas_boss_door_state = (@xmas_state >= $@xmas_boss_door_open_state);
+ @xmas_reward_start_state = (@xmas_state == $@xmas_reward_start);
+ @xmas_reward1_done_state = (@xmas_state == $@xmas_reward1_done);
+ @xmas_reward2_done_state = (@xmas_state == $@xmas_reward2_done);
+ @xmas_reward_done_state = (@xmas_state == $@xmas_reward_done);
+
+ // Basement Passage
+ @xmas_basement_passage = XMASTIME & $@xmas_basement_passage;
+ // Thrown Out
+ @xmas_thrown_out = XMASTIME & $@xmas_thrown_out_bit;
+ // Learned Route to Orum
+ @xmas_knows_route = XMASTIME & $@xmas_route_bit;
+ // Santas Helper
+ @xmas_sh_done = XMASTIME & $@xmas_sh_bit;
+ // List Quest
+ @xmas_all_lists = XMASTIME & $@xmas_all_lists_bit;
+ // Helper Quest
+ @xmas_helper_bit = XMASTIME & $@xmas_helper_bit;
+ @xmas_all_helpers = XMASTIME & $@xmas_all_helpers_bit;
+ // Acorns
+ @xmas_helper_acorn = XMASTIME & $@xmas_helper_bit_acorns;
+ // Bedding
+ @xmas_helper_bedding = XMASTIME & $@xmas_helper_bit_bed_starts;
+ // Glitter
+ @xmas_helper_glitter = XMASTIME & $@xmas_helper_bit_glitter_starts;
+ // Storage
+ @xmas_helper_storage = XMASTIME & $@xmas_helper_bit_storage;
+ // Bosses
+ @xmas_boss_start = XMASTIME & $@xmas_boss_start_bit;
+ @xmas_boss_hero = XMASTIME & $@xmas_boss_hero_bit;
+ return;
+}